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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
882fb5ad57e901dc663865a62347e8798d874639 | 6b444c9a15dd59e1a22c75484a273dcef0379fbc | /html/server.py | f44544806800c47fd5f2fa28b97866b661d7709a | [] | no_license | Donders-Institute/torque-monitor | 65a67c8e8a4def4f92dbd2d343fa00ea896811c5 | de94cffab84ee2add1a57e8995be66735a4fcb0a | refs/heads/master | 2022-03-08T23:08:56.779058 | 2022-02-23T08:39:25 | 2022-02-23T08:39:25 | 30,747,938 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #!/usr/bin/env python
import BaseHTTPServer
import CGIHTTPServer
import cgitb; cgitb.enable() ## This line enables CGI error reporting
server = BaseHTTPServer.HTTPServer
handler = CGIHTTPServer.CGIHTTPRequestHandler
server_address = ("", 8000)
handler.cgi_directories = ["/cgi-bin"]
httpd = server(server_address,... | [
"h.lee@donders.ru.nl"
] | h.lee@donders.ru.nl |
4b3fa84fdbe05e371670492b0a46d3bd704ba053 | fa7b867166eeb95b8700965f462a787d21b60dc7 | /dataset.py | d97172221f88a84fbba9736dfd4c64a2b68a6a54 | [
"MIT"
] | permissive | keonlee9420/Comprehensive-Transformer-TTS | ad12b7df953b333e6c75a0852580bb13b796cf5c | dca252cae50a18464ce2410aa85a21c557c72d7a | refs/heads/main | 2023-05-23T14:02:13.977248 | 2022-02-28T17:06:15 | 2022-03-06T03:55:49 | 399,515,333 | 279 | 43 | MIT | 2022-09-26T01:57:06 | 2021-08-24T15:24:45 | Python | UTF-8 | Python | false | false | 11,451 | py | import json
import math
import os
import numpy as np
from torch.utils.data import Dataset
from text import text_to_sequence
from utils.tools import get_variance_level, pad_1D, pad_2D, pad_3D
from utils.pitch_tools import norm_interp_f0, get_lf0_cwt
class Dataset(Dataset):
def __init__(
self, filename, p... | [
"keonlee9420@gmail.com"
] | keonlee9420@gmail.com |
d6076bc4342db248548b8ec70a39633bc8875470 | cdcdd2b3c227906b8ec8b84c9dd4718fbac5c56a | /engagecsv/venv/bin/flask | 6ebb05e2a99764d2f1cea384ffb17542da1b5a31 | [] | no_license | vipul-rao/gree | 94aa3a22a352757097bd46fc7ede00775d43b064 | 3a16485c66319673ed284ee5a2578c973dbc8b46 | refs/heads/master | 2021-03-30T21:54:53.890605 | 2018-06-01T12:04:32 | 2018-06-01T12:04:32 | 124,362,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | #!/home/vipul/PycharmProjects/engagecsv/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vipulrao355@gmail.com"
] | vipulrao355@gmail.com | |
f7dd8d3d01b32597c8d546edd789d615e1295412 | b8e0a954aaf06fdd10b5d183cff3315086d5c7b3 | /backend/controllers/test_suite_param.py | f7521a750e38437ca6cb060b2fca948ff3b24625 | [
"MIT"
] | permissive | chenya1123236324/leo-api-auto | b2400f44a4fd3fb5cb464e9bbd14487b8768eccf | a2d3fed97a71c2647af9620a7fa55633ad1d0a69 | refs/heads/master | 2023-05-08T00:41:55.698702 | 2021-05-14T09:50:30 | 2021-05-14T09:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | from datetime import datetime
from bson import ObjectId
from flask import jsonify, request, current_app
from flask_security import login_required
from app import app
from models.test_suite_param import TestSuiteParam
from utils import common
# Not yet used
@app.route('/api/project/<project_id>/testEnv/<test_env_id... | [
"liwh9@lenovo.com"
] | liwh9@lenovo.com |
ee54ceee82bb3ac265c4dfd60be7e87a9f8b7801 | a814bf2325514d2c1dcab415211d59ad9ada7f28 | /demos/demo13.py | d4d3ce1e6e9fdabf8111beb60b337d8e632814c1 | [] | no_license | spiderT/python-learn | bf4318714d2a745e07e945fdedd9d88bcc45532a | 7ba94ba0eb6fd3e939b3713612ccd372817c1ed9 | refs/heads/master | 2023-01-30T09:36:35.218042 | 2020-12-17T09:19:58 | 2020-12-17T09:19:58 | 318,698,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | # flag = False
# name = 'luren'
# if name == 'python': # 判断变量是否为 python
# flag = True # 条件成立时设置标志为真
# print('welcome') # 并输出欢迎信息
# else:
# print(name) # 条件不成立时输出变量名称
# 判断条件为多个值时
# num = 5
# if num == 3: # 判断num的值
# print('boss')
# elif num == 2:
# print('user')
# elif num == 1:
# print('wo... | [
"1304126527@qq.com"
] | 1304126527@qq.com |
038464aabf46c5aae8cb4ea24eedce98d2fd3edb | 13e8a1922f76838fbdef5f29e83ba896691b6ae7 | /utils/metric.py | d7463ce39af680034d25d18765f8a58fb9d94626 | [] | no_license | whigg/SWatNet | 1ffdedf71a8af8d6f7e34289bcda2a7673fa7df4 | 907468d02678a2331bfdf0cc9213991ab8c2334e | refs/heads/main | 2023-06-25T12:44:02.487942 | 2021-07-26T01:26:58 | 2021-07-26T01:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | """Evaluation Metrics for Semantic Segmentation"""
import torch
def oa_binary(pred, truth):
''' des: calculate overall accuracy (2-class classification) for each batch
input:
pred(4D tensor), and truth(4D tensor)
'''
pred_bi = torch.where(pred>0.5, 1., 0.) # [N,C,H,W]
inter = pre... | [
"xinluo_xin@163.com"
] | xinluo_xin@163.com |
6820cef979e4311baff1c9496bc6b0353b18828c | 570807c6d3f9d5338c489b3323ba819158954779 | /AssetsJson/assetsconversion.py | 761cf85ea21ac4c255ec4b8f71f28b3e7f65384c | [] | no_license | ZachStanik21/Dura-Europos-490 | 675c0540d8dd0e616f3146660de03a1e3ed80bfb | 5505f89d5202ea5a91327660c982eb3082522908 | refs/heads/main | 2023-04-19T19:01:31.440872 | 2021-05-13T00:25:06 | 2021-05-13T00:25:06 | 345,522,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | import json
import csv
with open("query.json") as jQuery:
arr = json.load(jQuery)
groupArray = [group['groupLabel'].lower() for group in arr]
groupArray.append('field')
groupArray.sort()
groupArray.insert(0, 'ungrouped')
groupArray.insert(0, 'all groups')
data = []
with open("AssetsFinal.csv", encoding='utf-8'... | [
"zachary.stanik@yale.edu"
] | zachary.stanik@yale.edu |
182bc5f518c645f7b01e5b98e6ccca120f7377c9 | 57f25ae73e78b19eaaeb00aa8f4e952c0748474f | /what's cooking/Code/xgboost_model.py | 7330216d88dc714cf7364538f91643960d84bdeb | [] | no_license | OracleXXX/machine-learning | e3c27f0aa479dde6919861b64c8563a93cc53ca5 | 05613b33524ba3c1e449970e3c4f1f7484b00fe3 | refs/heads/master | 2021-05-18T03:21:22.816500 | 2018-07-05T20:00:15 | 2018-07-05T20:00:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,262 | py | import json
import re
import numpy as np
import pandas as pd
from sklearn.preprocessing import LabelEncoder
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.grid_search import GridSearchCV
from text_unidecode import unidecode
import xgboost as xgb
from xgboost.sklearn import XGBClassifier
## th... | [
"ravi.shankar1788@gmail.com"
] | ravi.shankar1788@gmail.com |
438a659f45402a2a9a8c62a3997058cdeb4b1652 | 5f7b6e3d0573d4e773607237c43a0a981e6a578b | /Agent/Server/l_command.py | 4f53bbe8d39d7a8fa4658e0cdd7f17701fa8d417 | [
"Apache-2.0"
] | permissive | selboo/starl-mangle | 12ddaed4c0887a326e9cdb3465008e462a397545 | 535549799ab349df901a7c8ac8d283e04f3eb661 | refs/heads/master | 2016-09-05T21:51:42.710612 | 2015-03-12T03:16:31 | 2015-03-12T03:16:31 | 32,054,476 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,864 | py | #!/usr/bin/env python
#_*_encoding:utf-8_*_
# encoding:utf-8
import os,sys
import httplib2,hashlib
import commands
http = httplib2.Http()
def l_main(cmd):
if cmd == 'l_version' :return l_version()
if cmd == 'l_update' :return l_update()
if cmd == 'l_pwd' :return l_pwd()
#if cmd == 'l_restart' :return l_restart()... | [
"xuguocan@gmail.com"
] | xuguocan@gmail.com |
516140afc54ba4ec36d5f493751ee7804a408814 | 35a2e96aa553be4668a212faf1712676f2904ba5 | /2DProject/Johnburr/flying_enemy.py | 590006afdda02f0f56ee249053dd2a1d921accac | [] | no_license | kimjunho403/2D-game-programing | 54396de58042499b521d162048716eac34da09f4 | baa8798fcb7e03705935ed8bf77a3c2c050f1490 | refs/heads/master | 2023-01-18T23:50:21.417397 | 2020-12-04T13:54:28 | 2020-12-04T13:54:28 | 294,923,100 | 0 | 0 | null | 2020-09-12T11:40:29 | 2020-09-12T10:42:11 | null | UTF-8 | Python | false | false | 7,529 | py | import random
from pico2d import *
import gfw
import gobj
from enemy_bullet import *
from BehaviorTree import BehaviorTree, SelectorNode, SequenceNode, LeafNode
class Flying_Enemy:
POSITIONS = [( 1200,700),( 840,600),( 500,800)]
ACTIONS = ['Attack','Dead','Idle','Walk']
images = {}
FPS = 12
CHASE_D... | [
"kimjunho403@gmail.com"
] | kimjunho403@gmail.com |
8ca257b7bfe1dea7f1be05c2d47eb48a732fb5d7 | 5be4ec33db177b21301bd7c1554edc715cd8d5ef | /pFlow/views.py | b5991231139fd071d60dab1efe37fe0f892b8206 | [] | no_license | dlut414/pLab | a88148aba288c899b35cf900fdae23943144dd2b | 6a08ee0c5446da0c0684608f97948a5cacb8edf5 | refs/heads/master | 2021-09-04T08:24:54.487224 | 2018-01-16T07:45:32 | 2018-01-16T07:45:32 | 108,267,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
# Create your views here.
def index(request):
CONTEXT = {
'app_name':'pFlow',
};
return render(request, 'pFlow/index.html', context=CONTEXT);
| [
"hfy8373@gmail.com"
] | hfy8373@gmail.com |
9d541c29576f870d253dbc39e9cd440e4717a756 | 13e6200f0f660d32109a59a1e3cdd40f5decf62e | /compiler/target/xs1/device.py | 4d5a5cb59af9f34542b43a24f1b90ef881556fe5 | [
"LicenseRef-scancode-other-permissive"
] | permissive | xcore/tool_sire | fd1bf01413297c9e8fadefa6c6100b83e2a4dd8a | 8123d56fbac0d335c0b4b1aeea74d3c5bc0764e2 | refs/heads/master | 2016-09-06T21:40:25.732042 | 2013-06-19T15:57:38 | 2013-06-19T15:57:38 | 1,438,788 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | # Copyright (c) 2011, James Hanlon, All rights reserved
# This software is freely distributable under a derivative of the
# University of Illinois/NCSA Open Source License posted in
# LICENSE.txt and at <http://github.xcore.com/>
from target.definitions import *
from target.device import Device
from error import Error... | [
"jameswhanlon@gmail.com"
] | jameswhanlon@gmail.com |
917a9bd7d38f3f10dc1e931d46e9fd1ff7b88508 | 5614be42f496ce18a43c7e8203e17b06c0fdfd1f | /main/migrations/0002_auto_20181221_2046.py | 43d3f04a044ea5ffdf0957e132b5b6858b74b412 | [] | no_license | maguayo/monero.city | 7cbd247e4aaafe370dd319a0d7908da72021e617 | 26220ccd33e1ce30ef522264bb05af6e5c734ce3 | refs/heads/master | 2020-04-12T12:43:51.525886 | 2018-12-31T07:57:14 | 2018-12-31T07:57:14 | 162,500,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | # Generated by Django 2.1.4 on 2018-12-21 20:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='listing',
name='address',
fiel... | [
"marcos@aguayo.es"
] | marcos@aguayo.es |
0820da92f1e9f5069a37882a910935b73f4c307f | 4c65c00d6359aa829bb5452cf9a8387f6db1e04d | /assistant/apis/gpt3.py | c5991063e75248f8c79281faf2ec72019bcad6c5 | [
"WTFPL"
] | permissive | nspeer12/speer.ai | 4fdf0effbd4e8a3ce177b4da2531287329c5d676 | 03af6d4b54a7d1cd258f6e6caf6f73133ae7a26e | refs/heads/main | 2023-06-07T03:52:46.182376 | 2021-06-30T19:30:25 | 2021-06-30T19:30:25 | 304,673,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | import os
import openai
openai.organization = 'org-fEhf9cVXO5Gy5N7wHGEu4RjT'
openai.api_key = os.getenv('openai_key')
def gpt3_answer(question:str, max_tokens=256, model='curie'):
# required parameters
examples = [["What is human life expectancy in the United States?","78 years."]]
examples_context = "In 2017, U.... | [
"nspeer252@gmail.com"
] | nspeer252@gmail.com |
1e0c70729feb2eee6e540ea18c0145cfd3fe01a1 | e30196699056b3dbd0c8fed53c2f227bada2bff4 | /09_functions/solution9_3.py | 2ae404aa0c77c8e550a78197419b183cb5b67032 | [] | no_license | LasherMay/pyeng | 01a9e289096dee6aa1c0d1c4095336ea4ba04dbe | ab373036099efac70cdefec4f4ae41a72b644f34 | refs/heads/master | 2020-03-12T07:36:35.225162 | 2019-08-13T13:40:42 | 2019-08-13T13:40:42 | 130,509,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/env python3
def get_int_vlan_map(config):
access = {}
trunk = {}
with open(config) as f:
for line in f:
if 'interface Ethernet' in line:
buffer = line.split()[-1]
elif 'trunk allowed vlan' in line:
a = line.split()[-1]
trunk[buffer] = [int(s) for s in a.split(',')]
elif 'access vlan... | [
"vanilladig@gmail.com"
] | vanilladig@gmail.com |
be21c3cd488d52c10cd6b2830a133610f29a109d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/484.py | 5ced75563a76df522a8954442939ad95ccff730d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | def check(board,start,delta,player):
four = True
for i in range(4):
if not board[start[0]+delta[0]*i][start[1]+delta[1]*i] in [player, "T"]:four = False
return four
for T in xrange(int(raw_input())):
board = []
#read input
for i in range(4):
board.append(raw_input())
raw_input()
winner = ""
#check for 4 i... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
bb6a23e3ea65105eb39a4df4779dd1f0e67f9e36 | c8867b2ddda67dd3a359f1de4275a86f9494d095 | /blog/migrations/0001_initial.py | f6c1d96bb66f077780d59cac78824ad0aaa2de1d | [] | no_license | Code-Institute-Submissions/lizHickeyLifeDesign | 58d291bdf5016ee30c93b4defb78be4574e760a3 | 72906a9bfac333fe03e32bdfc2b471c6c925e33c | refs/heads/master | 2022-12-26T23:11:19.398447 | 2020-09-30T23:19:49 | 2020-09-30T23:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | # Generated by Django 3.1 on 2020-09-07 22:11
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
dependencies = [
migrations.swappable_dependency(settings.AUTH_... | [
"sophiehickey123@gmail.com"
] | sophiehickey123@gmail.com |
c429ee7cb5a563c689759d951e00f6057f409a11 | 6ab9e318aa38308a19429a9d142107d173ed9914 | /2020/acsl1/solution.py | 865a8cff9dac1b480519fc30aa4635f31884d688 | [] | no_license | AnuragGowda/ACSL | 7de7f422b5eff7692493d18a888800b6dd95a04c | 305ca69d0bbee8e6503e199489c8dd9b9187f7a1 | refs/heads/master | 2022-11-27T13:37:32.494234 | 2020-08-03T18:47:29 | 2020-08-03T18:47:29 | 284,772,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | # Amazing oneliner
for line in list(open('inputs.txt', 'r').readlines()): print(''.join([str(i)[-1] for i in [int(i)+int(line.split()[0][-int(line.split()[1])]) for i in line.split()[0][:-int(line.split()[1])]]+[int(line.split()[0][-int(line.split()[1])])]+[abs(int(i)-int(line.split()[0][-int(line.split()[1])])) for i ... | [
"gowdaanuragr@gmail.com"
] | gowdaanuragr@gmail.com |
28abb8477031d8378e518471e51bdeb700345f71 | 53093011db6bd5f98902e01ecb8323e6fd1adef2 | /Code_/Netease/test.py | d735bc617e6c1e099628c544b70a21164828d062 | [] | no_license | cxy592394546/LeetCode_py | 19b8bad2513bf771c4fd99a1160685b72065db82 | 182d89b6af7ca282cae27436562913d4e9980609 | refs/heads/main | 2023-05-10T23:05:28.477889 | 2021-06-04T01:27:31 | 2021-06-04T01:27:31 | 337,083,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py | # 1.
# a, str1, b = list(map(list, input().split("\"")))
# if len(str1) == 0:
# print(0)
# else:
# chars = set()
# for c in b:
# if c != ',' and c != '[' and c != ']':
# chars.add(c)
# str2 = "#"
# for c in str1:
# if c in chars:
# str2 += "@#"
# els... | [
"cxy592394546@gmail.com"
] | cxy592394546@gmail.com |
b96981f121b8bdccac04b81be6841a42f427f4d1 | 511dbb4c1b132263ff2f943eee574edf6963a027 | /Python27/suma.py | acf1e0b9e6ee522ecfd0993636341a1b82f4c7a3 | [] | no_license | ElToro13/Python | b41c07c227d2574178de474e04958448bf1b57d9 | 90e2c741f4d851a6866907a0cc9c12cd088c4c8c | refs/heads/master | 2022-12-09T05:51:50.287085 | 2019-04-27T23:30:34 | 2019-04-27T23:30:34 | 98,705,694 | 0 | 0 | null | 2022-12-08T00:43:56 | 2017-07-29T03:31:37 | Python | UTF-8 | Python | false | false | 1,605 | py | from summarize import datos
from docx import Document
from docx.shared import Inches
import os
import urllib
import random
import urllib2
def SaveInWord(zzz, filename="new"):
zz = datos(zzz)
TITLE, dd, LINK = zz.UserInput()
lines, dh= zz.Summarize(dd)
document = Document()
document... | [
"noreply@github.com"
] | ElToro13.noreply@github.com |
0628781efb3cf656662a2cb742ea923571ba7f64 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/sphinx/tests/conftest.py | 3fd59519cfaeeff16e5820e041748222ea44a233 | [
"LicenseRef-scancode-other-permissive",
"BSD-3-Clause"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:709f5a019823ca5832b2c2674230db226acf39af4c12fde3d590723d641d8fc8
size 1362
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
5ba139fac5a93b63e4b36009ec140a7059547f26 | 3f4f986fa38a01cea718ad17f9a986196798592b | /mo/migrations/0003_auto_20190414_1500.py | 70ad691059663305847bca68848bae766649fd5f | [] | no_license | AhmedEsmailCis/Sports-Videos-Annotation-and-Retrieval | 0dce3c1a917d351a3fcbf0f03423148724f1833a | 3e7652ce50698bd3f574f5066c7e7e1948758ac4 | refs/heads/main | 2023-02-12T01:51:50.696742 | 2021-01-09T23:45:14 | 2021-01-09T23:45:14 | 328,263,074 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 2.2 on 2019-04-14 13:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mo', '0002_video'),
]
operations = [
migrations.AlterField(
model_name='video',
name=... | [
"TheGolden-Eagle@users.noreply.github.com"
] | TheGolden-Eagle@users.noreply.github.com |
6c73cf940658c13e8f2da2c77ad16b761d51b105 | 5cdbdd8cbc4f674abcd2ac75e50d9f5b8c21beb6 | /spec/notes_gaena.spec | 5ae0afa8ad7f10e88c62220175e879d9ee8f8c10 | [] | no_license | BaobabHealthTrust/module_maternity_phase_2 | 35c3223e3bbf21e3472432a613193f394eedb284 | c602057ffe8e5a9badaf124b6cc9db597c9430e1 | refs/heads/master | 2020-12-24T16:50:12.189080 | 2015-05-22T07:02:03 | 2015-05-22T07:02:03 | 7,498,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | spec | P.1. Observations [program: MATERNITY PROGRAM, scope: TODAY, label: Gynaecology Notes, pos: 114 concept: Plan]
C.1.1. Given a registered patient, Notes
Q.1.1.1. Impression [concept: IMPRESSION, field_type: textarea, optional: false, allowFreeText: true, pos: 0]
Q.1.1.2. Plan [concept: PLAN, tt_pageStyleClass: textare... | [
"vine@vine.(none)"
] | vine@vine.(none) |
e2abe71ecc2e7f08e2d7d2f149648201d9ad00e2 | 96fe7e1cefc23ef36ffe61a12bf99c9efe6b1187 | /extragrant/polls/views.py | b9f230e8dc17fa2b49c68460924a2182c862ed76 | [
"WTFPL"
] | permissive | vslutov/extragrant | 9a6cace74d0d3a93d93f87cfb75cd3e0327cecb8 | 3b65457ace629726763158aa8b8a94968b67ddd8 | refs/heads/master | 2021-01-17T08:05:03.498378 | 2016-07-19T18:35:43 | 2016-07-19T18:35:43 | 60,347,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from .models import Question, Choice, Count
# Create your views here.
def index(request):
questions = Question.object... | [
"vslutov@yandex.ru"
] | vslutov@yandex.ru |
364ed6d566b9f586e8ac30c70661702cc306dc14 | f14fded9586e9728f82c1ca4e19728f3829df17c | /tjhsst/apps/users/migrations/0003_auto_20190424_1836.py | 65ddd926ac83197190c7612617f34cc2785857b3 | [] | no_license | tjcsl/website | 92a29f72155aff76fa772cd973c9e0f62f45b569 | 06f9edd30b02d979aace8bf90777e249f3e8c99c | refs/heads/master | 2023-02-20T01:03:18.434068 | 2021-09-16T17:15:52 | 2021-09-16T17:15:52 | 169,797,440 | 0 | 10 | null | 2023-02-15T20:41:33 | 2019-02-08T20:52:25 | Python | UTF-8 | Python | false | false | 398 | py | # Generated by Django 2.1.7 on 2019-04-24 18:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20190412_1911'),
]
operations = [
migrations.AlterField(
model_name='user',
name='id',
... | [
"swfanboy01@gmail.com"
] | swfanboy01@gmail.com |
df51cf6a080a83e54571e71f4179a4a04008d459 | 4fe1dc7170d2d44e2c9988c71b08f66d469ee4b8 | /Unit7/ej7.12.py | 21ba1a2bba963dc7843b29940292dcdde6be8ba7 | [] | no_license | ftorresi/PythonLearning | 53c0689a6f3e7e219a6314a673a318b25cda82d1 | f2aeb5f81d9090a5a5aa69a8d1203688e9f01adf | refs/heads/master | 2023-01-12T00:40:05.806774 | 2020-11-13T14:33:08 | 2020-11-13T14:33:08 | 267,460,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | import numpy as np
class Sum:
"""Given a formula for terms, make a sum from term M to N"""
def __init__(self,f,M,N):
self.f,self.M,self.N=f,M,N
def __call__(self,x):
s=0.0
f,M,N=self.f,self.M,self.N
for k in range(M,N+1):
s+=f(k,x)
return s ... | [
"noreply@github.com"
] | ftorresi.noreply@github.com |
552f76adac5b630fd093c9547aeba67df0f510e1 | 6b022a6c93f0cd657d48bb84509e2bf1bb8285f7 | /test/tests.py | 6d1fbf1ad627a8afb5b29b23e79b43261bde8f44 | [] | no_license | garantor/Voting_contract | 57d0cc6a15991dc80785c23d95b91215ba6a9bc1 | 08cb78141bb4011044c6027b5390c872cdca50f8 | refs/heads/master | 2023-04-26T00:37:46.282975 | 2021-06-06T17:22:11 | 2021-06-06T17:22:11 | 374,182,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,008 | py | from web3 import Web3, HTTPProvider, logs
import unittest, json, secrets
class ContractTest(unittest.TestCase):
main_address = "0xb5adee455e22e3001d1B7Ae7504723eC681AdC63" #Account from genech
key_file = open(".secret", "r")
main_address_privateKey = key_file.read()
PATH_TRUFFLE_WK = '/Users/afola... | [
"sundayafolabi992@gmail.com"
] | sundayafolabi992@gmail.com |
ab710e12da546a16860f39ff5eb748b4f7b0773f | 5d0e83e9e1e1e335e371eef7f3a3105ee250a96e | /robot_ctl/logger.py | cb4de577395b8d7a9cbc10c0e0afc7aeda1a3903 | [
"MIT"
] | permissive | Tean/flask-robot-ctl | c1d325806983ffd4a5813c3a6c11c9e4fa47ec39 | 791acfa0cc044d0af3ef250448d2d64d38b51175 | refs/heads/master | 2022-12-11T06:59:40.530711 | 2018-10-25T08:11:45 | 2018-10-25T08:11:45 | 145,836,813 | 0 | 1 | MIT | 2022-12-08T02:58:36 | 2018-08-23T10:14:01 | Python | UTF-8 | Python | false | false | 178 | py | import logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
def getLogger(name):
return logging.getLogger(name)
| [
"netteans@gmail.com"
] | netteans@gmail.com |
9ba20ea5c90dd24acfb8dcc37f5a568c8db9e983 | b7eed26cf8a0042a61f555eed1e9bf0a3227d490 | /students/hyska_monika/lesson_07_manipulating_strings_datetime_formatting/functions_lesson07.py | 8f8be0d1496f381cef380aeead70b40c92f2b819 | [] | no_license | jedzej/tietopythontraining-basic | e8f1ac5bee5094c608a2584ab19ba14060c36dbe | a68fa29ce11942cd7de9c6bbea08fef5541afa0f | refs/heads/master | 2021-05-11T11:10:05.110242 | 2018-08-20T12:34:55 | 2018-08-20T12:34:55 | 118,122,178 | 14 | 84 | null | 2018-08-24T15:53:04 | 2018-01-19T12:23:02 | Python | UTF-8 | Python | false | false | 1,603 | py | # function return length for the longest strings in array
def find_max_sting(my_dict):
# sum set all strings from array to list, next search
# longest word(max), and return strings length
max_table = len(max(sum(my_dict, []), key=len))
return max_table
# function return length for the longest string i... | [
"hyska.monika@gmail.com"
] | hyska.monika@gmail.com |
7adf4a99902b5323e08b0ab93fefc4e253530553 | a19ccee1387f32000507cb1c4cf144de33a0a420 | /xxyy.py | e1a4eff7a7dc1a705931945e884ea36b37511841 | [] | no_license | kartike/Python | e794dc4ce5d1cb0eb8946eb363e06624727e8966 | 72d91a903bd43cf54d90d7851c5529baaebc3a3a | refs/heads/master | 2021-01-11T03:06:04.408849 | 2016-11-23T20:53:16 | 2016-11-23T20:53:16 | 53,250,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | y = int(raw_input())
for j in range(y):
sum = 0
k = int(raw_input())
for i in range (k):
if(i%3==0):
sum = sum+i
continue
if(i%5==0):
sum = sum+i
continue
print sum
| [
"kartike.sachdeva@learner.manipal.edu"
] | kartike.sachdeva@learner.manipal.edu |
15df3710a7c55195103add8520918b5c3b317da0 | 8f4663a777a289af6a1150638846634b3def639e | /calc1.py | 2d43495054b9c47a097e087acd3eb88e46cdd13d | [] | no_license | vitaly-gataulin/pascal-interpreter | 88a8d95d9991c2323ffa8368959cb65a91943809 | 0854b050672aa49904c6bb00a92c918eb7968ace | refs/heads/master | 2021-07-13T20:38:10.294097 | 2017-10-15T18:48:21 | 2017-10-15T18:48:21 | 107,037,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,857 | py | # Token types
#
# EOF (end-of-file) token is used to indicate that
# there is no more input left for lexical analysis
INTEGER, PLUS, EOF = 'INTEGER', 'PLUS', 'EOF'
class Token(object):
def __init__(self, type, value):
# token type: INTEGER, PLUS, or EOF
self.type = type
# token value: 0, 1... | [
"vitaly.gataulin@gmail.com"
] | vitaly.gataulin@gmail.com |
0b99231e5b10a29a640b8ccc5b6f7e9467b3bdb9 | 9081ba9bd3734ff3bd3325816f16ec37d5d5e8bf | /classes/models.py | deb9a565e26ba37d9b7a2a28b3a729e91996f06e | [] | no_license | mark-hoffmann/DeepRL-Pytorch | f653124ae8d9bacc5c17d8fd8e349d0afbfa0e38 | 8e750e84877d3a6769b119daf6ba2ab4fd4febfb | refs/heads/master | 2022-12-08T21:41:39.873327 | 2018-10-24T18:40:56 | 2018-10-24T18:40:56 | 153,031,708 | 2 | 0 | null | 2022-12-08T02:57:52 | 2018-10-15T00:27:20 | Jupyter Notebook | UTF-8 | Python | false | false | 4,265 | py | import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torchvision.transforms as T
from .cuda_setup import device
class DQNImage(nn.Module):
def __init__(self, env):
super(DQNImage, self).__init__()
self.INPUT_TYPE = "IMAGE2D"
#Using 3 a... | [
"markkhoffmann@gmail.com"
] | markkhoffmann@gmail.com |
1a5b5b1c37d633afd306bdc1495cb7d48c17710c | 3470e2862161b0b704a4e110d17e48048a1e4110 | /pyfr/backends/hip/generator.py | ab0374d26461d5963e4ab85be781f3406ce3a0e1 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | FreddieWitherden/PyFR | 08b1a446e7ef43bbdc2340ca1e358467e7bad6cd | 3518a9cb721dddff9bc99ecf3cd4a374f568fb3c | refs/heads/develop | 2023-08-18T22:47:05.700940 | 2023-08-07T03:23:05 | 2023-08-17T18:25:32 | 15,191,343 | 4 | 2 | NOASSERTION | 2022-03-08T12:07:17 | 2013-12-14T19:15:14 | Python | UTF-8 | Python | false | false | 1,439 | py | from math import prod
from pyfr.backends.base.generator import BaseGPUKernelGenerator
class HIPKernelGenerator(BaseGPUKernelGenerator):
_lid = ('threadIdx.x', 'threadIdx.y')
_gid = 'blockIdx.x*blockDim.x + threadIdx.x'
_shared_prfx = '__shared__'
_shared_sync = '__syncthreads()'
def _render_spec... | [
"freddie@witherden.org"
] | freddie@witherden.org |
6575a34cad76e6f38ad43cc8a30113ce68269342 | c4154f3c68eb9740b5f244803de58e16b0f8060c | /legalease/pst-master/ocr/spark-newman-human-receipt-detection/NeuroTools/io.py | eabc3a6bbb5a730aecbba919c7962644f41fac44 | [] | no_license | lukeburpee/archived-legalease-code | c98dd1dde21265be6d263dbf52d0be091112173c | 79b6e9cca5680b9585d25b74e54f13c8f2fee9e2 | refs/heads/master | 2020-04-30T12:16:05.848142 | 2019-03-20T22:09:00 | 2019-03-20T22:09:00 | 176,822,949 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,686 | py | # -*- coding: utf-8 -*-
"""
NeuroTools.io
==================
A collection of functions to handle all the inputs/outputs of the NeuroTools.signals
file, used by the loaders.
Classes
-------
FileHandler - abstract class which should be overriden, managing how a file will load/write
its data... | [
"lukeburpee@gmail.com"
] | lukeburpee@gmail.com |
68eacc9d178626b410e4ae25f06755f2424dcb6e | 5645f2b68c3c725079cf4bba85cacae91987f499 | /alien.py | a4d0fb5e12a134165c445f3cbf889fab38e81c71 | [] | no_license | BuenVia/alien_invasion | 026b0eae5a867d75e7fc7cf2d4a43d8e88783c4a | 724865bb2383f29d4d2ca2ccc143e2a8fd342ec2 | refs/heads/master | 2023-04-11T09:31:46.418236 | 2021-04-18T08:37:26 | 2021-04-18T08:37:26 | 359,088,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | import pygame
from pygame.sprite import Sprite
class Alien(Sprite):
"""A class to represent a single alien in the fleet"""
def __init__(self, ai_settings, screen):
"""Initialize the alien and its starting position"""
super(Alien, self).__init__()
self.screen = screen
self.ai_se... | [
"matthewclifford@hotmail.co.uk"
] | matthewclifford@hotmail.co.uk |
66c03278fa05c94aaa7b00caaa3abe4615836ac4 | dad443bb0586db5483cb844568218bf5e9c628b1 | /tools/toolLib.py | 784f78529f83892e3f53ba8cfa1700940a3f2ea3 | [
"Apache-2.0"
] | permissive | kdsmith18542/assistant | 04671aa37593d44a03786049fc9d85a5c2ec886c | 59fe146f32c2ebd01e9ab8a9a3cadb8d26b390b4 | refs/heads/master | 2021-04-10T05:02:26.107601 | 2019-12-11T12:28:34 | 2019-12-11T12:28:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,669 | py | """
An integrative library that contains the tools required to work the assistant.
* Integrated with Assistant
* Inbuilt feature of Jarvis AI Poject.
"""
import os
import random
import re
import socket
import webbrowser
from sql_tools import sqlite
from api import games, search
from api.play i... | [
"developeryogeshgit@gmail.com"
] | developeryogeshgit@gmail.com |
21a1d36bc9b8a4b4efa2284cf13899f25bb8134e | ebfbe8da8c7bf6fa63640b3255dc91517a021c44 | /drive_controller_mode.py | 5bb846840e3061bca5837d4d60c730ae3a813cd3 | [] | no_license | UTSME/team-buzzard-kill-switch | ee31050bb621e0d712bf3228d0bf8517d53a8df9 | 1bf41c931a4dede297e6768f2c0639de872660be | refs/heads/master | 2021-04-27T17:04:01.987729 | 2018-02-18T00:06:06 | 2018-02-18T00:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,883 | py | import matplotlib.pyplot as plt
import math
SIM = True
K_theta = 0.5
L = 2.4
def run_drive_controller(desired_state, actual_state):
"""
desired_state and actual_state both contain:
velocity,
position_x,
position_y,
bearing
"""
accel = desired_state['velocity'] - actual_state['velocity'] # decides whe... | [
"becks.simpson@maxwellmri.com"
] | becks.simpson@maxwellmri.com |
56430065e6206aa75adb8545c3f006da88a1038f | 55d0e490b69038b937e23593c42ea1781a706adc | /分类.py | 3dc978597719fefea657104c2504639c474fdffd | [] | no_license | beginOfAll/ML3-pytorch | f07daf4fde61d8ae3e2c39922b3950324edc7998 | 4a45462128ccc9a303ece83475f514833c4d51e8 | refs/heads/master | 2020-04-03T20:40:06.512505 | 2018-11-01T11:45:47 | 2018-11-01T11:45:47 | 155,553,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | import torch
import matplotlib.pyplot as plt
import torch.nn.functional as F
# 假数据
n_data = torch.ones(100, 2) # 数据的基本形态
x0 = torch.normal(2 * n_data, 1) # 类型0 x data (tensor), shape=(100, 2)
y0 = torch.zeros(100) # 类型0 y data (tensor), shape=(100, 1)
x1 = torch.normal(-2 * n_data, 1) # 类型1 x data (tensor), shape=... | [
"jianzhong.wang@aispeech.com"
] | jianzhong.wang@aispeech.com |
2591396e34eff6045b506f4945b3063b2a983d1e | 8da129128f9c3973d1b4daa9beca3d1ac760365b | /calcuDriveP.py | 6b646f643f9217aa7d734d1eec0e46061b2de0e0 | [] | no_license | jhualberta/useful_codes | 178f86af347b9181003844df4d91a31515d8d8dd | 1ef0ef841039b2d646be016795735a5bafdd8f20 | refs/heads/master | 2023-06-17T11:59:25.040598 | 2023-06-09T21:23:08 | 2023-06-09T21:23:08 | 185,683,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | a = [(0.950039,43.8742),(0.963093,8.997), (0.975399,-34.0334),(0.982096,-53.2056),(0.985593,-63.9518),(0.98738,-76.2021),(0.988495,-85.6221),(0.988664,-91.6097),(0.989463,-99.9098)]
p0 = 0
p1 = 0
n = 6
for i in range(3,9):
print i+2, a[i][0], a[i][1]
p0 = p0 + a[i][0]
p1 = p1 + a[i][1]
p0 = p0/n
p1 = p1/n
print ... | [
"jhu9@ualberta.ca"
] | jhu9@ualberta.ca |
d8b7244e0901873ce7425e32f4a9550fef3fca96 | 992d00ef97c95c762daa52898e0d78a1c59f6e46 | /project_s/lib/linux-x86/lib/python2.6/site.py | 8194f6a5e132e7a355e32a5f1aa14906a4e3483a | [] | no_license | paktek123/Renpy-Board-Framework | 764e359629257b8194ef05eea22ca9e483545595 | 99c606f5738c63ca72e1b2ebac87a0032e04431c | refs/heads/master | 2016-09-03T03:32:46.467981 | 2012-11-11T17:47:29 | 2012-11-11T17:47:29 | 6,105,994 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | # Intentionally left blank.
| [
"neeran@debian.(none)"
] | neeran@debian.(none) |
28018f64528373e49dad30864508772d75ffa25c | b44efc71f4da37ea94f5891d63c115704a7ab59d | /cms/admin.py | 14ab47a2492191dfd0ea8ac56e3674234eab4278 | [] | no_license | AddDon1337/django_training_website | 10778c25324ff3135932417bd9ba9ca2cb3664c3 | 8cb9ab4c967eab25569db2a59dc6c21de74c7fe8 | refs/heads/master | 2023-06-17T14:15:32.649657 | 2021-07-14T09:37:50 | 2021-07-14T09:37:50 | 378,891,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from django.contrib import admin
from django.utils.safestring import mark_safe
from .models import CmsSlider
# Register your models here.
class CmsAdmin(admin.ModelAdmin):
list_display = ('cms_title', 'cms_text', 'cms_css', 'get_img')
list_display_links = ('cms_title',)
list_editable = ('cms_css',)
fi... | [
"dmitriy.lekov@mail.ru"
] | dmitriy.lekov@mail.ru |
97da5eab99b4fbaf4ed5b7e3402744dff9aa5894 | 01b2a80bcd34a070ba4812c6eb8f3135322f4bd8 | /manage.py | 3ec1f43d7d2022513239b9372c8b4bf639823644 | [
"MIT"
] | permissive | MojoJojo6/ForumDiscussion | af3c5f9c4d45dd29c4020178d930f311d725ce76 | 62718b90aa31f9568cb13485a021119918f60d0a | refs/heads/master | 2020-03-06T14:59:01.562455 | 2018-05-16T11:19:57 | 2018-05-16T11:19:57 | 126,946,370 | 0 | 0 | null | 2018-05-16T11:19:58 | 2018-03-27T07:29:12 | Python | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ForumDiscussion.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djan... | [
"lsriramarvind95@hotmail.com"
] | lsriramarvind95@hotmail.com |
31f1283ebb3ed94c6b175fcfca7ee863a61f5436 | e9b309e58f542df505fd6e8852dfab7b8402b3d2 | /Hockey_Scraper/hockey_scraper_2.7.py | 55ce60c587e00ae1e216bc3c9f4f5c069977bce3 | [] | no_license | nicksarris/freelancing | 2d11cc8d74553ab9acb2e706ce9706daed0f50bf | 709b542214799cb9c19bb0d2a911a8cffb4e899d | refs/heads/master | 2020-05-17T11:30:36.217045 | 2019-04-26T19:57:51 | 2019-04-26T19:57:51 | 183,686,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,103 | py | __author__ = 'Nick Sarris (ngs5st)'
import pandas as pd
from bs4 import BeautifulSoup
import requests
def scrape_data():
names = []
teams = []
positions = []
cap_number_17_18 = []
cap_number_18_19 = []
salary_17_18 = []
salary_18_19 = []
salary_19_20 = []
salary_20_21 = []
s... | [
"ngs5st@virginia.edu"
] | ngs5st@virginia.edu |
4fe73cb3a28ee09b69fc1ffa7d773ffb7f9ded6d | e799a31fb2e2ac155a3e0b69ee077c4e2c362242 | /ASCII Dino Game.py | 8cd9affcc87af7bdceacf37349194b964bef14fb | [] | no_license | Morgan-Potter/ASCII-Dino-Game | 371624d83d59af1edd5135e4428a2b69e36fae1d | 361e03b2b97e76e866cc8c2653ee56aa814cf21c | refs/heads/main | 2023-07-15T18:20:55.112214 | 2021-08-28T07:30:46 | 2021-08-28T07:30:46 | 400,731,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,630 | py | ''' This is a random game I made whilst bored. It will only work on windows machines due to clearing the terminal. If on linux, change the clearConsole define statement accordingly. '''
import random
import os
import time
import keyboard
class Game:
def __init__(self, wins, jumps, score, losses):
self.siz... | [
"morgs6666@gmail.com"
] | morgs6666@gmail.com |
70a514c20bc20c6c5fe7834742a6ac3b8aa79c82 | c6c18aab45e894fcb815b6e2711e09f84ba127a9 | /train_file/bipartite_matcher.py | 0dec4801b9d22f9fb38cb4754fe1d71d75f5332d | [
"Unlicense"
] | permissive | cnzhujg/Table-Detection | 4fbd5f84de18152af1a1d8c96f4793bae348a311 | 6fd722478ac733fc14425473f9e38670fd8857b0 | refs/heads/master | 2020-09-09T05:13:39.231490 | 2019-03-18T11:54:36 | 2019-03-18T11:54:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | import tensorflow as tf
from tensorflow.contrib.image.python.ops import image_ops
from train_file import matcher
class GreedyBipartiteMatcher(matcher.Matcher):
"""Wraps a Tensorflow greedy bipartite matcher."""
def __init__(self, use_matmul_gather=False):
"""Constructs a Matcher.
Args:
use_matmul_... | [
"noreply@github.com"
] | cnzhujg.noreply@github.com |
19bab56615e192b27063fe8637feca7b68430de3 | 560f1c3dd6e762f2973a0eda6c9ea514fad61f35 | /patcher/bcm-patcher.py | 23a6ca30ffe212199fc961e74a9e1c9d5fc7ed62 | [
"BSD-2-Clause"
] | permissive | 6e726d/monmob | 2f7358305ac80fca56323af18fc0726fe87174f6 | e16df370da7ff4236e985b456ab5b6fe1345c221 | refs/heads/master | 2021-12-07T13:31:52.741975 | 2015-12-04T17:34:46 | 2015-12-04T17:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,374 | py | #!/usr/bin/env python
from __future__ import with_statement
# Copyright (c) 2012, Andres Blanco and Matias Eissler
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions o... | [
"6e726d@gmail.com"
] | 6e726d@gmail.com |
e4f7afce0366c468bd698ae11cf19b2dc6927b1b | a7a50c7176dc4f1c1f945a667ba8057870d6dd73 | /Server/api/goofy/machine_learning/audio_features.py | 6c5904f532cd9bdd4306274319be65dbbb91003b | [] | no_license | spaghettifunk/Master-Thesis | 511998ddc104e677ff2f88eec06f4a14766a3731 | 3839fca0e954a277d2d1ba0af9f31cc15267831e | refs/heads/master | 2021-06-02T22:04:47.452801 | 2016-07-23T15:19:06 | 2016-07-23T15:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | __author__ = 'davideberdin'
"""
The MIT License
Copyright (c) 2015 University of Rochester, Uppsala University
Authors: Davide Berdin, Philip J. Guo, Olle Galmo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
i... | [
"davide.berdin.0110@student.uu.se"
] | davide.berdin.0110@student.uu.se |
d77a35a50a36a7be1da85c5291e5348546867bdf | 4accce3b8e6dcb0e084210afc38e4148b7d2b433 | /app.py | 49da5a7a76e39abb2071ae64972377341efcadaa | [] | no_license | DanielBerton/gym-project | ecf0a9d87c73b5abd465b7ae410657c143fa5d1d | 5811607d391852747b1560b4d924de84eddafb71 | refs/heads/master | 2023-06-07T06:02:19.876856 | 2021-06-30T06:56:22 | 2021-06-30T06:56:22 | 372,002,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | from models import *
from flask import Flask
from flask import render_template
from flask import request, redirect, url_for, make_response
from flask_login import login_required, current_user, login_manager, LoginManager, login_user, logout_user
from login import login_bp
from weight_room import wr_bp
from settings imp... | [
"daniele.berton2@gmail.com"
] | daniele.berton2@gmail.com |
e1a754bf9d1c2786462fdc4189eb7875b9c0c192 | 542c040b9b2150d789096f031dcf7a4362b034fe | /forum/migrations/0038_auto_20210501_1524.py | fc2c8abc562b4853982595d4033898a39b86bb4d | [
"Unlicense"
] | permissive | rafimuhammad01/mtf-hackathon | 3115412f673774cc3991bd2a67854bfa645966d1 | 83ab410239a93ff04e57d7ceb2d1d292ba365866 | refs/heads/main | 2023-04-12T15:28:41.506450 | 2021-05-22T11:27:05 | 2021-05-22T11:27:05 | 360,573,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # Generated by Django 3.2 on 2021-05-01 08:24
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forum', '0037_auto_20210501_1520'),
]
operations = [
migrations.AlterField(
model_name='answer',
name=... | [
"rafi10muhammad@gmail.com"
] | rafi10muhammad@gmail.com |
f0b6c84134cff04d0a2170529e4f1312304ee7ec | 5f9462e07027642bca7d905b47541b22d4651efb | /test/tryTreeInsertion.py | e8db8c05ae58b698f58de2a9a1272706d93c38ae | [] | no_license | tada1765/InterviewQuestion | fd3c24238a55a960ac835f8b59a49fc7d52b76d0 | e222a8da3cfbe84c8a4a63c30dd35358e38c5bde | refs/heads/master | 2021-04-12T21:31:10.979391 | 2020-06-05T07:16:58 | 2020-06-05T07:16:58 | 249,110,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # Python program to insert element in binary tree
class newNode():
def __init__(self, data):
self.key = data
self.left = None
self.right = None
def __repr__(self):
if self.left and self.right:
return f"({self.key}, {self.left}, {self.right})"
... | [
"www.tada1765@gmail.com"
] | www.tada1765@gmail.com |
ecd6a017e56f382f56101c4ef7d8026cf14b1779 | ad01c77592ff8c2f7f7f4abca01bde8b52c8fce8 | /Curso_2-4/03week_2.py | 48fdcec3adfe8023ef8fc3b90f9ae3402034be55 | [] | no_license | Ernest-Sharp/Programming_for_Informatics | ddc59c96a5996d5b0bb027c5614765023cc5ddee | 8f774eaa211c7d07b4ec53ad0e7745fe9bafb979 | refs/heads/master | 2021-01-21T14:23:10.937028 | 2016-06-24T14:57:42 | 2016-06-24T14:57:42 | 58,071,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # 7.2 Write a program that prompts for a file name
# , then opens that file and reads through the file, looking for lines of the form:
# X-DSPAM-Confidence: 0.8475
# Count these lines and
# extract the floating point
# values from each of
# the lines and compute the average
# of those values and produce
# an output... | [
"es29192@email.vccs.eu"
] | es29192@email.vccs.eu |
b10505eefc49acd5932a42e1df90cbad3a125c6a | dee190160bf4527e733b2f13f75114e813735738 | /accounts/urls.py | bedd647dfae4f2e11e534b4c1a466b3357bb7c96 | [] | no_license | chandanchoubisa/HSH | 7b7237201ceaa3eadc08ef32aa925b595c34491b | 99886fcfb1b4d8fd08b6dc6d0688af37ec1a4dc0 | refs/heads/master | 2022-11-26T13:52:53.214841 | 2020-01-21T04:42:59 | 2020-01-21T04:42:59 | 223,442,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from django.urls import path
from . import views
urlpatterns=[
path('login',views.login,name='login'),
path('register',views.register,name='register'),
path('logout',views.logout,name='logout'),
path('dashboard',views.dashboard,name='dashboard'),
] | [
"chandanchoubisa24@gmail.com"
] | chandanchoubisa24@gmail.com |
f08eb08af97a118efb489053fcfb9c636306ebd7 | 13299669a4acd8d2bfcf61f298af604505b2006a | /venv/Scripts/easy_install-3.7-script.py | 8c080566d4b560200a5fe6f786fbcd81bdb08a2b | [] | no_license | nishantsapkota487/Repo-for-fb--bot | 3e56e31a4e786478dc24ad47ed3fcaaee7686d1a | f096e26b4c3804faafc87c64c589e06417c7cffc | refs/heads/master | 2022-11-14T06:35:55.000483 | 2020-07-03T17:44:42 | 2020-07-03T17:44:42 | 264,762,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #!C:\Users\Nishant\PycharmProjects\selenium\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"sapkota.nishant@wmich.edu"
] | sapkota.nishant@wmich.edu |
c2ff6a75ace588ebd4c34b2de2d98599187d9cff | 376d7c45c1b87cfec2f9375ea0d54554bee12b88 | /tests/modeladmin/admin.py | e7fa868db1bb1cffed7fda2cc88de920e4133fa1 | [
"BSD-2-Clause"
] | permissive | riteshpallod/django_postgres_extensions | 22657f39840f749831b9282f3c3baad5b5410117 | 42f130eb7aad6410efd6355f53740ce48cc52145 | refs/heads/master | 2020-11-26T22:59:17.352145 | 2019-12-20T09:42:12 | 2019-12-20T09:42:12 | 229,224,539 | 1 | 0 | NOASSERTION | 2019-12-20T08:37:59 | 2019-12-20T08:37:58 | null | UTF-8 | Python | false | false | 430 | py | from django.contrib import admin
from django_postgres_extensions.admin.options import PostgresAdmin
from .models import Product, Buyer
class ProductAdmin(PostgresAdmin):
filter_horizontal = ('buyers',)
fields = ('name', 'keywords', 'sports', 'shipping', 'details', 'buyers')
list_display = ('name', 'keyword... | [
"paul"
] | paul |
f33a50e463093203f23792a62706ffdaff1f34d1 | d3f33ce4c97d2a3842b1a5d30d8929e08c9edae0 | /pysobol/data.py | 81ad64b5ddacdd508eacb6624f43961982f77d1f | [] | no_license | archibate/pysobol | a57c3a69da515bdc561955ea0877ceceae4ea31e | 7af4cb30b74a7a42edf9dfdda590231fc33bdddf | refs/heads/main | 2023-03-06T06:24:47.219834 | 2021-02-16T05:43:30 | 2021-02-16T05:43:30 | 339,296,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893,857 | py | # generated from https://web.maths.unsw.edu.au/~fkuo/sobol/new-joe-kuo-6.21201
_sobol_data = \
((lambda bs: (lambda f: [__import__('numpy').load(f)['arr_0'], f.close()][0])(__import__('io').BytesIO(__import__('base64').b85decode(bs))))(
b'P)h>@6aWAK2mk;8Apj!W@;V&d3INnQ7yt<X6aZmza$hhmZg6=401yDwI~V`}0000S-3kBz0001-y??ybS... | [
"1931127624@qq.com"
] | 1931127624@qq.com |
b625db6dadaa0f29c13b640a46140842dd2f8df4 | 7fb049a7c16f9b7b1a34165314d4773307f5620b | /bag/contexts.py | 909e04e7624040c82ccb76b6c6aace972138ce1d | [] | no_license | pilecki/ksiegarnia | 5a99f2a38b0530b726165275f811fc39e4b18b04 | 92680f1aa96755d50c4da7a6fc231808cf65e84e | refs/heads/master | 2022-12-04T11:44:41.789944 | 2020-07-31T04:27:49 | 2020-07-31T04:27:49 | 269,488,546 | 0 | 1 | null | 2022-11-22T06:35:08 | 2020-06-04T23:46:30 | HTML | UTF-8 | Python | false | false | 787 | py | from django.shortcuts import get_object_or_404
from products.models import Product
def bag_contents(request):
bag_items = []
total = 0
product_count = 0
delivery = 2
bag = request.session.get('bag', {})
for item_id, quantity in bag.items():
product = get_object_or_404(Product, pk=it... | [
"mlaskowski@onet.pl"
] | mlaskowski@onet.pl |
44c4957dd9d0ce879c5b24588b6e255e1c38abe0 | 8be3396c3a89b072b363f2a43b446debdba7d349 | /loader_functions/initialize_new_game.py | 8fbbfe4a217d67bcb83f5553009b195e829dda66 | [] | no_license | BunkyChoner/TCODforDM | d8c7411e2335bd3e501b197fe640e2683449530f | c1dc9bdf8ef3d0f42e4ffc1e3896bfc9a1612df4 | refs/heads/master | 2021-03-21T15:50:18.021141 | 2020-03-14T16:17:48 | 2020-03-14T16:17:48 | 247,309,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,857 | py | import tcod as libtcod
from components.fighter import Fighter
from components.inventory import Inventory
from entity import Entity
from game_messages import MessageLog
from game_states import GameStates
from map_objects.game_map import GameMap
from render_functions import RenderOrder
def get_const... | [
"noreply@github.com"
] | BunkyChoner.noreply@github.com |
3d59e7ee3017ac3af2694b7848f0d7ba877e64a8 | 73082e24ef92fac5675af75999ba00d7c3b674b4 | /setup.py | 371d38b6a048f81a6548836796aa74f4c7bbbf38 | [] | no_license | Trofmann/tic_tac_toe.py | 90177a73319c588d6715abcf5c6109c7848e7525 | 9b804f72ca5b4c6759d78497278f227217929565 | refs/heads/master | 2023-03-03T16:57:01.070995 | 2021-02-13T15:31:29 | 2021-02-13T15:31:29 | 338,605,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from cx_Freeze import setup, Executable
executables = [Executable('tic_tac_toe.py', base='Win32GUI')]
includes = ['pygame', 'settings', 'button', 'game_functions', 'entry_pole']
options = {
'build_exe': {
'includes': includes,
'build_exe': 'Tic-Tac-Toe'
}
}
setup(name='tic_tac_toe',
ve... | [
"trofimovevgeniy9@gmail.com"
] | trofimovevgeniy9@gmail.com |
739dc507ed8e95b71944ed1eaf35354ffc47173b | 6413ac303e56228fd8ee9780ca57c9d0616a635b | /wazimap_ng/points/migrations/0027_auto_20200521_1201.py | ddccc449430bc87bfe061c38c3a6e9a44d1d0ee3 | [
"Apache-2.0"
] | permissive | OpenUpSA/wazimap-ng | 6790b8fc59b7a441f31ec885d0bc47520e72f417 | 533ffabc0e1268bc59cd44c3e0a9d20f6a50b26e | refs/heads/staging | 2023-05-25T19:03:51.024204 | 2023-05-08T08:18:39 | 2023-05-08T08:18:39 | 229,435,119 | 15 | 18 | Apache-2.0 | 2023-09-08T18:33:32 | 2019-12-21T13:58:37 | Python | UTF-8 | Python | false | false | 479 | py | # Generated by Django 2.2.10 on 2020-05-21 12:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('points', '0026_auto_20200521_0800'),
]
operations = [
migrations.AlterField(
model_name='profilecategory',
name='pe... | [
"goyal1092@gmail.com"
] | goyal1092@gmail.com |
789e4114c9fbe9e9ced30578f4067d2f53681a5c | c07bf95ece1061d5fc2ac5e2de82f2ec8a0844b4 | /02/part2/findCommonCharacters.py | a3c63aca6d86c3161ffa1aa285f19bfc12328255 | [] | no_license | aaronfullerton/advent-of-code-2018 | 953e58bafb374e09ba27b1f1f6d7b2f4d8964fac | c2dc49d684143b5e6dff005fefb2fc4e3c98ac71 | refs/heads/master | 2020-04-09T09:10:51.736140 | 2018-12-17T03:08:14 | 2018-12-17T03:08:14 | 160,223,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | def findCommonCharacters():
boxIds = open('./input.txt', 'r').read().splitlines()
targetString1 = None
targetString2 = None
for boxId1 in boxIds:
boxIds.remove(boxId1)
for boxId2 in boxIds:
if(isSimilar(boxId1, boxId2)):
targetString1 = boxId1
... | [
"aaron.fullerton@virtahealth.com"
] | aaron.fullerton@virtahealth.com |
5f8e9d8f03088ae081d0aa728c5313e487f4b2ef | 6d9ecf8ef02408411706732690c0cc9914ab89ad | /venv/Scripts/pip3.8-script.py | 673f99ecbf279e67bcf4be76c9d2203e334b6da0 | [] | no_license | AndryDeveloper/web | bfc3627e83c1c733b1898ae16c2fa1a88db5ec9b | 023669cbb52551061ce4f7671a542338458713e2 | refs/heads/master | 2023-08-22T12:24:09.590023 | 2020-05-31T16:11:06 | 2020-05-31T16:11:06 | 264,239,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | #!C:\web\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load... | [
"andri-atrium@mail.ru"
] | andri-atrium@mail.ru |
3e103408af41d524267c559077285e119c87307c | 3dc8a63be515e5677f1b2b18ed21431f0da1257f | /users_project/users_project/settings.py | 69045d2813f22369cfa8ca50278624754185deba | [] | no_license | IanDanner/Django | a686e5e68eee5d452f16d66a8b3161645790075a | f000adf3126db3d57559f1146da669b37b14f755 | refs/heads/master | 2020-03-21T21:37:05.076714 | 2018-06-28T22:22:10 | 2018-06-28T22:22:10 | 139,073,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | """
Django settings for users_project project.
Generated by 'django-admin startproject' using Django 1.11.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
im... | [
"norseman117@gmail.com"
] | norseman117@gmail.com |
cb5c726ca18857382cd65f7738bb333a6465f279 | 6f4bdaeb6c0f7a62d3c192ed11e43924d57dfdb9 | /voxceleb1/module/model/resnet_1d.py | 87071f40b49d1ba57f8c0e28917f30ed91fece86 | [] | no_license | tjysdsg/pytorch-projects | 53c599db45c30201a50a3bd93f1fae3e1b141cf3 | a9c215672215e8ab97ff98a4e35cf4176dbb7e65 | refs/heads/master | 2022-04-16T05:33:49.876179 | 2020-04-16T01:45:43 | 2020-04-16T01:45:43 | 243,924,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,140 | py | """ResNet in PyTorch.
For Pre-activation ResNet, see 'preact_resnet.py'.
Reference:
[1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
Deep Residual Learning for Image Recognition. arXiv:1512.03385
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
class BasicBlock(nn.Module):
expansi... | [
"tjy1018543509@163.com"
] | tjy1018543509@163.com |
e7a6af0211c2dc7b7eb1233756ba1ea9bdf9fa7d | a204d35c1847cceeaf46d3561dafdb34ee9066e0 | /web/google/ajstools/django/dispatch/dispatcher.py | e9198fc934c6e6757218b6cd0a7d3f9abf5aa5fd | [
"MIT"
] | permissive | ajs/tools | a82a4dbc4db05b928e2e2a94ab21b0566c0edb5c | 75504d2443cdc80db120c5dcdc14db379d15396e | refs/heads/master | 2023-05-12T19:23:09.825486 | 2023-05-03T00:49:33 | 2023-05-03T00:49:33 | 50,461,416 | 5 | 1 | MIT | 2023-04-30T07:45:47 | 2016-01-26T21:43:55 | Perl | UTF-8 | Python | false | false | 8,398 | py | import weakref
try:
set
except NameError:
from sets import Set as set # Python 2.3 fallback
from django.dispatch import saferef
WEAKREF_TYPES = (weakref.ReferenceType, saferef.BoundMethodWeakref)
def _make_id(target):
if hasattr(target, 'im_func'):
return (id(target.im_self), id(target.im_func))
... | [
"ajs@ajs.com"
] | ajs@ajs.com |
100b1cc3e559bb78fe47876edd0cab9e44c078dd | f7d9a1192321dd9e90cee14f33049b2c10db229f | /src/regex_parsing/src/lineparsers/lineparser.py | e27712c2cf1f5dfb33f0ec053f6572f0fcfa52fb | [] | no_license | hcts-hra/turkology-annual | 336b0ac9bbdabf36cfe8fd20297d49e116e24776 | 5522165d01235c057dc8dfdbed336314983294ac | refs/heads/master | 2022-08-30T05:57:10.002815 | 2017-07-18T17:54:20 | 2017-07-18T17:54:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,287 | py | """
This module includes the LineParser class.
It was developed as a contribution to the project Turkology Annual Online
at the Cluster of Excellence "Asia and Europe" at the University of Heidelberg.
"""
import lepl
import re
from utils import specialparser
from utils.constantandconfig import LineParserTa, RANGE_CO... | [
"kontakt@dustin-heckmann.de"
] | kontakt@dustin-heckmann.de |
4aa4e37ff6b5f875bac9bb642d149e471299499f | c0960d3ebef9b4167c7f7581c50adcfb66cc02fa | /app/deploy/npm.py | 8cddaf5b9b6f52d7507b98f632b9b3e4e8a3f489 | [] | no_license | hebkhan/server | 8358c3970322383473e4d7165447ccc800d864be | 3150d9316489da638a19470085ca97061c3592ee | refs/heads/master | 2021-06-13T15:27:01.571952 | 2015-08-03T22:09:43 | 2015-08-03T22:09:43 | 13,910,197 | 1 | 2 | null | 2016-02-29T21:23:07 | 2013-10-27T20:57:13 | Python | UTF-8 | Python | false | false | 1,967 | py | # npm.py - an interface to our increasing love of node
import os, sys
import commands
MODULE_PATH = os.path.join(os.getcwd(), "deploy", "node_modules")
def popen_results(args):
return commands.getoutput(' '.join(args))
def installed():
"""docstring for npm_installed"""
return popen_results(["command", "-... | [
"oferko@il.ibm.com"
] | oferko@il.ibm.com |
74d2ebaf202fafc0b32969bab4c51a7f98e06420 | c49861c29760895e745e5b5c159445e0a9a72363 | /catapult/deploy/factory.py | 996f4fb4c7938b58221443b92539af5152c193a2 | [] | no_license | catapult-deployer/catapult3 | 1b487a195c7e20852f3dead4743a177c1c57f424 | 2e0f1877bf3bd67053ebc53ff1c7290e8303889d | refs/heads/master | 2022-12-10T14:29:42.520253 | 2021-02-22T21:08:56 | 2021-02-22T21:08:56 | 162,704,611 | 37 | 1 | null | 2022-12-08T09:29:56 | 2018-12-21T11:07:25 | Python | UTF-8 | Python | false | false | 3,253 | py | import importlib
from catapult.deploy.ssh import Ssh
from catapult.deploy.paths import Paths
from catapult.deploy.notifier import Notifier
from catapult.deploy.recipes import Recipes
from catapult.deploy.storage import Storage
from catapult.deploy.locker import Locker
from catapult.deploy.blocker import Blocker
from ca... | [
"artemiy@pulyavin.ru"
] | artemiy@pulyavin.ru |
a92ad29097b853c25b67ce5e61169bb0b167ade9 | 18cf0f69d4834184cf3a3f7684c8de6492ed8c76 | /MDN/mdn.py | 63801caa9ddefc387b70cbb141849ad2f493fcc4 | [] | no_license | BensonRen/BDIMNNA | ead44f8f7299b3c8f2ddef583a1a547ae175a3f4 | 354473fc4d01206308637836c7c6ddf2ffdf89a5 | refs/heads/main | 2023-08-31T20:35:18.223993 | 2023-08-25T05:50:22 | 2023-08-25T05:50:22 | 304,027,812 | 20 | 8 | null | null | null | null | UTF-8 | Python | false | false | 10,810 | py | """A module for a mixture density network layer
This file is copied from https://github.com/search?q=mixture+density+network+pytorch
MIT licensed
For more info on MDNs, see _Mixture Desity Networks_ by Bishop, 1994.
"""
import torch
import torch.nn as nn
import torch.optim as optim
from torch.autograd impor... | [
"noreply@github.com"
] | BensonRen.noreply@github.com |
fb205e7d59cb7ba4da1c5c08a6ec3ce934266b2b | 7916dbdac1fe7c29c6f2bcaab2101af3dea0ae1f | /yamllint/lilac.py | 56c24b0d35bc1d3316809ac4a6dd08d8a3f19437 | [] | no_license | i02001992/repo | 141ea688325ba9f57a80b9a8b7cb816c3cb3767e | 81f26a190761cd43a9311bcb784f139c599c8c63 | refs/heads/master | 2020-04-01T06:23:05.100777 | 2018-10-14T03:38:52 | 2018-10-14T03:40:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | #!/usr/bin/env python3
import fileinput
from lilaclib import *
build_prefix = 'extra-x86_64'
depends = ['python-pathspec']
def pre_build():
pypi_pre_build(
depends=['python-yaml', 'python-pathspec'],
)
def post_build():
pypi_post_build()
update_aur_repo()
if __name__ == '__main__':
single_main()
| [
"lilydjwg@gmail.com"
] | lilydjwg@gmail.com |
994dc44aed1c3a8b297c6e2aaca4eaf502a274df | 8803aadfcff50326e97b6875577687e8af2d56d9 | /myKitchen/myKitchen/urls.py | 5fbe803b4b05fefc01ca3ea2757adb0c613d1902 | [] | no_license | market-fresh/mykitchen | 86a6987ea9c755b13e9df847734e99bea99a37f2 | 70c1450f71dd3b279365ec4284d03f2d2aef9195 | refs/heads/master | 2021-03-30T15:33:34.978591 | 2018-02-07T05:56:56 | 2018-02-07T05:56:56 | 120,569,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,841 | py | """myKitchen URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"mike@marketfresh.com.sg"
] | mike@marketfresh.com.sg |
885dac1aea9646082e49c6fb11da7ae4c038e98e | e65741f7a1f7e81b65993acfc5ece2438725fd3f | /Together/poiss_binomial.py | 850ae01e3dd0fcd6f68c72719691f9e2beea37dc | [] | no_license | emya/4publiishment | 6ad1049887bf8ae250ff7c30ecd299303e6033c5 | 8dd0e295601c0ec570a8d3ebd43c450d6945ffbe | refs/heads/master | 2020-05-30T21:42:25.418556 | 2015-09-12T09:37:01 | 2015-09-12T09:37:01 | 41,783,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,538 | py | #!/usr/bin/env python
import sys
import os
import numpy as np
import math
from mcmc import makej
import scipy.misc as scm
from decimal import *
import random
argvs = sys.argv
def poisson_p(mat):
f_p, f_s = make_freq(mat)
p_mat_p = pois_fixposition(mat)
print "done p_mat_p"
sys.stdout.flush()
#p_ma... | [
"ubuntu@ip-172-31-47-68.us-west-2.compute.internal"
] | ubuntu@ip-172-31-47-68.us-west-2.compute.internal |
cbce60be124e6409a09ece72fae8a3d38ecbd163 | e6844c0be125f7e3e1cb651e3dd2d91f8af6edb1 | /final_project/python/calibration/calibration.py | e4a2906074cbc27e4df69a6d6fa33b1f410fab02 | [] | no_license | ludvigloite/Robotic_Vision | 3583261460297dc25e881345fff60b99ff27280f | 45ec19acaba2886b31ebf7046f80b6e8e0763af1 | refs/heads/main | 2023-06-02T20:03:19.896203 | 2021-06-17T17:15:40 | 2021-06-17T17:15:40 | 338,048,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,992 | py | import numpy as np
import cv2 as cv
import glob
import matplotlib.pyplot as plt
boardSize = (7,10)
shape = (4032, 3024)
run_calibration = True
save_plots = True
image_to_undistort = "IMG_3926"
# termination criteria
criteria = (cv.TERM_CRITERIA_EPS + cv.TERM_CRITERIA_MAX_ITER, 30, 0.001)
# prepare object points, ... | [
"ludvigloite@gmail.com"
] | ludvigloite@gmail.com |
8bbd612105c2a93b32ded986460e25134b4eecdb | e986b8778c5783c90bcae9e4be5727f8811e578a | /ecommerce_ritu/asgi.py | b18f09db7be8438b92653cec1e143c895cfc0183 | [] | no_license | 12Ritu/Djangop | 1016435d926c73644cae343fe6136cee202b7948 | bb0c9680e5198005cb0838f13cdeb927a891588d | refs/heads/master | 2023-03-03T04:20:32.891493 | 2021-02-11T06:20:56 | 2021-02-11T06:20:56 | 337,905,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for ecommerce_ritu project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"rituayer98@gmail.com"
] | rituayer98@gmail.com |
17bd762df562efe10f1e19d313df0ee30e270f22 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007-EOL/desktop/kde/i18n/kde-i18n-ga/actions.py | de1bde6c6440350804ad0e531d7f9bb1d2b5587c | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import get
from pisi.actionsapi import kde
WorkDir="kde-i18n-ga-%s" % get.srcVERSION()
def setup():
kde... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
f6c34a5b992d3c9351cdfa7b2a72e1300edde103 | 2e5859490eea190a139828b77b9144e21832453e | /code/16-4.py | 92ee9bcc09605cd33e7eea0cd15607f7fc30342b | [] | no_license | kevinbolton/ML4WebSecurity | f9233ed4cce4a992f9140b24639a77b4e3acfc68 | c99ad8776321075064b84ab44b4dc4e9fe62bf5e | refs/heads/master | 2020-03-25T18:34:31.249453 | 2018-12-07T03:29:39 | 2018-12-07T03:29:39 | 144,037,838 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | from __future__ import absolute_import, division, print_function
import os
from six import moves
import ssl
import tflearn
from tflearn.data_utils import *
path = "../data/US_Cities.txt"
maxlen = 20
file_lines = open(path, "r").read()
X, Y, char_idx = \
string_to_semi_redundant_sequences(file_lines, seq_maxlen=... | [
"kevin_bolton@outlook.com"
] | kevin_bolton@outlook.com |
7cd76ebce87b520c260fcf0f60886f3e0d3e1cad | a4c7bf89a543a655a78ac51d526fe51780cc2ec1 | /FastSim/python/RadDamage_cff.py | 6c86c11d489711620e89f5bbff277aeaa9df2e0a | [] | no_license | cms-fcal-upgrade/ForwardCaloUpgrade | e5c0c0f0116a52b0194d635c18a8a7e63a6fb77d | 021ea093ac61cb1d9ed31e6f4af0036557a5fb42 | refs/heads/master | 2016-09-11T11:38:25.559221 | 2014-03-05T20:45:29 | 2014-03-05T20:45:29 | 11,695,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import FWCore.ParameterSet.Config as cms
def RadDamage(process, isDam, lumiTot, lumiInst):
process.famosSimHits.Calorimetry.CalorimeterProperties.ECALRadiationDamage = cms.PSet(
isDamaged = cms.bool(isDam),
lumiTotal = cms.double(lumiTot),
lumiInstant = cms.double(lumiInst)
)
pr... | [
""
] | |
5de62e109b15f54e35fc0b0398bfeed488267bde | d0902aaab7b52ad2c03565f98b99237e28279369 | /ui_slideshow.py | c36dcf2e297dac0bf74cd4dd5b33519ac6b4afe7 | [
"MIT"
] | permissive | wahhaj/PySlideshow | a5aa2e69af58201e84fd0592ef2a0f10a379d186 | e1f0aef0f05dd507f71c78f4c81d4aaab518bbeb | refs/heads/master | 2020-04-06T04:31:41.695373 | 2014-04-15T03:19:14 | 2014-04-15T03:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,245 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\ui\slideshow_main.ui'
#
# Created: Mon Apr 14 21:05:56 2014
# by: pyside-uic 0.2.15 running on PySide 1.2.1
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_MainWindow(object):
d... | [
"w4hh4j@gmail.com"
] | w4hh4j@gmail.com |
eaf9b5965186d1fdcf97a00150fb8a637b10d9ae | 17c858c6d02c11d2d75c36b3c33228f5014ae3d0 | /picker/picker/urls.py | f4985b3055304547321f9d71a2780cc832c34f31 | [] | no_license | sloanahrens/picker_demo | 530c341d7db823714d3831cf79a9ebce226c7e17 | 286454f771876f2fa4aebe0fc7be819c59e0d5e3 | refs/heads/master | 2021-07-03T12:02:22.537979 | 2019-05-03T15:28:41 | 2019-05-03T15:28:41 | 76,680,409 | 0 | 0 | null | 2021-06-10T17:29:27 | 2016-12-16T19:37:06 | Python | UTF-8 | Python | false | false | 833 | py | """picker URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"sloan.ahrens@gmail.com"
] | sloan.ahrens@gmail.com |
7b0620242996509de82179979fa3b9c66290947a | adb9740e7be8c46ca0e6961a4b30b6a2440694b3 | /examples/toy.py | da45510ce536bf19ca827a72f7acdca02cd2bd20 | [
"MIT"
] | permissive | stjordanis/simplug | 68ad74301b911a1d08a241cad7df019adb28330f | ce17f985c6b0726c52a60b1e8094d9cb2ada42bd | refs/heads/master | 2023-01-19T08:30:14.563253 | 2020-11-04T06:56:44 | 2020-11-04T06:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from simplug import Simplug
simplug = Simplug('project')
class MySpec:
"""A hook specification namespace."""
@simplug.spec
def myhook(self, arg1, arg2):
"""My special little hook that you can customize."""
class Plugin_1:
"""A hook implementation namespace."""
@simplug.impl
def myho... | [
"pwwang@pwwang.com"
] | pwwang@pwwang.com |
2afd5a36ddaa5e6da5f93dbe105c466a70209f1b | 6ca40fbf6fa88231e7ce95a4ea504e307bb010fc | /tests/csv_read_test.py | fe9566e224f523cd1db408b060f0d517d999582b | [] | no_license | EKU-Summer-2021/onboarding-GretaGulyas | dda1d61096ab4925ece629ec8895394177d7c947 | b9c31daf5c070cc412288085abb0c4ef5757cbd3 | refs/heads/master | 2023-06-16T10:44:35.798732 | 2021-07-08T11:34:59 | 2021-07-08T11:34:59 | 381,599,475 | 0 | 1 | null | 2021-07-08T19:55:31 | 2021-06-30T06:32:22 | Python | UTF-8 | Python | false | false | 444 | py | import unittest
import pandas as pd
from src.csv_read import read_csv_pandas
class CSVReadDataTets(unittest.TestCase):
def test_csv(self):
# given
EXPECTED = True
# when
ACTUAL = isinstance(read_csv_pandas('https://raw.githubusercontent.com/EKU-Summer-2021/intelligent_system_dat... | [
"gulyas.greta@yahoo.com"
] | gulyas.greta@yahoo.com |
650d76d2ec95dabe0d817f4cb0679a5c7ed272a7 | 1cb1e73d5e4c2c053d486fecf2f369081a40c55d | /zw2016/k50/zw_k10/pandas_talib.py | e17f9a6ba5a54021eea18b5723e92c87d0b55f79 | [] | no_license | hzwangchaochen/quant | 4602ba51e4c7c5d3aa932bd9192a5d01a1ea7efa | bcebf61bc8e1481f79a4d12236d107a8cea64ea6 | refs/heads/master | 2021-05-22T23:48:20.047560 | 2020-05-10T14:31:07 | 2020-05-10T14:31:07 | 253,140,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,933 | py | """
Quantopian - Technical analysis Indicators without Talib (code)
@Peter Bakker posted Mar 17, 2015
https://www.quantopian.com/posts/technical-analysis-indicators-without-talib-code
https://github.com/panpanpandas/ultrafinance/blob/master/ultrafinance/pyTaLib/pandasImpl.py
def ACCDIST(df, n): #积累/分配,Accumulat... | [
"13735572662@163.com"
] | 13735572662@163.com |
e03c2ae72cb81704481d02e92f6c9978d01c740d | eb685f897db4adbf1fa6e3aa4fcb5eca8860b562 | /Corrigé_02/01_list_management.py | 83fd5e2a3dcf32a76653da8b5f82041485f1eb29 | [] | no_license | Miisterone/Python | 29a04c852a894e9fcf011000830e343a8eb67472 | 9e733bfafdd222ea4d81673dfae5e73ec27b75f0 | refs/heads/main | 2023-08-05T19:37:45.715371 | 2021-10-01T18:28:50 | 2021-10-01T18:28:50 | 364,328,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | #!/usr/bin/env python3
# coding: utf-8
# ##############################################################################
# Description: This script display messages with list content.
#
# Required: - Run as Standard User.
# - Python 3.x
#
# Deposit: - Dans un fichier python nommé "01_list_managem... | [
"jorispader@ynov.com"
] | jorispader@ynov.com |
fbf6ab3114dcedac52a2f8ea9efdc0b154b1b484 | 507e4551dcf3298e3d0a7d1e53fec512e5fd02c0 | /src/containerapp/azext_containerapp/custom.py | 4cd625df90458d667f57cea1c7e75c5fa1d6dcb1 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | zqingqing1/azure-cli-extensions | 3f4dd3219aee9aaec117aed4a8b6af8a4827839e | 639e10fa4cd4656803000071dcb7fa9a301d9388 | refs/heads/master | 2023-08-16T14:16:39.053287 | 2023-08-01T14:29:54 | 2023-08-01T14:29:54 | 154,740,158 | 0 | 0 | MIT | 2018-10-25T21:30:16 | 2018-10-25T21:30:15 | null | UTF-8 | Python | false | false | 272,936 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | zqingqing1.noreply@github.com |
7cfcbdae2a61832ef23fa83276aaedadf4213882 | c398c078b09d18f60cc575fc453b0e78b65533e3 | /water_mark_adder.py | adbc1d2949d33c1b4f092127dd01a53fd4430fb4 | [] | no_license | norbit8/Auto-Water-Mark | 36f932a71a46235514537a58f1b103f54826a687 | 368ac17da56604c4f1f3866658f1972bcff01706 | refs/heads/master | 2023-06-23T04:13:44.373346 | 2021-07-09T21:24:03 | 2021-07-09T21:24:03 | 384,548,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | import cv2 as cv
import os
import glob
alpha = 0.8
failure = -1
def listdir_nohidden(path):
return glob.glob(os.path.join(path, '*'))
def main():
images = listdir_nohidden('./images')
for image in images:
image_name = image.split('/')[2]
src1 = cv.imread(cv.samples.findFile(image))
... | [
"yoav.levy@fiverr.com"
] | yoav.levy@fiverr.com |
274baaf8178e79f5ed8002cbd2f250f218427824 | 3597488b9cb22c6e23528b889f5581f0050b4a7c | /analysis.py | bcbfd730c1a3606b4177d56834cb482984ba1412 | [] | no_license | shawzh/snipa | 2e517066756f457092b5aeeea7e57780f24c4b9d | 58de9bdece3510360038420e66066f1bb72b2a16 | refs/heads/master | 2021-01-02T23:09:19.521174 | 2017-09-19T15:04:32 | 2017-09-19T15:04:32 | 99,476,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | from bokeh.plotting import figure, output_file, show
from utils.dbUtils import *
from collections import Counter
class graph(object):
def __init__(self):
self.x = []
self.y = []
conn = dbUtils().getConn()
cur = conn.cursor()
cur.execute("select poto from PACKETS_REC")
... | [
"shawz9655@gmail.com"
] | shawz9655@gmail.com |
1d77214ed79b3b759ddba16b2882f8ce9493859f | 5886f4e5eaeae97b48b3aeb26d36fa368db26dd6 | /test_tortue.py | 9a56021c998fbc3e3b179e6b9e11212566729920 | [] | no_license | OlivierB94/test_git | 4243cc3e74afb79e3fdb03ded2166e38aad10bc7 | e86ab885b10e3e7ca307ec3302513d849c3c61d9 | refs/heads/master | 2021-06-30T16:31:09.043708 | 2017-09-20T14:51:15 | 2017-09-20T14:51:15 | 104,229,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from turtle import *
def triangle(couleur):
if couleur in ('red', 'blue'):
color(couleur)
for i in range(3):
fd(100)
left(120)
couleur = input("Choisir une couleur : ")
triangle(couleur)
mainloop()
| [
"spt.olivier.94+mooc@gmail.com"
] | spt.olivier.94+mooc@gmail.com |
79fb011dce6fafdb9b85f99cf4fcf52b0a6c7403 | d6d5a3e94b7c9762a08b9c6e986ea5c4d78bcd64 | /problems/690/test.py | 1ab479b7b1de36befb2b87b0cbfb6d6aa7059f21 | [] | no_license | neuxxm/leetcode | 46a9c247982834d769731b06cb9e9587f68702a5 | fd6c8082f81bcd9eda084b347c77fd570cfbee4a | refs/heads/master | 2023-02-10T22:37:18.966470 | 2021-01-07T08:48:50 | 2021-01-07T08:48:50 | 265,777,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | """
# Definition for Employee.
class Employee(object):
def __init__(self, id, importance, subordinates):
#################
:type id: int
:type importance: int
:type subordinates: List[int]
#################
self.id = id
self.importance = importance
self.s... | [
"neuxxm@gmail.com"
] | neuxxm@gmail.com |
6a24fa175cfabaf9a98d609eddd501c4488d00a0 | 8b91ffaf29fa998e730f54b481ae53e941f6f4db | /prob4.py | 380d93211ba0b68add04e23e062c048e8c6f74e1 | [] | no_license | pcuste1/ProjectEuler | 50efae151866c2a4c9a5a504ce69ad165d19fe52 | 640a905c7814d96c2a836de24a06e65f02c43682 | refs/heads/master | 2020-06-14T03:55:01.598112 | 2016-12-03T20:08:43 | 2016-12-03T20:08:43 | 75,496,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | def palindrome(string):
for i in range(len(string) // 2):
#print(string[i], " == ", string[-1-i])
if(string[i] != string[-1-i]):
return False
return True
def main():
largest = 0
for i in range(100,1000):
for j in range(100, 1000):
if(palindrome(str(i*j)))... | [
"noreply@github.com"
] | pcuste1.noreply@github.com |
efac0d914dde8f2302bef13d97a1bdc7bf875328 | 0dfbd7b7bf385c97f1153fcd81f21073e996217d | /Machine Learning/hw3/utils.py | 77168efb76adea12d9adbbe7b032c67592ab7a27 | [] | no_license | ultysim/TTIC-Courses | 5a7f050e5aba8a57cab46e819de384bee5c3bb78 | c14ff0e45386990fe8f1118bcbf388ec597dee23 | refs/heads/master | 2020-07-03T18:59:24.631284 | 2019-08-12T21:47:56 | 2019-08-12T21:47:56 | 202,013,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,902 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from math import sqrt
def load_data(split):
with open('CR.' + split) as f:
data = []
for line in f.readlines():
if split != 'test':
text, sent... | [
"ultysim@gmail.com"
] | ultysim@gmail.com |
2e91b433bbf958d0ebc14b9fea63743a663e4ae5 | 031b96ecf789f13dae766e31af48a5c6e6e9eea1 | /app.py | 21da14efc00e9ed3a119b92d7bb1bbd92963218e | [] | no_license | stephaniechow/Space-Invaders | 307ed632297f01bb03c8c50fe98429a87394cd1e | 0869ca29619135db50796867a74756e8c128645f | refs/heads/master | 2020-05-15T13:20:04.354220 | 2019-04-19T17:10:44 | 2019-04-19T17:10:44 | 182,297,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,651 | py | """
Primary module for Alien Invaders
This module contains the main controller class for the Alien Invaders application. There
is no need for any additional classes in this module. If you need more classes, 99% of
the time they belong in either the wave module or the models module. If you are unsure
about where... | [
"stephaniechow@dhcp-clara-2987.eduroam.cornell.edu"
] | stephaniechow@dhcp-clara-2987.eduroam.cornell.edu |
38952261ca700ee7aa5a5ac0a9c3449ec8eab496 | 2c4648efe8c7e408b8c3a649b2eed8bb846446ec | /codewars/Python/8 kyu/Watermelon/divide.py | e4275b57511ac378659548d00152fa835dbc67d8 | [] | no_license | Adasumizox/ProgrammingChallenges | 9d79bd1b0ce4794b576124f9874aabb86d5c0713 | 3630fcde088d7991e344eb1b84805e9e756aa1a2 | refs/heads/master | 2021-07-16T08:16:57.538577 | 2020-07-19T19:58:28 | 2020-07-19T19:58:28 | 190,159,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | def divide(weight):
return weight > 2 and weight % 2 == 0 | [
"darkdan099@gmail.com"
] | darkdan099@gmail.com |
970819a9aa00368d6298762f74be5eceda1cb4d2 | 589ac0a71099f4ee6857a31986305f0df2c16ede | /Scripts/xbbtools/xbb_help.py | ef3ac759cf4a5cc308c433634fb417ed393f15b5 | [
"LicenseRef-scancode-biopython"
] | permissive | barendt/biopython | 802aad89005b302b6523a934071796edbd8ac464 | 391bcdbee7f821bff3e12b75c635a06bc1b2dcea | refs/heads/rna | 2021-11-09T19:11:56.345314 | 2010-05-01T02:44:42 | 2010-05-01T02:44:42 | 636,700 | 0 | 0 | NOASSERTION | 2021-11-05T13:10:14 | 2010-04-29T02:35:46 | Python | UTF-8 | Python | false | false | 2,287 | py | #!/usr/bin/env python
# Created: Tue Sep 4 09:05:16 2001
# Last changed: Time-stamp: <01/09/04 09:42:37 thomas>
# thomas@cbs.dtu.dk, http://www.cbs.dtu.dk/thomas
# File: xbb_help.py
from Tkinter import *
from ScrolledText import ScrolledText
class xbbtools_help(Toplevel):
def __init__(self, *args):
Tople... | [
"thomas"
] | thomas |
693c24584db94dfc91e26480018ebd251569a8f9 | 359e768df0aa85a7fc8a119d1a304d93f2e04452 | /kobayashi/tutorial10/tutorial10.py | 66e7ddce9c4b56a97a684b37502ea010b171450a | [] | no_license | tmu-nlp/NLPtutorial2020 | 5694650d365b836ceefc822a4ee33fae8ec7d72b | 51c84c7a7280b62fa11c5893987eeba7d7fad3d6 | refs/heads/master | 2021-05-19T11:40:05.325180 | 2020-08-12T04:55:41 | 2020-08-12T04:55:41 | 251,679,127 | 0 | 1 | null | 2020-08-12T04:55:00 | 2020-03-31T17:26:14 | Python | UTF-8 | Python | false | false | 2,571 | py | #python tutorial10.py ../../test/08-grammar.txt ../../test/08-input.txt
import sys
from collections import defaultdict
import math
class CKY():
def __init__(self):
self.nonterm = []
self.preterm = defaultdict(lambda:[])
self.minusInf = -100000000
def grammer_input(self, grammer_fil... | [
"kazuma.kobayashi.3t@gmail.com"
] | kazuma.kobayashi.3t@gmail.com |
b23766c9ca72a52d60bb5db8a8f8b3cfd20e8e8b | c15f7a2fa02cf02d61de233c64c0e4fe823ca8a5 | /src/border-analyitics.py | a789615645b42a1daf2202216512be5d325a2d82 | [] | no_license | elamarkovsky/border-crossing-analysis | 846a25dbc05b39041d2df2193e5fe24395b8b781 | 0b8a1eb61f33c955a3e402fa00ac28e1c371ce50 | refs/heads/master | 2020-07-09T04:46:09.212776 | 2019-08-25T01:41:16 | 2019-08-25T01:41:16 | 203,882,542 | 0 | 0 | null | 2019-08-22T22:28:17 | 2019-08-22T22:28:17 | null | UTF-8 | Python | false | false | 3,286 | py | # Import libraries and define variables
import csv
from pprint import pprint
from datetime import datetime
from operator import itemgetter
import os.path
total = 0
# Import data in csv format
#path = r"C:\Users\elama\PycharmProjects\BorderCrossings\input\Border_Crossing_Entry_Data.csv"
dirname = os.path.dirname(__fil... | [
"ela.markovsky@gmail.com"
] | ela.markovsky@gmail.com |
163065b0e4c72fe84e3fca3e60912cd833906f1e | ed7fbe58b6cef5fe02f0c21f019b41d866efd80f | /tools/generate_contents.py | ac9564368384d0fed0891802271c59a89f43afd0 | [
"MIT"
] | permissive | gully/k2-metadata | ff80d04bcb10482045cb7438b7f33feab015d1b8 | 2e512a9bcd20ead0976ffd275b2fc183f45d6ff7 | refs/heads/master | 2021-01-23T13:31:57.443127 | 2019-04-05T19:24:52 | 2019-04-05T19:24:52 | 102,670,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | import os
import re
import itertools
import nbformat
NOTEBOOK_DIR = os.path.join(os.path.dirname(__file__), '..', 'notebooks')
CHAPTERS = {"01": "Chapter 1",
"02": "Chapter 2",
"03": "Chapter 3",
"04": "Chapter 4",
"05": "Chapter 5"}
REG = re.compile(r'(\d\d)\.(\d\d)-(... | [
"igully@gmail.com"
] | igully@gmail.com |
e5c3357733d35459e95a97a4723d84dac216b26d | 675dd768a06e6c4098cd5b8347ef01d2b43063a2 | /board/views/question_views.py | 3fe21fc67d7efd79ce5146b78b5bbdb442dbb715 | [] | no_license | KevinSon/djangoDemo | f47ea57e96668ec0242d3e092542f3a8838b33bf | 4d536a118add015f89d8e5058ebbd0a02e24f218 | refs/heads/master | 2023-07-02T07:29:24.612730 | 2021-08-04T02:01:54 | 2021-08-04T02:01:54 | 392,220,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from ..forms import QuestionForm
from ..models import Question
@login_required(login_url='common:login')
def question_create... | [
"sea21c@gmail.com"
] | sea21c@gmail.com |
dca76acbec70df33e2f963d3a64bca65333ff469 | c2464669dfc203d88849bf0e2ebd2b139a1a0f85 | /py-scripting2.7/code/pgbackup/src/pgbackup/pgdump.py | 264adf39f2ac28bba411fed43da5541671675d4d | [] | no_license | ashokmnr/python2.7-examples | 5baf864eebcaf8f0d0419108f4d62d50a26daccc | 9138750609e441fb363adc1b3069d8729ad78407 | refs/heads/master | 2022-04-18T02:23:55.061767 | 2020-04-21T17:23:15 | 2020-04-21T17:23:15 | 257,166,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | import subprocess
import sys
def dump(url):
try:
return subprocess.Popen(["pg_dump", url], stdout=subprocess.PIPE)
except OSError as err:
print("Error: pg_dump not found")
sys.exit(2)
def dump_file_name(url, timestamp=None):
db_name = url.split("/")[-1]
db_name = db_name.spli... | [
"ashokmnr160@gmail.com"
] | ashokmnr160@gmail.com |
eda0ccbe8696ee4716ae494399d97b93c45f4f6e | d43c0ac4f3e707693c839687cc502282146cbf39 | /leetcode/decoded-string-at-index/solution.py | 487e6638e1712ad479201af0de3023b76418635e | [] | no_license | ftlka/problems | d64a9b07767c40fa959487c9c23e54b5f4714439 | e1fc8dad3a881d4f2e2d9e871b33d7f817683734 | refs/heads/master | 2020-04-27T20:54:40.950133 | 2019-04-02T15:14:04 | 2019-04-02T15:14:04 | 174,675,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | def decodeAtIndex(S, K):
str_len = 0
for c in S:
if c.isdigit():
str_len *= int(c)
else:
str_len += 1
for c in reversed(S):
if K > str_len:
K %= str_len
if (K == 0 or K == str_len) and c.isalpha():
return c
if c.isdigit():
str_len //= int(c)
else:
str_len -= 1
| [
"smart.Julia@yandex.ru"
] | smart.Julia@yandex.ru |
b5b53ef9273a2bb46932fb09b0db3726cd4518b6 | 13f3cdcb791ddef890599ac722c5aa432659a2a4 | /mitie_lib.py | b5f82b1d86e6741a410a96a24081639f277367b8 | [] | no_license | PlumpMath/binary-relation-fake-detector | 3fcf42e9cec55c484003663ed4e71ba920591c23 | ed602d91ba7ef4a3b95da9d35d4427164ea8a582 | refs/heads/master | 2021-04-15T06:08:58.026795 | 2017-04-20T00:33:38 | 2017-04-20T00:33:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,997 | py | import sys
import os
mitie_path = os.environ['MITIE_HOME']
sys.path.append(mitie_path)
from mitie import *
import itertools
binary_relation_models_path = mitie_path + "MITIE-models/english/binary_relations/"
binary_relation_type_to_model_path = {
"BORN IN": binary_relation_models_path + "rel_classifier_people.p... | [
"tsdaemon@gmail.com"
] | tsdaemon@gmail.com |
b9af812917baee63b92877d146dc4989dd290c3a | 3dbefe14e450e72d6be7bf312e4a204412457b9a | /plotting/archive/e2e_profiles/image_driver_1/plot_max_throughput.py | 697acccca76b53db75f2d9a1c53fc3ad6eaa6da5 | [] | no_license | dcrankshaw/plots-model-comp-paper | ac9621f206592265e471b4e307ba9a77a4312793 | d56c69d4bd4acb9a570637b71423e9bfffbe026b | refs/heads/master | 2018-10-21T13:22:19.839304 | 2018-05-03T06:20:03 | 2018-05-03T06:20:03 | 106,025,956 | 1 | 6 | null | 2018-05-03T18:14:56 | 2017-10-06T16:22:29 | Jupyter Notebook | UTF-8 | Python | false | false | 4,257 | py | import sys
import os
import json
import numpy as np
import seaborn as sns
import pandas as pd
from matplotlib import pyplot as plt
GPU_COST = 14
CPU_COST = 1
VGG_FEATS_IMAGE_NAME = "model-comp/vgg-feats"
INCEPTION_FEATS_IMAGE_NAME = "model-comp/inception-feats"
KERNEL_SVM_IMAGE_NAME = "model-comp/kernel-svm"
LGBM_IM... | [
"czumar@berkeley.edu"
] | czumar@berkeley.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.