repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
awelzel/influxpy | 4,818,953,337,795 | b043587373df06bf2ebd5c583f30ff2f1e8787c3 | 55a4aab4f21713ee1f43005a053c2b702fbf2661 | /tests/test_handler.py | 27bbea6eafede7e007c6b2afa907f25b1302c206 | [
"BSD-3-Clause"
] | permissive | https://github.com/awelzel/influxpy | 8805cca2ea89d7c6e2655dfdd1dfeb3c53d7e410 | 773179ff56a1128b246a63736483b9e3bc76f083 | refs/heads/master | 2020-03-25T07:04:37.177208 | 2018-08-05T21:48:04 | 2018-08-05T22:03:54 | 143,539,960 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import logging
import socket
import unittest
from unittest import mock
from influxpy import UDPHandler
class TestHandler(unittest.TestCase):
"""
We mock UDP socket of the DatagramHandler and look at the sendto() call.
"""
def setUp(self):
self.logger = logging.getLogger("test_logger")
... | UTF-8 | Python | false | false | 6,198 | py | 8 | test_handler.py | 6 | 0.549209 | 0.528235 | 0.000484 | 156 | 38.730769 | 83 |
kmcheung12/advent-of-code-2019 | 13,804,024,931,286 | 557ddc47b23d5c89a9526ee597cb61dd9465a228 | a3d37c6ca273bf826a36565122d896f4cb760f5d | /day1.py | 738a1d27d5b6ee68496ee7f164e6097730c45e14 | [] | no_license | https://github.com/kmcheung12/advent-of-code-2019 | d99332e0f9f5505b9a1846a72693af0cf0cee635 | 3daafb2f7fc9e3b81eaac5e3a6ece9288bd87787 | refs/heads/master | 2020-09-26T04:37:19.047272 | 2019-12-08T17:01:01 | 2019-12-08T17:01:01 | 226,166,853 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
def fuel(mass, acc=0):
s = int(mass/3) - 2
if s < 9:
return s + acc
else:
return fuel(s, s + acc)
def compute(params):
return sum(fuel(p) for p in params)
def preprocess(inputs):
return map(int, inputs)
if __name__ == '__main__':
raw = sys.argv[1:]
params = prep... | UTF-8 | Python | false | false | 381 | py | 8 | day1.py | 8 | 0.566929 | 0.553806 | 0 | 19 | 19.052632 | 39 |
simonsben/intent_detection | 12,025,908,450,286 | c4e6626a2a53fb59ee84b4bef59a984246876fc0 | 66e7fdfb8498c7573719dda5e3f7744a544bec80 | /model/layers/realtime_embedding.py | 8a502ee5679c33ee444acee9668677ed1ba45671 | [] | no_license | https://github.com/simonsben/intent_detection | d172976ead7d9d7d33f2ad0803c92cdc1afe28e3 | 7ca7e4e1f0e7ec92c034f459a8a8b199d37dfb17 | refs/heads/master | 2023-07-14T18:47:48.077452 | 2020-09-18T16:21:58 | 2020-09-18T16:21:58 | 257,970,547 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from fasttext.FastText import _FastText
from tensorflow.keras.utils import Sequence
from numpy import zeros, ones, ndarray, abs
from config import batch_size, max_tokens
from math import ceil
class RealtimeEmbedding(Sequence):
""" Extends TensorFlow Sequence to provide on-the-fly fastText token embedding ... | UTF-8 | Python | false | false | 5,610 | py | 165 | realtime_embedding.py | 153 | 0.627451 | 0.624955 | 0 | 143 | 37.230769 | 113 |
glujan/lapka | 7,404,523,653,016 | 5b25bb2e7d6282c3b3bb8e3676047bc9a9100043 | 642a6d97425dfc04ebd67de99b2eb8b4b96d1c48 | /lapka/fetch.py | 5ad86a2825cf143aa27e2d9b86c46387ab097df1 | [
"MIT"
] | permissive | https://github.com/glujan/lapka | 29cc286a993cea5dc2c5d0834627190568dcb0a3 | 6ae8202e8c54210becb306cb87d9a3de2b9c3626 | refs/heads/master | 2020-05-28T09:49:11.547668 | 2018-06-22T07:41:23 | 2018-06-22T07:42:44 | 82,586,331 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Fetch and parse data from shelters' websites to a common format."""
import asyncio
from functools import partial
from urllib.parse import urljoin, urlparse
import aiohttp
from lxml import etree
class Shelter:
"""Base class for extracting data about from shelters websites."""
animal_url = ""
""""XPat... | UTF-8 | Python | false | false | 5,417 | py | 30 | fetch.py | 15 | 0.560273 | 0.557873 | 0 | 156 | 33.724359 | 99 |
alsandiego/UCI_Bootcamp_Project2 | 1,288,490,210,644 | 5755a137f4f40ecdc3cbb8e75c3ea9a776a50c60 | 9c576e3cd37d29579b4053d9de876232f5e18224 | /app.py | 56ae7403a8ad4476d69766fcea7f834f2428eaf8 | [] | no_license | https://github.com/alsandiego/UCI_Bootcamp_Project2 | cacea93d0ff01f59b7dbb45a23e2f70c5d54f9a9 | 04c619116cd870d5d605d3558610dd36ab8d3da9 | refs/heads/master | 2020-11-26T15:08:46.377880 | 2020-01-14T03:46:58 | 2020-01-14T03:46:58 | 229,116,719 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import pandas as pd
import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine
from flask import Flask, jsonify, render_template
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
################... | UTF-8 | Python | false | false | 6,471 | py | 5 | app.py | 3 | 0.639005 | 0.617988 | 0 | 196 | 32.020408 | 164 |
juanjavierlimachi/mipagina | 19,121,194,415,997 | 6e64bf6289b3f30d3dba977832f5c73f63dc9ae9 | 7ac31c08e3727297d04eb8dbdc1e7d48b0bd2fed | /mipagina/apps/proveedor/models.py | a1ad2d0d9a5f6c170757b4f1488221321ffd5d27 | [] | no_license | https://github.com/juanjavierlimachi/mipagina | 06cc8b7748b474f5606fa12ef5874583531c3a80 | 5e9c0ab89bac40edff43b86675a72860442c79f4 | refs/heads/master | 2021-01-20T05:29:33.600400 | 2017-05-27T15:58:49 | 2017-05-27T15:58:49 | 89,789,828 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
# Create your models here.
class Proveedor(models.Model):
Nombre_Razon_Social=models.CharField(max_length=200, unique=True)
Nit=models.PositiveIntegerField(max_length=15, unique=True)
Telefono=models.PositiveIntegerField(max_length=8, unique=True)
Direccion=models.CharField(max_length=1... | UTF-8 | Python | false | false | 558 | py | 64 | models.py | 16 | 0.786738 | 0.768817 | 0 | 12 | 45.5 | 78 |
yeyeto2788/GetTheUmbrella | 498,216,209,102 | a19a6f6a8c4aa517375816b341fb7a545ae53cf8 | 4a58a20a8bf66832d62cef42e61fb5504808656d | /GetTheUmbrella.py | 309f9e899a4f9fde28041f6f79e5cbf01335454b | [] | no_license | https://github.com/yeyeto2788/GetTheUmbrella | 2ad6146ff1f3655455b4fa3d5561a68b8f032e8b | 68f30d47a37b30d8af5234c6d73c976ffaa54998 | refs/heads/master | 2020-02-21T16:42:13.897157 | 2018-10-08T12:41:22 | 2018-10-08T12:41:22 | 99,704,472 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import time
import json
import inspect
import logging
import smtplib
import requests
import datetime
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart... | UTF-8 | Python | false | false | 6,520 | py | 3 | GetTheUmbrella.py | 1 | 0.549233 | 0.544479 | 0 | 180 | 35.222222 | 154 |
BCHoagland/Sutton-and-Barto | 10,368,051,072,749 | 2572abe07aa6f102f53623cb5acb476e62a25e12 | 49ef500e0921d114963d48844b353fd8de15c4eb | /08 - Planning and Learning with Tabular Methods/priority_sweeping/envs/shortcut_env.py | af357d6d1cc1933360f0683a3993eba5f415f389 | [] | no_license | https://github.com/BCHoagland/Sutton-and-Barto | d282a8b493ad45f8c3e444eec095cb7d26d558f2 | ec4a049820b6098462e9aadd43109fc6c83d0fc5 | refs/heads/master | 2020-04-17T02:36:38.925765 | 2019-03-08T18:48:57 | 2019-03-08T18:48:57 | 166,143,693 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
class ShortcutEnv():
def __init__(self):
self.name = 'Shortcut Maze'
self.width = 9
self.height = 6
self.start_pos = np.array([3, 0])
self.goal = np.array([self.width-1, self.height-1])
self.old_obstacles = [[1, 2], [2, 2], [3, 2], [4, 2], [5, 2... | UTF-8 | Python | false | false | 1,247 | py | 81 | shortcut_env.py | 48 | 0.510024 | 0.465116 | 0 | 42 | 28.690476 | 93 |
doolieSoft/djangobourse | 14,061,722,976,424 | 5dc4aef8fbee2148937583584107b0224e5d335a | 2eb06ad3b2cae9dc25d5332350a514b8b75d25af | /src/djangobourse/migrations/0012_auto_20190107_1745.py | 628d2c2a91f3ee1b25017ac586e684c11f848979 | [] | no_license | https://github.com/doolieSoft/djangobourse | 470c2d71a4f386a97b9c6f218f82f31d5384be7a | da921defaf6ef44ac621065a63b060cd79bfb1d6 | refs/heads/master | 2020-04-16T08:24:59.925043 | 2019-01-12T18:56:59 | 2019-01-12T18:56:59 | 165,424,276 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.1.5 on 2019-01-07 16:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('djangobourse', '0011_share_valeur'),
]
operations = [
migrations.AlterField(
model_name='share'... | UTF-8 | Python | false | false | 940 | py | 21 | 0012_auto_20190107_1745.py | 18 | 0.623404 | 0.603191 | 0 | 29 | 31.413793 | 122 |
gayatribasude/GayatrisWorld | 3,556,232,949,513 | cae92af273f1a5efe31081ee9599e0c76cea9427 | 8d3835e39cbc2c74d8535b809686d6ab3033c0d0 | /ecommerce/carts/migrations/0029_auto_20210731_2132.py | 1da0307730c4529cce0432ee8019cff46ff0e1d6 | [] | no_license | https://github.com/gayatribasude/GayatrisWorld | 125698955cd8b98a5aa2377331293587a57f2911 | 552ea2ef946e95f5bccc4e51d4030484ab0bc438 | refs/heads/master | 2023-06-25T19:45:03.232059 | 2021-08-02T16:43:47 | 2021-08-02T16:43:47 | 384,343,617 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.1.3 on 2021-07-31 16:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carts', '0028_auto_20190130_2301'),
]
operations = [
migrations.AlterField(
model_name='cart',
name='items',
... | UTF-8 | Python | false | false | 401 | py | 93 | 0029_auto_20210731_2132.py | 66 | 0.588529 | 0.511222 | 0 | 18 | 21.277778 | 70 |
dekasthiti/pythonic | 5,686,536,735,973 | 51b9926d5b21da5b3d358082c09a0cbffd72b447 | d550cc0b4a8567d75da3d6e923533271309c6347 | /pythonic.py | f27ccfb99c9d65965b9dde19f3c0d9f9936579e5 | [] | no_license | https://github.com/dekasthiti/pythonic | 23349638caf4e70ca65b89b6b5a1f184580f2235 | f7d28ff787a27af828b46e4cc3bd52acfbf98f37 | refs/heads/master | 2023-06-14T08:50:46.108612 | 2021-07-11T00:45:10 | 2021-07-11T00:45:10 | 103,495,862 | 0 | 0 | null | false | 2021-07-11T00:24:42 | 2017-09-14T06:42:50 | 2021-07-10T22:59:02 | 2021-07-11T00:24:41 | 53 | 0 | 0 | 0 | Python | false | false | from collections import defaultdict
import heapq
import functools
def compute_top_k_variance(students, scores, k):
"""
Students and scores are equal length lists of strings and floats, respectively.
The function computes for each string that appears at least k times in the list the variance of the top k s... | UTF-8 | Python | false | false | 3,359 | py | 53 | pythonic.py | 52 | 0.536171 | 0.528431 | 0 | 93 | 35.129032 | 117 |
crazyqipython/MLFHPY3 | 807,453,854,010 | 645afa56af0a6e1105e12100ebc282e04a4c5081 | 2c98108963be84092d097c1ee281c30b12ffa652 | /tests/test_ch4.py | efc5b51a7e7ed84ecb05ac86326bfc395f6ea556 | [] | no_license | https://github.com/crazyqipython/MLFHPY3 | db7606096e05c3dcaaf4d9cff35db9f05bfb9666 | 966d08f81382211c9f60c75518a2a0b36d035c66 | refs/heads/master | 2021-09-03T16:36:38.378393 | 2018-01-10T13:38:41 | 2018-01-10T13:38:41 | 115,197,470 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #coding:utf-8
import os
import unittest
from unittest import mock
import shutil
import tempfile
from pandas import *
from pandas.util.testing import assert_frame_equal
from ch4 import easyham_path, parse_email_list, parse_email,\
get_header_and_message, get_date, get_sender, get_subject,\
make_email_d... | UTF-8 | Python | false | false | 3,291 | py | 16 | test_ch4.py | 14 | 0.606199 | 0.596475 | 0 | 94 | 33.031915 | 169 |
hikaru76/42tokyo | 11,029,476,031,300 | d7315613b627d5c064f784f2eca2eea1f6b475a4 | 481162d1e296ff8d7e48baacfadf4e43a0921cbc | /python-piscine/04/00/main.py | 113b5f7fc92221975733dac52d25363c2802b610 | [] | no_license | https://github.com/hikaru76/42tokyo | 1731a9dc03a77c8db5d2d8557b985f1a07b91daf | a2bcc870835edcd7a8488126024b082dfd2e2459 | refs/heads/master | 2023-06-04T08:30:02.194940 | 2021-06-28T12:18:37 | 2021-06-28T12:18:37 | 346,692,343 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
from urllib import request
import sys
from bs4 import BeautifulSoup
class PokeWiki:
def __init__(self, name: str):
self.name = name
self.url = "https://pokemon.fandom.com/wiki/" + name
response = request.urlopen(self.url)
self.soup = BeautifulSoup(response)
r... | UTF-8 | Python | false | false | 628 | py | 20 | main.py | 9 | 0.619427 | 0.617834 | 0 | 27 | 22.296296 | 60 |
abhi8893/Intensive-python | 10,204,842,342,915 | 1bccc439c6508f7de6463a2480ed2b68ac1e81ae | b59189970730d2093e33d9c7ba33129baf2d683e | /tutorials/argparse-tutorial/greet_and_show_time.py | 93353d2dfdd4da8dee31f6a702ed281667120727 | [] | no_license | https://github.com/abhi8893/Intensive-python | be2c11a59c220ad02fd9f007f9ab5f85caaadbbc | e4b16926aa667760686ff111ecb71269c207acb4 | refs/heads/master | 2020-09-21T15:59:59.635512 | 2020-08-31T09:25:35 | 2020-08-31T09:25:35 | 224,839,629 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Link: https://t.ly/5882b
# Greet the person and show current time
import datetime as dt
def greet(name, show_time):
print(f'Hello {name}!')
if show_time:
print(f'The time right now is {dt.datetime.now()}')
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser(
... | UTF-8 | Python | false | false | 833 | py | 143 | greet_and_show_time.py | 126 | 0.627851 | 0.623049 | 0 | 29 | 27.758621 | 78 |
fenn/skdb | 7,524,782,746,531 | f5d2ae120b0c0c3770bfbf0968f1f41db2083369 | e74e2d3a8babb739b15c825bdfb14c7828af2344 | /inventory/fabmap/models.py | e73179f88e9917c1049bc244dd47d8994a0d7240 | [] | no_license | https://github.com/fenn/skdb | 97ea9a4cc584c4b24ea5275ac36cfdd3f34118de | dfb6ec81952030c2d0c1dec880eb93da1d629667 | refs/heads/master | 2020-05-07T21:55:52.979394 | 2014-11-15T12:33:28 | 2014-11-15T12:33:28 | 3,238,526 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.contrib import admin
from django import forms
from django.forms import ModelForm
#
# Defining models
#
#
class AccessModel(models.Model):
name = models.CharField(max_length=200)
description = models.TextField()... | UTF-8 | Python | false | false | 3,363 | py | 174 | models.py | 82 | 0.643176 | 0.635147 | 0 | 112 | 29.026786 | 99 |
jeffzpy/py-sql-generator | 6,365,141,562,579 | f2c9121adb6743c38dd85c3da519539b9f5778fb | 330987aa81ea79768a96ab620110c877189093bd | /settings.py | 56f679f6c7323823537304d1058f0ae6b3404756 | [] | no_license | https://github.com/jeffzpy/py-sql-generator | 97998272c8f4c131aec8ccfd8b1992534c88a170 | ef8542d74f518df4b536bf7e7f0089fef8327fa9 | refs/heads/master | 2020-03-25T21:57:24.863269 | 2018-08-09T19:41:09 | 2018-08-09T19:41:09 | 144,197,244 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | SQLALCHEMY_DATABASE_URI = 'mysql://username:password@ip:port/database?charset=utf8' | UTF-8 | Python | false | false | 83 | py | 1 | settings.py | 1 | 0.807229 | 0.795181 | 0 | 1 | 83 | 83 |
Knight-RS/CodeSmell | 901,943,150,095 | 9e5d2a614e5a3213b8ce798c0355c6186eb961aa | 3c5ef501cb8398b143aeeca015721d9da2e05f9f | /GodClassDetection/code/python/fine_tune_0716.py | c79efba2ffcffb62c4bc606d535ed0b7e26e96f5 | [] | no_license | https://github.com/Knight-RS/CodeSmell | 1e5e6996a02c11ba18e07ca11e85a1d6479ae7f3 | 1ad6b55604554372bcabfa236124f1ce7b47f1ae | refs/heads/master | 2021-05-16T21:57:31.764943 | 2020-09-11T03:23:29 | 2020-09-11T03:25:05 | 250,485,703 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- encoding: utf-8 -*-
"""
@File : fine_tune.py.py
@Time : 2020-05-14 20:23
@Author : knight
"""
# os.environ["CUDA_VISIBLE_DEVICES"] = "0"
import os
import time
import keras
import matplotlib.pyplot as plt
import preprocess1 # 引入自定义的preprocess.py,所以preprocess.py不是主函数
from keras.models import load_model
fr... | UTF-8 | Python | false | false | 5,270 | py | 143 | fine_tune_0716.py | 16 | 0.648236 | 0.633571 | 0 | 173 | 28.156069 | 122 |
summychou/Py2Ja | 16,234,976,394,803 | d3bd64c0878e9f4f41901a33feafd98677961ae8 | 2c82fcf5af5de3482bf448f62ca3b3c62c6b2627 | /Py2Ja/blog/urls.py | a6637ec35849b4269467532eb080a614082151d7 | [
"Apache-2.0"
] | permissive | https://github.com/summychou/Py2Ja | c91d2f4bceaef7e84e295c650ffaa099a89fb1e0 | 99fda288f74b7a8761ac3d4ed0ce4440b976918d | refs/heads/master | 2016-09-13T05:59:43.385757 | 2016-05-05T13:15:53 | 2016-05-05T13:15:53 | 58,128,764 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import url
urlpatterns = [
url(r'^list', "blog.views.list_blogs", name="blog_list"),
url(r'^view/(?P<blog_id>\d+)', "blog.views.view_blog", name="blog_view"),
url(r'^write', "blog.views.write_blog", name="blog_write"),
url(r'^write', "blog.views.write_blog", name="blog_write"),
... | UTF-8 | Python | false | false | 400 | py | 73 | urls.py | 40 | 0.635 | 0.635 | 0 | 9 | 43.444444 | 79 |
Bsoong/CS-115 | 15,307,263,472,623 | 368151ce70e1d5185e535fbd4a0d376838f0faa4 | 30d826d0281ee214e6fb8fdf36ebbaa6b2cb7b2c | /Hw files/hw1.py | 36be9a841d64f82c1626010122d939bf1768a756 | [] | no_license | https://github.com/Bsoong/CS-115 | 66717a5bc29437f004db3bad3899938293bc71c8 | b0f3c8d309214c7f483bcfd90ebd454bcbb5948f | refs/heads/master | 2020-03-23T23:09:06.584267 | 2018-11-21T06:14:40 | 2018-11-21T06:14:40 | 142,218,694 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Created on Sep 10, 2017
@author: brand
'''
from cs115 import map, reduce
def mult(x,y):
return x*y
def factorial(n):
"""Using an if and an else statement, it allows for the function to hit all parameters or any
number that may be put in. The if makes sure the statement is possible and ... | UTF-8 | Python | false | false | 910 | py | 34 | hw1.py | 32 | 0.595604 | 0.579121 | 0 | 34 | 23.705882 | 104 |
Manchangdx/daxiangmu | 18,751,827,248,238 | 6d542eec9afc583f5de0cec48f092802fa0a2e9e | 5fc6b9810d3ef030345246a3030dc2bf7809da04 | /jobplus/jobplus/handlers/admin.py | 7a5bfb802749bbd7b58ceb88912613b287aa3be1 | [] | no_license | https://github.com/Manchangdx/daxiangmu | f8d828929a2e9e4b05c63e38a877474c204e61c0 | 9882643a923b1d87068fe68155e61a46eade7922 | refs/heads/master | 2023-05-25T11:26:49.134919 | 2022-04-04T13:06:38 | 2022-04-04T13:06:38 | 131,313,758 | 0 | 0 | null | false | 2023-05-01T22:24:34 | 2018-04-27T15:25:35 | 2022-03-07T11:12:06 | 2023-05-01T22:24:33 | 422 | 1 | 0 | 4 | Python | false | false | from flask import (Blueprint, render_template, request, current_app,
redirect, url_for, flash)
from jobplus.decorators import admin_required
from jobplus.models import User, db, Job
admin = Blueprint('admin', __name__, url_prefix='/admin')
@admin.route('/')
@admin_required
def index():
return render_templat... | UTF-8 | Python | false | false | 1,387 | py | 36 | admin.py | 15 | 0.655172 | 0.651504 | 0 | 51 | 25.72549 | 69 |
developeryuldashev/python-core | 3,135,326,151,161 | d5e0c1d90875b85c98cb9afac5d0304f2397dd36 | 47deebe6fefedb01fdce5d4e82f58bb08f8e1e92 | /python core/Lesson_13/file_1.py | 1148a464babb7ffd09f12e200c2a2ee0a66610df | [] | no_license | https://github.com/developeryuldashev/python-core | 5bb162603bdb5782acf05e3fb25ca5dd6347067a | 08fca77c9cfde69d93a7875b3fb65b98f3dabd78 | refs/heads/main | 2023-08-21T03:33:12.160133 | 2021-10-19T04:56:53 | 2021-10-19T04:56:53 | 393,383,696 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | exept='/\:|=?;[],^<>'
path='file1?.txt'
r=True
for char in path:
r=r and (char not in exept)
if r:
f=open(path,'w')
f.close()
else:
print('bu nom bilan fayl yaratib bo\'lmaydi') | UTF-8 | Python | false | false | 193 | py | 426 | file_1.py | 411 | 0.57513 | 0.569948 | 0 | 10 | 18.4 | 49 |
nileshhadalgi016/SQLite3-Tutorial | 11,132,555,252,549 | 88d0ced41a8f176a8a12bba6406b4162ea6dfc52 | 0482dec67616fc6a74095d9c248ba33ae28fcc96 | /superMarketApp/database.py | 685dc44b4c24623f5da15259e71f231cd4e95e95 | [] | no_license | https://github.com/nileshhadalgi016/SQLite3-Tutorial | 741289230d1a4492cabc7a1621c566d6c8c57f79 | 35719f92276667d357d013740a8735f852af5b6c | refs/heads/main | 2023-02-18T16:31:42.244311 | 2021-01-20T11:32:51 | 2021-01-20T11:32:51 | 326,337,046 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sqlite3
# cur.execute('CREATE TABLE admin(username TEXT,password TEXT)')
# conn.commit()
# cur.execute("INSERT INTO admin VALUES('nilesh','nilesh')")
# conn.commit()
def verif_admin(username, password):
try:
conn = sqlite3.connect('SuperMarket.db')
cur = conn.cursor()
print(usernam... | UTF-8 | Python | false | false | 6,199 | py | 3 | database.py | 3 | 0.524439 | 0.517342 | 0 | 171 | 35.245614 | 140 |
andy90/ShortSolventModel | 18,640,158,093,324 | 3e157d839ab449c496ccf5a39a776b1e3e268cff | 7cdf32b4ac717fe30eac1b14106d6ab1730adb2f | /data_ions/Na_Ca_Cl_potentials/plot_compare_Cl_2Cl.py | c558116b68681195091b4d78e6ccad2386889434 | [] | no_license | https://github.com/andy90/ShortSolventModel | 7d64cfef3f41c2e266cf6a3ec87974784a248fe4 | daff3ace5f5e4b24da20a385374baa11ea789d1e | refs/heads/master | 2020-09-23T10:03:44.959876 | 2020-08-18T20:17:59 | 2020-08-18T20:17:59 | 225,467,170 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # compare the pmf Ca Cl with one or 2 Cl in the box
import numpy as np
import matplotlib.pyplot as plt
import scipy.interpolate as interp
from matplotlib import rc, font_manager
import scipy.integrate as integrate
pmf1Cl=np.loadtxt("pmf_CaCl.xvg",unpack=True)
pmf2Cl=np.loadtxt("pmf_CaCl_2Cl.xvg",unpack=True)
pmf1=in... | UTF-8 | Python | false | false | 1,182 | py | 39 | plot_compare_Cl_2Cl.py | 7 | 0.70643 | 0.642132 | 0 | 38 | 30.131579 | 98 |
JonAWhite/BitcoinBudget | 15,264,313,817,148 | cbb8787c3d8219bf7a4e2f98d2c265fb6376eed1 | 58c73027252736b1ee236d329cc6f82e8dd71d8d | /coinbase_execute_budget.py | 5b6c502eee1865fadcc8e63c8bfcb9c5b5caeacd | [
"MIT"
] | permissive | https://github.com/JonAWhite/BitcoinBudget | 912f0a77416a95063176b7e5c337597942d7746a | cb600ca047bf5aa79651515382c9ba6ae4d84c53 | refs/heads/master | 2021-01-19T09:27:12.674106 | 2017-02-16T09:54:35 | 2017-02-16T09:54:35 | 82,111,619 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from coinbase.wallet.client import Client
import argparse
import json
def find_account(accounts, name):
for x in range(len(accounts)):
account = accounts[x]
if account.name == name:
return account
parser = argparse.ArgumentParser()
parser.add_argument("budget_file", help='JSON file in... | UTF-8 | Python | false | false | 2,181 | py | 3 | coinbase_execute_budget.py | 3 | 0.709766 | 0.703806 | 0 | 46 | 46.391304 | 189 |
misrayazgan/METU-CENG-Coursework | 12,567,074,348,966 | 35d16b276b6ecfe071cdf4e22ebdd9ad86a12c79 | fa36955459af1fe1db712aeaf17e5cc0051886f0 | /Ceng483 - Introduction to Computer Vision/THE3/the3.py | 81f1ad179ddb0aa6e5eea25206d0fa3311ce18fd | [] | no_license | https://github.com/misrayazgan/METU-CENG-Coursework | e97ab42f48f517bbc190736c3d100601a2d2e592 | bf7e429b620db2e71b6c127a26eb7a01a52bb251 | refs/heads/master | 2022-11-24T21:55:37.334017 | 2020-07-19T16:48:00 | 2020-07-19T16:48:00 | 180,148,418 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Feel free to change / extend / adapt this source code as needed to complete the homework, based on its requirements.
# This code is given as a starting point.
#
# REFEFERENCES
# The code is partly adapted from pytorch tutorials, including https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html
# ---- hype... | UTF-8 | Python | false | false | 9,878 | py | 46 | the3.py | 24 | 0.603563 | 0.578761 | 0 | 228 | 42.324561 | 129 |
cohesity/management-sdk-python | 5,342,939,352,212 | c0ddf5ca0ef1bc8e4b2a8c34e87b8fa2fba8a98b | 09f8a3825c5109a6cec94ae34ea17d9ace66f381 | /cohesity_management_sdk/models/amqp_target_config.py | 1ff3075ffe529ed43c43a56b8b638aa82f875310 | [
"Apache-2.0"
] | permissive | https://github.com/cohesity/management-sdk-python | 103ee07b2f047da69d7b1edfae39d218295d1747 | e4973dfeb836266904d0369ea845513c7acf261e | refs/heads/master | 2023-08-04T06:30:37.551358 | 2023-07-19T12:02:12 | 2023-07-19T12:02:12 | 134,367,879 | 24 | 20 | Apache-2.0 | false | 2023-08-31T04:37:28 | 2018-05-22T06:04:19 | 2023-08-28T20:41:21 | 2023-08-31T04:37:26 | 55,712 | 20 | 18 | 5 | Python | false | false | # -*- coding: utf-8 -*-
# Copyright 2023 Cohesity Inc.
class AMQPTargetConfig(object):
"""Implementation of the 'AMQPTargetConfig' model.
TODO: type description here.
Attributes:
certificate (string): Specifies the certificate.
exchange (string): Specifies the exchange.
filer_i... | UTF-8 | Python | false | false | 2,660 | py | 1,430 | amqp_target_config.py | 1,405 | 0.577068 | 0.575188 | 0 | 89 | 28.898876 | 81 |
pcuzner/gluster-deploy | 11,897,059,433,362 | 80e181cb2efe3aeff387bf9d4af382f3e3301b18 | 4c36e33ee5577416146622eb436d9a0938011d53 | /functions/config.py | e93be51f8e0f64753b99cfb6c8c17c43277b8087 | [] | no_license | https://github.com/pcuzner/gluster-deploy | 1167ed26d838ef559d26ee5ac64867d1a35a6134 | 151a8b62c742a23f952b792561616f00f007dc43 | refs/heads/master | 2021-01-21T21:55:04.201990 | 2016-03-30T23:12:11 | 2016-03-30T23:12:11 | 35,012,116 | 5 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# config.py
#
# Copyright 2013 Paul Cuzner <paul.cuzner@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of... | UTF-8 | Python | false | false | 2,545 | py | 43 | config.py | 23 | 0.72888 | 0.715521 | 0 | 97 | 25.226804 | 78 |
YY87927/2021_IoTProject | 7,009,386,666,413 | 3dcc6bdd9a2eeea1ced801524f18ccfba8688c1a | 4ffb4ebaaa484ccc27572434c0d673e35254f630 | /final/first_rpi/cloud_autopilot_rpi.py | da6a99a23b5fc6dd474adfa3c8ab08552d8f3921 | [] | no_license | https://github.com/YY87927/2021_IoTProject | e0c577f28a1708d727694777d0ff3bc1a24b23ab | c172f2c27dae030f8e3c50a249feae51bdb479d2 | refs/heads/master | 2023-02-15T23:20:05.130251 | 2021-01-11T01:17:18 | 2021-01-11T01:17:18 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import time
import http.client, urllib
import json
import sys
import RPi.GPIO as GPIO
from directions import *
from mcs_functions import *
import threading
v=343
TRIGGER_PINL = 31
ECHO_PINL = 29
TRIGGER_PINR = 11
ECHO_PINR = 13
LIGHT_SENSE = 36
LED_PIN = 40
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
GPIO.se... | UTF-8 | Python | false | false | 2,643 | py | 11 | cloud_autopilot_rpi.py | 10 | 0.620885 | 0.599319 | 0 | 101 | 25.178218 | 112 |
hwiyoung/OpenCV_with_Python | 4,028,679,344,373 | 43442c0043f671bbfcfdee6d929391d086075fea | f8a3bf08fe0400bac87bb9c6e34b80e3f63fb58d | /Chapter02/blurring.py | 4ab81eebf734a4373104c024149342518d5880c7 | [] | no_license | https://github.com/hwiyoung/OpenCV_with_Python | f0bf706317fe93e1dea10a65ab09f2cc48297fe0 | 4564cf723e79546bf9a3a7de32c2866e6c53937e | refs/heads/master | 2021-09-19T17:09:29.454548 | 2018-07-30T04:38:45 | 2018-07-30T04:38:45 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import cv2
import numpy as np
img = cv2.imread('./images/IMG.jpg')
rows, cols = img.shape[:2] # row, column, channel
kernel_identity = np.array([ [0, 0, 0], [0, 1, 0], [0, 0, 0] ])
kernel_3x3 = np.ones((3, 3), np.float32) / 9.0 # normalization
kernel_5x5 = np.ones((5, 5), np.float32) / 25.0 # normalization
cv2.imsho... | UTF-8 | Python | false | false | 659 | py | 24 | blurring.py | 24 | 0.655539 | 0.569044 | 0 | 24 | 26.458333 | 63 |
M9Bnhf57/recognition | 14,388,140,482,316 | fa9adde3d1d75d726134ec6a84660c467cf1ee33 | 46461628949c24e48cbe117d91d4e9be6faeeb77 | /Untitled-1.py | dd402f6e4a50dc225e87024e09e7eba8802fd88f | [] | no_license | https://github.com/M9Bnhf57/recognition | 4f00b97d72aa4e996b54bfb7c14ec0834babcfb5 | cf33682557ac4cb6b9e9aae84d986f6488d8f31d | refs/heads/master | 2020-09-13T03:42:14.980740 | 2019-11-19T08:35:15 | 2019-11-19T08:35:15 | 222,646,695 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import cv2
import numpy
import matplotlib.pyplot as plt
import skimage.data
from skimage import io
k=1
while k < 76:
path = "C:/dataset_segmentation/"+ str(k) +".jpg" #str(k)
img = cv2.imread(path,cv2.IMREAD_GRAYSCALE)
imgarray = numpy.array(img)
imgarray[imgarray<200] = 1.0
imgarray[imgarray>=... | UTF-8 | Python | false | false | 730 | py | 5 | Untitled-1.py | 5 | 0.620548 | 0.575342 | 0 | 29 | 24.206897 | 69 |
samyakbvs/Internship_backend | 19,095,424,634,679 | e29f134dc39002b3d9a811d34455bad5d128919a | 7817e3acb344d760873b26d0d64f9c6d81e04b42 | /lms/migrations/0001_initial.py | b8a26ad4c322e20c1113b73fa0ce974ca46c400f | [] | no_license | https://github.com/samyakbvs/Internship_backend | 3d07aeb1d64e5be0e1b62b5df026639e71bd23f6 | 718864f41b269be2a217fb6cc7959bdf8127db63 | refs/heads/master | 2021-01-04T13:18:47.016927 | 2020-04-30T11:12:01 | 2020-04-30T11:12:01 | 240,568,333 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.1 on 2020-01-26 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(auto_... | UTF-8 | Python | false | false | 712 | py | 12 | 0001_initial.py | 12 | 0.543539 | 0.515449 | 0 | 25 | 27.48 | 114 |
kongyanye/cgnattest | 18,468,359,385,102 | 0667d1887f86876a7ba8604072504c17a4e29f5e | e86a26c6cf60699200c955b6ec12ea4269b95db3 | /clearsession.py | c00412456ed7a010aa4640e840d011770ff7b59e | [] | no_license | https://github.com/kongyanye/cgnattest | d69438e0344423236050bd3801c542f2652eb179 | 2139b5f48f269f65df63a28d99c59c6fe515d22b | refs/heads/master | 2023-01-12T00:41:16.485607 | 2020-11-22T14:45:23 | 2020-11-22T14:45:23 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from scapy.all import *
from paramiko import SSHClient, AutoAddPolicy
import pdb
import random
import string
import ipaddress
import time
def ssh_fgt(ipadd,user,pwd,command):
client = SSHClient()
client.set_missing_host_key_policy(AutoAddPolicy())
client.connect(ipadd,username=user,password=pwd)
stdi... | UTF-8 | Python | false | false | 529 | py | 14 | clearsession.py | 14 | 0.73913 | 0.727788 | 0 | 25 | 20.16 | 58 |
theredferny/CodeCademy_Learn_Python_3 | 14,937,896,293,334 | a63cec6dc72ce3fb63c17512b583ce2daf48399a | 0ad2a8e86c69d6d95d042ddfe6ee6449b25d84c9 | /Unit_09-Files/09_01_11-Reading_a_JSON_File.py | d7792f4497d39cd67cecaf94676de6432874a660 | [] | no_license | https://github.com/theredferny/CodeCademy_Learn_Python_3 | 31747cc8a640039012af34fc78e9113932ce6909 | d0f34dedf041d1c70f4fb5df1b2baf681c97739e | refs/heads/master | 2023-03-24T10:00:48.755045 | 2021-03-16T15:18:19 | 2021-03-16T15:18:19 | 342,673,969 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
with open('message.json') as message_json:
message = json.load(message_json)
print(message['text'])
"""
message.json
{
"text": "Now that's JSON!",
"secret text": "Now that's some _serious_ JSON!"
}
"""
"""
CSV isn’t the only file format that Python has a built-in library for. We can also use... | UTF-8 | Python | false | false | 1,774 | py | 113 | 09_01_11-Reading_a_JSON_File.py | 111 | 0.747732 | 0.734127 | 0 | 48 | 35.770833 | 373 |
kevin-bigler/pytris | 17,128,329,607,748 | 632296f308036f19d8d108c0c69160e75bbeb3d7 | be2955418744c1d530e229dd316e40987c4e9428 | /grid.py | 95b9ceedd3ac3ab3fca94440ca3f20cea682b830 | [] | no_license | https://github.com/kevin-bigler/pytris | 113f33ed9cdc8b479fff2a6d97204f5a94dd242a | 0fa65422127e61dc2567551bdd15b36aa21de2c3 | refs/heads/master | 2023-04-05T19:13:23.874664 | 2021-05-08T17:59:19 | 2021-05-08T17:59:19 | 338,723,791 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Grid data structure, for convenience"""
class Grid:
def __init__(self, width, height, initFn=lambda x, y: {}):
"""
Args:
width
height
initFn - invoked to initialize each grid item's value, ie initFn(x, y). default is empty map
"""
self.width = ... | UTF-8 | Python | false | false | 1,141 | py | 16 | grid.py | 15 | 0.521472 | 0.520596 | 0 | 38 | 29.026316 | 104 |
oliviamikola/choosemybook | 4,148,938,454,912 | acbd3668dd2140acbf9249660451cc0cc82cc518 | a2231de311cfe71884940243e411f6e6e1e11254 | /receiver.py | 48b503fc5976b8934ceed03a343fd1e84daed858 | [] | no_license | https://github.com/oliviamikola/choosemybook | 2f81c7ed8fcd2ef591a820cbcdbb54107db2b726 | 3e3969921228238775c7eb88e0854a527a2fd426 | refs/heads/master | 2021-05-18T07:39:07.006190 | 2020-07-07T03:41:07 | 2020-07-07T03:41:07 | 251,183,262 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import time
import xmltodict
from typing import Dict
from Objects.book import Book
from Objects.user import User
from Exceptions.apiConnectionError import ApiConnectionError
from Exceptions.authorizationError import AuthorizationError
class Receiver:
def __init__(self, user: User):
"""
... | UTF-8 | Python | false | false | 3,534 | py | 8 | receiver.py | 6 | 0.591398 | 0.586022 | 0 | 103 | 33.31068 | 107 |
jayasindhura/OMK | 10,307,921,521,417 | 7fbfb33ed2e709532fe1849a5308abee27a50a26 | 09082a4e2ee10340d8a1581d377d9dd064cf8169 | /sma/admin.py | 5a83bbae3406904620f834efc40b0f711aa9493b | [] | no_license | https://github.com/jayasindhura/OMK | 819d42d57ec330e7b1036eb1707d12ff82c1a67c | 90cc6e20f94af18561bbe29cb42c2d2c61893e16 | refs/heads/master | 2021-01-09T17:42:07.964008 | 2020-02-22T18:46:13 | 2020-02-22T18:46:13 | 242,393,531 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from .models import School,Grade,Student,Mentor,Student_Group_Mentor_Assignment,Session_Schedule
# Register your models here.
class SchoolList(admin.ModelAdmin):
list_display = ('school_name', 'school_email', 'school_phone')
list_filter = ('school_name', 'school_email')
sea... | UTF-8 | Python | false | false | 2,275 | py | 17 | admin.py | 17 | 0.712967 | 0.712967 | 0 | 46 | 48.391304 | 112 |
tikiet/sbuild | 1,228,360,671,471 | ef9ef4bb8b9f941d1325f4caab5a040d1c8ba577 | 25d845f4cc6eaed16cee8cf34942f13fddeefbd3 | /tools/get_keys.py | 94e14cc6a187ec42758eda0545fd59ce62ad33ee | [] | no_license | https://github.com/tikiet/sbuild | 8b50fcd3e4151c191de276a38f96095696175916 | 3f9e88af33073f8f3b47697dd930820538dde322 | refs/heads/master | 2021-01-18T05:29:05.060028 | 2015-03-26T14:07:56 | 2015-03-26T14:09:55 | 32,930,394 | 0 | 0 | null | true | 2015-03-26T13:56:30 | 2015-03-26T13:56:30 | 2015-03-26T13:55:07 | 2015-03-26T13:46:02 | 165 | 0 | 0 | 0 | null | null | null | import os, shutil
from sys import argv
import xml.etree.ElementTree as ET
import itertools
string_names = open('string_names.txt', 'w')
def parse(_file):
l = []
tree = ET.parse(_file)
root = tree.getroot()
for string in root:
l.append(string.get('name'))
return l
def get_keys(path_to_res)... | UTF-8 | Python | false | false | 797 | py | 5 | get_keys.py | 3 | 0.593476 | 0.592221 | 0 | 33 | 23.151515 | 57 |
clhiker/WPython | 18,554,258,734,869 | b23089d09cd4d6ca097a4e97967aa172f58dc5db | c1edf63a93d0a6d914256e848904c374db050ae0 | /Python/Python基础知识/面对对象编程/test.py | 2f0cde920f3a2e41e1d0579c490590551fbc8a3d | [] | no_license | https://github.com/clhiker/WPython | 97b53dff7e5a2b480e1bf98d1b2bf2a1742cb1cd | b21cbfe9aa4356d0fe70d5a56c8b91d41f5588a1 | refs/heads/master | 2020-03-30T03:41:50.459769 | 2018-09-28T07:36:21 | 2018-09-28T07:36:21 | 150,703,520 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def main():
test = "p|q&f|~d"
pos = test.find("m")
print(pos)
pro_var = {""}
standard_oper = "|&~"
for i in range(0, len(test)):
if (standard_oper.find(test[i]) == -1):
pro_var.add(test[i])
l = list(pro_var)
for i in range(len(l)):
print(l[i])
pattern = te... | UTF-8 | Python | false | false | 529 | py | 171 | test.py | 165 | 0.470699 | 0.466919 | 0 | 23 | 22.043478 | 47 |
LiveTowardTheSea/bert_model | 17,549,236,384,239 | fc2483cb39999adda038e59e93f8b5d98285b6bf | 80b6c944728ca61ddc477fa2bb9fa312e1c4c81d | /model/bert_model.py | 69d77c305e6447c6c44e1ff54c58175468f93f2e | [] | no_license | https://github.com/LiveTowardTheSea/bert_model | c2f480cf4bdbec10ad7830584ca2d84f90345082 | 8ce207a8319bf53e064dacb7d574ff8f912e863a | refs/heads/master | 2023-04-28T06:15:13.337520 | 2021-05-20T13:44:26 | 2021-05-20T13:44:26 | 369,202,848 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from model.Linear_Decoder import Softmax_decoder
import torch.nn as nn
from Encoder import *
from CRF_Decoder import *
from Linear_Decoder import *
class bert_model(nn.Module):
def __init__(self,config,tag_num):
super(bert_model, self).__init__()
self.config = config
self.encoder = Encoder()... | UTF-8 | Python | false | false | 1,033 | py | 5 | bert_model.py | 4 | 0.632694 | 0.630676 | 0 | 24 | 40.333333 | 78 |
2Ler/python | 7,765,300,884,076 | 97728613c8cf5ee0a0731260609304e53c373851 | ba59ad9dfd9d63892d1ed4c02cdc154a9af884a5 | /reverse_string.py | d41d3a6a9014d4d81433ed07ed2186bdbf4b5a4e | [] | no_license | https://github.com/2Ler/python | e1fb21785f14d73c12a6a4b3e19f0b58fdabe906 | 9aaf4d5a23d004618a71bc4adc738138e5abf9a9 | refs/heads/master | 2020-03-19T05:07:29.922983 | 2018-06-04T10:01:14 | 2018-06-04T10:01:14 | 135,902,764 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | s=raw_input()
reverse=""
for i in xrange(len(s)-1,-1,-1):
reverse+=s[i]
print reverse
| UTF-8 | Python | false | false | 88 | py | 24 | reverse_string.py | 23 | 0.636364 | 0.602273 | 0 | 5 | 16.6 | 32 |
KevSed/ML_Seminar | 17,987,323,044,174 | 764621fd285a1972c6a4fac5407831179222086b | c99a1f59c7219ea34a931f03a4764519ce8b58be | /Alternative/runAnalysis.py | c9ad9bb344d537ade283604758cdb11bf683897a | [
"MIT"
] | permissive | https://github.com/KevSed/ML_Seminar | 8fc5ae601745e1c0c71017fc857518db43fb2d1a | 3360d56e5808e041627f82d8309d70aa86563058 | refs/heads/master | 2020-03-20T06:00:51.634676 | 2018-07-31T16:56:12 | 2018-07-31T16:56:12 | 137,234,962 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from dataprep import *
import numpy as np
import matplotlib.pyplot as plt
import multiprocessing
from keras import backend as K
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.models import model_from_json
import h5py
from keras import optimizers
from sklearn.metrics import confus... | UTF-8 | Python | false | false | 6,495 | py | 35 | runAnalysis.py | 16 | 0.730408 | 0.698075 | 0 | 132 | 48.204545 | 187 |
jonatasoli/djangorestframework_example | 10,849,087,394,013 | c5b4eca79bc54b8df26f543ba310a534f07e001d | 01e997012763f746242ed79096cafb50e1d5022a | /todo/tests/test_todo_api.py | 0202beee6c5f14d61c1a4d048139397916b62cc0 | [] | no_license | https://github.com/jonatasoli/djangorestframework_example | 824210b5cd891beeb2562bb722b991113f814069 | 7d8e2d26164eb1453df4e39021c1c1d502ce12bd | refs/heads/master | 2020-04-29T20:34:57.984079 | 2019-03-25T22:17:08 | 2019-03-25T22:17:08 | 176,387,834 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Todo
from todo.serializers import TodoSerializer
TODO_URL = reverse('todo:todo-list')
class PublicTod... | UTF-8 | Python | false | false | 3,000 | py | 8 | test_todo_api.py | 4 | 0.597333 | 0.591333 | 0 | 92 | 31.608696 | 86 |
netiapaul/python-prac | 8,074,538,542,699 | 0a69c51b65c7cf9e37e13c451cde5de9a0e115a5 | 68f1a9282ae9e6b6be3d9709b70bc6b534e24235 | /prac.py | 38d7bd11075c2570740f618e77d27b5a7f20967a | [] | no_license | https://github.com/netiapaul/python-prac | c24e74db78d22f58a9ac05d4587fd3a828dccf45 | 148a3f3d786bcbf26da2ad37d160395e079ec4f2 | refs/heads/master | 2020-05-17T14:19:11.363943 | 2019-04-27T11:06:10 | 2019-04-27T11:06:10 | 183,761,868 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Question 1: Accept two int values from user and return their product. If the product is greater than 1000, then return their sum
a=int(input('Enter a number: '))
b=int(input('Enter a second number: '))
c=a*b
print(c)
if c > 1000:
d=a+b
print(d)
# Question 2: Given a two list of ints create a third list s... | UTF-8 | Python | false | false | 1,755 | py | 2 | prac.py | 1 | 0.691738 | 0.65755 | 0 | 66 | 25.606061 | 159 |
bomb1e/gotgit | 14,482,629,764,979 | 38dcf2a0f86f865f4186f8a22ed61546cae2f3f0 | 7192da38b6afd3c60f80ccbecb3040cf34369ce3 | /5bf281fb-178c-493c-8c7a-422ac4bf1fe0.py | 17b5e2676c69807688a7079e0ac67acd2c1895ef | [] | no_license | https://github.com/bomb1e/gotgit | 6699fa9e6adb0a79f22441df41a102b09b78c2ce | 3c14cb6d1d0c4cba6a1e24a9899462d2e4bee2ce | refs/heads/master | 2020-06-12T06:00:34.695425 | 2018-08-01T02:00:02 | 2018-08-01T02:00:02 | 75,600,461 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import print_function
def func38(arg218, arg219):
var223 = func39(arg218, arg219)
var268 = var226(var223, arg219)
def func47(arg269, arg270):
var271 = 1861037871 | (arg218 + var223) ^ 775
var272 = arg219 ^ arg270
var273 = arg219 | arg270
var274 = arg269 | -460... | UTF-8 | Python | false | false | 18,305 | py | 25,849 | 5bf281fb-178c-493c-8c7a-422ac4bf1fe0.py | 25,848 | 0.568479 | 0.316963 | 0 | 497 | 35.832998 | 233 |
shabana-123/github | 833,223,668,007 | 721aa46d08d29f3951622d8b166416d63afc254e | 9c5a7f1c65fafc89d59ceff76c400cf424bb17e0 | /example2.py | 1f671a8862a045f353928eeb285299888fdfd9d0 | [] | no_license | https://github.com/shabana-123/github | 989819eeeb7c36aeca23c6c41555fb75e5decf8f | c51c8dd0021f050ccc61e92b322a9e2a5606eeb2 | refs/heads/master | 2023-02-26T07:25:49.461072 | 2021-02-01T10:16:18 | 2021-02-01T10:16:18 | 334,840,090 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | x=input("enter input")
if x=="yes":
print("eat pizza")
else:
print("drink")
| UTF-8 | Python | false | false | 78 | py | 3 | example2.py | 1 | 0.628205 | 0.628205 | 0 | 5 | 14.6 | 22 |
wilsonhuangnice/AE401wilson | 627,065,256,244 | 77ab4e185b2640716efebb66ed70f9fd547a8337 | bb8a50d51cfb1817777f717c46d28ff902a619f3 | /1017.py | 06d916f2b94ce5e6b3fbf28f5177e4b3f896ad3c | [] | no_license | https://github.com/wilsonhuangnice/AE401wilson | 75708fbee65b7981429fdf555a195750fdb9455b | f0eb82ecd485111174ea713a63a74504f39ecbb2 | refs/heads/master | 2023-02-03T16:13:28.655717 | 2020-12-26T03:54:46 | 2020-12-26T03:54:46 | 296,778,906 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 17 10:20:15 2020
@author: michael
"""
from mcpi.minecraft import Minecraft
mc = Minecraft.create()
x,y,z = mc.player.getTilePos()
from mcpi.minecraft import Minecraft
mc = Minecraft.create()
x,y,z = mc.player.getTilePos()
... | UTF-8 | Python | false | false | 874 | py | 12 | 1017.py | 12 | 0.653318 | 0.556064 | 0 | 66 | 12.19697 | 36 |
emilykjensen/CSCI5352_Project | 10,110,353,048,909 | 725a483524e73745ab54c34568d7e4ae840c8b60 | c698a4452e4ced2daa51854c2a8b678eb5570bfd | /Code/video-processing.py | 55d9445252d161c9057d45a47e654ea28e10a679 | [] | no_license | https://github.com/emilykjensen/CSCI5352_Project | ab97bfce3e76e87e1152d52500517fe9c5ffa13a | 21d9ca6e54b097967ce1b8f338d5d07f99007c91 | refs/heads/master | 2020-11-24T10:26:21.431767 | 2019-12-16T19:43:12 | 2019-12-16T19:43:12 | 228,106,994 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
import numpy as np
import networkx as nx
import matplotlib.pyplot as plt
import random
from os import listdir
from networkx.algorithms import bipartite
##############################
### Combine 2-week files ###
##############################
data_dir = "/your/directory/here/"
files... | UTF-8 | Python | false | false | 5,861 | py | 4 | video-processing.py | 2 | 0.690667 | 0.687937 | 0 | 186 | 29.510753 | 113 |
yesito/Valuation | 16,922,171,152,137 | 660bf99051b4fa0eaae2672448a991f8d958c0d9 | 456cbffd38c331da14df0555a6ab0a0e990e2e08 | /conversor_pdf_df.py | 4ec36f3bd9b8ba5d4c34bbbd50258a9cbc2090e6 | [] | no_license | https://github.com/yesito/Valuation | ebb9048b2449b4bd0048c820179ee804d8f47583 | 5f289bad96b2f57dbc9ac15c852b32b03110c7bd | refs/heads/main | 2023-05-31T23:30:36.302775 | 2021-06-14T18:17:00 | 2021-06-14T18:17:00 | 376,911,680 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 20 13:20:54 2020
@author: lucab
"""
import pdftotext
from datetime import datetime
import pandas as pd
import sys
pd.set_option('display.max_columns', None) # or 1000
pd.set_option('display.max_rows', None) # or 1000
#print("Welcome! This app is intend... | UTF-8 | Python | false | false | 9,275 | py | 5 | conversor_pdf_df.py | 4 | 0.466415 | 0.451968 | 0 | 317 | 27.246057 | 133 |
ertyseidohl/python-quiz | 8,890,582,318,232 | 285ed12566a3b269e26036ab488e3397d1bafa57 | 8e7a67f947c3b3c538e94f4159082d7c53856de9 | /examples/1.1.3.py | 0abf771dcc659093e50cecd764ef04e355b7880e | [] | no_license | https://github.com/ertyseidohl/python-quiz | cac5d485c082dae5af668cca4324b27381d491be | 8b9a7dfce077350402ea510869b7fda444f2970c | refs/heads/master | 2021-01-10T11:50:10.277444 | 2016-03-01T07:05:13 | 2016-03-01T07:05:13 | 52,807,932 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | a = 0
while (a < 10):
a = a + 1
print(a) | UTF-8 | Python | false | false | 41 | py | 40 | 1.1.3.py | 40 | 0.463415 | 0.365854 | 0 | 4 | 9.5 | 15 |
Rossbin/justapi | 17,179,869,219,505 | d76ef1f8f11bb25982d64f9cf7534eea21e8d179 | a47215cb2cadf3e2bb97ff0ff4b737490538f3ea | /scripts/celery_task/task1.py | a954b6f1cb4d11a9f0d6110387e355d8e3518719 | [] | no_license | https://github.com/Rossbin/justapi | a910f5e1f6995893e53e8eac686632a27620a64b | 809c8793406245cf13298a7b2f52593590c37c70 | refs/heads/master | 2023-04-18T11:50:17.642279 | 2021-05-04T08:44:28 | 2021-05-04T08:44:28 | 350,808,584 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
from .celery import app
@app.task
def add(x,y):
print(x,y)
return x+y
# @app.task
# def updata_banner():
#
# # 在脚本中调用django项目
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "untitled15.settings")
# import django
# django.setup()
#
# from app01 import models
# from django.core.cac... | UTF-8 | Python | false | false | 411 | py | 64 | task1.py | 63 | 0.635443 | 0.625316 | 0 | 20 | 18.65 | 76 |
punish4424/django-rest-framework-boilerplate | 4,587,025,095,658 | fc1786083c47b3b4e966ea203e6454b7d96c5c03 | 3ebbdacadaf648255e1d8c6a32728f063da605ab | /{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/apps/utils/serializers.py | a8ae73bd57131d3812847df9ab1a433d9fed1ccf | [
"BSD-2-Clause-Views",
"BSD-3-Clause"
] | permissive | https://github.com/punish4424/django-rest-framework-boilerplate | 223daa483759d0a7edda95426cfc90312c1ed1cd | 618c6f66d1c4c4deaf50e4e996107fb65c836589 | refs/heads/main | 2023-05-09T00:34:23.994184 | 2021-06-05T22:04:23 | 2021-06-05T22:04:23 | 374,174,241 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib.auth import get_user_model
from rest_framework import serializers
User = get_user_model()
class CustomUserSerializer(serializers.ModelSerializer):
def __init__(self, *args, **kwargs):
super(CustomUserSerializer, self).__init__(*args, **kwargs)
if self.context and self.context[... | UTF-8 | Python | false | false | 816 | py | 14 | serializers.py | 8 | 0.664216 | 0.664216 | 0 | 23 | 34.478261 | 110 |
ausaki/data_structures_and_algorithms | 10,110,353,048,340 | 1d34044209e34f29e7c9f67fca9b32070d7fd4d7 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/unique-binary-search-trees-ii/147199063.py | dd1e188a3b2577f34995a65b4425d3fbb4f6bafb | [] | no_license | https://github.com/ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # title: unique-binary-search-trees-ii
# detail: https://leetcode.com/submissions/detail/147199063/
# datetime: Tue Mar 27 16:59:18 2018
# runtime: 104 ms
# memory: N/A
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# ... | UTF-8 | Python | false | false | 1,752 | py | 2,030 | 147199063.py | 1,912 | 0.480023 | 0.46347 | 0 | 61 | 27.442623 | 60 |
ashleyconnor/leetcode | 13,589,276,531,731 | 6f2e105b2e5e01cdc82d3fc4c6ff20e9ce4576cf | 8945f7e126b88b036a375985365979c3ba611973 | /src/two_sum/test_solution.py | d0da5b55ec6f35483911d24dd8b9c5bc4e9d1162 | [] | no_license | https://github.com/ashleyconnor/leetcode | 11a9fb7ccaa45f7f69daef0692c30f55ff04102d | 1f2a9ce6c2eff85536537207db9cb322868ef1fd | refs/heads/master | 2021-06-26T11:43:39.477836 | 2021-01-09T18:39:06 | 2021-01-09T18:39:06 | 201,158,333 | 0 | 0 | null | false | 2021-01-09T18:39:07 | 2019-08-08T01:58:32 | 2021-01-09T18:26:09 | 2021-01-09T18:39:07 | 28 | 0 | 0 | 0 | Python | false | false | import pytest
from .solution import Solution
class TestSolution:
@pytest.mark.parametrize(
"numbers,target,expected",
[([2, 7, 11, 15], 9, (0, 1)), ([5, 4, 3, 10, 7], 12, (0, 4))],
)
def test_two_sum(self, numbers, target, expected):
assert Solution().two_sum(numbers, target) == e... | UTF-8 | Python | false | false | 328 | py | 23 | test_solution.py | 15 | 0.594512 | 0.536585 | 0 | 12 | 26.333333 | 70 |
sankalp30/shuford_costing | 7,327,214,209,403 | 6c163d40d2eb9276a2ffe2ebed842e5c36b91ee4 | 49a458025f3c3afd7d75448f72ebaf97782a3496 | /hs_allstds.py | df2a257d1871e3636d254798c3854bc561c4d29f | [] | no_license | https://github.com/sankalp30/shuford_costing | 3986fae1ff2ce94e494919db0c1aaa4e8ad86003 | 707968d38b30c1ce19460b55ab3cbafd3522f4d4 | refs/heads/master | 2022-12-22T13:17:56.747613 | 2020-09-29T13:01:45 | 2020-09-29T13:01:45 | 299,617,881 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 21 13:19:42 2020
@author: SankalpMishra
"""
import numpy as np
import pandas as pd
import xlwings as xw
import time
#%%
start_time = time.time()
path = r'\\shufordyarnsllc.local\SYDFS\UserFiles$\SankalpMishra\Desktop\Sankalp_all\cost_assistanceproject_8_... | UTF-8 | Python | false | false | 9,783 | py | 8 | hs_allstds.py | 7 | 0.507411 | 0.481958 | 0 | 299 | 30.665552 | 146 |
LennartKeller/exmlc | 7,971,459,302,881 | e7ee6dd6e12d22a76332126b48719aa4cc2001bc | 949c48edba7a2fd114a5565ec5021901c6ba8811 | /exmlc/tag_embeddings/word_embeddings.py | 924c78613311ea2af4a0e93da8893e4f46f388bd | [
"Apache-2.0"
] | permissive | https://github.com/LennartKeller/exmlc | 0b5882bae339351d15739c09c7023b15dde3872b | 912d51451a448b5d56bfe921bfdaaea82c7b7084 | refs/heads/master | 2022-04-01T08:22:45.995417 | 2020-02-18T14:13:00 | 2020-02-18T14:13:00 | 213,160,571 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import annotations
import numpy as np
from sklearn.base import BaseEstimator
from gensim.models import Word2Vec
from scipy.sparse import csr_matrix, lil_matrix
from typing import *
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.neighbors import NearestNeighbors
from gensim.mo... | UTF-8 | Python | false | false | 12,808 | py | 24 | word_embeddings.py | 23 | 0.575109 | 0.567458 | 0 | 324 | 38.530864 | 114 |
microsoft/Recognizers-Text | 16,664,473,131,387 | cb6fda1d47d8a8f6527da99ee15f62c227b6d93a | af02c1c94e1447adb32b35a9733a609294b286b8 | /Python/libraries/recognizers-date-time/recognizers_date_time/date_time/german/time_extractor_config.py | 8f16dbb335988d8dcb41a3de22498342862dcf63 | [
"MIT"
] | permissive | https://github.com/microsoft/Recognizers-Text | 1bb885d05ac5ea14abc6e07656220e03de9de8e5 | 8d2eeda04e4eeef00bb00b1ae886289c84a6b67f | refs/heads/master | 2023-09-01T15:09:42.815524 | 2023-07-31T20:42:44 | 2023-07-31T20:42:44 | 88,544,417 | 1,188 | 324 | MIT | false | 2023-09-14T14:27:21 | 2017-04-17T19:45:47 | 2023-09-14T02:59:02 | 2023-09-14T14:26:25 | 50,939 | 1,593 | 426 | 190 | C# | false | false | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import List, Pattern
from recognizers_text.utilities import RegExpUtility
from ...resources.german_date_time import GermanDateTime
from ..base_time import TimeExtractorConfiguration
from ..utilities import Date... | UTF-8 | Python | false | false | 2,525 | py | 1,927 | time_extractor_config.py | 1,013 | 0.69901 | 0.694653 | 0 | 63 | 39.079365 | 100 |
kannan2796/Academic-Projects | 17,910,013,636,390 | c805ff1a6b37a2fc19fbae81fc41f14d37f3de2b | b7ea3e54b911be16766eb1cd00c7af06b8d0f093 | /Credit card Defaulter/SVM - Final2.py | cd24cabbd6867da083a1a893aa6b71af28ec9cd0 | [] | no_license | https://github.com/kannan2796/Academic-Projects | 8ba72819ffb5b40af8014457732a8f5f3e5117ef | 6af3e7692152d30f96d9e569b67f8ffbd88e091d | refs/heads/master | 2021-05-15T20:54:56.626678 | 2018-02-02T04:30:29 | 2018-02-02T04:30:29 | 107,909,916 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # changing the directory
import os
print (os.getcwd()) # see where you are
os.chdir(r'C:\Users\iamka\Desktop\Quarter 5\Python\Final project')
# KANNAN
# CREDIT CARD DEFAULT PREDICTION
# MODEL : LOGISTIC REGRESSION
# DATA : 12/04/2017 - PYTHON FINAL PRESENTAT... | UTF-8 | Python | false | false | 4,153 | py | 16 | SVM - Final2.py | 14 | 0.607513 | 0.579099 | 0 | 122 | 32.057377 | 116 |
adamlehenbauer/cliptwit | 14,714,557,984,293 | 72c278f8cc33869a6b4203083c8ad4c673683ed8 | d89403011736904818e7f1826a3626b0465b7cee | /clip.py | 70fdefa8b5c63b3484078c51e58e47c740321616 | [] | no_license | https://github.com/adamlehenbauer/cliptwit | 2c64779d387ee830648f5e1c4a717d3484136d65 | 6e5e1ca43be81a23064f623077cabf9b9a356921 | refs/heads/master | 2018-12-29T08:23:32.673470 | 2011-03-03T20:05:38 | 2011-03-03T20:05:38 | 1,436,393 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
import sys
import tweepy
from local_keys import *
def tweet(message):
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
api = tweepy.API(auth)
result = api.update_status(message... | UTF-8 | Python | false | false | 688 | py | 3 | clip.py | 1 | 0.627907 | 0.614826 | 0 | 31 | 21.193548 | 61 |
BrunnerLivio/mk-deps | 18,159,121,741,909 | 50117994335d20e4aadfce73f9107e62150b8fef | 93edf7de74b31e64ac8b13ae463ccab406022e78 | /mkdeps/cli.py | f270046b05396fbef57c1d40e0cfd746567b557a | [
"Apache-2.0"
] | permissive | https://github.com/BrunnerLivio/mk-deps | faf9006ea9777959b1d4b1eaaaf625961deb9c29 | c5a0ea59ae77265a80cff4a85617f619c6c42828 | refs/heads/master | 2021-09-15T23:58:30.081482 | 2018-06-13T10:19:56 | 2018-06-13T10:19:56 | 84,289,493 | 4 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
`mk-deps` - Cli tool for installing runtime dependencies of a debian package
:copyright: (c) by Livio Brunner
:license: See LICENESE for details
"""
import sys
import logging
import click
from .core import install_dependencies, print_version
from .exit_status import ExitStatus
@click.group()
@click.o... | UTF-8 | Python | false | false | 1,240 | py | 14 | cli.py | 8 | 0.656452 | 0.641935 | 0 | 45 | 26.555556 | 81 |
0Azore/Coral-Screen-Lib | 7,842,610,332,090 | a3f81262c7a01fe4f5f3e220e8ba3c8f78215e00 | 75897dee7df71878e2b58ab7b4fc234d5fde2ea7 | /lib/python3.7/dist-packages/adafruit_blinka/board/coral_edge_tpu.py | 42e88962ccad9ed8140795db1eaabfedc5d2c705 | [] | no_license | https://github.com/0Azore/Coral-Screen-Lib | b7ed8612ab0d3ab4bfdda7548c9f266927699c30 | 667ded719b55d516b28b56cb839e098a5832147c | refs/heads/master | 2022-05-20T11:40:25.024807 | 2020-04-16T04:02:48 | 2020-04-16T04:02:48 | 256,094,894 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Pin definitions for the Coral Edge TPU Dev board."""
from adafruit_blinka.microcontroller.nxp_imx8m import pin
UART1_RXD = pin.UART1_RXD
UART1_TXD = pin.UART1_TXD
SDA = pin.I2C2_SDA
SCL = pin.I2C2_SCL
PWM1 = pin.PWM1
PWM2 = pin.PWM2
PWM3 = pin.PWM3
GPIO_P22 = pin.GPIO22
GPIO_P13 = pin.GPIO6
GPIO_P16 = pin.GPIO7... | UTF-8 | Python | false | false | 546 | py | 3 | coral_edge_tpu.py | 2 | 0.725275 | 0.628205 | 0 | 28 | 18.464286 | 57 |
DrFirestream/Tabaqui | 8,684,423,876,053 | 859de5526387de2b0eb00146d766243d45674b65 | 4ac11b3ac16e8ede6075b7da7008b6c63aab2788 | /script.py | 103b536a86570bdfa2139af92d74a32e9fbfda4c | [
"MIT"
] | permissive | https://github.com/DrFirestream/Tabaqui | 59faa185db7fc030dcb9e8278441e3a9bf9413af | dad4fe2b3dcf01195bac330de509663ea2bd6e54 | refs/heads/master | 2022-12-24T15:20:27.472475 | 2020-09-19T21:22:22 | 2020-09-19T21:22:22 | 296,133,707 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from collections import defaultdict, deque
import random
import boto3
import botocore
import os
import json
import requests
aws_key = os.environ['AWS_ACCESS_KEY_ID']
aws_secret_key = os.environ['AWS_SECRET_ACCESS_KEY']
telegram_toke... | UTF-8 | Python | false | false | 2,986 | py | 4 | script.py | 2 | 0.635135 | 0.628716 | 0 | 63 | 44.984127 | 156 |
Kamik423/advent-of-code-2020 | 6,133,213,332,761 | 142df6d51595bfb4d28a8eee6708390624d9cff0 | 5dd7af5235148ca22df8ace91a820cc5117671f5 | /07_alternate.py | 185c5de6556791c33c420f94514fb60b6717de45 | [] | no_license | https://github.com/Kamik423/advent-of-code-2020 | fc5a6745049ead3923428119eb3bec23dc259769 | dd9335bf961f28d9746a016f4766d90791b478c8 | refs/heads/main | 2023-02-14T16:05:27.514571 | 2020-12-27T11:52:53 | 2020-12-27T11:52:53 | 317,509,326 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
from __future__ import annotations
from typing import Dict, List, Tuple
import aoc
import regex
from cached_property import cached_property
class Graph:
rules: Dict[str, Rule] = {}
def __init__(self, description: str):
for line in description.split("\n"):
rule = R... | UTF-8 | Python | false | false | 1,734 | py | 26 | 07_alternate.py | 24 | 0.564591 | 0.559977 | 0 | 66 | 25.272727 | 83 |
elchuzade/racing-game-ai-dqn | 16,535,624,131,006 | d2ae2abbf763af1de9720c9f16d19ba403b1ed16 | cb6adaeee38183fc06c4eb89c235ef1647fabff3 | /helpers/utils.py | 990abda70424e0485ea8d56479873840b0602d68 | [] | no_license | https://github.com/elchuzade/racing-game-ai-dqn | d8ff905af6064e852d92508590ffc538d2873067 | c0fcb6c0cb355fadd870ac642dfff7efadb356d3 | refs/heads/master | 2020-12-06T17:01:51.002830 | 2020-01-09T11:54:25 | 2020-01-09T11:54:25 | 232,513,130 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from constants import Constants
from helpers.core import *
import random
import pygame
import numpy as np
def map_cars_to_state(cars, my_car):
my_position = find_my_position(my_car)
lines = map_cars_to_lines(cars, my_car)
all_distances = find_all_distances(lines)
state = [my_position, all_distances[0]... | UTF-8 | Python | false | false | 6,124 | py | 6 | utils.py | 4 | 0.644024 | 0.632103 | 0 | 185 | 32.102703 | 153 |
minghao2016/networksize | 13,486,197,333,027 | ec00469f1fa2380c9e1f26e8f3986e48bb843dca | 1d9723eb409dfaaec56d5dabcce35833142e08ef | /networksize/__init__.py | e668182846518894042074426718f5e389e09fd4 | [] | no_license | https://github.com/minghao2016/networksize | 67be4a60a55c5e0b4d57a5e60ff140b2bb44b2ba | 786dbee016e3c69ee5b977ac45467aff4221a2aa | refs/heads/master | 2021-04-30T18:05:40.477542 | 2015-08-27T19:59:29 | 2015-08-27T19:59:29 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from importer import *
from experiment import *
from crawler import *
from graphtools import *
from graphserver import *
| UTF-8 | Python | false | false | 121 | py | 23 | __init__.py | 19 | 0.793388 | 0.793388 | 0 | 5 | 23.2 | 25 |
igwangsung/nomadgram | 16,801,912,067,715 | 8a3b88840b2e60d0a1ab42ba64095c55e431f334 | ad4839bc68f3985f11296ed423cca6c319f6e02b | /nomad_coder/images/views.py | 5f13e1a4c6deff035303ca4271208785e1fdfb0b | [
"MIT"
] | permissive | https://github.com/igwangsung/nomadgram | 5872820a1e699a5680a047ac294397d2e31a580b | ec902cc3820f8b9ff082dd782a56ebef4de8c2e6 | refs/heads/master | 2023-02-05T09:06:21.736680 | 2019-03-19T17:58:19 | 2019-03-19T17:58:19 | 153,406,125 | 0 | 0 | MIT | false | 2023-01-26T05:38:21 | 2018-10-17T06:26:28 | 2022-12-03T01:41:03 | 2023-01-26T05:38:17 | 5,840 | 1 | 0 | 29 | JavaScript | false | false | #from django.shortcuts import render #For using Template Concept of Django
from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
from . import models, serializers
from nomad_coder.notifications import views as notification_views
from nomad_coder.users im... | UTF-8 | Python | false | false | 9,784 | py | 12 | views.py | 7 | 0.632066 | 0.623234 | 0 | 311 | 29.913183 | 159 |
Captricity/cappa | 3,994,319,601,085 | bfe9a55885c4bcd5962e6b006f83a951aa820ab6 | 94cd09a01b3f5ae57bc70802f3319b08fdf8a999 | /setup.py | 1d0f27d168011f317f2724bfc8442b0ece913da0 | [
"MIT"
] | permissive | https://github.com/Captricity/cappa | 922243179939e886efad58e05f42fb265e080c92 | 6fa541e145c7fac7c499a63f7625be0dc8d3ea5d | refs/heads/master | 2022-11-12T23:21:23.177751 | 2020-11-18T19:16:24 | 2020-11-18T19:16:24 | 28,253,428 | 3 | 1 | MIT | false | 2022-10-28T17:37:02 | 2014-12-20T01:51:48 | 2020-11-18T19:16:28 | 2022-10-28T17:36:48 | 95 | 2 | 1 | 8 | Python | false | false | from setuptools import setup, find_packages
setup(
name="cappa",
version="0.19.0",
description="Package installer for Captricity. Supports apt-get, pip, bower, npm, and yarn.",
author="Yoriyasu Yano",
author_email="yorinasub17@gmail.com",
packages=find_packages(),
scripts=["scripts/cappa"]... | UTF-8 | Python | false | false | 474 | py | 57 | setup.py | 35 | 0.681435 | 0.668776 | 0 | 15 | 30.6 | 97 |
diaojingwen/pytest1 | 16,716,012,758,875 | 4d03cf7940982c46c0703451671391d9fe1a650a | 7c3fd970bed4d234bf1b990b1e93296c9c321717 | /hello.py | 0c564def238e2b5f72a7830527df78c8f25894b3 | [] | no_license | https://github.com/diaojingwen/pytest1 | ac0b76f2ae11c37714457ed347416833d99efd66 | b2f478b3b1a1633d09137373885ebed32e78c84e | refs/heads/master | 2023-01-19T14:42:45.468574 | 2020-11-26T08:09:00 | 2020-11-26T08:09:00 | 316,162,567 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import allure
import pytest
def inc(x):
return x + 1
def test_answer():
assert inc(3) == 4
class Testa:
def test_demo_1(self):
assert inc(1) == 3
def test_demo_2(self):
assert not inc(2) != 4
@pytest.mark.parameterize("data,expect",[
(1,2),
(3,4),
... | UTF-8 | Python | false | false | 908 | py | 4 | hello.py | 1 | 0.614607 | 0.55618 | 0 | 33 | 26 | 253 |
eLOPy/Asteroids | 1,795,296,348,209 | 81a386485e1be3e99aabf733f999fdd2d59c38b7 | c19020cb7abac2ff32a07f2844bd9ec1061914b1 | /Game.py | 460e97e6dbfec0bd90ca4c6eefa428f17b31d2d3 | [] | no_license | https://github.com/eLOPy/Asteroids | 00b7fa9c367f0f37c6fa244e3373bc6cda56443e | 68f05e96d0a053ac9f6fd06e691a6512b79f44cf | refs/heads/master | 2018-01-07T11:44:36.180266 | 2015-08-14T01:24:54 | 2015-08-14T01:24:54 | 40,689,409 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = 'Muneer'
import Consts, pygame, random, GUI, Sound
from game_objects.Asteroid import Asteroid
from game_objects.Ship import Ship
from game_objects.Item import Item
from game_objects.Bullet import Bullet
from game_objects.GameObjectManager import GameObjectManager
class Game():
def __init__(self):
... | UTF-8 | Python | false | false | 6,315 | py | 14 | Game.py | 14 | 0.599367 | 0.591132 | 0 | 152 | 40.552632 | 134 |
jirikuncar/renku-gateway | 7,602,092,116,520 | 7ffae633cc521565fbafc9388b6fe0ac8c3d829c | 7d41460728007bc32bb7e33b35268ec18cd821d1 | /app/config.py | 7b2baea71a9f8d66def44f0c1eb6363b4d34d6e3 | [
"Apache-2.0"
] | permissive | https://github.com/jirikuncar/renku-gateway | 06f21c96638b08e9044c3889e7eec93896080be3 | 7e9882f48f7020d143d6ccdc8c7dfaa433fdebea | refs/heads/master | 2020-04-11T02:51:01.890298 | 2018-11-27T14:51:55 | 2018-11-28T22:11:16 | 161,458,507 | 0 | 0 | Apache-2.0 | true | 2018-12-12T08:45:04 | 2018-12-12T08:45:03 | 2018-11-28T22:11:19 | 2018-12-11T15:56:47 | 239 | 0 | 0 | 0 | null | false | null | # -*- coding: utf-8 -*-
#
# Copyright 2018 - Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
# Eidgenössische Technische Hochschule Zürich (ETHZ).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compli... | UTF-8 | Python | false | false | 4,953 | py | 24 | config.py | 16 | 0.70291 | 0.698464 | 0 | 120 | 40.233333 | 131 |
adfinis-sygroup/freewvs-wrapper | 9,337,258,923,283 | 793c1e5f8ca4165465f02b3f097953ec39cc7c64 | 44097dfffb147f89260f71630789ba2485e42ba2 | /processResults.py | 89109febcc95d308eacc7908d04b9dfb34efe5e5 | [
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0"
] | permissive | https://github.com/adfinis-sygroup/freewvs-wrapper | d19bc8b0a204cc02d42010da89d1651d6cb8a6fe | ef6f4a98a25923e1caf709886604d054d27908af | refs/heads/master | 2021-01-11T05:40:47.501350 | 2019-12-18T12:18:00 | 2019-12-18T12:18:00 | 71,562,253 | 2 | 2 | NOASSERTION | false | 2019-12-18T12:18:02 | 2016-10-21T12:14:39 | 2019-12-17T16:22:48 | 2019-12-18T12:18:01 | 9 | 1 | 1 | 0 | Python | false | false | # process freewvs results
#
# Parses the resulting xml into csv and sends it via email to subscribers.
# All settings are in settings.py module.
#
# Usage:
# ./freewvs -x path/to/hostings > vulnscan.xml && python processResults.py
#
# I recommand updating the freewvsdb/ dir or it won't work too long. You can
# pass the... | UTF-8 | Python | false | false | 4,618 | py | 5 | processResults.py | 3 | 0.631875 | 0.630359 | 0 | 153 | 29.183007 | 79 |
VivekSumanth/Code-Everyday | 515,396,080,174 | d7b4e1a5d7c2015062256595efc0213c63308d4d | 5cf0343353f3f408f165ba3fd7c1e313265b7723 | /june 20/19.py | a0ef850974a89ec35a0dcbaa080348419593478c | [] | no_license | https://github.com/VivekSumanth/Code-Everyday | 8722876da8e1db5c541eb7d7266fceaba94ebcd0 | f979abecd32491951d9c28c24aa9d28cad3792d7 | refs/heads/master | 2023-01-31T16:51:06.116364 | 2020-12-13T02:50:27 | 2020-12-13T02:50:27 | 264,581,622 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # date:12/06/20
# 19. Remove Nth Node From End of List
# Medium
# 3137
# 229
# Add to List
# Share
# Given a linked list, remove the n-th node from the end of list and return its head.
# Example:
# Given linked list: 1->2->3->4->5, and n = 2.
# After removing the second node from the end, the linked list becomes... | UTF-8 | Python | false | false | 1,293 | py | 140 | 19.py | 137 | 0.584687 | 0.554524 | 0 | 59 | 20.932203 | 108 |
DSchana/Final-Project-11 | 2,353,642,113,740 | f333ae12e14acb4ea8eeef06a7c0441988c22735 | 1d672d29dd7299947034a13e8a426a6b9bf4297d | /Compsci Final Project/attackSprites (old).py | 795c659b930a6fb414e05f1cb2167fbec641ee96 | [] | no_license | https://github.com/DSchana/Final-Project-11 | c2fc66b48fbd4fae165c25dfc058fd59faf0f3ff | 30cdf62443b1c152068ce11f5a913728248c66b5 | refs/heads/master | 2020-04-09T16:50:51.605326 | 2015-10-02T03:36:33 | 2015-10-02T03:36:33 | 30,880,912 | 0 | 2 | null | false | 2019-11-30T08:43:04 | 2015-02-16T18:04:03 | 2015-06-12T20:03:06 | 2015-10-02T03:36:33 | 125,239 | 0 | 2 | 1 | Python | false | false | #Cast Spell Sprites
#This code controls the animations for the player when he casts spells
#Load the sprites in the loading screen ******
from pygame import*
screen = display.set_mode((850,600))
#The following lists store the sprites for casting spells (attacking)
castSpellRightSpriteList = []
for i in range(6):
... | UTF-8 | Python | false | false | 4,162 | py | 29 | attackSprites (old).py | 24 | 0.586257 | 0.552138 | 0 | 126 | 32.02381 | 111 |
afcarl/ogb_lite | 8,727,373,570,311 | 331d199aecade2cdd4e5c6974675c9eee9220e61 | 1bacbea76a84f1e31f41a100cfdc5ad7704437b0 | /ogb_lite/utils/__init__.py | 3c45b8dbeda4574e5c9885bce7c6bdaf0aa956f5 | [
"MIT"
] | permissive | https://github.com/afcarl/ogb_lite | b04997b0e7d8a190512dda0610b68086b69dfa3e | e575f979c712eb572bfb34e38381a7948b33f77c | refs/heads/main | 2023-04-19T13:16:36.384206 | 2021-04-27T21:42:55 | 2021-04-27T21:42:55 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding=utf-8
try:
from .mol import smiles2graph
except ImportError:
pass | UTF-8 | Python | false | false | 82 | py | 15 | __init__.py | 13 | 0.719512 | 0.695122 | 0 | 5 | 15.6 | 33 |
hjicheng/python-pc | 16,432,544,898,933 | 4a3b94aec938efe1412de8513608c8a0f880c954 | d486ec26db4138bf9f27a00c1048ab90096af8ee | /Python爬虫/21DAY/20190331/dianying.py | 78a3b91134f1ed56a55855d19ad1ca2a3b4916ff | [] | no_license | https://github.com/hjicheng/python-pc | 2e7f733956db9f038b40a17cdd4d6c51badb5ac8 | a968d0f8956dc2e422f17aa30df627755da3e979 | refs/heads/master | 2020-04-30T09:38:26.640890 | 2019-05-19T14:25:55 | 2019-05-19T14:25:55 | 176,754,068 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding:utf-8 -*-
#!/usr/bin/python3
#_author_='HuangJiCheng';
#date: 2019/3/31
import requests
from lxml import etree
BASE_URL = 'https://www.dytt8.net'
# 获取第一页数据
# 获取url进入详情页进行解析
HEADERS = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3608.4 Safari... | UTF-8 | Python | false | false | 3,919 | py | 66 | dianying.py | 63 | 0.553688 | 0.539447 | 0 | 98 | 34.836735 | 127 |
JamesPino/pebl | 16,681,652,987,664 | 8b4f1e33da3372b857b42edfdc53b958ad1b0f71 | 85f4b8297056117a227e83c3b901c51ab1067c66 | /src/pebl/discretizer.py | 215b0e719571f14c604f27db5b94670415e9d505 | [
"MIT"
] | permissive | https://github.com/JamesPino/pebl | 9a03a201d0e989619d3eaf2139f325272f6fb996 | f3677642e342e92133af0b8ebe038c6ea35ac30b | refs/heads/master | 2021-01-17T23:35:48.564297 | 2016-05-19T03:51:06 | 2016-05-19T03:51:06 | 59,163,795 | 0 | 0 | null | true | 2016-05-19T01:30:00 | 2016-05-19T01:29:59 | 2016-04-20T15:36:06 | 2011-11-16T01:19:34 | 2,127 | 0 | 0 | 0 | null | null | null | """ Collection of data discretization algorithms."""
import numpy as N
import data
from util import as_list
def maximum_entropy_discretize(indata, includevars=None, excludevars=[], numbins=3):
"""Performs a maximum-entropy discretization of data in-place.
Requirements for this implementation:
... | UTF-8 | Python | false | false | 2,276 | py | 8 | discretizer.py | 7 | 0.628295 | 0.605888 | 0 | 67 | 32.970149 | 91 |
FihlaTV/opennames | 3,685,081,973,936 | 4dd82a11603ee62fa154844a479ae88b5abe9bd7 | b80abcaed517f9ae728a7813fa4180441bf5f9f7 | /peplib/source.py | 83904be6d12fed9be4bfa1ef820d71f7293ad9be | [
"MIT"
] | permissive | https://github.com/FihlaTV/opennames | 35e03011f92941fb32d4031bbc8714226361358d | baf10a04c6f700cfb722a3f98d021754536df67d | refs/heads/master | 2021-01-23T07:55:18.874363 | 2017-03-06T19:38:06 | 2017-03-06T19:38:06 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import logging
import dataset
import countrynames
from pprint import pprint # noqa
from peplib.util import clean_obj, unique_objs
from peplib.config import DATABASE_URI
from peplib.schema import validate
log = logging.getLogger(__name__)
db = dataset.connect(DATABASE_URI)
class Source(object):
def __init__(s... | UTF-8 | Python | false | false | 2,110 | py | 24 | source.py | 9 | 0.601896 | 0.600948 | 0 | 67 | 30.492537 | 70 |
mattbasta/monacle | 9,474,697,878,845 | 1bae5b9d457c0104f37ae798e37761b534850037 | 87730f381714ea6a35b5d8f0384391f1655db40c | /services/places.py | f0ec651229c8373f360eedefba556a1b4e2bcee8 | [] | no_license | https://github.com/mattbasta/monacle | 8a59a5d26a496ba6487381069505831b31188f2a | da9aa7f5ae3d2733df5e7b85b02688a090ed3f6b | refs/heads/master | 2016-09-06T08:38:22.794935 | 2012-09-01T04:30:08 | 2012-09-01T04:30:08 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import constants
import math
from factual import Factual
fs = constants.FACTUAL_SETTINGS
f = Factual(fs["key"], fs["secret"])
places = f.table("global")
geographies = f.table("world-geographies")
class LatLon(object):
def __init__(self, lat, lon):
self.lat, self.lon = map(float, (lat, lon))
print... | UTF-8 | Python | false | false | 6,859 | py | 32 | places.py | 30 | 0.589299 | 0.580114 | 0 | 214 | 31.03271 | 78 |
spider17joker/sanji-develop | 1,254,130,455,268 | e699ae2a54aace792aa4f5f748d0686df09f3182 | 10ebacee368b089f5998ba061549eaa9d81712e7 | /genian/Agent/gnagent.py | 80673e4bc0e24bb48560094d419cb92d99a36a88 | [
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | https://github.com/spider17joker/sanji-develop | d09fa754cf16aef45be67dbdcfa6e23bce00ad36 | a498f583127fffc75475c30ad873f00fed3137e1 | refs/heads/master | 2022-12-02T09:11:12.886654 | 2022-11-06T05:53:12 | 2022-11-06T05:53:12 | 85,659,009 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# 한글 주석 사용 가능하도록 encoding 추가
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
import platform
import signal
import errno
import json
import hashlib
import select
import socket
import struct
import sqlite3
import subprocess
import threading
impo... | UTF-8 | Python | false | false | 73,093 | py | 217 | gnagent.py | 179 | 0.522476 | 0.514929 | 0 | 2,307 | 29.036411 | 214 |
gabriellaec/desoft-analise-exercicios | 1,640,677,513,512 | d0b5570d10812cbdf9c408a00856efde5f35c6d7 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_177/ch20_2020_10_07_14_05_25_291698.py | 8fea6a9c7e340d16ed8c1c83ec5cf26f2014763b | [] | no_license | https://github.com/gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | distancia = float(input('Qual a distância da viagem em km?'))
if distancia <= 200:
passagem = 0.5 * distancia
print ('preço por quilometro = R$0.50')
else:
passagem = 100 + 0.45 * (distancia - 200)
print ('preço por quilometro = R$0.45')
print("Preço da passagem = R${0}".format(passagem)) | UTF-8 | Python | false | false | 309 | py | 35,359 | ch20_2020_10_07_14_05_25_291698.py | 35,352 | 0.64918 | 0.580328 | 0 | 8 | 37.25 | 61 |
claudeisakeeb/LoLBot | 2,199,023,287,774 | 668a53e18571c288946ee18ba2e8b561b643fb21 | 1c3381e143f511b22bcc1306b43998c815853c24 | /get_all_champion_skins.py | a0931a0231fa4a032bc834c0eadde54284f0e401 | [] | no_license | https://github.com/claudeisakeeb/LoLBot | cf981f43824a80f4fec769f385ccabf0a8a126b1 | b9972113ff7e6cefa55d83d874c2080fc6e0e4ae | refs/heads/master | 2022-12-07T20:13:01.772554 | 2020-08-22T21:39:38 | 2020-08-22T21:39:38 | 287,159,118 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import json
#Gets all champion skins in the current version of data dragon and puts them in 'all_champion_skins.json'
#The format is "key-ified skin name" --> [champion name, skin photo id, original skin name, skin ID]
champion_skin_dict = {}
version = requests.get("https://ddragon.leagueoflegends.com... | UTF-8 | Python | false | false | 1,137 | py | 16 | get_all_champion_skins.py | 7 | 0.683377 | 0.682498 | 0 | 19 | 58.894737 | 156 |
AInitikesh/brain-waves | 16,217,796,542,770 | 6a67c131d1cff1eb7ea7b2f5061b9136bb7eca5e | a0765ea5dc34a12839d728d837e2e0668623a4f7 | /app/__init__.py | d918d760a219bc04c5f616e8486c2f1938bba32a | [] | no_license | https://github.com/AInitikesh/brain-waves | 3a82d71dc331de46bd206fe82f38cd31ea6c496c | 286cb48512dc86406a0e86051b3bf86741492aee | refs/heads/master | 2020-04-29T07:43:50.506553 | 2019-03-16T22:43:53 | 2019-03-16T22:43:53 | 175,963,247 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Import flask and template operators
from flask import Flask, render_template, jsonify
from flask import request
from app.helper.converter import insertDb
import os
from flask_cors import CORS
import datetime
# Import SQLAlchemy
from flask_sqlalchemy import SQLAlchemy
# Define the WSGI application object
app = Flas... | UTF-8 | Python | false | false | 4,148 | py | 6 | __init__.py | 4 | 0.585824 | 0.565333 | 0 | 119 | 33.831933 | 182 |
prmelehan/AITesting | 558,345,783,962 | e28b2ea932f89bed97473e2fe299ee4017f151f3 | 3a9ac8452e0f3b97b39f413f7da55c6d25e69354 | /LSTM/finance/stocks/stock_predictor.py | bbeb0e574bf5bd879579c43df89eee570ad7e43e | [] | no_license | https://github.com/prmelehan/AITesting | b0d685b6b0e2157b361026efe46183040eda5f75 | bc59114b235c1771b34e6500f5c8bb95a1698f01 | refs/heads/master | 2021-01-19T13:22:47.462452 | 2018-01-29T18:01:11 | 2018-01-29T18:01:11 | 100,838,854 | 0 | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | # this will be able to take any datasheet from NASDAQ and try to predict the stock price of that company
# dependencies
from __future__ import print_function
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
from keras.layers.core import Dense, Activation, Dropou... | UTF-8 | Python | false | false | 6,289 | py | 13 | stock_predictor.py | 1 | 0.681507 | 0.669423 | 0 | 183 | 33.36612 | 182 |
liu111xiao111/UItest | 13,469,017,483,568 | 618fc32467d41e7a299bb24e88055074aa8e0df0 | b4afb44b8f483c048716fe12d778186ce68ac846 | /pages/ios/ffan/square_shopping_category_page.py | cba6db073d4631c64b78a0d126e1bcf53a18b027 | [] | no_license | https://github.com/liu111xiao111/UItest | 64309b2c85f6d2334d64bb0875ba9ced459ebb1e | 67e2acc9a99da81022e286e8d8ec7ccb12636ff3 | refs/heads/master | 2021-09-01T18:30:28.044296 | 2017-12-28T04:36:46 | 2017-12-28T04:36:46 | 115,585,226 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from api.api import API
from pages.ios.common.superPage import SuperPage
from pages.ios.ffan.square_shopping_category_page_configs import SquareShoppingPageConfigs
class SquareShoppingPage(SuperPage):
'''
作者 宋波
首页=>广场=>爱购物
'''
def __init__(self, testcase, driver, logger):... | UTF-8 | Python | false | false | 1,460 | py | 656 | square_shopping_category_page.py | 648 | 0.597301 | 0.596591 | 0 | 41 | 33.341463 | 98 |
0hexit/zds-site | 15,255,723,884,208 | b743e83d4ecf4a00982ab07fa1e6523ba36b509b | 58042e54f78a767a81db52378c50622e043d6a07 | /zds/member/models.py | 04765857286f52a61da14f28fd0c45da9b7bc91e | [] | no_license | https://github.com/0hexit/zds-site | b7a9235b68c2a2c8b4715b4c4fbf1d980f0dcc87 | bcc83b852c650e70553c8eba83193da10f6332ab | refs/heads/master | 2021-06-03T05:22:51.339807 | 2014-01-30T00:55:45 | 2014-01-30T00:55:45 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding: utf-8
from datetime import datetime
from django.contrib.auth.models import User
from django.db import models
from django.db.models import Q
from django.core.urlresolvers import reverse
from django.shortcuts import redirect
from hashlib import md5
from zds.forum.models import Post, Topic
from zds.utils.model... | UTF-8 | Python | false | false | 6,608 | py | 156 | models.py | 60 | 0.628844 | 0.624602 | 0 | 184 | 34.875 | 119 |
emingure/SchoolProjects | 8,710,193,691,144 | aedc1456901ba1a28efb5ff9fc674f8e6aa35f5c | 50cadd32262e5ac612eb8b45c05829c6522585fb | /CmpE 230 - Systems Programming/exercises/b.py | 5fafb85e7cdc62bca17a5f4b2b35119b16b68ceb | [] | no_license | https://github.com/emingure/SchoolProjects | 7301cfd0711f310f70880e163f98996403cd8dda | 8e3c182c16453647ca4269051e2d491b37f53dc9 | refs/heads/master | 2020-04-17T09:23:01.845511 | 2019-01-18T18:37:21 | 2019-01-18T18:37:21 | 166,452,379 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
import sys
n = int(sys.argv[1])
for i in range(2,n+1):
str = "1" * i
found = re.search(r"^(11+?)\1+$",str)
if not found:
print len(str),str
| UTF-8 | Python | false | false | 157 | py | 55 | b.py | 31 | 0.585987 | 0.541401 | 0 | 10 | 14.7 | 38 |
twcrane/thekla | 17,025,250,379,315 | 32e2b8ca779635b23710910d33ee81278235ffb5 | dcc73447097e0fe627d1dc9d1005b2bc60b5c310 | /src/Document.py | cfb300bc25716c2fec67ec4861cdccbe66a585c0 | [] | no_license | https://github.com/twcrane/thekla | 746f76bd3dc5bca5a2dd4894f0f4129da1cd028e | e945d2548b3b3ced4393a2189269ca784e76b8bb | refs/heads/master | 2021-01-16T22:03:59.264554 | 2013-10-01T07:42:30 | 2013-10-01T07:42:38 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import absolute_import
from __future__ import unicode_literals
import logging
import codecs
import os
import scipy
def repr_with_tm(fname, tm):
"""
Read file /fname/ and map each word to the id of the corresponding topic
vector in /tm/ and save the result in a list. With the list and the ... | UTF-8 | Python | false | false | 6,366 | py | 2,022 | Document.py | 6 | 0.587496 | 0.585768 | 0 | 181 | 34.171271 | 89 |
amitupadhyay6/My-Python-Program | 16,045,997,838,261 | b92b5ac85af134680642f6cdf426e53ea7cd66f5 | c3a08f9bfac42053e34d0972095b56851cb1b60a | /My Codes/Sum and Prod.py | f9772ca93beb09a46db5dabd8487a867da9a3497 | [] | no_license | https://github.com/amitupadhyay6/My-Python-Program | 588b90a783264d40bc19e8050ebe6607d2e23bb1 | feb2f2d49ab4f863382941a8eb8caf2f9a0f4dc2 | refs/heads/master | 2022-09-19T23:50:26.701405 | 2020-05-31T11:09:53 | 2020-05-31T11:09:53 | 262,348,377 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import numpy
ar = numpy.array([ [1,2], [7,10]])
print(ar.sum())
print(numpy.sum(ar, axis=0))
print(numpy.sum(ar, axis=1))
print(numpy.sum(ar, axis=None))
print(numpy.sum(ar))
print("\n")
print(ar.prod())
print(numpy.prod(ar, axis=0))
print(numpy.prod(ar, axis=1))
print(numpy.prod(ar, axis=None))
print(n... | UTF-8 | Python | false | false | 336 | py | 170 | Sum and Prod.py | 146 | 0.639881 | 0.613095 | 0 | 14 | 21.857143 | 34 |
oyjjforever/licensePlate | 12,670,153,545,718 | f8fa905bb5d29fc418588e14a4da877c14da1892 | ba1f5f2872f58f1c867ffc5277d092adcd34f72d | /license_locate.py | 58f780a3b291fce5ef5a791bafa4b8a24c400812 | [] | no_license | https://github.com/oyjjforever/licensePlate | 5fd3e514d321425aa42c0fc1b6319328b579718f | bdd6190e4e3bfc25ec0642d9840d753307128d9e | refs/heads/master | 2020-06-24T22:29:31.017596 | 2019-08-02T08:42:47 | 2019-08-02T08:42:47 | 199,110,014 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import copy
import datetime
import math
from collections import Counter
import cv2
import numpy as np
import matplotlib.pyplot as plt
np.set_printoptions(threshold=np.inf)
# 确定最小搜索窗口为180*30,后续进行细定位
from PIL import Image
window_h = 20
window_w = 180
sobel_image = []
class Locate:
def column_diff(self,pic):
... | UTF-8 | Python | false | false | 20,569 | py | 2 | license_locate.py | 2 | 0.51484 | 0.483051 | 0 | 475 | 37.941053 | 246 |
cd-glacier/sketch_detection | 8,770,323,258,938 | cf0870cc205f7af7cc1b3bd569b934825c30ce1b | 8b78618774baf7226eaa969784c0ffd9d551ba1c | /canny.py | 807766af3de2e4bf320d35c6c0d7babe331599e1 | [] | no_license | https://github.com/cd-glacier/sketch_detection | 94207d4142274da44c8f4931535e5aeabd8d4380 | 913a3a1df95f55182d294fa3defcaf417f5a565e | refs/heads/master | 2021-05-31T19:34:48.157850 | 2016-02-06T16:36:49 | 2016-02-06T16:36:49 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import cv2
import numpy as np
import sys
import sqlite3
import os
def getFileName():
files = os.listdir('./images')
#delete .DS_Store
del files[0]
return files
###########################################################################
files_name = getFileName()
for file_name in files_name:
name = file_name
... | UTF-8 | Python | false | false | 478 | py | 5 | canny.py | 3 | 0.566946 | 0.531381 | 0 | 24 | 18.875 | 75 |
fege/Thesis-Project | 816,043,816,783 | 4d44821575ea5beb048f06b374567ac7701628e9 | 8980f35343d346d39c01f28d5161bf0687765add | /restfs/manager/ResourceManager.py | d86987a62662cb6a713e44eb9195221df027479b | [] | no_license | https://github.com/fege/Thesis-Project | 51f47961ef54d9b8dc91b13bd9ff4feda5f447cf | 4d1d0e1ccb603771800e677de53fbcdb4f37b511 | refs/heads/master | 2021-01-21T21:48:40.178614 | 2012-09-26T21:04:28 | 2012-09-26T21:04:28 | 5,972,334 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import logging
from tornado.options import options
from restfs.objects.BucketOwner import BucketOwner
def rpcmethod(func):
""" Decorator to expose Node methods as remote procedure calls
Apply this decorator to methods in the Node class (or a subclass) in order
to make them remotely ca... | UTF-8 | Python | false | false | 2,335 | py | 86 | ResourceManager.py | 84 | 0.59015 | 0.59015 | 0 | 64 | 35.03125 | 91 |
staticdev/toml-validator | 5,549,097,772,298 | 4db10dc154a74f2b590a2d1fde59cc27d8b44b42 | 5eb6fc7cc27926a772a5036819b8bab5bb2989c5 | /src/toml_validator/use_cases/toml.py | bc82faaf1865a97ea7481974ab6dadf464103ff5 | [
"MIT"
] | permissive | https://github.com/staticdev/toml-validator | 80076281fdae532a7f930570225ff4624ccd0aa1 | e3bc7a674c5ec1c996d7539616411784995869b1 | refs/heads/master | 2021-08-08T17:41:39.629182 | 2021-02-16T18:55:03 | 2021-02-16T18:55:03 | 243,814,155 | 4 | 1 | MIT | false | 2021-02-16T18:48:54 | 2020-02-28T17:07:00 | 2021-02-16T18:04:03 | 2021-02-16T18:48:53 | 689 | 1 | 1 | 0 | Python | false | false | """TOML Validator validations."""
import tomlkit
from tomlkit.exceptions import ParseError
from tomlkit.exceptions import TOMLKitError
def validate_extension(filename: str) -> bool:
"""Validates extension in filename.
Args:
filename (str): name of the file.
Returns:
bool: if extension is... | UTF-8 | Python | false | false | 855 | py | 12 | toml.py | 8 | 0.624561 | 0.624561 | 0 | 39 | 20.923077 | 48 |
hbahamonde/Smote_US | 1,460,288,898,188 | 8f1f663fa5812e65f7dd38de84f435425a17fd7b | cccabaf75f4f52a19d5ffe09843923b334652bc9 | /Datos/smote_svm.py | dac6cd24d2b08296ba74e53d3cc152bfd49f25fe | [
"Apache-2.0"
] | permissive | https://github.com/hbahamonde/Smote_US | 195c826bd5f6883d1c048c5c4f9df142f5660e12 | 7bbb2bd5182e96c034f7b3c8b6e13d7584f8d6d3 | refs/heads/main | 2023-04-22T08:58:41.699675 | 2021-04-27T20:17:39 | 2021-04-27T20:17:39 | 353,096,291 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # svm.py
import numpy as np # for handling multi-dimensional array operation
import pandas as pd # for reading data from csv
from sklearn import svm # for classification problem
from sklearn.pipeline import make_pipeline # create pipeline
from sklearn.preprocessing import StandardScaler # scaling data
from collection... | UTF-8 | Python | false | false | 6,605 | py | 84 | smote_svm.py | 4 | 0.64436 | 0.619379 | 0 | 165 | 39.030303 | 170 |
mty0313/get_my_code_back | 11,596,411,702,741 | 1b31a67f616b39b69ae1d6b67c22af83536bc423 | c5e36b1ff4427b5e182bb3309916446aa1fe89e0 | /get_accpeted_submission.py | 749a43c4a14515eff8501299459076b529cd0e31 | [] | no_license | https://github.com/mty0313/get_my_code_back | 8fdcc3e714c09cf8ea9bd3dc08aff4d1803ece33 | 2c87b7e05857f73354fca4a5b6e7786aefc82086 | refs/heads/master | 2022-03-11T09:29:52.438050 | 2019-11-22T06:44:46 | 2019-11-22T06:44:46 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
url = "https://acm.nuist.edu.cn/v1/course/37/user/own-submission"
headers = {
'authority': "acm.nuist.edu.cn",
'method': "GET",
'path': "/v1/course/37/user/own-submission?page=1&perpage=12",
'scheme': "https",
'accept': "application/json, text/plain, */*",
'accept-encoding': "... | UTF-8 | Python | false | false | 1,922 | py | 5 | get_accpeted_submission.py | 2 | 0.605099 | 0.538502 | 0 | 45 | 41.644444 | 173 |
Daniel-02/Exercicio3CoAP | 18,537,078,889,573 | 893e27dc2a3f6ec7e3cf739f977f186f7a543fcf | 7829830583b1bed7a2bd974774dd507dd0cd84cc | /aplicacao.py | 53a05f57088e7d34ce6965e26aebe69234779934 | [] | no_license | https://github.com/Daniel-02/Exercicio3CoAP | 66704b122806520b21e7a24160fa5c4fd5f612d4 | b1440cbf9118b4d24c465c79965957897c8070b1 | refs/heads/master | 2022-09-26T07:51:25.864922 | 2020-06-03T14:03:26 | 2020-06-03T14:03:26 | 268,911,012 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import getopt
import socket
import sys
from coapthon.client.helperclient import HelperClient
from coapthon.utils import parse_uri
from coapthon import defines
from threading import Thread
from sense_emu import SenseHat
# Autor: Daniel Arena Toledo
client = None
sense = SenseHat() #instancia emulad... | UTF-8 | Python | false | false | 2,258 | py | 4 | aplicacao.py | 3 | 0.697963 | 0.690434 | 0 | 61 | 34.983607 | 102 |
vicety/LeetCode | 5,703,716,595,703 | a033e0aa0b224c89c0fdcce07094870306277a35 | 50efdd972f278f3fec22c64cd0ba038e2d035d58 | /python/interview/2022-intern/netease-2022/3.py | 2f5bbdc9d16b2181bdad8257c534b96c6fc5bf61 | [] | no_license | https://github.com/vicety/LeetCode | 470e53cb85bb421dd9ed61a672703358981aaf27 | d62b95145f0ea00873ed1fe45b2c31a4794cc7e5 | refs/heads/surface-aya | 2023-07-21T05:53:43.132791 | 2023-07-11T11:36:05 | 2023-07-11T11:36:05 | 250,862,810 | 0 | 0 | null | false | 2023-05-09T18:51:22 | 2020-03-28T18:11:33 | 2021-10-14T04:28:45 | 2023-05-09T18:51:19 | 1,221 | 0 | 0 | 4 | Java | false | false | n = int(input())
odd_layer_sum = 0
even_layer_sum = 0
now = 1
odd_layer = True
acc = 0
while True:
if acc + now > n:
if odd_layer:
odd_layer_sum += (n - acc)
else:
even_layer_sum += (n - acc)
break
acc += now
if odd_layer:
odd_layer_sum += now
els... | UTF-8 | Python | false | false | 1,214 | py | 670 | 3.py | 669 | 0.45339 | 0.439831 | 0 | 58 | 19.344828 | 49 |
jmborr/code | 8,924,942,083,173 | cd963c4ec2f8cba10e7f2e526ae7cc55bac38fc8 | 83ed1e2f176133c03a5f6dfa504b8df15ae71efb | /projects/nonhomol_pdbJul05/avTMcentr.py | 9c09fbdf8b73eb2f4c41d06a4b321659988bc0ea | [] | no_license | https://github.com/jmborr/code | 319db14f28e1dea27f9fc703be629f171e6bd95f | 32720b57699bf01803367566cdc5fff2b6bce810 | refs/heads/master | 2022-03-09T16:11:07.455402 | 2019-10-28T15:03:01 | 2019-10-28T15:03:01 | 23,627,627 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/pyton
"""
for each sequence calculate average TM-score between centroids,
then average for all sequences
"""
import sys,os
from utilities.small_utilities import chomp
from spicker.spickerResultsManager import spickOut
from math import sqrt
headers=chomp(open('/gpfs1/active/jose/projects/nonhomol_pdbJul05... | UTF-8 | Python | false | false | 911 | py | 693 | avTMcentr.py | 508 | 0.712404 | 0.688255 | 0 | 35 | 25.028571 | 118 |
stackpearson/cs-notes | 6,219,112,683,947 | 2c0cb57f4e438bcc318c5b50e3de9166775c3107 | 3f1db3c9641a93bece8c3952dd51788298b7f313 | /lambda_questions/treePaths.py | bf7a80cc2e7b69e4567ea337337c44fb7fe9e40d | [] | no_license | https://github.com/stackpearson/cs-notes | 8e312aaac13da16e826e46ae059622aba5b8ebb6 | 8193e6b3da65ac8865ab8f6343375a4d0d7a6c84 | refs/heads/master | 2023-02-16T01:09:12.337041 | 2021-01-07T02:58:12 | 2021-01-07T02:58:12 | 314,680,781 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def treePaths(t):
res = []
# base case - empty tree
if t is None:
return res
# pre order would work best
if t.left is None and t.right is None:
s = f'{t.value}'
res.append(s)
return res
string = ''
recurse(t, string, res)
return ... | UTF-8 | Python | false | false | 807 | py | 34 | treePaths.py | 34 | 0.542751 | 0.542751 | 0 | 33 | 23.484848 | 48 |
vhnuuh/pyutil | 10,488,310,142,954 | a7ad7e7f948d2c913e9596cbe7f08c2b37d610d4 | 6ea48188896b8ffd157032441f90d20c629d76c3 | /examples/thread_/signal_/custom_exit.py | 2b7e4ed0e613ff2705a6dd1f5fbeb0293ef6c700 | [] | no_license | https://github.com/vhnuuh/pyutil | 71925838f6d620861638d8244827b2b3fb7db936 | d34f44b4de6ab4eebd0fe7782ea6e20285b17f31 | refs/heads/master | 2019-07-14T15:54:36.643100 | 2019-03-19T09:33:28 | 2019-03-19T09:33:28 | 27,152,767 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # encoding:utf-8
"""
inspire by openstack service
"""
# TODO: 未验证异常
import signal
import os
import time
class SignalExit(SystemExit):
def __init__(self, signo, exccode=1):
super(SignalExit, self).__init__(exccode)
print 'raise SignalExit'
self.signo = signo
def parent_handler(signum, fra... | UTF-8 | Python | false | false | 1,248 | py | 392 | custom_exit.py | 360 | 0.642165 | 0.636511 | 0 | 55 | 21.509091 | 54 |
fossabot/Mi.py | 3,770,981,287,041 | ac281c1b8782da0261fedd1ce44e82f80d62a455 | e4765d71b0d27fc05ceaea19021ad569f4b4c48a | /misskey/note.py | 4d473f9adb80f7569e359156173771f31b3a98b6 | [
"MIT"
] | permissive | https://github.com/fossabot/Mi.py | 683d78fb190892a538d5f5f39839655b27a2379f | ec58f1f8a44c1708f235837014e993e697fe6a54 | refs/heads/master | 2023-07-14T13:42:53.829408 | 2021-08-27T13:02:43 | 2021-08-27T13:02:43 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
import re
from misskey.user import User
class Note(object):
__slots__ = (
'id',
'created_at',
'type',
'user_id',
'author',
'text',
'cw',
'visibility',
'visible_user_ids',
'renote_count',
'replies_count',
'r... | UTF-8 | Python | false | false | 2,336 | py | 16 | note.py | 12 | 0.449956 | 0.440818 | 0 | 75 | 29.64 | 80 |
Earmada/django_test_travis | 15,839,839,407,634 | 7adddba339d3bc2966833d8a300f1af66b3edea5 | 24d4802442c2384d3bdc7dab3eecf3f6aa5df680 | /django_test/apps/carts/api/v1/api_urls.py | de75b55a88025b13ffb300b84952d2b0fe5e43af | [] | no_license | https://github.com/Earmada/django_test_travis | 92ff885f12e7f2db09251ee3aa84f4ce30d017bf | a875a3398505c721b02bcc8cb89d102f54a49e16 | refs/heads/master | 2018-02-07T05:54:38.327666 | 2017-03-04T11:17:12 | 2017-03-04T11:17:12 | 83,034,539 | 1 | 0 | null | false | 2017-03-04T11:17:12 | 2017-02-24T11:25:00 | 2017-02-24T11:33:58 | 2017-03-04T11:17:12 | 1,704 | 0 | 0 | 0 | Python | null | null | # Python imports
# Core Django imports
from django.conf.urls import url
# Third-Party imports
# Apps Imports
from .api_controllers import CartsListAPIController, CartDetail
from django_test.apps.products_carts.api.v1.api_controllers import ProductsCartAPIController, AddProductToCart
from django_test.apps.products_car... | UTF-8 | Python | false | false | 927 | py | 158 | api_urls.py | 143 | 0.691478 | 0.68932 | 0 | 20 | 45.35 | 110 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.