blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bdf7a007b6d10f9364246a1d1130de70f5204540 | 3eeee2ba82152f4caf632b9b4ab19db32305a4ac | /Intro_To_Python_Development/modeling_data_lab/tasker.py | 4aec5420d8408263eea53f53f9a9daabd0fe880d | [] | no_license | adamayd/Python | bda7788597c5fb4dfd96297a92b03f275533e884 | cb06e2e15167187d9fbda8fed979a40a1640af7d | refs/heads/master | 2023-05-12T06:11:25.508137 | 2023-05-03T10:31:03 | 2023-05-03T10:31:03 | 222,042,439 | 0 | 0 | null | 2023-05-03T10:31:04 | 2019-11-16T03:40:13 | Shell | UTF-8 | Python | false | false | 2,216 | py | class Todo:
"""
Todo represents a task with a name, description, point value, and completed.
A new Todo should have a `completed` field that defaults to `False`.
All other attributes must be provided.
>>> todo = Todo(name='Get Lunch', description='Need to eat.', points=0)
>>> print(todo)
G... | [
"adam.ayd@gmail.com"
] | adam.ayd@gmail.com |
22b29f71180200e29461eb985fb86b60f8821b07 | 360295132262f919c90faee4b776ef6f7826e14f | /jobs/migrations/0001_initial.py | fd1095e4e31c80465b0f705cb9d2516a9c1f2e0f | [] | no_license | RahulR432/MyPortfolio | 187ff12e8d8dc4ddbd4f16bfd8e7140dbb235954 | 9695c62515325c641e4f89e5ba19054dc89cb053 | refs/heads/master | 2020-09-16T12:38:32.617624 | 2019-11-27T18:14:44 | 2019-11-27T18:14:44 | 223,772,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # Generated by Django 2.2.7 on 2019-11-24 13:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Job',
fields=[
('id', models.AutoField(auto... | [
"gajjadarahul@gmail.com"
] | gajjadarahul@gmail.com |
d62337ceaac65b809c75ea91fd0bf0c424c75ab6 | 436c40d8965274a32e48b0d92553efa14177db25 | /video-synopsis/video_synopsis.py | cca0ae447ec372b22ae4407e61b14820700c86c3 | [] | no_license | anuj-kh-quantela/end-to-end | daa1fad9beb96b2eb664ca38e9762a223b3ca1d7 | b00009b80f680c3d1f79f56eee9cdb949963dfb2 | refs/heads/master | 2020-03-25T12:06:50.716637 | 2018-08-06T17:41:48 | 2018-08-06T17:41:48 | 143,760,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,008 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import print_function
# vision specific imports
import numpy as np
import cv2
# general python util imports
import subprocess
import sys, glob, os, shutil
import re
from pprint import pprint
import configparser
from datetime import datetime
import time
impo... | [
"anuj.khandelwal@quantela.com"
] | anuj.khandelwal@quantela.com |
5bd8deed773e955ba2704270d2a4be17158f729a | 351378a6749d3cffacf87691c7f0756b05abd73e | /data_server/manage.py | a4489257e405dd53647d473076895bde92087911 | [] | no_license | w4087165/Tenement_By_GaoDe | 878bd8b0a52c964cbd03cf8da7802060362bb2b3 | 73f7f8f2fdbc6702bd4b66b9aac0c182785340ee | refs/heads/master | 2021-06-21T03:15:09.854472 | 2019-09-27T11:49:15 | 2019-09-27T11:49:15 | 206,316,679 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "data_server.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"835340685@qq.com"
] | 835340685@qq.com |
4d352b30c38ee5240aa74ad3e2bd79c7693bfa0a | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/notification-hub/azext_notification_hub/vendored_sdks/notificationhubs/models/notification_hubs_management_client_enums.py | f97b28ab81f5bed1408323aa284ef1b8c81d6704 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 789 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
49db302c96c35f528c5f252b1a2f9596dea8b8ad | 63f9a0d150cbef75f4e6e8246dc7ecac3f3b6d09 | /python/ray/serve/examples/echo_full.py | 9639f1a258d95e7009d0f3ab0520bc1ed59235a0 | [
"Apache-2.0",
"MIT"
] | permissive | ray-project/maze-raylit | 79f0a5af9fe4bdc13a2d5b3919da867ed5439aab | a03cd14a50d87d58effea1d749391af530d7609c | refs/heads/master | 2023-01-23T04:23:35.178501 | 2020-12-04T22:34:14 | 2020-12-04T22:34:14 | 318,274,659 | 5 | 0 | Apache-2.0 | 2020-12-04T22:34:15 | 2020-12-03T17:47:58 | Python | UTF-8 | Python | false | false | 1,465 | py | import time
import requests
import ray
import ray.serve as serve
# initialize ray serve system.
ray.init(num_cpus=10)
client = serve.start()
# a backend can be a function or class.
# it can be made to be invoked from web as well as python.
def echo_v1(flask_request):
response = flask_request.args.get("response... | [
"noreply@github.com"
] | ray-project.noreply@github.com |
c121da38ffc204f6a627a078398d03ac5a8ff863 | 3de45dba30347043b2bee80f4e9a5773da8ebbdf | /env/bin/django-admin.py | 9a4077f435fef96a203e90d30de79f690f00c6a6 | [] | no_license | mweems/findYourWeather | 7c90bb11eb47aa55da95088656574be1ab35b3f2 | 2da2ef13df292ef9c240280c53eea57f3066fe2b | refs/heads/master | 2022-12-12T16:38:57.202995 | 2017-06-26T14:10:05 | 2017-06-26T14:10:05 | 95,059,401 | 0 | 0 | null | 2022-12-07T23:57:06 | 2017-06-22T00:52:30 | Python | UTF-8 | Python | false | false | 173 | py | #!/Users/WeemsMatthew/Desktop/weatherApp/weatherApp/env/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"weemsmatthewj@gmail.com"
] | weemsmatthewj@gmail.com |
985978760be7d8692e3b592c2cf13bafe67383e4 | c152ee1ffd2e4c4f3a2ff085517f0149cff87b23 | /eventex/settings.py | db97097710d4f9f8bc7454c13c021b32b620c8f4 | [] | no_license | veridianamt/eventex | 3319dd1e5f58943ea0aca75f40933f8e5ee48527 | dca5e043459cc24dff21baaa73887e43a0f6ceec | refs/heads/master | 2021-01-21T18:34:05.146864 | 2018-01-25T18:18:56 | 2018-01-25T18:18:56 | 92,058,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | """
Django settings for eventex project.
Generated by 'django-admin startproject' using Django 1.8.18.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pat... | [
"vmantecom@options.qss.com.br"
] | vmantecom@options.qss.com.br |
98413f87180c601da3d941fbf79ed8b5fb9d4e36 | d2a2546165b3db6295a3f21972dda8ab9aab7846 | /src/vehicles/road_thief_supplies.py | 41875538a6ae4bb32f8ce3800c922d8d5fd5e778 | [] | no_license | andythenorth/road-hog | bab12b133dd674f0e6d7ae87498675f8da96b982 | 1800d57d4ce904e7041f24646c393b37903d9466 | refs/heads/main | 2022-09-26T19:57:31.006800 | 2022-09-17T10:09:37 | 2022-09-17T10:09:37 | 214,848,659 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | from road_vehicle import SuppliesHauler, DieselRoadVehicle
consist = SuppliesHauler(id='road_thief_supplies',
base_numeric_id=560,
name='Road Thief',
power=720,
vehicle_life=40,
intro_date=1989)... | [
"mail@andythenorth.co.uk"
] | mail@andythenorth.co.uk |
f16869bd5ad108dc464536c401b0746bc19750aa | 3216b7da1ab2878f257a38a227aa9273e47f4d23 | /python1/program6.py | 204c0c697874f8099acc3648a10e3ce018159d77 | [] | no_license | tsurutan/python_100 | e4145f6c639c05831bedd133f43946042006855d | 891fd8587891b1213f72dbc0bb5cb59f3ac5d484 | refs/heads/master | 2016-09-14T08:52:18.127997 | 2016-04-22T07:50:13 | 2016-04-22T07:50:13 | 56,591,849 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # coding: utf-8
x = set()
y = set()
def biGram(set, str):
for i in range(0, len(str) - 1):
set.add(str[i : i + 2])
biGram(x, "paraparaparadise")
biGram(y, "paragraph")
print "X" , x
print "Y" , y
print "和集合" , x.union(y)
print "差集合" , x.difference(y)
print "積集合" , x.intersection(y)
print "seが存在するか X" ,... | [
"tsuruta.a.ab@MB-tsurutaaab.local"
] | tsuruta.a.ab@MB-tsurutaaab.local |
f0fd12e21bdaf47ecaa234381e5b40b8e23a5294 | a1b5a4a650171a298fe884dec5d8f642e0775026 | /virtual/bin/wheel | 76538c3a89ffdce2ac15b3d0dcd8840bcda36fa4 | [
"MIT"
] | permissive | markmumba/instagram | 54ce8009e8fb16d467841941b0ac52470cfaf598 | 76aa0d317dd82ddd5ea63edb9df173024039388f | refs/heads/master | 2021-09-09T13:10:55.034775 | 2019-09-02T08:00:59 | 2019-09-02T08:00:59 | 205,160,099 | 0 | 0 | null | 2021-09-08T01:16:18 | 2019-08-29T12:34:22 | Python | UTF-8 | Python | false | false | 266 | #!/home/mark/Documents/Python-projects/django/IG-clone/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"markmumba01@gmail.com"
] | markmumba01@gmail.com | |
a99b4db9a2c7ee0dce6b18268798614b17ddddf7 | 7f289be0aeebd1af4f9d8ee3f8d46e2e4107fe5c | /geniaali/account/migrations/0004_auto_20200305_0715.py | 44c998b2c2ddd196abe5378ce94fe3e28164ce09 | [] | no_license | sumitkr0433/dashboardc | fcdc0a662030d4e5618e545cd3876b83692fe32e | ccfd33b842e0456a7901eb58b42328422286670e | refs/heads/master | 2021-07-09T15:45:59.836153 | 2020-03-09T17:33:39 | 2020-03-09T17:33:39 | 246,098,719 | 0 | 0 | null | 2021-06-10T22:42:48 | 2020-03-09T17:24:47 | JavaScript | UTF-8 | Python | false | false | 551 | py | # Generated by Django 2.0.1 on 2020-03-05 07:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0003_auto_20200305_0711'),
]
operations = [
migrations.AlterField(
model_name='p_country',
name='country'... | [
"sumitkr0433@gmail.com"
] | sumitkr0433@gmail.com |
c21a0594d2b898de9de8fc8a289f98c0f7e5b6ff | 9ce4b69061f4748274363bb7507e08daac27af20 | /learnPythonTheHardWay/ex19_1.py | 9d4e1f5ac5a9bdc17c7aecee47c57a4ce600bc50 | [] | no_license | vincentfengzi/MyPython | 6f5210c4444acf733201184bcc2f49ac260c52f3 | 53b69ae61479e08a8fa1817af48d7c732743c643 | refs/heads/master | 2016-09-05T15:03:56.477327 | 2014-05-01T09:55:38 | 2014-05-01T09:55:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | def cheese_and_crackers(cheese_count, boxes_of_crackers):
print "You have %d cheeses!" % cheese_count
print "You have %d boxes of crackers!" % boxes_of_crackers
print "Man that's enough for a party!"
print "Get a blanket.\n"
print "We can just give the function numbers directly:"
cheese_and_crackers(20, 30)
pr... | [
"vincentfengzi@gmail.com"
] | vincentfengzi@gmail.com |
4f90edbfa27a7a5fcd2c4f47a79e8b512b9b7240 | 8c049fe7e5b8ef5ab948a725938b957b843e0e44 | /functions/calcu.py | 5f89ef80c95024ab8ab7827cd4b4fc649bdc3227 | [] | no_license | Anandhukrishnan201/an2211 | d7f4e258b2503202b81bfd4ae2f38d56ac87258f | 0be553bf29f5a3a39e310a94e8da8d0763cef7be | refs/heads/master | 2023-02-28T03:59:47.821397 | 2021-02-04T06:01:25 | 2021-02-04T06:01:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import mymathmodule
addres=mymathmodule.add(100,200)
subres=mymathmodule.sub(10,30)
print(addres)
print(subres) | [
"krishnananandhu178@gmil.com"
] | krishnananandhu178@gmil.com |
0216f131338632fa93bc6d5b2d6f11c9f796289a | 46c016bff7eea0813e1059c9047be03b8221d6cd | /class18-2.py | 80ea5bb4ea8cdf2d57f1dc2a92058c3fa9077e3b | [] | no_license | idealhang/Python | e61aec641469c063767fbcfe0acf3750126cebb6 | 8c8cc0f4fa5cf86b868db6c5fed5ed0aa73c7da7 | refs/heads/master | 2020-12-02T19:19:43.568710 | 2017-07-14T09:59:56 | 2017-07-14T09:59:56 | 96,325,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | string1 = input('请输入目标字符串:')
string2 = input('请输入子字符串(两个字符):')
def newfun1(string1,string2):
time = 0
for i in range(len(string1)-1):
if string1[i] == string2[0] and string1[i+1] == string2[1]:
time += 1
return time
print(newfun1(string1,string2))
... | [
"idealhang@gmail.com"
] | idealhang@gmail.com |
e2943f26955ebee0608471f0d654bb84598d1fd0 | 0f1de42dbe63fb975a1a51ccee277bf2bb7c65ae | /migrations/versions/ff968a58af09_initial_migration.py | 7d2d1dd7841d1929e984c33bdd0b0e2ff3692b63 | [] | no_license | Merisit-Wang/flask-example | 6f12a50c167a5b1d09a9842d648dabcc8c953213 | 74aae642dd7b640a0ebd9db8e23666d89a07a345 | refs/heads/master | 2021-09-10T05:32:14.825751 | 2018-03-09T08:24:15 | 2018-03-09T08:24:41 | 126,128,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | """initial migration
Revision ID: ff968a58af09
Revises:
Create Date: 2018-03-08 20:51:49.189264
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ff968a58af09'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | [
"wang.zhuohui@zte.com.cn"
] | wang.zhuohui@zte.com.cn |
81a57cd8a99f18eced67a63639f21d53f756df5d | 9d30115d59ed821a5c7aecf2318b5e0ed22c9676 | /src/codewars/python/8kyu/binary_addition.py | c09a98f894ac53f951b41e2efa477772038c98b0 | [] | no_license | garigari-kun/til | 02c7bf05274d1077b454e1f7d4a7355849441524 | b71f36a66045ab7da7f4a97f7e18de2aaa05f493 | refs/heads/master | 2020-04-16T02:13:45.727909 | 2018-12-16T01:26:40 | 2018-12-16T01:26:40 | 56,369,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | """
7kyu
Binary Addition
Implement a function that adds two numbers together and returns their sum in binary. The conversion can be done before, or after the addition.
The binary number returned should be a string.
"""
def add_binary(a,b):
answer = a + b
binary = bin(answer)[2:]
return binary
| [
"keisuke.cs@gmail.com"
] | keisuke.cs@gmail.com |
7ad7304a0a5c74315c85c9ac305b375cc5df07f7 | c782c37a2171454329f7dafa0874e15118311ee7 | /config.py | 2c21a46335abe335928a9425d3be19c43d78093d | [] | no_license | cscyuge/declare-bart | d1e6c5635ef328b9b2eeec412262cb8c6b943d0b | febba59ca743df765d135f2ce327c8a6b8590681 | refs/heads/main | 2023-09-04T17:01:21.449187 | 2021-11-15T18:36:07 | 2021-11-15T18:36:07 | 428,369,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # coding: UTF-8
import torch
import torch.nn as nn
from transformers import BartTokenizer
class Config(object):
"""配置参数"""
def __init__(self, batch_size, bert_path):
self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # 设备
self.require_improvement = 1000 ... | [
"1224335377@qq.com"
] | 1224335377@qq.com |
310fd744ce609c956b98f3612d113cfe7900969b | 91182152fc85da43959837edc3329c95261ed388 | /Analysis PY code/MeanPathLength/meanPath.py | 68cb4c8f560c0608e3055f38497ab4a7a34d5933 | [] | no_license | tianchi03/Ant_Simulation_Analysis | e66bfddb24ca1142895db6903f2f239a47698c11 | d4b7f730cc3f6a1af9e9ebbf6aa1bed0fd98593c | refs/heads/master | 2021-01-16T14:04:35.641123 | 2017-11-18T22:03:51 | 2017-11-18T22:03:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,901 | py | # Calculate MEAN PATH LENGTH
import csv, sys, argparse
import os
import numpy as np
from array import *
import locale
import numbers
import glob
import decimal
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import matplotlib.pyplot as p... | [
"yaofengwang729@hotmail.com"
] | yaofengwang729@hotmail.com |
92c251b45041ecab3fecb2bad3ffe1b57e49af74 | 9f4cfd09990773a7f674cea83a1d688397cf6e95 | /products/models.py | 525962efff97b140e59bf0059a3a0ea6a22c9b1e | [] | no_license | qichengjian/django | dbad382eacc39e5b195d8d5bbb4c1086fdd2fd52 | 2c80694e918aac0c9e4a82a539e01779f69355d2 | refs/heads/master | 2022-09-06T22:59:44.784185 | 2020-05-29T02:58:45 | 2020-05-29T02:58:45 | 267,750,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from django.db import models
class Product(models.Model):
name = models.CharField(max_length=255)
price = models.FloatField()
stock = models.IntegerField()
image_url = models.CharField(max_length=2083)
def __init__(self, name):
self.name = name
class Offer(models.Model):
code = mode... | [
"qichengjian2@163.com"
] | qichengjian2@163.com |
288de51aecb74984b26d4c45de7430cecdb35121 | 6c48ad953031fd6be870e8bd8775538b9ac7033e | /python/demo06/demo06_multi_inherit.py | 4d65f096931f3671905f96e664f5289bfe015bca | [] | no_license | yeswhos/Code-Practice | b080c9484f510d02c2d78e388fc03eedc397aa7b | 0fd8263a5c87dbd0e8b1dd5a38f32a188870308b | refs/heads/master | 2023-04-08T13:11:06.105039 | 2023-03-16T11:34:03 | 2023-03-16T11:34:03 | 247,809,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | class A:
def demo(self):
print("self方法")
class B:
def test(self):
print("test 方法")
class C(A, B):
pass
c = C()
c.demo()
c.test() | [
"yeswhos@outlook.com"
] | yeswhos@outlook.com |
e6c752bba55bc005223a795821bd8aa1cb76ec92 | 41c9fde93aeb2afbbe10032a6a5b326573675220 | /notify/models.py | cd84534c00eb3f0ca55493ff698a79c8a5e6542a | [] | no_license | yindashan/nuri | 99dd6c2b944c9014391817018bf9406c40699cfd | a9bda6e88d1dd0db3517d068f540dba6c64bcc74 | refs/heads/master | 2021-01-22T11:46:54.758649 | 2014-10-20T10:36:19 | 2014-10-20T10:36:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,613 | py | # -*- coding:utf-8 -*-
# 所有主机和硬件报警都通过此模块发出
import json
from celery import task
from utils.sms import sms
from utils.mail import send_mail
from appitem.models import AppService, AppRelation
from datetime import datetime
from django.conf import settings
# 异步处理主机存活事件的通知
@task
def notify_host(criterion, host, state, now_... | [
"="
] | = |
11155037fa8a2a647ca6bb086624a0138afc34dc | 3d4fcc7cbfafc4aaebea8e08d3a084ed0f0d06a1 | /Programme_2/Creation_donnees/MIDI/grieg_berceusefMidiComplet.py | c3ece892e9ad8431e2d89671e0cefe3dd8e43248 | [] | no_license | XgLsuLzRMy/Composition-Musicale-par-Reseau-de-Neurones | 0421d540efe2d9dc522346810f6237c5f24fa3bf | 518a6485e2ad44e8c7fbae93c94a9dc767454a83 | refs/heads/master | 2021-09-03T20:43:01.218089 | 2018-01-11T20:02:00 | 2018-01-11T20:02:00 | 106,448,584 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 133,069 | py | midi.Pattern(format=1, resolution=480, tracks=\
[midi.Track(\
[midi.TrackNameEvent(tick=0, text='Grieg: Berceuse Opus 38 Nr. 1', data=[71, 114, 105, 101, 103, 58, 32, 66, 101, 114, 99, 101, 117, 115, 101, 32, 79, 112, 117, 115, 32, 51, 56, 32, 78, 114, 46, 32, 49]),
midi.CopyrightMetaEvent(tick=0, text='Copyright ... | [
"jeremy.catelain@insa-rouen.fr"
] | jeremy.catelain@insa-rouen.fr |
ffe913af47e6b0a3fd7032a6df22169bc4c44705 | 690d7d243d891363754f117d390f4fbd0b76b72f | /MLDetection/data/config.py | ec0128fd0084043a26c2c83bf84fc273adfbc01b | [
"MIT"
] | permissive | danielpm153/STA-Drone | 7d01d21c0cc274f2cc148d1f27a52e43326fff33 | 00ce789f9edc320c08f6b89162243ca20f2661ca | refs/heads/main | 2023-07-23T10:33:11.149401 | 2023-07-09T23:50:21 | 2023-07-09T23:50:21 | 306,074,487 | 1 | 0 | NOASSERTION | 2020-11-14T17:47:48 | 2020-10-21T15:50:23 | Python | UTF-8 | Python | false | false | 1,151 | py | # config.py
import os.path
# gets home dir cross platform
HOME = os.path.expanduser("~")
# for making bounding boxes pretty
COLORS = ((255, 0, 0, 128), (0, 255, 0, 128), (0, 0, 255, 128),
(0, 255, 255, 128), (255, 0, 255, 128), (255, 255, 0, 128))
MEANS = (104, 117, 123)
# SSD300 CONFIGS
voc = {
'num_... | [
"noreply@github.com"
] | danielpm153.noreply@github.com |
413474a760308bf88a6a3ebde1388f0ecb9fd668 | 10939202b5fa708826d8a7f3f9b2461d1b560595 | /app/Modules/ProjectRouting/Software/IOSXE.py | af938e357ff5ed7c11246da16fd6e991d68c3a25 | [
"MIT"
] | permissive | cober2019/IOS-XE-Routing | c9ff6f97c75e667f93adfc7f13c1bbd03fb28683 | 67b5a8414434480673c4beaf791c015b7f6aaa89 | refs/heads/main | 2023-02-02T10:16:14.810524 | 2020-12-22T06:13:22 | 2020-12-22T06:13:22 | 322,726,076 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,221 | py | """Helper class to parse routing entries and store to sql database"""
from app.Modules.ProjectRouting.Database import DatabaseOps as DataBaseOps
import ipaddress
def get_vrfs(netmiko_connection: object):
"""Using the connection object created from the netmiko_login(), get routes from device"""
vrfs... | [
"noreply@github.com"
] | cober2019.noreply@github.com |
4fe5c45b4277ff4e21f514eb7df9e29e1b8009d9 | 1cf1e2aea7ebf3c65230c7e5e5c0ac7d76de1f88 | /evy_worker/app.py | 727ddaf2c2dd60178c66af23641213d676d19d1d | [
"MIT"
] | permissive | matrixise/evy-worker | 5998591922b7741bda4dbfe9fc6794434260fbea | a17662c24794521603d05cbbe4d542ad186d6eed | refs/heads/master | 2021-01-21T17:46:10.780543 | 2013-09-15T09:08:15 | 2013-09-15T09:08:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # -*- coding: utf-8 -*-
import contextlib
import datetime
import functools
import logging
import os
import socket
from redis import Redis
from rq import Connection
from rq import Queue
from rq import Worker
import redis
import stevedore
import jinja2
import outbox
def main():
with Connection():
queues ... | [
"stephane@wirtel.be"
] | stephane@wirtel.be |
ee2ea15fba3aac7ae7a3d6f6108da31b6335cbf8 | 9c3cf79efb9f8e790aa12188dfe4ce51d8988081 | /NeuralNetworksTensorFlow/TensorFlowClass/TFObject.py | 2688a0f1d065a6dd213c180466cf51619ae7cd66 | [
"MIT"
] | permissive | fawq/NeuralNetworks | b93a29fe4c3c968d53f0b4618ee7d01b1867d93d | 67342cc2ae2311c490d83e51053b303a0075cc62 | refs/heads/master | 2020-04-21T06:59:18.920979 | 2019-02-13T12:58:34 | 2019-02-13T12:58:34 | 169,380,753 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,745 | py | import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np
class TFObject:
def __init__(self, array_of_lengths, all_data, function, loss_function, soft_max=True, batch=100, display_step=100,
number_of_iterations=5000, my_stddev=0.1):
self.all_data = all_data
self.a... | [
"krystian.adr@wp.pl"
] | krystian.adr@wp.pl |
5905b8be68fc1ad694987dbbf07ef88eae1b7e9e | 4749276f3075c477598eba4be32db32e23226f86 | /MyLife/highstep_MT.py | 0c6448f53e4c02d9187f8fea12f11735ea7a20cc | [] | no_license | hangdragon/DNN | 1eca7268f72e412cca4624e3236736e3f22d7921 | 1bc80d067a74168d8eaf452e54eb2f1e97a62036 | refs/heads/master | 2022-07-31T18:04:47.551383 | 2020-05-25T13:34:45 | 2020-05-25T13:34:45 | 266,782,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | # -*- coding : utf-8 -*-
import random
print('하이스텝 글램핑 인원들을 랜덤하게 4개의 조로 편성할 예정이다.\n')
dict_teams = {
'1조' : [],
'2조' : [],
'3조' : [],
'4조' : []
}
people = []
print('글램핑 엠티를 가는 인원들을 추가하세요.\n')
while('quit' not in people) :
people.append(input('>>> '))
people.pop() # quit제거
select = ['1조','2조','3... | [
"hanjiyong@HANui-MacBookPro.local"
] | hanjiyong@HANui-MacBookPro.local |
664c79325bcdd2e1883d7bd742ffa3d42100c12d | 98f4348876c04eb262ff4a504cb77ae9d8beb065 | /prepare_data/esc50.py | 67da52c677a41926b9030c12660928a171834215 | [] | no_license | ankitshah009/urban-sound-classification-and-comparison | 54af7b5f223781dad46b45c5291f293c00df3a19 | e8775f0242cc955e990da33d4e6824dfb0b0546d | refs/heads/master | 2023-01-27T13:09:26.711138 | 2020-12-11T23:06:00 | 2020-12-11T23:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,835 | py | #%%
import os
import shutil
import torchaudio
import pandas as pd
import numpy as np
from joblib import Parallel, delayed
from tqdm import tqdm
from torch.utils.data import Dataset, Subset, DataLoader
from torchvision.datasets.utils import download_url, download_and_extract_archive
def one_hot(idx, num_items):
re... | [
"augustin.arnault@etu.imt-lille-douai.fr"
] | augustin.arnault@etu.imt-lille-douai.fr |
4b19a9240caf8444903e5d63c5d4e11a4966f9b8 | 71d8a689da699a7d3538895394a44e928e02b831 | /svn/svn.py | 040a876305eb2961bf2b98ff4dcb811204a49cc2 | [] | no_license | whd376908943/python | 622bbf44bd4e9979609552ddd8f933c387b5aa0e | 9f76288ba42f0ccb31924d9b0976289b65876833 | refs/heads/master | 2020-05-22T08:12:02.372898 | 2018-11-26T10:22:20 | 2018-11-26T10:22:20 | 64,537,457 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | # coding:utf-8
import smtplib
from email.mime.text import MIMEText
path = r'C:\Users\wanghuidong\Desktop\VisualSVN-SvnAuthz.ini'
user_filter = [
'xuewentao',
'xuejie'
]
project_filter = [
'/trunk/outside/arch-base'
]
def get_content(path):
f = open(path, 'r')
content = f.read()
f.close()
... | [
"noreply@github.com"
] | whd376908943.noreply@github.com |
acdf4977672dbda2425b7f78c305dc1d7776bfe6 | 0c12d94714546d38266314f4858fa484136f02dc | /fluent_utils/django_compat/django14.py | 8e20d3f46f6f4a1ba1d1a2fc5e03abde5af259fc | [
"Apache-2.0"
] | permissive | benkonrath/django-fluent-utils | a63504dbccd3e21b3c88b04665f48f4721848d40 | 5e90dfe5f7b22ca2c2fe942c304e51981e170ba6 | refs/heads/master | 2021-01-01T04:04:01.452357 | 2017-05-22T11:10:44 | 2017-05-22T11:10:44 | 97,116,253 | 0 | 0 | null | 2017-07-13T11:43:06 | 2017-07-13T11:43:06 | null | UTF-8 | Python | false | false | 1,084 | py | # The timezone support was introduced in Django 1.4, fallback to standard library for 1.3.
try:
from django.utils.timezone import now, utc
except ImportError:
# Django < 1.4
from datetime import datetime
now = datetime.now
utc = None # datetime(..., tzinfo=utc) creates naive datetime this way.
#... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
4ab01a34ac9e37d1b7f5c1faf11b4a9767faa35a | f86848945a7d51d84b7965e4b82a9eacdf5f3694 | /courseManagerIS.py | 6f4b73f3262d3f9e5813c7fc6b704abfcaebce3a | [
"MIT"
] | permissive | P-ssh/Interactive-alphabet-learning | 97481caf076ad02602e7a2491d9dc7e2c4b267aa | c531a91a195b94ffe37f63314a7cd4850675b499 | refs/heads/master | 2021-04-03T08:15:49.228758 | 2018-05-21T19:27:30 | 2018-05-21T19:27:30 | 124,445,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,863 | py | #!/usr/bin/env python
# coding=utf-8
from collections import Counter
from random import shuffle
import argparse
import inspect
import codecs
import random
import json
import os
import re
parser = argparse.ArgumentParser(description='This script is used to create course templates in "qdef" format which are used to \
... | [
"radim.jasinsky@gmail.com"
] | radim.jasinsky@gmail.com |
b0cb09d3ecddb96e74c6c65b90d930b3c75f9891 | c7e5b6e536cc602e37f0fafc44dc768067053ddc | /backend/app/utils.py | 46be9b09694f879444b91072f68e22426af07d0c | [
"Unlicense"
] | permissive | YanaShift/monorepo | ad3afe0c8e2bb14c7a3f9785f14a815700993ce1 | de616c4c2e91391f57ad3775fecf52dd8a48b402 | refs/heads/main | 2023-02-19T07:54:40.250578 | 2021-01-22T14:57:33 | 2021-01-22T14:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | def get_film_id(id):
"""Pad film ID to be 10 characters in length"""
return "{:<10}".format(str(id))
def get_person_id(id):
"""Pad person ID to be 10 characters in length"""
return "{:<14}".format(str(id))
def resultproxy_to_dict(resultproxy):
d, a = {}, []
for rowproxy in resultproxy:
... | [
"alexbatashev@outlook.com"
] | alexbatashev@outlook.com |
0e8b695fcbcdfb3560293c8fb8432f847ce0f5c6 | 1d365530f50441b28657d668ab6ef372a73576a2 | /test/functional/test_framework/address.py | 717382c4292cb83ec996965c6ef6958f6f36cf46 | [
"MIT"
] | permissive | jimender2/billcoin | 6facf6897a5e1606a75326aa514c6acf44591519 | 95d4a9a2d9412d7523a2bd14f90ce39b687b130f | refs/heads/master | 2023-04-08T23:24:05.088091 | 2021-04-07T16:25:23 | 2021-04-07T16:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Encode and decode BASE58, P2PKH and P2SH addresses."""
from .script import hash256, hash160, sha256, C... | [
"hashgrind@dc614.org"
] | hashgrind@dc614.org |
f114ed2fcd6d274374112b90b673fd5f20041915 | 69dfce5faf54bc7ff733b0dc0b34eb990f54b0cc | /layers.py | 16b5c9c74a1faef9b03c5a5c0cdff4903b2e2a34 | [] | no_license | Ferretelic/Transformer | 9172d0c285ae9664bb510fc45e8572168a887874 | 8a81648e6d3e54424b72348a0087707d2221d0e6 | refs/heads/master | 2023-03-21T19:34:45.646713 | 2021-03-19T10:18:22 | 2021-03-19T10:18:22 | 349,381,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,758 | py | import torch
from torch import Tensor
def scaled_dot_product_attention(query: Tensor, key: Tensor, value: Tensor) -> Tensor:
temp = query.bmm(key.transpose(1, 2))
scale = query.size(-1) ** 0.5
softmax = torch.nn.functional.softmax(temp / scale, dim=-1)
return softmax.bmm(value)
class AttentionHead(torch.nn.Mo... | [
"kyleshouki@gmail.com"
] | kyleshouki@gmail.com |
adff4490541d3948b324a3de02eae2707186506b | c9803742c6829d21bb253857f174b159e6d70f7e | /cls/crawler.py | 3bf19b9cdb4371a7fa0bdd34690a34c12da6f43e | [
"MIT"
] | permissive | sinnettluo/JS-Crack-Records | 00ca4a2602d05d4117db66a2e99f1207a375e8d6 | 6a4a6c3b5dfee23ea9524da1e5521cece0098562 | refs/heads/main | 2023-07-01T14:19:20.950768 | 2021-08-14T05:45:26 | 2021-08-14T05:45:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #!usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2021/2/22
# @Author : Shufei Lei
# @Software : PyCharm
import requests
import hashlib
import time
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705... | [
"leishufei@users.noreply.github.com"
] | leishufei@users.noreply.github.com |
c55d5cba7ae92394bec448efc79f381d3499f718 | 379c23894975540fec12b8b5d8ec88a314a66e45 | /123test.py | 5b8895443ba045b0f642ed4615399c50df3acbea | [] | no_license | vovanukycc/tch | 60568cc75b3e13a9535c938fe1bb84257f3bc1fc | b0be443a157bec081e74b7fe7022fe515e4ee3a5 | refs/heads/master | 2021-01-10T01:31:19.992127 | 2015-11-18T09:34:39 | 2015-11-18T09:34:39 | 46,255,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | injbhubuhb
buhvvgvg
vbjh
| [
"vovanukycc@mail.ru"
] | vovanukycc@mail.ru |
1b78cc577698eec7e326c76fd1cddf4ed6124c76 | d71500001aeb773703a20254cb002934d4729dc4 | /mininet_dev/network_utils.py | 739db0e9bb408b7e0440fee56f0cd2c3eed251a8 | [
"Apache-2.0"
] | permissive | dschoonwinkel/MininetNetworkHelp | 374e4234be440833039082377fd853c74eb7ba75 | 48cddd94f84be3927c15926f1c046a99f36cefd2 | refs/heads/master | 2021-01-01T18:39:59.453554 | 2017-07-26T08:33:19 | 2017-07-26T08:33:19 | 98,396,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,791 | py | import subprocess
import scapy.all as scapy
import coding_utils
import logging
import logging.config
logging.config.fileConfig("logging.conf")
logger = logging.getLogger("nc_node.network_utils")
def get_first_IPAddr():
result = subprocess.check_output(["ifconfig"])
# logger.debug('output = %s' % result)
... | [
"daniel.schoonwinkel@gmail.com"
] | daniel.schoonwinkel@gmail.com |
430e054cf03939ceee5e60bb7f954ec9bdb60bc1 | e7d3fc1ad20d1e50a4aaf7d1ff2ddad4b5183eb5 | /ao3/tags.py | fc005cc28e00c0b60b7dd4023b680338f6250e9c | [] | no_license | michelleful/WritingAdviceAdvice | 177c4e4f062d9b8a1ad02a5371252cb010bae927 | 7f507daaa4bf6268312d89151b91785366ed515e | refs/heads/master | 2021-01-23T16:35:57.278085 | 2015-10-05T13:45:28 | 2015-10-05T13:45:28 | 38,722,568 | 0 | 1 | null | 2015-08-28T21:51:17 | 2015-07-08T00:34:08 | Python | UTF-8 | Python | false | false | 6,650 | py | """
This script looks at the filtered list of fics from a fandom,
(1) isolates the tags, (2) resolves tags to their canonical forms
and (3) drops rare ones (in two steps - first tags that AO3 considers
rare and unfilterable, then tags that are underused in the corpus
we are gathering. This number is specified in config... | [
"michelle.fullwood@gmail.com"
] | michelle.fullwood@gmail.com |
d90f4369eda32033895fa9220a27335f7cc4ce82 | 7d760845b0525ad6875e1073bea3e605962703ad | /Part 3/aavail-app/model.py | c7ec1d8073bc93218a3b24227fd1a0f12d2aeaac | [] | no_license | N-otna/aavail-ai-workflow-capstone | e98d43d9a6fd47a1e30b2fdf4207b0abddd59a90 | 0f71cf17af348ddf8ff404304549e1ab09002e8d | refs/heads/master | 2022-12-23T19:36:59.902491 | 2020-09-29T15:44:17 | 2020-09-29T15:44:17 | 299,651,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,004 | py | import time,os,re,csv,sys,uuid,joblib
from datetime import date
from collections import defaultdict
import numpy as np
import pandas as pd
from sklearn import svm
from sklearn.model_selection import train_test_split, GridSearchCV
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_square... | [
"anton.ryjov@ibm.com"
] | anton.ryjov@ibm.com |
9c36157e8926886ca5d4a81e0fa551ef34d12424 | 37eef49ee3567cfd1fdc2cafc98333768fbc5fc2 | /初日にやる問題25問/21-String-Transformation.py | d9d7a9326647b0d74ec4ce3c5e4c6ed0d21532f3 | [] | no_license | supan30888/Python-Kiso | 4bb846d0e8b6822c7182f264ba9df73978a62169 | ea1e702dd48dbd59babd84df712532c5d98d471a | refs/heads/master | 2020-08-05T20:18:46.252141 | 2016-05-24T05:49:06 | 2016-05-24T05:49:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # 21-String-Transformation.py
# 文字列変換
# 文字列 str に対して、与えられた命令の列を実行するプログラムを作成してください。
# 命令は以下の操作のいずれかです:
# print a b: str の a 文字目から b 文字目までを出力する。
# reverse a b: str の a 文字目から b 文字目までを逆順にする。
# replace a b p: str の a 文字目から b 文字目までを p に置き換える。
# ここでは、文字列 str の最初の文字を 0 文字目とします。
# Input
# 1 行目に文字列 str が与えられます。str... | [
"kawasaki.koki@tis.co.jp"
] | kawasaki.koki@tis.co.jp |
86b6ece463d795bad09ecf3586f1a5bd87804f49 | a273c33036b697eaa90b01a22e5f01a31c61fda5 | /exercises/perfect.py | ad5bc14d7886bac6fcd0b5e7e238cf09dc5c097c | [] | no_license | allaok/codestores | 1a55ed8798f6c99476fe24f27fda9a3c3fa03116 | f000bbb2518a8202875cbbcf6cc3a11e57db5792 | refs/heads/master | 2021-01-19T05:44:06.981591 | 2015-07-29T22:56:16 | 2015-07-29T22:56:16 | 39,902,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | #!/usr/bin/python -tt
__author__ = 'Alexis.Koalla@orange.com'
def isPerfect(n):
a = 1
s = 0
while a < n:
if n % a == 0:
s = s + a
a = a + 1
if n == s:
return True
else:
return False
def perfects(n):
print("Nombres parfaits inferieurs ou egaux a ",... | [
"alexis.koalla@orange.com"
] | alexis.koalla@orange.com |
5b61c8dca9c463fa5b339088beee8f21c409400a | 315ff6dcb83d4ca131d5b1cbc4b4c10d011e3977 | /api.py | 15ef3abc2a04a3cd6ea1fb1f76a25358d60aa7f6 | [] | no_license | anth7310/Covid19-ETL-API | bc8b03eff688e8176f900497c87df624ee949db9 | 46752f7e8f2b8088a3dc4944cce811546dd12d50 | refs/heads/main | 2023-02-01T14:56:44.934692 | 2020-12-18T01:17:31 | 2020-12-18T01:17:31 | 322,416,881 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | import sqlite3 # to connect to database
import json # response returned by API
from flask_api import FlaskAPI # API library similar to Django
from flask import request # for GET request parameters
db_name = 'example'
app = FlaskAPI(__name__)
app.config["DEBUG"] = True
@app.route('/country', methods=['GET'])
def coun... | [
"noreply@github.com"
] | anth7310.noreply@github.com |
ace2aa71b73969918e51d6429a1fe2aaf0a19b23 | bf25fefb758ee84ffa1648dfde281444768459aa | /glu/lib/remap.py | 978dd419b5d7a55967995374dd26c3723bdb437a | [] | no_license | PiRSquared17/glu-genetics | 8b5dd779909075fd52403a58c08ba53b23e4140c | dcbbbf67a308d35e157b20a9c76373530510379a | refs/heads/master | 2020-05-18T03:46:12.539317 | 2013-11-08T13:41:37 | 2013-11-08T13:41:37 | 32,190,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,136 | py | # -*- coding: utf-8 -*-
__abstract__ = 'Remap alleles'
__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'
__license__ = 'See GLU license for terms by running: glu license'
__revision__ = '$Id$'
import unittest
f... | [
"jacobs@bioinformed.com"
] | jacobs@bioinformed.com |
be74b05e0005a15ed031f3e44126ea6e88beeb63 | 34876b55af2c25629a7617a329f209de6c9f274f | /snippets/migrations/0001_initial.py | 4370690cebe4880a7be78f7d101da2b87b1a8445 | [] | no_license | Fastwriter/django-rest-framework-tutorial | 350a239b85e31ebd7e3f0946e7841d1aa04fe165 | 72429f51d645d6c2357ae8107bb6021ef2cb5a9e | refs/heads/master | 2020-04-11T13:08:53.681228 | 2018-12-14T15:40:45 | 2018-12-14T15:40:45 | 161,805,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,339 | py | # Generated by Django 2.1.4 on 2018-12-13 08:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Snippet',
fields=[
('id', models.AutoField(... | [
"demeuov.daulet.nis.ura@gmail.com"
] | demeuov.daulet.nis.ura@gmail.com |
48e340c64058cdcd139c49976953b105c80bcb92 | 67fe3c42c198d092f92bd36dd5c42acacaab8888 | /tethysapp/waterwatch/public/v4.3.4/apidoc/ol.format.filter.LogicalNary.html.py | b273b110712c7f35deadd5b32cf2efb746ee3d41 | [] | no_license | ablaye/wendou | c69de45124e27a8238c880e0ca2ed91596e32dc7 | 10638700a2a416778407c2fe3f08ffe48da85cc2 | refs/heads/master | 2023-04-22T01:21:41.948075 | 2021-02-04T10:20:58 | 2021-02-04T10:20:58 | 335,915,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653,515 | py | XXXXXXXXX XXXXX
XXXXX XXXXXXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXX XXXXXX XXX X XXXXXX XXXXXXXXXXXXXXXXXXX
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXX
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | [
"satigebelal@gmail.com"
] | satigebelal@gmail.com |
e2f1489209bafaebfdd795a8c80d961443cae803 | 5e5085e74c1a5b3759e0d35ad5295c27df587898 | /weather/views.py | 0f67d8f0c8b4242155ca640a448889fdb59b0e5d | [] | no_license | Rekets/diploma | fc9698cba5a0959683250c91d018e9ca29fd1448 | c265d5a7c6e72b7bf3e8a6509b9fd6c1e7d86115 | refs/heads/master | 2023-03-27T13:42:00.040350 | 2021-03-21T18:33:46 | 2021-03-21T18:33:46 | 346,130,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | import requests
from django.shortcuts import render
from .models import City
from .forms import CityForm
def index(request):
url = 'http://api.openweathermap.org/data/2.5/weather?q={}&units=metric&appid=06a9524d385dce1ede0aa8da5fcb9d65'
if request.method == 'POST':
form = CityForm(request.POST)
... | [
"73691955+Rekets@users.noreply.github.com"
] | 73691955+Rekets@users.noreply.github.com |
8fc3a3f8c20a6bc76e5752c27306cec10d45f920 | 5fcb058146872dbe4cc29785effe25a0c597cd51 | /Credit Card Fraud Detection (Jupyter Notebook).py | c099bcf44f49c26d58858b2e57be6db2e553d1f7 | [] | no_license | Akash9768/Credit-Card | 3d049d8c2c5dd0a73f549243f2b1a5413c254e99 | 782e4be549a001bf18ccb58e0552de88984de231 | refs/heads/master | 2020-04-08T09:56:18.792657 | 2018-11-27T03:05:18 | 2018-11-27T03:05:18 | 159,246,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,186 | py |
# coding: utf-8
# # Credit Card Fraud Detection
# ### Presented by Eduonix!
#
# Throughout the financial sector, machine learning algorithms are being developed to detect fraudulent transactions. In this project, that is exactly what we are going to be doing as well. Using a dataset of of nearly 28,500 credit card... | [
"41970418+Akash9768@users.noreply.github.com"
] | 41970418+Akash9768@users.noreply.github.com |
9854c422ac2f90220f55dde8a71086e0fc9de277 | 4c91490373be8867d47a01a181a8257e503236e1 | /Level 1/두개 뽑아서 더하기.py | 1cb9ae1671f978983f0ca5fb93453b00662f303a | [] | no_license | dohee479/PROGRAMMERS | bc1b9d8ad4841e96f8dbe650cb1e70064e4a1bd5 | 398261d5c340de5b0135c4bad6858d925c94482d | refs/heads/master | 2023-03-23T17:28:35.191331 | 2021-03-12T16:53:47 | 2021-03-12T16:53:47 | 298,023,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | def backtrack(numbers, index, cnt, m, result):
global visited
if cnt == m:
answer.add(result)
return
for i in range(index, len(numbers)):
if visited[i]:
continue
for j in range(i + 1):
visited[j] = 1
backtrack(numbers, i + 1, cnt + 1, m, resul... | [
"dohee479@naver.com"
] | dohee479@naver.com |
7f5d2d413897cdcf870bed1c49e1fa7f416d1c29 | e81dfe9d9004f355d13a30db26ee463407fbb149 | /blog/migrations/0001_initial.py | 4c8b65907814b6d44f8b7971e09fab59a981a4d7 | [] | no_license | srgrbth/my-first-blog | 1044f1f135b6690802ffdc64157579cb9fb26c2d | c0023374777d418c0d6c1285ec93a24ff18ae7f8 | refs/heads/master | 2020-04-05T15:05:23.589283 | 2018-11-17T06:25:46 | 2018-11-17T06:25:46 | 156,952,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-09 05:09
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dep... | [
"btaehun@empal.com"
] | btaehun@empal.com |
db7866ec7404f6dd421813f8b907a8f0bdfcfd51 | 940761aecb6003e7e180fbaf74fff898a07a9935 | /code/swisslog/Model/perf_predict.py | be12accd858945e591153109383d96697c87d47d | [] | no_license | capwind11/graduate-project | d4424e1bc76a0d7d5fdadc9981cd1be35d2ef6b9 | 5bb284ea556f2e9a7ae0b0c2013a0eeea364374b | refs/heads/master | 2023-03-05T06:48:15.473169 | 2021-02-09T12:28:14 | 2021-02-09T12:28:14 | 337,395,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,595 | py | import torch
import torch.nn as nn
import torch.optim as optim
import gensim
import pickle
import time
import numpy
import os
from tqdm import tqdm
from torch.utils.data import TensorDataset
from torch.utils.data import DataLoader
from perf_model import BiLSTM, AC_BiLSTM, Time_BiLSTM
from perf_train import SeqDataset, ... | [
"13048984889@163.com"
] | 13048984889@163.com |
4ee3bef7b091a91ae22384de87fe84585b06deec | aafe508f360781c95b777d93888d790fd6e6bdce | /4월/2022-04-08/baekjoon_1105.py | fc7d7f7e4459bc8e8fcde7218b997f8ec86b9219 | [] | no_license | mimseong/BaekJoon | 74abddab898d3e2d07632a5a46cf32e97084f268 | ce266ed55d35fcea6510cb254ac7c11380c17ddb | refs/heads/main | 2023-08-21T02:12:12.931058 | 2022-05-23T04:14:32 | 2022-05-23T04:14:32 | 184,894,962 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | import sys
input = sys.stdin.readline
l, r = map(str, input().split())
def solution(l, r) :
count = 0
# L과 R의 자리 수가 다르면 0 출력
if len(l) != len(r) :
print(count)
return
# L과 R의 자리 수가 같을 때
# L과 R의 맨 앞자리 수가 같을 때
if l[0] == r[0] :
i = 1
# 맨 앞자리 수가 8일 때
if l[0... | [
"malgamlee@gmail.com"
] | malgamlee@gmail.com |
6f8c1430858a1d50773c27f7a66d2f78b7af6ed8 | a56252fda5c9e42eff04792c6e16e413ad51ba1a | /resources/usr/local/lib/python2.7/dist-packages/scipy/sparse/linalg/isolve/iterative.py | 900364c2141b13046fe9ed63ff04b06df9541251 | [
"Apache-2.0"
] | permissive | edawson/parliament2 | 4231e692565dbecf99d09148e75c00750e6797c4 | 2632aa3484ef64c9539c4885026b705b737f6d1e | refs/heads/master | 2021-06-21T23:13:29.482239 | 2020-12-07T21:10:08 | 2020-12-07T21:10:08 | 150,246,745 | 0 | 0 | Apache-2.0 | 2019-09-11T03:22:55 | 2018-09-25T10:21:03 | Python | UTF-8 | Python | false | false | 21,019 | py | """Iterative methods for solving linear systems"""
from __future__ import division, print_function, absolute_import
__all__ = ['bicg','bicgstab','cg','cgs','gmres','qmr']
from . import _iterative
import numpy as np
from scipy.sparse.linalg.interface import LinearOperator
from scipy.lib.decorator import decorator
fr... | [
"szarate@dnanexus.com"
] | szarate@dnanexus.com |
12861b53b7e8ad5e093c898988983016b1805942 | 6f2f36f875964154aea37f488c14b61d2a48fb09 | /Code/branches/Pre-Prospectus/python/Arnoldi/MonteCarlo/investigate/oldInvestigate/kVariance.py | c6a1337e6e5cd48fd41da7f5cf260ad387895740 | [
"MIT"
] | permissive | yaoayao87/PhDThesis | 67d12e2cfe12012031d3e99b5fa3d5e2607d4aab | 8e704613721a800ce1c59576e94f40fa6f7cd986 | refs/heads/master | 2023-03-18T12:08:58.639028 | 2016-03-22T14:47:19 | 2016-03-22T14:47:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | __id__ = "$Id: kVariance.py 155 2007-08-31 20:11:54Z jlconlin $"
__author__ = "$Author: jlconlin $"
__version__ = " $Revision: 155 $"
__date__ = "$Date: 2007-08-31 14:11:54 -0600 (Fri, 31 Aug 2007) $"
"""This module will investigate the variance of the eigenvalue."""
import random
import math
import sys
i... | [
"jlconlin@lanl.gov"
] | jlconlin@lanl.gov |
536e71273f02e7028fe26d6242db9bada2af0dcc | 7a4da5ec2196bf975a9e6115846244788b36b952 | /3.7.0/lldb-3.7.0.src/test/macosx/safe-to-func-call/TestSafeFuncCalls.py | 73ae892dc7571294845b8570857cc0d81492d0aa | [
"NCSA",
"MIT"
] | permissive | androm3da/clang_sles | ca4ada2ec85d625c65818ca9b60dcf1bc27f0756 | 2ba6d0711546ad681883c42dfb8661b842806695 | refs/heads/master | 2021-01-10T13:50:25.353394 | 2016-03-31T21:38:29 | 2016-03-31T21:38:29 | 44,787,977 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | """Test function call thread safety."""
import os, time
import unittest2
import lldb
import lldbutil
from lldbtest import *
class TestSafeFuncCalls(TestBase):
mydir = TestBase.compute_mydir(__file__)
@skipUnlessDarwin
@python_api_test
@dsym_test
def test_with_dsym_and_python_api(self):
"... | [
"brian.cain@gmail.com"
] | brian.cain@gmail.com |
beccfc0f8f66bd3341f2441472537b844e447ee7 | 6c020f07fa9c153a00129275b2cb1dae664266b6 | /coreferee/__main__.py | c5172f368abbea3889d544c29b571c3490145921 | [
"Apache-2.0"
] | permissive | fanjiajie1119/coreferee | 3091fce54de29174ef3fa7a98e40ade0311b0177 | 9aa27a32fe5810089c727958a615ead381fbc5d1 | refs/heads/master | 2023-07-15T00:42:17.787321 | 2021-08-24T06:38:56 | 2021-08-24T06:38:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,201 | py | # Copyright 2021 msg systems ag
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | [
"richard.hudson@msg.group"
] | richard.hudson@msg.group |
e34a38323b9438fbe22ee6a1391952e20870ad06 | 87b8f336ad1e354066afaff4c15e13b55465b1cc | /jhdf/src/test/resources/scripts/userblock.py | e40574062295ac70c12aac594502881c97287388 | [
"MIT"
] | permissive | rapidminer/jhdf | 8766fc96977aef2ccebc50e421cb6b236997ac5a | 43b6d318deb2c6a706234b89e87f77854736d48d | refs/heads/master | 2020-08-01T15:42:18.283750 | 2020-01-21T21:48:20 | 2020-01-24T08:46:40 | 211,036,568 | 0 | 1 | MIT | 2020-01-24T08:46:42 | 2019-09-26T08:15:32 | Java | UTF-8 | Python | false | false | 1,105 | py | #-------------------------------------------------------------------------------
# This file is part of jHDF. A pure Java library for accessing HDF5 files.
#
# http://jhdf.io
#
# Copyright 2019 James Mudd
#
# MIT License see 'LICENSE' file
#----------------------------------------------------------------------------... | [
"james.mudd@gmail.com"
] | james.mudd@gmail.com |
2ad3ddcfbcbd4a82b631c5a8043bf7b49de364af | 6db6d7445b51eb6c2aae428f8481dabbd49ba5ec | /TST/MaiorDiferenca.py | 5857e6c8369a3693961c0d85174e76ca9e11a112 | [] | no_license | ManoMax/python-studies | ab16535cab30965710331d1fa6d8e0ecb219b657 | cd73b830f7e2894af4eda700c71e2992b0160f7a | refs/heads/master | 2023-04-18T03:06:12.958281 | 2021-04-26T00:20:35 | 2021-04-26T00:20:35 | 130,414,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | tamanho = int(raw_input())
sequencia = []
var = 0
num1 = 0
num2 = 0
for i in range(0, tamanho):
sequencia.append(float(raw_input()))
for num in range(0, tamanho -1):
if abs(sequencia[num] - sequencia[num+1]) > var:
var = abs(sequencia[num] - sequencia[num+1])
num1 = sequencia[num]
num2 = sequencia[num+1]
... | [
"gatinhogmax123@gmail.com"
] | gatinhogmax123@gmail.com |
f1d4049c0e740cd88f2d72049c4560c6e20082a9 | 0132519519ca110d73c9a1b1acf16a03ca49d8be | /PyNotes/src/main/python/main.py | 903a6d0079341c85b71ad7d9cf80d58a0a1cee24 | [] | no_license | TinaelSanvoisin/PyNotes | c011a8cf178d55ddfdef1390d48f5f49870560e4 | 432fb87d318723c1254759de2342772e2ec848e3 | refs/heads/master | 2020-12-21T19:57:12.351739 | 2020-01-27T16:56:59 | 2020-01-27T16:56:59 | 236,542,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from fbs_runtime.application_context.PySide2 import ApplicationContext
from package.main_window import MainWindow
import sys
if __name__ == '__main__' :
appctxt = ApplicationContext() # 1. Instantiate ApplicationContext
window = MainWindow(ctx = appctxt )
window.resize(250, 150)
window.show()
... | [
"noreply@github.com"
] | TinaelSanvoisin.noreply@github.com |
ae446ea35f374d41094084e531b818b8c3225a25 | 4c439e8e5ba41c43a8039901a3d9a2c0647fd8df | /tsp/tsp4aj_best10.py | c974efd040760da9307b399470184e05c9445148 | [] | no_license | peterwilliams97/sharknado | b9245a843a99aafdda83f5766e35dcc26a13f056 | 2fad922a1a07c5915e8d1727420499bfe0076d27 | refs/heads/master | 2020-04-10T08:10:29.816263 | 2013-08-27T00:52:43 | 2013-08-27T00:52:43 | 11,382,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,303 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
TODO: Lower M for 3-opt
Save more often
M=10 for 33000 instance
"""
from __future__ import division
import math, random
import numpy as np
from itertools import count
import sys, time, os
from numba import autojit, jit, double
import best_history
# 80 forwar... | [
"peter.williams.97#gmail.com"
] | peter.williams.97#gmail.com |
9e35adf10fbd4500cd67406fec4885a968aa5d9d | cf3af5a1c4737972dc6d5898b3d5f9fe20f56c8a | /util/params_encrypt.py | f562668e8662f6ce3132f04b70663ec190e1ee9f | [] | no_license | xingzhe1998/AioMusicSpider | 19a700682d427310a22e69b640b2f857d0ade4f3 | c474effc7ae09a92848ee78808b7575c07061120 | refs/heads/master | 2022-11-19T01:28:28.503289 | 2020-07-20T06:32:52 | 2020-07-20T06:32:52 | 281,033,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import hashlib
class ParamsEncrypt:
@staticmethod
def get_sign(*args, **kwargs):
query = kwargs.pop("query")
_url = kwargs.pop("_url")
xm_sg_tk = kwargs.pop("xm_sg_tk")
prefix_string = ''.join([xm_sg_tk.split('_')[0], '_xmMain_']) + _url + '_' + query
encrypt_params = ... | [
"1632253107@qq.com"
] | 1632253107@qq.com |
a3bcb3b12ffa5667591e5db9b8a96e15969ac8a4 | aa392ec1893bc3655f784b56584ec489176745dc | /Music.py | 281580bdcab73d32a296b28d799a2233192f8618 | [] | no_license | bigsalami88/Tailor-Bot | 7cf23bd5b65e36138fccaca1fe79a9006572f35d | d9be88c64631525d6f80cb6966626ac45b892aa6 | refs/heads/master | 2020-03-19T08:13:31.999019 | 2018-06-05T14:09:17 | 2018-06-05T14:09:17 | 136,185,950 | 0 | 0 | null | 2018-06-05T14:00:43 | 2018-06-05T14:00:42 | null | UTF-8 | Python | false | false | 13,873 | py | import asyncio
import discord
from discord.ext import commands
if not discord.opus.is_loaded():
# the 'opus' library here is opus.dll on windows
# or libopus.so on linux in the current directory
# you should replace this with the location the
# opus library is located in and with the proper filen... | [
"noreply@github.com"
] | bigsalami88.noreply@github.com |
003b0869325795d0e20613fbcd858c7435600cdd | d5ad13232e3f1ced55f6956bc4cbda87925c8085 | /RNAseqMSMS/8-snv-virus-sv/1-integration.py | 28de0f65de0b94bbf61a878cf425349690bcfd78 | [] | no_license | arvin580/SIBS | c0ba9a8a41f59cb333517c286f7d80300b9501a2 | 0cc2378bf62359ec068336ea4de16d081d0f58a4 | refs/heads/master | 2021-01-23T21:57:35.658443 | 2015-04-09T23:11:34 | 2015-04-09T23:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | ### [SNV, Virus, Deltion, Duplication, Inversion, Translocation]
D = {}
inFile = open('sum_snv.exome_summary.overall.filter')
for line in inFile:
line = line.strip()
fields = line.split('\t')
gene = fields[1]
D.setdefault(gene,[0,0,0,0,0,0])
D[gene][0] = 1
inFile.close()
inFile = open('ERR0498-04-... | [
"sunahnice@gmail.com"
] | sunahnice@gmail.com |
674ad7c2490eb113d1ff5457500c8598258b54df | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fCoEGPFCP_template.py | e65f9365f8707673b7cd59d7b4a6b7714c358188 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,422 | py | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class FCoEGPFCP(Base):
__slots__ = ()
_SDM_NAME = 'fCoEGPFCP'
_SDM_ATT_MAP = {
'FcoeHeaderVersion': 'fCoEGPFCP.header.fcoeHeader.version-1',
'FcoeHeaderReserved': 'fCoEGPFCP.header.fcoeHeader.reserved-... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
b85549542113cafe59e2b7480f20d9e8bf195330 | 1318f12643f5cbcaf29664ca3b27d8adb401614f | /2012.py | f8e44e038cc4cf8c2d95051087e4f11f412e0e3e | [] | no_license | jun040105/Python_Practices | ace62984fb7f0810650ca7bc0df1c0682d5ea966 | d3bc0ebda249991eeb48da730cf41940ad5821e4 | refs/heads/master | 2023-08-22T15:22:14.780807 | 2021-09-18T11:31:53 | 2021-09-18T11:31:53 | 397,804,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import sys
x = []
t = 0
for i in range(int(input())):
x.append(int(sys.stdin.readline()))
x.sort()
for i in range(len(x)):
t += abs(x[i] - (i+1))
print(t)
| [
"timmy040105@gmail.com"
] | timmy040105@gmail.com |
9c1ebff143583caed72eccb5483e60f02ed4113a | 93ca62f2fb727c20f1fc5c8d81b7134877e85c6e | /Refactoring/refactoring_3_abstraction.py | e0146c6f647d0d2e91a1e1af6a47ef2590df21a1 | [] | no_license | lily48/oop-python | f607e954d50236f6f8d7844f1c4e29b38c0dbfae | b009cd4477a5045de115e44aa326923a32ba7c1c | refs/heads/master | 2023-01-19T03:39:22.726179 | 2020-11-18T20:38:14 | 2020-11-18T20:38:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | """
Simulate a simple board game.
There are 2 players.
Each player takes turn rolling a die and moving that number of spaces.
The first person to space 100 wins.
"""
import random
class Player:
def __init__(self, player_number):
self.score = 0
self.player_number = player_number
def roll_die(s... | [
"ariannedee@gmail.com"
] | ariannedee@gmail.com |
24b3f0a3f35c782fad07bba37b3f6c9300807c41 | e27660afda2a5740882b73b0be6e7a5d9bcc0cbd | /ledstats/1ms/stats 1.py | 494f7fe886d655f8b9dad3cafb7a9571ad006ff2 | [] | no_license | martinosecchi/pyLIFI | c58897f3ee2b6393381092da49c0291fb02069a9 | 519491be42eeef3075180f5048cd4023cfcacd2b | refs/heads/master | 2021-01-17T04:58:40.012261 | 2017-05-31T20:29:41 | 2017-05-31T20:29:41 | 83,050,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,956 | py | #!/usr/bin/python
import os
import re
import traceback
import subprocess
import math
def main():
predicate1 = re.compile(r'dark(.*).txt')
predicate2 = re.compile(r'dark(.*).txt.png')
locmax = [] # an array of peaks for 1
locmin = [] # an array of 0 peaks
n_samples = 0
files = []
for fn in os.listdir("."):
t... | [
"smart91k@gmail.com"
] | smart91k@gmail.com |
5c95a60905b7a7bda2099078018e15544b41824c | 473625e02c757fd9f9ba58624aa84551280611e3 | /store/migrations/0010_icat.py | d484e1b5289f8c78f96cc0fa8a5342cbe38026ee | [] | no_license | rohitrajput-42/PortalK | 1a15cd182b252de459acc950eb87d3837d7e6ff4 | a5647b560d850c650c9cefae30a43bc7424d188b | refs/heads/main | 2023-01-21T08:50:06.614440 | 2020-11-27T12:58:57 | 2020-11-27T12:58:57 | 314,314,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # Generated by Django 3.1.2 on 2020-11-15 12:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0009_joblist_lcat'),
]
operations = [
migrations.CreateModel(
name='Icat',
fields=[
('id', ... | [
"rohit1471997@gmail.com"
] | rohit1471997@gmail.com |
f201d3e03903607184e77c9510e315e5ca921bd8 | b6bb346020050ddf0708433f54da55f65f949366 | /chat/urls.py | ae1a31fdb20461196d5cfdcd5f33025db4ab7ca0 | [] | no_license | MikFogel/django_channels_expl | f40ec6e88851d543e12a363f5113e27c52fa3d1e | 30b03a598b842eb3fa0d4a3b2a7adf21a58c4aab | refs/heads/master | 2022-09-16T08:10:00.128209 | 2020-05-31T00:38:58 | 2020-05-31T00:38:58 | 268,046,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | """chat URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"life904@yandex.ru"
] | life904@yandex.ru |
13d9348edcc2d4475fd1cd08528d9a9ad8745c7a | cbd3ac62b75ac3dceb6ffb219eaa3fe9d2ef0c00 | /src/build/android/pylib/constants/__init__.py | 9209f32c73e5ecda6818cf4cd518e9a6dfee865a | [
"BSD-3-Clause"
] | permissive | crazypeace/naiveproxy | d403fa282bcf65cac3eacb519667d6767080d05d | 0a8242dca02b760272d4a0eb8f8a712f9d1093c4 | refs/heads/master | 2023-03-09T21:23:30.415305 | 2022-10-06T17:23:40 | 2022-10-06T17:23:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,079 | py | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Defines a set of constants shared by test runners and other scripts."""
# TODO(jbudorick): Split these constants into coherent modules.
# pylint: di... | [
"kizdiv@gmail.com"
] | kizdiv@gmail.com |
657250ddf8ed4dcf2483794863315122dd4fc248 | 881ecd5dec072677709a83263a40749cf281d619 | /wd2-boilerplate-master/models/models.py | 938dfae0f2dc6281398c376760ded2d8a2276ced | [] | no_license | RokP85/7.DN | 1d4eedcb05ce99e00337cdc11aa5be70c9edc4e6 | da6330c2ce7aa20a8d198e89ab10252dd53a3a6a | refs/heads/master | 2020-03-22T14:40:29.873195 | 2018-07-08T19:25:12 | 2018-07-08T19:25:12 | 140,196,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | from google.appengine.ext import ndb
class Topic(ndb.Model):
title = ndb.StringProperty()
content = ndb.TextProperty()
author_email = ndb.StringProperty()
created = ndb.DateTimeProperty(auto_now_add=True)
updated = ndb.DateTimeProperty(auto_now=True)
deleted = ndb.BooleanProperty(default=False)... | [
"pirh.rok@gmail.com"
] | pirh.rok@gmail.com |
016c8da9e79abfc6d8f1f8463d95f46f77709e31 | 22846557bb5fdaa27538468c15aeeb965769a21d | /blogs/admin.py | 4c0284111a4bbabb8113462b7c15e47def184758 | [] | no_license | Pepe-Padilla/Worldplease | f887d43ac09a018b85fe3f431c9a69fa4ed92d08 | 788634790be3168fd65dae2220917a45f73d79ac | refs/heads/master | 2021-01-16T18:29:52.203487 | 2015-10-17T12:41:28 | 2015-10-17T12:41:28 | 41,635,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.contrib import admin
from blogs.models import Blog
class BlogAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'owner', 'status')
list_filter = ('status',)
search_fields = ('id', 'title')
admin.site.register(Blog, BlogAdmin) | [
"jpadilla.isc@gmail.com"
] | jpadilla.isc@gmail.com |
3395107d611736090f54619e51924ac5ed480fdc | fc357aba40672ce57fcbf96e2ad837caaef389d4 | /dashboard/dashboard/auto_bisect_test.py | 3299e395363cceb7762d3ef6115eaa707fb181ea | [
"BSD-3-Clause"
] | permissive | dinosk/catapult | e550a7028ff3836fa7ec974d1a85eae2ccb14513 | 6de275176224197282cfd6a5617f3775abad734b | refs/heads/master | 2021-06-05T16:37:44.163473 | 2016-02-11T19:16:02 | 2016-02-11T19:16:02 | 56,242,905 | 0 | 1 | BSD-3-Clause | 2020-07-24T05:02:58 | 2016-04-14T14:12:00 | HTML | UTF-8 | Python | false | false | 9,419 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import datetime
import unittest
import mock
import webapp2
import webtest
from dashboard import auto_bisect
from dashboard import request_handler
from dash... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
d03b92b0f1e0bd083968c87ce71dde1f0d608cb0 | 0a1a031be05da299b47512b393c5fe5e6ea7a7b9 | /lesson6.py | c35e8f9f329fe2431432b57b449f63be2ebc0a18 | [] | no_license | TatevAgh/Python_lessons | 61685779f64684bd67a0f77c079385139b3e5d38 | 6cfbfec75c4c21237fab5f3dbf66ef341ba6d57a | refs/heads/master | 2023-05-05T18:25:23.288825 | 2021-06-01T12:16:40 | 2021-06-01T12:16:40 | 298,638,598 | 0 | 0 | null | 2021-02-10T21:10:53 | 2020-09-25T17:30:29 | Python | UTF-8 | Python | false | false | 1,730 | py | weekdays = ('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')
seasons = ('Spring', 'Summer', 'Autumn', 'Winter')
months = ('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December')
# for day in weekdays:
# print(day)
# pri... | [
"tatevikaghakhanyan@gmail.com"
] | tatevikaghakhanyan@gmail.com |
d184179a81f11f57b1cdd2a8e64a7a8ee95a2bd2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2667/60755/240482.py | d1424016496d8a183f3003a82a8271c426557281 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | NumOfEg = int(input())
result = []
for i in range(NumOfEg):
num = input().split(" ")
result.append(pow(2,int(num[1]))-int(num[0]))
for i in result:
print(i) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d1a24108b6eb764bff1322a52314d466036197ce | baca9d926c6ac4031e0c08e1a59de8b6fccc8fbf | /Day14_DockingData.py | 6765f9d8408c9382770eef59f0274c2298424543 | [] | no_license | damian-hirsch/adventOfCode_2020 | 8f068bd7ebaa7c09cdce369e1965c6a71a4880c2 | fccdfa915987522794b95189747a4d202a809d92 | refs/heads/master | 2023-02-07T22:32:19.288567 | 2020-12-30T13:57:39 | 2020-12-30T13:57:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | import numpy as np
import re
def get_input() -> list:
with open('Input/Day14_DockingData.txt', 'r') as file:
file_list = file.read().splitlines()
return file_list
def apply_mask(bit: str, mask: str) -> int:
result = ""
for i in range(len(mask)):
if mask[i] == "X":
result ... | [
"damianghirsch@gmail.com"
] | damianghirsch@gmail.com |
e393dfe516c52fa1d0bb780ba6dea115932c1425 | deecfc419fc47a6e9d21553135a8ad45a747873a | /fastqPrep.py | a27194735b06043b1a41e1847f803072194ecd31 | [] | no_license | belgravia/stacker-scripts | 85b76c48c64daee3d1bc708d33477607f7cd488f | 7236f20f52810195af397a07a797003c5c45b1e9 | refs/heads/master | 2021-10-11T05:45:17.176059 | 2019-01-22T21:53:10 | 2019-01-22T21:53:10 | 109,746,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,567 | py | #!/usr/bin/env python3
"""
ALISON TANG
10/3/2016
USAGE INSTRUCTIONS
Example command:
$ python fastqPrep.py [options] < myfastq.fastq
At most one input and output can be specified. Input can be inferred and
output defaults to PHRED+33. Input is from stdin, the new FASTQ is in stdout
and error messages are in ... | [
"alison@stacker.pod"
] | alison@stacker.pod |
10f1e85617f62e861d852026b268840e60d81013 | e823bc36af457f229f6879d6e6a3ef6247c129aa | /virtualenv/Lib/site-packages/twisted/conch/test/test_connection.py | f81d90f719d6d096243abd991056097bb9343740 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | William-An/DFB_Final | e772fa979c41f2f83a4bf657cde499456215fb3b | 49a9244c98116574676992ebecd1d9435e1d5b1e | refs/heads/master | 2022-11-07T15:47:36.189057 | 2017-07-22T01:01:37 | 2017-07-22T01:01:43 | 97,426,562 | 1 | 1 | MIT | 2022-10-15T02:45:57 | 2017-07-17T02:21:42 | Python | UTF-8 | Python | false | false | 27,716 | py | # Copyright (c) 2007-2010 Twisted Matrix Laboratories.
# See LICENSE for details
"""
This module tests twisted.conch.ssh.connection.
"""
from __future__ import division, absolute_import
import struct
from twisted.conch import error
from twisted.conch.ssh import channel, common, connection
from twisted.python.compat ... | [
"China_Aisa@live.com"
] | China_Aisa@live.com |
3b0c7f822bb940f28530ced0043419f1bd3288c0 | a878cb8ad7f2458c2aa4a16447f1993bb4819b05 | /KHD_2020-master/pytorch_version/RandAugment/augmentations.py | 2cf63f4dc63599040d9da51e3af17e49bf8f1494 | [] | no_license | JOOCHANN/2020-Korea-Health-Datathon | 45a29a4e360bad557309abe0b3d0f239d387f30f | 3c9aec78c357f135c756d3197baf2d64f41d9398 | refs/heads/main | 2023-06-04T12:50:57.375489 | 2021-06-22T05:39:50 | 2021-06-22T05:39:50 | 379,154,222 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,939 | py | # code in this file is adpated from rpmcruz/autoaugment
# https://github.com/rpmcruz/autoaugment/blob/master/transformations.py
import random
import PIL, PIL.ImageOps, PIL.ImageEnhance, PIL.ImageDraw
import numpy as np
import torch
from PIL import Image
def ShearX(img, v): # [-0.3, 0.3]
assert -0.3 <= v <= 0.3
... | [
"noreply@github.com"
] | JOOCHANN.noreply@github.com |
3808964e73e804ea86f5c9f6bb724678bd097437 | 8163d8f03aea22cb4fa1e60d809781049fff4bb4 | /relationship/first/migrations/0001_initial.py | f5297a9e109a0d6e57feaf3aac287ec150b66734 | [] | no_license | shubham454/Django-Devlopment | 694b973d31a82d2ded11f95138bd766130d7d3c9 | 43a2c3b98dbe9f582f2394fcfb3beb133c37b145 | refs/heads/master | 2022-12-04T14:34:05.093402 | 2020-08-13T18:35:33 | 2020-08-13T18:35:33 | 287,353,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | # Generated by Django 2.2.2 on 2019-12-30 05:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Language',
fields=[
... | [
"moreshubham203@gmail.com"
] | moreshubham203@gmail.com |
c5188aa59c29b96b07b0637ee98581b421104109 | c32f561f78f7b4aa39c9f3c9a1876a86551e6542 | /build/iiwa_stack_examples/iiwa_tool/iiwa_tool_moveit/catkin_generated/pkg.develspace.context.pc.py | a8c17427731687f1a92dedee642afdab52a19a46 | [] | no_license | NexusReflex/Kuka_iiwa_needleForceControl | e34d665c0a3eec3acd60b391529751762e6cf5d8 | fe33ded9106816cc521f90518a16d43f2b3a3464 | refs/heads/master | 2021-05-07T07:43:45.165798 | 2017-12-01T13:49:22 | 2017-12-01T13:49:22 | 109,149,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "iiwa_tool_moveit"
PROJECT_SPACE_DIR =... | [
"motte.b@hotmail.de"
] | motte.b@hotmail.de |
a5745b3b97a4ed742e0b12d53ace7eda3fbebed1 | 5b25362295262504a56dcbac10a40226bdc18bba | /libapp/migrations/0012_user_notification.py | 8d2e484be18e0f6780273648fc8161dc05ae32f1 | [
"MIT"
] | permissive | Nyagah-Tech/library | 2fef2c990b7992bb3b311dfb1502b4d2124494ac | 2ae1df4e89257c9c7d7f2328ab6c5f6352867997 | refs/heads/master | 2022-12-14T14:31:54.440553 | 2020-05-29T14:18:59 | 2020-05-29T14:18:59 | 235,101,527 | 0 | 0 | MIT | 2022-12-08T03:43:09 | 2020-01-20T12:56:42 | Python | UTF-8 | Python | false | false | 881 | py | # Generated by Django 2.2.8 on 2020-01-24 05:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('li... | [
"dan@localhost.localdomain"
] | dan@localhost.localdomain |
13b12204cb376256fe6b328b751c09622f692292 | 49f98241bfd0848f0b9d06d062ef6ead01f2bb9c | /w3af/core/data/db/dbms.py | bc14b89c04021f56ee313741cccf4478bf140f77 | [] | no_license | s0i37/__w3af | 8f63f91879bc3790cc25c1dd7b0b5e983e5e24ab | ebaf108680bd88f0bc48d1a1d86ae80cb35d0213 | refs/heads/master | 2021-09-16T20:23:18.375077 | 2018-06-24T17:33:16 | 2018-06-24T17:33:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,956 | py | """
dbms.py
Copyright 2013 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af 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 version 2 of the License.
w3af is distributed in the hope that it wil... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
e958a6f04aa7711889b4247d69ccf74e4f61fd27 | d042c1d3b3d62264bc93d9f8e0b9f57f85e24b62 | /Python3/04_RegularExpression/re.py | fd80656fb1ddefc5d0daa6abc0468d0b75463bb3 | [] | no_license | FadelBerakdar/OSTpythonCourse | f1867c1a329d4041914cbdeaa869a8db41ec4625 | 3f1740fd21f341490856a9e434154e049d19933a | refs/heads/master | 2016-08-12T23:24:22.765256 | 2016-02-24T13:39:58 | 2016-02-24T13:39:58 | 52,438,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | py | """
______________________________________________________________________
| Regular Expression |
|______________________________________________________________________|
| . | any character except new line \n |
| \w | any unicode wo... | [
"mfb.bioinfo@gmail.com"
] | mfb.bioinfo@gmail.com |
623218b5608c917e0b0dd7237dd1c2fb232bbaf6 | be722c81d6c80c910e038a71db4a972a4d6e773d | /librarymanagement.py | 804a0e0fd03803956b651b0f229e38c45422fadc | [] | no_license | sonumahajan/libraryManagement | 578399d9f50fc52d2463875518c92d3fdc19d9da | a6891f6f35af88e277c1499cefd49876037f5716 | refs/heads/master | 2022-12-01T23:28:45.694778 | 2020-08-04T07:45:19 | 2020-08-04T07:45:19 | 284,908,466 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | class library:
def __init__(self,listOfBooks, libraryName):
self.usrData = {}
self.listOfBooks = listOfBooks
self.libraryName = libraryName
for books in self.listOfBooks:
self.usrData[books] = None
def displayBooks(self):
for book in self.listOfBooks:
... | [
"noreply@github.com"
] | sonumahajan.noreply@github.com |
1cbdb56e559a50917d8f819014a67f4e0e7fdc14 | aa6fe54cbcbe56e4149be79d1a559817c6ff7a65 | /sorting/countingSort.py | d2a1f3e517d48f3cefa2941cd270328e713cf2b8 | [] | no_license | zhaolianzhou/HackerRankPython | 146cd18531e9d6bb9fbfefcfe20da82bed6d8956 | 7c171120edf5fbd0a3b2b0bd6cdbf0e69da9352a | refs/heads/master | 2021-01-22T23:34:35.586387 | 2017-04-10T02:06:49 | 2017-04-10T02:06:49 | 85,659,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | def countSorting(N,A):
count = [0]*100
for i in range(N):
count[A[i]]+=1
for i in range(100):
print(count[i],end=' ')
# N = int(input().strip())
# ar = [int(i) for i in input().strip().split()]
ar = [1,2,3,4,3,6,7]
N=7
countSorting(N,ar) | [
"zhaolianzhou92@gmail.com"
] | zhaolianzhou92@gmail.com |
a45c966b78640b42d731007d3445b32a94844cff | 4a54e1c0b2f5f0bf2640596293cdce5a72d0f858 | /python_oop/animal.py | 21a1d96ad656a69def1c3d40c936e2fd203d12d2 | [] | no_license | py1-10-2017/RaphyR-py1-10-2017 | a1d5c8da3cb8b255c9e7dda0646c9a67f1c33fb2 | b9d54f76f65773ea9cd4819aa1746245d4b5692d | refs/heads/master | 2021-08-26T09:45:33.945845 | 2017-11-23T04:45:44 | 2017-11-23T04:45:44 | 106,359,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | class Animal(object):
def __init__(self, name):
self.name = name
self.health = 100
def walk(self):
self.health += 1
return self
def run(self):
self.health -= 5
return self
def displayHealth(self):
print self.health
return self
animal1 =... | [
"rraph99@gmail.com"
] | rraph99@gmail.com |
2a272856b0e75e5a58321984de70dee4aa446c6d | 7cbd21289f6eddef97b1d2bac78cfb592064a319 | /models/saturating_counter.py | 91673d01b2e7f0d1f342db2d3a5e5cf3191e1703 | [] | no_license | JoonyoungYi/neural-branch-predictor | 13ba1a25ffe58aaac9d5379b8e4e2271f3db3664 | 23c1c685d17a0aed36d71a7c3e6d27531e3dc99a | refs/heads/master | 2020-05-29T11:10:50.728978 | 2020-01-30T01:28:49 | 2020-01-30T01:28:49 | 189,108,819 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | class _Counter:
state = 2 # 1 and 2 predict do not take, 3 and 4 predict take
def predict(self):
return self.state < 3
def train(self, taken):
self.state = min(max(self.state + (1 if taken else -1), 4), 1)
class SaturatingCounterPredictor:
def __init__(self):
self.counter_di... | [
"joonyoung.yi@kaist.ac.kr"
] | joonyoung.yi@kaist.ac.kr |
57ce51997fbedd5691043e3e1a901f7cc180309a | 7941a16f88c019f115df9a35d58b6912c747e966 | /post/admin.py | 78f66c96f446f1e13c366fad583b7d62ea0ff19b | [] | no_license | imdaebeen/backend-FreePreOnBoarding | ec315deb87e4a681b5f49f4190d80f1d082aec00 | ef718f8f9c7d02ae6f57fb6373eb5df475ed3432 | refs/heads/master | 2023-08-20T05:44:03.112833 | 2021-11-01T16:59:33 | 2021-11-01T17:01:41 | 420,186,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from django.contrib import admin
from . import models
@admin.register(models.Post)
class PostAdmin(admin.ModelAdmin):
list_display = (
"title",
"author",
"created_at",
"id",
) | [
"imdaebeen_09@naver.com"
] | imdaebeen_09@naver.com |
0e4168c70b3bdd781ec3c5e36d62588ce33cf91e | 0d64eb977125aa8e5d12d4ac43505895e310a185 | /Tensorflow_simple_array_addition.py | 4152a9baa6ed681d4d3b3f4a04497a8b4ced1330 | [
"MIT"
] | permissive | AlinLucian/Data-Science-Machine-Learning | 400036768ffab0f6804a969f4e57fce7431a9027 | dde0d0e748309708c4a3212055324fbd74e33c3a | refs/heads/master | 2020-04-26T13:03:28.855882 | 2019-03-09T04:24:40 | 2019-03-09T04:24:40 | 173,568,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import os
import tensorflow as tf
# Turn off TensorFlow warning messages in program output
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
# Define computational graph (nodes X and Y, which will be the inputs)
X = tf.placeholder(tf.float32, name='X')
Y = tf.placeholder(tf.float32, name='Y')
# Define the node that actually ... | [
"noreply@github.com"
] | AlinLucian.noreply@github.com |
d4229e0fe4c337210e1dad140de179ebc1b50650 | ea9881215073ad52ff09c631832503021211cad6 | /project/urls.py | 83e8afbaeff5480ac48d38bd26de893f2e117cb1 | [] | no_license | azpm/azpm-www-home | ef16f60f2b2647fa9421976f31a123aa88068cff | 687b512a19a0712cf558432e5aa5e36d3de44b87 | refs/heads/master | 2021-06-03T08:20:13.284702 | 2012-09-04T22:41:30 | 2012-09-04T22:41:30 | 5,446,247 | 0 | 0 | null | 2019-04-26T02:44:49 | 2012-08-17T00:22:03 | Python | UTF-8 | Python | false | false | 579 | py | from django.conf.urls import *
from django.contrib import admin
from libscampi.contrib import cms
admin.autodiscover()
urlpatterns = patterns('',
(r'^comments/', include('django.contrib.comments.urls')),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),
... | [
"leingang@arizona.edu"
] | leingang@arizona.edu |
2b232f53c1bf5316aa0f0b833a2d0e3532438aa9 | 389a074ded917b0297f2e4fbb9366638a2c67a9d | /vn_ime.py | c6b1454b91d1e6e808550379969aad29c173d4b7 | [
"Apache-2.0"
] | permissive | 88d52bdba0366127fffca9dfa93895/VN_IME | 80fbf5238d6966fcf48d947c22049c8d802e540c | 87dc94dfb333c42ddaed0312f028ce1d71a693cd | refs/heads/master | 2021-01-17T21:52:13.340657 | 2015-03-03T03:43:27 | 2015-03-03T03:43:27 | 28,541,655 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,249 | py | import sublime, sublime_plugin
_STATUS = False
_MOD = False
_LAST_KEY = ''
class SaveOnModifiedListener(sublime_plugin.EventListener):
def on_modified(self, view):
global _STATUS
global _MOD
if not _STATUS:
return
if not _MOD:
view.run_command('startime')
_MOD = False
class Startim... | [
"88d52bdba0366127fffca9dfa93895@gmail.com"
] | 88d52bdba0366127fffca9dfa93895@gmail.com |
8f8cc4e12d0cfbf429da9f4081a51e771f4787da | 8d4f5faea07fe36ae7392a8c8fea010699d08cad | /enica/despesas/apps.py | 0067c4401e2a2e8132b86090325b27aedf4655ff | [] | no_license | jlsneto/Enica | bb91c01656fbb5972e875d36d451cc8cc4ed2872 | f22aa666cbda451e64ba6b109ef0dc72880e7434 | refs/heads/master | 2020-03-25T19:52:51.297338 | 2018-08-15T06:01:50 | 2018-08-15T06:01:50 | 144,105,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.apps import AppConfig
class DespesasConfig(AppConfig):
name = 'enica_api.despesas'
| [
"leitejoab@gmail.com"
] | leitejoab@gmail.com |
057be74a105aa476dbdcec8dac2bae4e98ee1fc7 | 131ca3a04dd2fb30d90a701ffbff09006cf9c040 | /peson_detector/utils/visualization.py | 5d083ddd7a0800ce9a9e2feb99ecc0576053a5cf | [] | no_license | mrstephenpace/my_projects | 776257f9a29c21edd164bad0dfe05641bef3f9e1 | 6c703b9f8ea1e99df3b626b4b5312cc5d15e9f80 | refs/heads/master | 2023-05-01T08:46:34.550661 | 2019-07-01T21:10:05 | 2019-07-01T21:10:05 | 156,594,429 | 0 | 0 | null | 2023-03-24T23:43:15 | 2018-11-07T19:00:25 | Python | UTF-8 | Python | false | false | 4,516 | py | """visualization.py
The BBoxVisualization class implements drawing of nice looking
bounding boxes based on object detection results.
"""
import numpy as np
import cv2
# Constants
ALPHA = 0.5
FONT = cv2.FONT_HERSHEY_PLAIN
TEXT_SCALE = 1.0
TEXT_THICKNESS = 1
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
def gen_colors... | [
"paceste1@gmail.com"
] | paceste1@gmail.com |
928297c5bd91bcea7bfd13a8298215620b62700a | 5b3bf81b22f4eb78a1d9e801b2d1d6a48509a236 | /leetcode/1010.py | 840fc1be71784ae1cc6aede7f3ce2feac361d083 | [] | no_license | okoks9011/problem_solving | 42a0843cfdf58846090dff1a2762b6e02362d068 | e86d86bb5e3856fcaaa5e20fe19194871d3981ca | refs/heads/master | 2023-01-21T19:06:14.143000 | 2023-01-08T17:45:16 | 2023-01-08T17:45:16 | 141,427,667 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from collections import defaultdict
class Solution:
def numPairsDivisibleBy60(self, time: List[int]) -> int:
dic = defaultdict(int)
for t in time:
dic[t % 60] += 1
result = 0
for i in range(1, 30):
result += dic[i] * dic[60-i]
result += dic[0] * (d... | [
"okoks9011@gmail.com"
] | okoks9011@gmail.com |
a4bc70bf128abaaee85e0af536872bfe798071e7 | 07988c4c354fea7186962a38198b47af95ea40fe | /kubernetes/client/apis/apiregistration_v1_api.py | 76913891609fd738dd42ce965cb69cf9a5a3d8cb | [
"Apache-2.0"
] | permissive | GitObjects/python | cd9fb60798d1d6728c9773a6c71545bfcc83a43e | 2cbd4dfe14e6e0bcec72839bbfc9e5c3f6f6945d | refs/heads/master | 2020-03-22T17:29:41.474848 | 2018-08-01T03:02:03 | 2018-08-01T03:02:03 | 140,398,453 | 0 | 0 | Apache-2.0 | 2018-08-01T03:02:04 | 2018-07-10T08:04:27 | Python | UTF-8 | Python | false | false | 66,956 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.11.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
i... | [
"haoweic@google.com"
] | haoweic@google.com |
4275fbc2aab8091a8cbd6a06d210cc0424609c4d | 46af96a4fce6bbc262e9555f5acc6e277278c573 | /sample/ae/main.py | f94369c8c6441577b2fa8e114e6562d3dca51eed | [] | no_license | eternalray/DL_term_project | 9e4381d6ec34b51b0e25b0d02ca04bca75ef05b1 | bd7dfb1ccbc38c92a6b35e621365983a8c8f4c1f | refs/heads/master | 2021-09-13T11:26:39.985913 | 2017-12-17T09:54:24 | 2017-12-17T09:54:24 | 112,194,063 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,922 | py | import os
import sys
import timeit
import pickle
import argparse
import stft
import util
from model import PresidentSing
import librosa
import numpy as np
import matplotlib.pyplot as plt
# Usage : python main.py <inPath> <outPath> <mode>
#
# python main.py ./audios ./model convert
# python main.py ./... | [
"cyw314@gmail.com"
] | cyw314@gmail.com |
3f0ceb8350bfe0a17cf4877ecffca5c89455cb04 | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /easy/1566.py | e1fd77a95b8a19432432804e090514e518bd9f8c | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | class Solution:
def containsPattern(self, arr: List[int], m: int, k: int) -> bool:
if m * k == len(arr):
return [arr[0]] * m * k == arr
for start in range(0, len(arr)-m*k):
tmp = arr[start:start+m]*k
index = 0
while index < len(arr)-m:
... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
2cd3c2a9a3064e6171c88d366b9acb139e6a60c6 | 974221ba1c6e7d038e3a0fd8f6699b8c46414b79 | /Python/utils/utils.py | 35b4c50f40b2c08b1183c42698f12e4ba4930476 | [
"MIT"
] | permissive | sgiguere/RobinHood-NeurIPS-2019 | 6ab913b053c85c40b1f8ca0a0377afde407d1cd8 | 4bc3283b1cba13b1addf07f3fccf667f4c8f4a08 | refs/heads/master | 2020-08-28T18:36:39.554191 | 2019-10-27T00:54:56 | 2019-10-27T00:54:56 | 217,786,759 | 10 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,905 | py | import sys
import code
import time
import joblib
import itertools
import os
import threading
import copy
import numpy as np
import datetime
from scipy.spatial import ConvexHull
from matplotlib.collections import LineCollection
from matplotlib.colors import to_rgba_array
def make_seed(digits=8, random_st... | [
"sgiguere9@gmail.com"
] | sgiguere9@gmail.com |
7da473b1f9d4806e0f0bd724b519e27788655fe9 | fce2ed7393934842054bc9a0c2d2d53469107e6f | /transactions/urls.py | c559399f2278c1b8bcb74bc2a5d1a393db561c6a | [] | no_license | santhonydo/treatsti_api | 3a3e495952011f7bd1cade8aeea17848ba980531 | f0f8aabf569936b7ef406d5023583e71a2b9a072 | refs/heads/master | 2021-03-16T06:18:03.849167 | 2018-03-27T06:05:12 | 2018-03-27T06:05:12 | 120,248,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.conf.urls import url, include
from . import views
urlpatterns = [
url('', views.index, name='index'),
] | [
"a.th.nguyen30@gmail.com"
] | a.th.nguyen30@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.