blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0bfc60a9230cbb555e1d836fbbbe0a5073ce8d3a | 6e3e56c6be905d0e2d833332dd9bcd4b7b86f642 | /opticspy/ray_tracing/tests/test9_matrix.py | e4636739874a8500847d02c8f728c55856dbea6f | [
"MIT"
] | permissive | carmelom/opticspy | 91bc66ba5d858fef906050910753f2c573ec6db6 | f6fe254d0e84551a7c3379bbbe357db2469b26fe | refs/heads/master | 2020-04-07T14:50:43.460533 | 2018-11-28T01:19:35 | 2018-11-28T01:19:35 | 158,463,569 | 1 | 0 | MIT | 2018-11-20T23:20:15 | 2018-11-20T23:20:15 | null | UTF-8 | Python | false | false | 1,247 | py |
import lens, trace, glass
New_Lens = lens.Lens(lens_name='triplet',creator='XF')
New_Lens.lens_info()
New_Lens.add_wavelength(wl = 656.30)
New_Lens.add_wavelength(wl = 546.10)
New_Lens.add_wavelength(wl = 486.10)
New_Lens.list_wavelengths()
New_Lens.add_field(angle=0)
New_Lens.add_field(angle=7)
New_Lens.add_field... | [
"alex.fanxing@gmail.com"
] | alex.fanxing@gmail.com |
f88d29fa7dbc679c1e2ad1d8c39b16ea74e26308 | 69692e30da9cf48e51011a330cb9a4523e14be7c | /flappy.py | 99cbac4490859d363122c0c70aa72390bda4a3ae | [] | no_license | pranav-ml/Flappy_AI_NEAT | 39396cc244ee3bb1eb719ff0aecec58dacde8b95 | 2c27f011dc604d8f1d5b9e693a7126878e384cbf | refs/heads/main | 2023-06-17T00:06:13.627857 | 2021-07-08T07:15:59 | 2021-07-08T07:15:59 | 359,089,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,656 | py | import neat
import pygame
import random
import os
pygame.init()
win_width = 500
win_height = 700
birdimg = [pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "bird1.png"))),
pygame.transform.scale2x(pygame.image.load(os.path.join("imgs", "bird2.png"))),
pygame.transform.scale2x(pyg... | [
"52795266+pranav882655@users.noreply.github.com"
] | 52795266+pranav882655@users.noreply.github.com |
7a8744fcccb0be5a4a7b881d554988f0f7ca965b | 78099e90f5224623f58db79e6e1f91fe8d44a0b3 | /arbitary.py | afac986c5627aab6e1273bf9dce016e055d23e91 | [] | no_license | savitadevi/function | 8151d6e79657d086f9c095f94cd0706e12cbea8f | 4d521dc546fd8c9b037cb78185e69a2bfbf6aa06 | refs/heads/main | 2023-06-14T14:13:15.493256 | 2021-07-13T06:55:23 | 2021-07-13T06:55:23 | 382,122,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | def student_name(*names):
# for student_name in names:
print("hi",names)
student_name("savita","amla","anisha","suman")
def isgraterthen_20(a,b=20):
print(a,b)
isgraterthen_20(10)
student_name("savita","amla","anisha","suman") | [
"savitadevi20@navgurukul.org"
] | savitadevi20@navgurukul.org |
38a73f29cb633dc9396633c72607a3415fa7ed7e | 0640c53cd62def556a098f1e732deee8c1348c9e | /IIITSERC-ssad_2015_a3_group1-88a823ccd2d0/Abhishek Vinjamoori/DonkeyKongFinal/src/player.py | c284e27402935cc64dd01b598004dd4b0546ffa9 | [] | no_license | anirudhdahiya9/Open-data-projecy | 579867fe8716076819734cebdbc6e15bb471bb39 | 26d629f8348f0110fa84b02009e787a238aff441 | refs/heads/master | 2021-01-10T13:50:19.855983 | 2016-03-23T22:46:03 | 2016-03-23T22:46:03 | 54,598,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | import pygame
size=16
class player(person):
def __init__(self,name,initX,initY):
person.__init__(name,initX,initY)
self.marioright =pygame.image.load('../images/m1.png')
self.marioright=pygame.transform.scale(self.marioright,(size,size))
self.mariowalkright=pygame.image.load('../images/m2.png')
se... | [
"anirudhdahiya9@gmail.com"
] | anirudhdahiya9@gmail.com |
64bdac7133fc0b26f17c3e74ef60a624dea2bf9a | f4b79529109fbb4055f334d0d9c7c96cb0710447 | /colour/utilities/tests/test_deprecated.py | bfbb70c00812c9381bc5e3c93242eec9a75ef368 | [
"BSD-3-Clause"
] | permissive | trevorandersen/colour | 167381b3d03e506a270a8d2a519a164808995437 | 02b595b26313c4b4f55adc41d599f90c4c9edbcd | refs/heads/develop | 2021-07-15T04:48:19.585586 | 2021-01-23T23:51:44 | 2021-01-23T23:51:44 | 230,421,054 | 0 | 0 | BSD-3-Clause | 2019-12-28T12:54:20 | 2019-12-27T10:10:30 | null | UTF-8 | Python | false | false | 962 | py | # -*- coding: utf-8 -*-
import sys
from colour.utilities.deprecation import (ModuleAPI, ObjectRenamed,
ObjectRemoved)
class deprecated(ModuleAPI):
def __getattr__(self, attribute):
return super(deprecated, self).__getattr__(attribute)
NAME = None
"""
An non-dep... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
75a9cfc273e95b139b790cb77661c83a42b47977 | 363cbc43dad2f8a3cb08ca343b95c1d08f6c60c6 | /analysis/work/macros/dep/pyapp.py | 0ef566d048bb0050c6080083b995f20860b7e4dc | [] | no_license | DebabrataBhowmik/MonoHiggsToGG | 45af4363928b48d51ae50210a18a1bb19eb909c5 | b22984b06d3b1f767dcf15796c66f07581bf39f0 | refs/heads/master | 2022-01-26T02:30:39.866888 | 2019-04-02T09:50:26 | 2019-04-02T09:50:26 | 179,046,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,027 | py | from optparse import OptionParser, OptionGroup, make_option
import sys
import os
# -------------------------------------------------------------
class pyapp(object):
def __init__(self,option_list,option_groups=[],defaults=None):
self.objs_ = []
self.canvs_ = []
self.files_ = {}
# generic options ... | [
"mez34@cornell.edu"
] | mez34@cornell.edu |
14b4f6dcbd92af3bd50f8ccf81dff0b95e561081 | 089a6215e04433d95e4f8af78130f79b504e94b9 | /marketing/migrations/0007_background.py | 528395ae9a0d82a41d7523f942c26d32670984f3 | [] | no_license | Bulalu/Blog | d32e3bdb162b023afeebe32e878a1d08c701098b | 80911e3523b8e6ae84f94c55b633d1e1405ed292 | refs/heads/master | 2023-06-18T01:13:42.088370 | 2021-07-13T18:52:12 | 2021-07-13T18:52:12 | 369,866,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # Generated by Django 3.2 on 2021-06-01 15:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('marketing', '0006_remove_gallery_background'),
]
operations = [
migrations.CreateModel(
name='Background',
fields=[
... | [
"elishabulalu031@gmail.com"
] | elishabulalu031@gmail.com |
b7712591863fbb072cbbe65ce7675a1ae332eda4 | 7a09f8c752dec3e5afca50490914fdc8187113eb | /citrine-client/citrine_client/api/api.py | 4366bbfccdd2492d228ac37135b0b301e3bd5d1c | [] | no_license | antonpaquin/citrine | b6ae1075519b90b811d576d3ae4dcc3397c97eb3 | 47101592560b4cfa63bd3448430962829e59c3ba | refs/heads/master | 2022-11-28T08:16:57.094007 | 2020-07-16T00:51:44 | 2020-07-16T00:51:44 | 270,427,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,623 | py | import json
import functools
from typing import *
import requests
import citrine_client.errors as errors
import citrine_client.api.util as util
from citrine_client.server import SyncRequest, AsyncRequest, DaemonLink
__all__ = [
'PackageClient',
'CitrineClient',
]
class PackageClient(object):
def __ini... | [
"git@antonpaqu.in"
] | git@antonpaqu.in |
54390514accfef3d5b46666a5f12457557475660 | b75918b2ac1dfaf2c1219f40d63004900c9338b1 | /app/main.py | bb88fce0c41afd8a113ef6dc5777bfc4d1d5a774 | [] | no_license | solashirai/ExplainableCourseRecommender | e0f036da9814a0187daa5635da0ff2f86386026d | 6a2795cfc4536548ac3679b3d23b953e55a50a37 | refs/heads/main | 2023-04-14T14:27:36.054830 | 2021-04-19T02:29:48 | 2021-04-19T02:29:48 | 302,346,189 | 1 | 0 | null | 2021-04-18T16:13:48 | 2020-10-08T13:17:44 | Python | UTF-8 | Python | false | false | 4,531 | py | from flask import Flask, request, abort
import rdflib
from escore.pipeline import RecommendCoursesPipeline
from escore.services.course import GraphCourseQueryService
from escore.services import PlanOfStudyRecommenderService
from escore.utils.path import DATA_DIR
from escore.models import StudentPOSRequirementContext, C... | [
"solashakashirai@gmail.com"
] | solashakashirai@gmail.com |
dc70e874342123a38005f05ad3a80c1ee0045ec1 | 2c69245fa6b65affaa40755785504df4c12dd3b5 | /phraser/tools/fix_header_guards.py | c4547145f126923db909ff79524774271c76e916 | [
"MIT"
] | permissive | knighton/phraser | 1b711a20193e4722e50d41e0ea11c69dca7bfcef | a4b213260cd9b24fb3052973a1268c021f965ce8 | refs/heads/master | 2021-01-17T09:04:22.561009 | 2016-04-01T21:32:10 | 2016-04-01T21:32:10 | 34,379,599 | 1 | 2 | null | 2016-04-04T21:12:41 | 2015-04-22T08:51:15 | C++ | UTF-8 | Python | false | false | 1,193 | py | #!/usr/bin/python
#
# Fix each .h header guard (useful after moving files around).
import os
DOIT = True
def each_header(root_dir):
for root, dirs, files in os.walk(root_dir):
for name in files:
if name.endswith('.h'):
f = os.path.join(root, name)
yield f
d... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
49a24167225575397b1f04c898fcb7f418c33265 | fbb652932457761afb2f3a1a86a6d823ed459416 | /prep_HSV.py | cb2606311b66da31fa759e8b276a5abf6b2e8c78 | [] | no_license | grace-hansen/hic | 0187899a95d3a32410997e5dbd2af7e532928986 | 89143f421f660ebee3dbba9ebfa42c883e5e9202 | refs/heads/main | 2023-01-08T13:46:37.346580 | 2020-10-30T20:59:15 | 2020-10-30T20:59:15 | 308,743,317 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | #!/usr/bin/python
import gzip, subprocess
import argparse
import pandas as pd
parser = argparse.ArgumentParser()
parser.add_argument("dir", help="full path to HSV directory you're analyzing. File 'IDs' should be there, with paths to 3 ibeds to process")
args=parser.parse_args()
##################################
dir=a... | [
"gthansen@uchicago.edu"
] | gthansen@uchicago.edu |
dc05d5b9461786806eeb245eea9f6ecd21b570dc | d3dd473234f8bfcd9e85d6e74dcf2aaabe67c792 | /calculus_I.py | 076a87bc83131d1fc08152842f5f58eb943a0269 | [] | no_license | JohnyTheLittle/pythonSciPlay | edf434df8cb9a6c028120410c660a6791b6efb35 | 2977cd769ed71af1651dfc0a9b6acd1a5fa94c0d | refs/heads/main | 2023-07-29T17:09:36.711540 | 2021-09-15T16:52:31 | 2021-09-15T16:52:31 | 406,852,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | class Polynomial:
"""Basic polynomial class"""
def __init__(self, coeffs):
self.coeffs = coeffs
def __repr__(self):
return f"Polynomial({repr(self.coeffs)})"
def __call__(self, x):
return sum(coeff*x**i for i, coeff
in enumerate(self.coeffs))
def differ... | [
"76442434+JohnyTheLittle@users.noreply.github.com"
] | 76442434+JohnyTheLittle@users.noreply.github.com |
4f922402c561283dd1b13b2698226e6a81d4f4a2 | d28f87594f36349c6654cdb2700ef0cbdb2ea2c3 | /venv/bin/flask | a8e0db023a2e9a8349490e77f10ab9cbbba8b62b | [] | no_license | ejisenstein/flask_tutorial | eba4bddf277f8854a9121e64cc35e9544b3342ce | 624c710e0ea6ac8e8c7764a6ab0b06992578e0d4 | refs/heads/master | 2022-11-25T12:21:22.352586 | 2020-08-05T23:52:37 | 2020-08-05T23:52:37 | 284,311,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/Users/evanisenstein/flask_tutorial/venv/bin/python3
# -*- 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())
| [
"ejisenstein@gmail.com"
] | ejisenstein@gmail.com | |
6fd9f967435ec0b4885b32a2c99175b9c69f4247 | c2849586a8f376cf96fcbdc1c7e5bce6522398ca | /ch28/ex28-25.py | d6a7549a80d0c5a59f5e9b81527f0036703e34dc | [] | no_license | freebz/Learning-Python | 0559d7691517b4acb0228d1cc76de3e93915fb27 | 7f577edb6249f4bbcac4f590908b385192dbf308 | refs/heads/master | 2020-09-23T01:48:24.009383 | 2019-12-02T12:26:40 | 2019-12-02T12:26:40 | 225,371,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | # 셸브에서 객체 업데이트하기
# updatedb.py 파일: 데이터베이스의 Person 객체를 업데이트
import shelve
db = shelve.open('persondb') # 동일한 파일명으로 셸브를 다시 염
for key in sorted(db): # 데이터베이스 객체들을 보여 주기 위해 반복
print(key, '\t=>', db[key]) # 커스터마이즈 포맷으로 출력
sue = db['Sue Jones'] # 가져오기 위해 키에 의해 인덱싱
sue.giveRaise(.10) ... | [
"freebz@hananet.net"
] | freebz@hananet.net |
de468f2dc11f3dadf1dd1f9ff9ad775c4c5cf943 | 5141d540e42c82ac0ded31436b5d35686e73d107 | /Enumerate.py | 0447bf312e03ec9b0af7b8edbb2281b7741f3c43 | [] | no_license | roxanacaraba/Learning-Python | 5dfcbf39e9e103f1fc5b834da747903136256419 | 411f42ae626559c699bdab3e2fe3fa6a12d8f304 | refs/heads/main | 2023-01-12T14:18:39.782747 | 2020-11-18T19:19:47 | 2020-11-18T19:19:47 | 313,975,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | for index, name in enumerate(["Mara", "Crina", "George"]):
print("Index : %d => %s" % (index, name)) | [
"roxana_elena_98@yahoo.com"
] | roxana_elena_98@yahoo.com |
265f21ddcae1ef723fb7a9b46fa7cc8330804a1b | 92a4f6675a593ca9a8e70f19f4dd24e5a882baa9 | /app.py | bc4fca5c2b3a52c777b5cc39313ddc08acfcbaf1 | [] | no_license | vijay818/ML_API | f5c8496c4d031d8d8c22ee208604df64689eaed4 | d38aa7911c412974021383b82619a21f4224db81 | refs/heads/master | 2023-05-12T02:53:35.408077 | 2020-07-27T11:51:39 | 2020-07-27T11:51:39 | 282,873,624 | 0 | 0 | null | 2023-05-01T21:25:05 | 2020-07-27T11:11:51 | HTML | UTF-8 | Python | false | false | 5,106 | py | import numpy as np
from flask import Flask, request, jsonify, render_template
import pickle
import pandas as pd
app = Flask(__name__)
custbehav_model = pickle.load(open('custbehav_model.pkl','rb'))
churnpred_model = pickle.load(open('churnpred_model.pkl','rb'))
tsforecast_model = pickle.load(open('ts_sales_m... | [
"noreply@github.com"
] | noreply@github.com |
c21977172cedfe5e8dc386a7ee59ff0827fe54bb | ccb5eb6d2dca109b5c3f1e16be61044659877246 | /face_recognition/redisTest.py | 00a01407f80f1190a7dda4706a5f29d70e91df2c | [
"MIT"
] | permissive | rooneyzhang/face_recognition | 37b6905532e6b8a6f5066a1327f183dc5f3ebbd4 | 8519869bcf6784ff6536c5f283e2f28917aba81b | refs/heads/master | 2020-04-20T07:10:07.204573 | 2019-02-01T15:03:37 | 2019-02-01T15:03:37 | 168,703,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | import redis
import json
r = redis.Redis(host='111.1.13.42', port=6379, db=0, password='3L3ygScS')
i=0
while i<10:
msg='''{
"code": 0,
"persons": [{
"type": 0,
"name": "张三%s",
"department": "技术部",
"position": "员工",
"employeeID":%s,
... | [
"rooneyzhang@139.com"
] | rooneyzhang@139.com |
500bd8cda7c4d750145a6eff90ea8b2d5f379b8e | 1eb63abe393d5b6919f62b1638ad22d4e79c8058 | /co2_server.py | fedc420b97b18593c4b09aa48195082df3b99ff1 | [
"MIT"
] | permissive | henrikglass/co2server-util | 5d545e48038f3087fa36961783037e288d6113d6 | 349848ea162d3ef18395f5c7cd2448799e9e0779 | refs/heads/master | 2020-09-14T21:50:16.845048 | 2019-11-26T15:33:43 | 2019-11-26T15:33:43 | 223,268,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | import sys, getopt
import inotify.adapters
import socket
import time
import _thread
local_ip = "xxx.xxx.xxx.xxx"
local_port = 6666
co2_table = ""
co2_table_lock = _thread.allocate_lock()
# handle client
def handle_client(conn):
with co2_table_lock:
conn.send(co2_table.encode())
conn.close()
# Upd... | [
"hglass@kth.se"
] | hglass@kth.se |
3e0a856177c0d402b98ed229c8529ec154be6332 | 8419c3c826dd41630e57c6523fe6de79eca2facb | /workshop of python/samples/ex02Main.py | 7176c022b4c56ea5e02bb7f818bec18b4d7d882a | [] | no_license | thomasernste/python | 4d009f5a891fd7c4a3432a42ea94f94379f6d0de | 7a59d2e37626d4de3a3b7e6942363c424798ad46 | refs/heads/master | 2016-09-05T23:17:18.093787 | 2012-04-29T14:38:28 | 2012-04-29T14:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""docstring
"""
__revision__ = '0.1'
import sys,os
def usage():
#定义函数usage
print "inputFile"
pass
def error():
usage()
sys.exit(-1)
#强制该脚本马上结束,并返回-1作为error code
def readLines(inf):
for line in open(inf):
#打开文件inf,并按行读入
print line... | [
"wangchj04@gmail.com"
] | wangchj04@gmail.com |
2a61efec65faad332f5b97afb091dc99ae1c3656 | 0d06176bcd859d88653e7768bbbd7b59613cbd78 | /data/parser_test3.py | 7021990aaa0005f37e16578f4a3c60b2a710f465 | [] | no_license | Manoo-hao/project | 0c490391141428b33183c9b817a052f4b2ffe62c | 9d54ff96fdd5f46dc1ad0e325c5c28ef226ef1f0 | refs/heads/master | 2016-09-06T14:38:23.400040 | 2015-03-01T23:47:32 | 2015-03-01T23:47:32 | 29,956,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,275 | py | #takes the raw data file and creates 4 text files that can each be loaded into a table in mySQL
#!/usr/bin/python
#Working version of parser - non functional - refer to attached README.md for more information
#step 1. open the data file
dataset='GDS2469_full.soft'
fh = open(dataset) #don't quite understand why this ... | [
"mblank@dundee.ac.uk"
] | mblank@dundee.ac.uk |
c43cf5bd76ca64e3afc552491182bc52b6832180 | dfedc59c56eac494c6a8065053926181f3269dc7 | /multiplyList.py | 8a75217fe237461f748c3829da24fe0ea066736d | [] | no_license | jillo-abdullahi/python-codes | ed275fd9a0d0ed8166bf3a9ebdb937c26ccba3aa | fd9be1d21e85238d1fafc531fb2e51b70646f99c | refs/heads/master | 2021-05-04T20:02:39.108659 | 2018-08-16T20:51:13 | 2018-08-16T20:51:13 | 106,828,968 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def product(myList):
prod = 1
count = len(myList)
while count > 0:
prod*= myList[count-1]
count -=1
return prod
if __name__ == '__main__':
nums = [2,5,9,6]
print product(nums) | [
"jillo.abdulla@gmail.com"
] | jillo.abdulla@gmail.com |
b55eaffae77ba47f89aa333a3efe15ef7fa40e94 | 2677aee2f807af1dd3c31d65168881285d13a228 | /vietocr/tool/translate.py | 246b4bc109d3898b90d2330799ca8ac7340d6f1c | [
"Apache-2.0"
] | permissive | holigonberg/vietocr | 2a80a6edad0e45f7e1eca74ea4a303255f23e51a | 98446eff0f951ac6c8bf04c0180a3dc951f4fe7b | refs/heads/master | 2023-01-06T04:08:10.034657 | 2020-11-02T07:33:54 | 2020-11-02T07:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,925 | py | import torch
import numpy as np
import math
from PIL import Image
from torch.nn.functional import log_softmax
from vietocr.model.transformerocr import VietOCR
from vietocr.model.vocab import Vocab
from vietocr.model.beam import Beam
def batch_translate_beam_search(img, model, beam_size=4, candidates=1, max_seq_length... | [
"pbcquoc@gmail.com"
] | pbcquoc@gmail.com |
939f03ae3f0af068c616428a2919345017565c9a | d16290884552147e93ff98baf2da15353c606a87 | /examples/docs/configs/base_config.py | ed81f1102fa70a4ca96c8c770e35a4a25e018378 | [
"BSD-3-Clause"
] | permissive | ipython/traitlets | 2c535c33e990afbcd7e9f7b272bc2a90a6711495 | 05d6ecb6b1f90736cdeacf41c7d5e84b147c1dbd | refs/heads/main | 2023-09-04T10:04:14.795968 | 2023-08-01T09:44:46 | 2023-08-01T09:44:46 | 14,993,021 | 600 | 216 | BSD-3-Clause | 2023-09-14T01:34:34 | 2013-12-06T20:45:45 | Python | UTF-8 | Python | false | false | 122 | py | # Example config used by load_config_app.py
c = get_config() # noqa
c.MyClass.name = 'coolname'
c.MyClass.ranking = 100
| [
"noreply@github.com"
] | noreply@github.com |
fc06b94ccb9936fdc165854c8672c27c890088ab | 9aee74a948ad53958a27857a6ffec9f0c91e821b | /tutorial/config/sw.py | 3c5c3dac5f1ee6bf2f1bb6bb83ec3fc2655312da | [] | no_license | liho98/distributed-crawler | d6307348abd90c09c77aff82df6b444e832b97f7 | 00576a2c0b069e637650f27a80c63401eaa4039d | refs/heads/master | 2020-11-27T16:39:08.937990 | 2019-12-22T07:15:20 | 2019-12-22T07:15:20 | 229,531,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from .worker import *
CRAWLING_STRATEGY = 'frontera.strategy.basic.BasicCrawlingStrategy' # path to the crawling strategy class
LOGGING_CONFIG='logging-sw.conf' # if needed
MAX_PAGES_PER_HOSTNAME = 10 | [
"tanlh-wa16@student.tarc.edu.my"
] | tanlh-wa16@student.tarc.edu.my |
4ff9852f889116972db313142451e61f7dfaa0fd | 3b8d4b70d8f3f245c0a713d46d7f06f9dc437c3d | /Boosting&DecisionTree/helper.py | fe63d9923894a27facc092889883a6b650b8a352 | [] | no_license | wangby511/MachineLearningAlgorithms | b00077ade4e6210afeba5b368e975320489c1f78 | 35c71f4da61324306d69f5518d2d0496bd8c3289 | refs/heads/master | 2020-04-07T12:34:23.148979 | 2018-12-11T08:53:58 | 2018-12-11T08:53:58 | 158,372,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | import numpy as np
y_train = [0, 0, 2, 1, 0, 0, 1, 0, 2, 1, 2, 1, 0, 0, 2, 1, 0, 1, 2, 1, 0, 0, 2, 1, 1, 0, 2, 0, 2, 1, 0, 0, 2, 1, 0, 0, 1, 2, 2, 0, 2, 1, 0, 0, 2, 2, 2, 1, 1, 1, 0, 0, 2, 2, 1, 2, 1, 2, 0, 2, 0, 1, 1, 2, 2, 0, 1, 0, 1, 1, 1, 0, 2, 0, 2, 1, 2, 1, 2, 1, 0, 2, 1, 2, 1, 0, 1, 2, 0, 1, 0, 0, 0, 1, 2, 0, 0,... | [
"noreply@github.com"
] | noreply@github.com |
09dce10b74b3626b0a4972fdc6438cf874d14140 | 1711624c2d13d19df52f6d1f3c471cf8e97cfeb9 | /obstacle.py | 24988b78291e5c23d7767abfa56f6aa4296e1f38 | [
"MIT"
] | permissive | YasuShimizu/2DH_Python | f53e7112ec33b98f848d3d974bccac4a0e9753a4 | 3fa8cf1d86015c29c778bf8e405fef30e13c12b4 | refs/heads/main | 2023-08-14T06:37:37.999569 | 2021-09-17T20:54:30 | 2021-09-17T20:54:30 | 407,676,898 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | import numpy as np
import csv
def ob_ini(ijh,nx,ny):
fopen=open('obst.dat','r')
dataReader=csv.reader(fopen)
d1=next(dataReader); nobst=int(d1[0])
i1=np.zeros(nobst,dtype=int);i2=np.zeros_like(i1)
j1=np.zeros_like(i1);j2=np.zeros_like(i1)
for n in np.arange(0,nobst):
lp=next(dataReader)
... | [
"noreply@github.com"
] | noreply@github.com |
337555e92f42e1fa73ca39f8a52b53366558da88 | bc8f02c870e939359c32d04016f989f0c7526226 | /constraint_adder.py | be8ac25b95b5f8d031b9f6af0994cabbceb480ea | [] | no_license | iamgroot42/gpu_image_segmentation | c53a85267cd373a391c27297ac1befb944067550 | ca97a78a28bf5b76659dcb990a3a312d6d2c6fe3 | refs/heads/master | 2021-01-18T23:46:45.615098 | 2017-10-01T11:35:17 | 2017-10-01T11:35:17 | 80,756,196 | 1 | 0 | null | 2017-10-01T11:35:18 | 2017-02-02T18:37:35 | Cuda | UTF-8 | Python | false | false | 952 | py | import cv2
import sys
object_points = []
background_points = []
counter = 0
data = None
def mouse_callback(event, x, y, flags, params):
global object_points
global background_points
global counter
global data
if event == cv2.EVENT_LBUTTONDOWN:
object_points.append((x, y))
elif event == cv2.EVENT_RBUTTONDOWN:
... | [
"anshuman14021@iiitd.ac.in"
] | anshuman14021@iiitd.ac.in |
57de4c04901ed7b03a770017a6fd726bcb1591a8 | db01067e88324466ba4743e5e53cd53de609c342 | /02. Data Types and Variables Lab/04. Convert Meters to Kilometers.py | e372e781a294d7783d346fcb4d7167305731e6ce | [] | no_license | IlkoAng/-Python-Fundamentals-Softuni | 07eaf89d340b2e60214ab5f8e896629ae680dc4a | 01a112b13e84ab2f29e6fc4ed39f08f395d54429 | refs/heads/main | 2023-05-18T02:11:53.676763 | 2021-06-06T15:39:22 | 2021-06-06T15:39:22 | 371,475,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | meters = int(input())
kilometers = meters / 1000
print(f"{kilometers:.2f}")
| [
"noreply@github.com"
] | noreply@github.com |
28397aabe41c8c446924bd42dac1f8b0b733888e | c16ea02da3c1ce8cd47a2ec5ec89cd12ddcb1170 | /text_classifier/evaluate.py | 0c0ceed5f09b40f38e032dd5b447f34b02f82cb3 | [] | no_license | ndhuy13/text-classifier | 18019647e33e0b4a964664cb5933b3a4a6eb645b | 6cdb5d62fde0f6084d6c3e35634ca453c092b5dd | refs/heads/master | 2020-06-23T15:36:50.487990 | 2019-07-24T15:57:59 | 2019-07-24T15:57:59 | 198,665,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | import pandas as pd
df = pd.read_csv('final_result.csv')
true_1 = 0
true_2 = 0
no_recomendation = 0
# for index, row in df.iterrows():
# if row['actual'] == row['pred_1']:
# if row['prob_1'] > 0.7:
# true_1 += 1
# else: no_recomendation += 1
# continue
# if row['actual'] ==... | [
"noreply@github.com"
] | noreply@github.com |
804fce58f691e31d3e92890598c1ed56b17b3018 | 94b11f14db5320153b9b17e274a85714e00311cd | /junk_functions.py | 38c19bf01eeb7350d5e370932c2dcfe28e0bec82 | [] | no_license | RoelvdBurght/Amstelhaegee | d43d3b77489eb669881d668b8a743ef9fe69f868 | 4f5c7d183e341b5d81b1f8acd50360c27d1f2dba | refs/heads/master | 2021-01-22T19:36:12.469957 | 2017-05-31T15:57:33 | 2017-05-31T15:57:33 | 85,217,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | # berekent de afstand tussen alle huizen en stopt deze in een lijst
# en returned een lijst met freespace
def distToAll(houseList):
distList = []
finalList = []
for i in range(len(houseList)):
for j in range(len(houseList)):
dist = houseList[i].distanceTo(houseList[j])
if dis... | [
"hbpvanlaatum123@gmail.com"
] | hbpvanlaatum123@gmail.com |
3975a34d344b212900e775b2a112c24e3b636be7 | b2158c964969e2909d8c139874dc9fb505c779a3 | /01_basic/exercise_057.py | 221569001bba20c3e0cc35014da902a5d5d2226c | [
"MIT"
] | permissive | sideroff/python-exercises | 1bbe1373cc410c8ec9db29107c3d5fd40e2a861f | 6a9cc55735d977a71697204c734b3ade84a0c4fd | refs/heads/master | 2022-12-10T11:36:41.729465 | 2020-03-20T21:24:15 | 2020-03-20T21:24:15 | 227,201,554 | 0 | 0 | MIT | 2022-12-08T03:24:09 | 2019-12-10T19:41:54 | Python | UTF-8 | Python | false | false | 202 | py | from time import time
def main():
for i in range(1, 1_000_000): 1+1
if __name__ == '__main__':
start = time()
main()
end = time()
print("main method executed in %fs" % (end-start)) | [
"ivan.sideroff@gmail.com"
] | ivan.sideroff@gmail.com |
0e8a8c9db2daba3ad29b85d76f93c342307a4454 | 1c2024e74a67823098800a448771d84568b70130 | /app/migrations/0026_auto_20161204_1833.py | 94038ad2e8be7747dbe53799558463291c443ed9 | [] | no_license | Anroc/donaalda-backend | 739f8b06b4f91c7ae161f6b70090343341f19ec7 | 456d3291225b0b747c1d0034080e15dcf00d2802 | refs/heads/master | 2020-06-25T04:07:07.274204 | 2017-06-08T17:07:03 | 2017-06-08T17:07:03 | 199,194,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-04 18:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0025_auto_20161204_1825'),
]
operations = [
migrations.RemoveField(
... | [
"m.petzolt@campus.tu-berlin.de"
] | m.petzolt@campus.tu-berlin.de |
f01060f592d1abc58f57bafa72cef814ef388759 | 80f4e0e2a22901614c5aa492fd124409c7ba2366 | /webhooks.py | 062429e891df692322278716c80f893a36a2efcb | [] | no_license | raghavaroranit/geeko | 455e43f1b47c4ae30c6318534f355d58c97a061e | 5f42fe2e36f7a618e1c2b76118f005b2edb45a49 | refs/heads/master | 2022-11-26T20:34:39.952248 | 2020-08-06T11:33:41 | 2020-08-06T11:33:41 | 285,532,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | def main():
url = '<webhook URL>' ## Provide the webhook URL
bot_message = {
'text' : 'XYZ'} ## Provide the message
message_headers = { 'Content-Type': 'application/json; charset=UTF-8'}
http_obj = Http()
response = http_obj.request(
uri=url,
method='POST',
headers... | [
"noreply@github.com"
] | noreply@github.com |
ffa470ff9e81b24875b7204132daa2adbe70f388 | 8e6ad6cddab066d179fed93d61c4484f2784faaa | /3-7-1.py | 809ee675f2032a616b08cdb7a82771a0c9de5b15 | [] | no_license | lsm9275/python_section3 | 55ef181587cab57d718e67e6fee70ae23689545d | 179e2cb21ff57a8c0470eb9b5ef9069f20087c75 | refs/heads/master | 2023-02-06T15:48:58.422580 | 2020-12-28T15:16:27 | 2020-12-28T15:16:27 | 325,032,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | import sys
import io
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
print('hi')
class NcafeWriteAtt:
#초기화 실행(Webdriver 설정)
... | [
"lsm9275@gmail.com"
] | lsm9275@gmail.com |
f42b93cbe0a3cebe3261c9629c5afbd195c1c45e | 41b5c31d6ab8c3ab3161d4e2e3d4f5df2374e803 | /edx_aws_1/week2/week2/bin/rst2man.py | 4667fe3b65cef5532e1c69f8ad08580f6ef383a4 | [] | no_license | jgjgjgpark/edx_amazon | e6fb01435db42cde645a4415be89a615f0626d6d | 92a05c6d7d8f621993206d31d44dff5eaf7fb1e9 | refs/heads/master | 2020-09-24T08:59:26.237184 | 2019-12-03T21:09:00 | 2019-12-03T21:09:00 | 225,713,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #!/Users/darkhyun/study/edx_aws_1/week2/week2/bin/python3
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructuredText source.
"""
import ... | [
"darkhyun@MacBook-Pro.local"
] | darkhyun@MacBook-Pro.local |
2e10f0a84c0052cf8f4684cd3356f6cf55ae1c5a | e90473ed89f5e4cac85bdbee7e8c99d11020caf9 | /15b.py | a80d6018e26feaf37449ce4754017cef5eff94e3 | [] | no_license | tpogden/advent-2020 | 807bbada2abbcb15eaec0fc6ab665b86588bb95b | fd0bac9e39728d9011fd0b8dd8c608c89432d4f7 | refs/heads/main | 2023-02-06T01:07:11.628484 | 2020-12-17T16:33:21 | 2020-12-17T16:33:21 | 317,501,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # Exactly the same as 15a, just different n.
def read_arr(fpath='data/15-demo.txt'):
with open(fpath) as f:
arr = [int(i) for i in f.readline().strip().split(',')]
return arr
# arr = read_arr(fpath='data/15-demo.txt')
arr = read_arr(fpath='data/15.txt')
def play(start_arr, n=2020):
prev_dict = {a... | [
"t@ogden.eu"
] | t@ogden.eu |
2e9c7cd18aee3630dad7bdc354d048fb39c3c218 | 155e67c490779a0bcbde55f60d57747576e98c5b | /manager.py | 527b0fe2e62ecd668dcfe25b5fd271eab182d699 | [
"MIT"
] | permissive | dai1345291582/infomation | 9420373bd70674caaab55b40730952f08cc7212e | cde1263f523b7e9dc8cd202c54783d627e080478 | refs/heads/master | 2020-04-01T01:37:40.864592 | 2018-10-14T14:23:15 | 2018-10-14T14:23:15 | 152,746,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from info import db, create_app
from info.models import *
app = create_app('developement')
manage = Manager(app)
Migrate(app, db)
manage.add_command('db', MigrateCommand)
if __name__ == "__main__":
manage.run()
| [
"1345291582@qq.com"
] | 1345291582@qq.com |
bce2bf6200fd54e982429be07bc78ceb941aa813 | e0d9844e123fa0706388814b9f29758258589487 | /version_info.py | 0e3295c8309a411c0cfb18f664f84b223ed0a2ca | [] | no_license | pigpigman8686/seg | b5cf5261a5744e89ed5e5b145f60b0ccc3ba2c0c | 61c3816f7ba76243a872fe5c5fc0dede17026987 | refs/heads/master | 2023-04-10T22:22:35.035542 | 2021-04-22T06:24:36 | 2021-04-22T06:24:36 | 360,398,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | # UTF-8
#
# For more details about fixed file info 'ffi' see:
# http://msdn.microsoft.com/en-us/library/ms646997.aspx
VSVersionInfo(
ffi=FixedFileInfo(
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
# Set not needed items to zero 0. Must always contain 4 elements.
filevers... | [
"952361195@qq.com"
] | 952361195@qq.com |
5c5bfc4ce0a3e8ab2f96c80acd2b1f5d2a5628b3 | 1d14629ea48b884889bfba6e2248cace7aea39ea | /app.py | f29fcba24ac920740d4fc310b55e7e7a37064e7b | [] | no_license | dabomb1004/healthai | 8bad48c496bbfa8347c1b2923ecbc72f88e7ace4 | cef0f3627a4d44b8dcfc03b9067fffe3a94827a5 | refs/heads/main | 2023-06-18T09:59:41.111328 | 2021-07-12T06:33:50 | 2021-07-12T06:33:50 | 362,975,016 | 0 | 0 | null | 2021-04-30T07:50:54 | 2021-04-29T23:42:01 | OpenEdge ABL | UTF-8 | Python | false | false | 26 | py | from FlaskApp import app
| [
"noreply@github.com"
] | noreply@github.com |
9242f4ea83a7422750143a3c49795cc9feb9ba80 | da86fabc1987f828d6d6f57727c9f9f6eb19da28 | /appointments/local_settings.py | 6bedc49b8ea59c480c074eedbff2f706fb5ba163 | [] | no_license | erzubin/Appointment_test | 99b3b693fd0083ca7adbe9ce86f6acf319c7d21a | cba3ca3b6351ac5556b146f0ecdaa8bc3c2e0c5d | refs/heads/master | 2020-03-17T22:04:44.852123 | 2018-05-21T00:02:55 | 2018-05-21T00:02:55 | 133,987,785 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
DEBUG= True
| [
"erzubin@gmail.com"
] | erzubin@gmail.com |
8408f5cc05ba244e2d41265e9e326a1cb9af06b4 | 04d6ed51d5f8f7d4e670d036839aa3f60b8c0af8 | /homeschool/schools/migrations/0005_auto_20200605_1549.py | 7c6f149873f36adfef4aeb7a1c82b200540f88be | [
"MIT"
] | permissive | Lelouchyagami/homeschool | c38072ffc9f63646f164e642c5b337caa66141e1 | 49665aea487405c92c2af596b545f2553e766de8 | refs/heads/master | 2022-12-14T07:12:56.021661 | 2020-07-12T17:14:34 | 2020-07-12T17:14:34 | 252,213,902 | 0 | 0 | MIT | 2022-12-08T03:59:09 | 2020-04-01T15:26:48 | Python | UTF-8 | Python | false | false | 453 | py | # Generated by Django 3.0.2 on 2020-06-05 15:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schools', '0004_auto_20200419_1716'),
]
operations = [
migrations.AlterField(
model_name='schoolyear',
name='days_of... | [
"parth.agarwal@treebohotels.com"
] | parth.agarwal@treebohotels.com |
b8b637deeefc0e5a9a13d5bc104b042403a5b259 | 7022638eb436c3aadb898402558194972c939018 | /articles/urls.py | 3d07fd33c239fea6d240301ef3a279b2afc28a99 | [] | no_license | atabekdemurtaza/News | b75d15f968f67560db91ecdc2f7d1c73060446dc | 70fdf1037cdc74e56f66ce6fdf190a01c64693f5 | refs/heads/master | 2023-01-14T08:35:37.008297 | 2020-11-10T07:09:23 | 2020-11-10T07:09:23 | 311,574,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.ArticleListView.as_view(), name='article_list'),
path('<int:pk>/edit/', views.ArticleUpdateView.as_view(), name='article_edit'),
path('<int:pk>/', views.ArticleDetailView.as_view(), name='article_detail'),
path('<int:pk>/delete/', vie... | [
"mychannel21war@gmail.com"
] | mychannel21war@gmail.com |
13a3080277c203a5274967e9bc5ba451c329bedb | a7e9728ed86926586971fc6afad82638a8d87114 | /class_dog_practice.py | 69b32fb19ed24517faf79fcd7aab1f8e5efe34cd | [] | no_license | hsuyuming/python_basic_recap | 19329c6f850e08c58d239c3286bccebb0ed9ec9f | 8a7045ccf47fec7ee3037998567a54d99d3f07cc | refs/heads/master | 2021-01-02T10:47:39.843179 | 2020-02-14T01:06:40 | 2020-02-14T01:06:40 | 239,585,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | # 嘗試自定義一個表示狗的類(dog)
# 類是現實中的抽象!
# 屬性: name, age, gender, hight.....
# 方法:叫、咬、跑
class Dog():
"""
表示狗的類
"""
def __init__(self,**kwargs):
self.name = kwargs["name"]
self.age = kwargs["age"]
self.gender = kwargs["gender"]
self.height = kwargs["height"]
pass
... | [
"abego452@gmail.com"
] | abego452@gmail.com |
9f2063baf4a9d75f36f3b0a4abad361699c2f0d1 | 05154751b040ea5390b66061796df7f568d7ca67 | /classification/taskGenerator.py | 47ea6b3c9b3b841f8c49470a9dd370d82ab76201 | [] | no_license | ScaramuzzinoGiovanna/Model-Agnostic_Meta-Learning | 85eab22ab08fabe2fb112e10bf0bf3ae75c0a0b4 | 04e4ea6c0d9db90593a0ac0500530d7553845d5a | refs/heads/master | 2023-07-07T22:44:44.375495 | 2021-09-04T10:56:06 | 2021-09-04T10:56:06 | 348,115,571 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,958 | py | import os
import random
import time
import cv2
import numpy as np
import tensorflow as tf
class TaskGenerator:
def __init__(self, dataset_name, n_way, shot_num, query_num, meta_batch_size):
'''
:param dataset_name: dataset name
:param n_way: a train task contains images from different N c... | [
"scaramuzzinogiovanna95@gmail.com"
] | scaramuzzinogiovanna95@gmail.com |
5e97ba660de0843bf2656343b8e3e5e92ca4cb19 | b1d971b2f78b592f4ec0bcdd652df9ba68146db6 | /simple blog viewer/port/projects/migrations/0001_initial.py | 1107e98586743000a445316c2d1d54c1864b53e7 | [] | no_license | Dyavathrocky/django | 315cc700138fae9b1a8e1e40b616f4843f4dd184 | 5496ec8f2eadebb6b1ec33aba6d48f2661103850 | refs/heads/master | 2020-04-20T07:39:31.077159 | 2019-12-05T03:57:00 | 2019-12-05T03:57:00 | 168,716,302 | 0 | 0 | null | 2019-12-27T11:55:07 | 2019-02-01T15:16:40 | Python | UTF-8 | Python | false | false | 692 | py | # Generated by Django 2.0.1 on 2019-12-05 02:48
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', m... | [
"noreply@github.com"
] | noreply@github.com |
729ffe87975dbbc443c0865d023fd89fd57f7aa9 | 99e57f00fcaf4469c1c1b79f2d17176aaef9a790 | /sales_forecast/models/sale_allocation.py | cdce00e85495ffde7e478e89044f78b1410f3649 | [] | no_license | detian08/mcl | d007ffd0e869f3bd9a8c74bc8473119901f0de2a | 32d61148326c931aca0107c3894061773f287e33 | refs/heads/master | 2022-03-23T19:36:29.608645 | 2019-12-11T10:15:50 | 2019-12-11T10:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import uuid
from itertools import groupby
from datetime import datetime, timedelta
from werkzeug.urls import url_encode
from odoo import api, fields, models, _,exceptions
from odoo.exceptions import UserError, AccessError... | [
"adarsh@prixgen.com"
] | adarsh@prixgen.com |
3b894bae0ee3d517642226dbc9f04bef13455b2e | f19aaf9948760a270dcc8ba2941ec2765b4fcfa4 | /apps/project_manager/migrations/0001_initial.py | 07b507b24f8f47a8b310af6c11a54321ab758df4 | [] | no_license | nawikart/DjangoOne | 68622d5a43904e8919d032e535f14b7734f2d1b8 | 67f180447b99228daccfbd1b520bdd87711fb3e3 | refs/heads/master | 2020-03-20T21:02:22.137632 | 2018-06-19T00:32:31 | 2018-06-19T00:32:31 | 137,720,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | # Generated by Django 2.0.6 on 2018-06-18 04:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Proj... | [
"nawi@outpost-asia.com"
] | nawi@outpost-asia.com |
f80501d3f8c9302427833896662c728a94200144 | e846a43e85c9ba4e64898e1d2280c5e58ef04149 | /main.py | 30784a59d4111551608f9d4f5bb0744985e0da8f | [] | no_license | eeo/music-library | 2603ebaa9dfe3996c8d3e3e588d1bf5652c05102 | dda03c9b7e88a1945dd58913d590278d9c444d95 | refs/heads/master | 2021-01-10T12:29:49.630136 | 2016-02-02T17:38:34 | 2016-02-02T17:38:34 | 50,930,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | import os
from mutagen.easyid3 import EasyID3, mutagen
from mutagen.easymp4 import EasyMP4
extensions = [".mp3"]
tags_names = ["TPE1", "TCON", "TALB", "TIT2", "TPUB", "TRCK"]
listdir = []
for x in os.listdir(path="."):
file = os.path.splitext(x)
if(file[1] in extensions) :
listdir.append(file)
print("LI... | [
"Елена Ермилова"
] | Елена Ермилова |
e6673d2280d9c7d4e10d0d700c8d5bae67520953 | 918ad606828781af3e4f38a3104222db67508104 | /utils/custom_utils.py | 6ae3b812faead19da5f230b5304a73e9f969c1a4 | [] | no_license | wang-zifu/Book-Generator | 39a4e7fe5e093998a74e361cb5eff2277062fefa | 47a3682613aeac271adfc52b0b77578c658245f2 | refs/heads/master | 2023-01-08T04:53:09.992085 | 2020-11-11T01:44:05 | 2020-11-11T01:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | import torch
import nltk
import spacy
spacy_en = spacy.load('en')
def create_sentence(model, sentence, input_vocab, output_vocab,
device, max_length=50):
# Create tokens using spacy and everything in lower case (which is what our vocab is)
if type(sentence) == str:
tokens = [token.t... | [
"kalebugalde@gmail.com"
] | kalebugalde@gmail.com |
056c60cae9d680e109d300727181d9f3ce385913 | 28a474b78561a1bff18dc09965abb8eb77f21386 | /course/forms.py | 6a4d7987fd3009c9521c7a326e7ff504e7c1a7e0 | [] | no_license | Ahmedkbbj/edusite | 7a992a7ed6395284ec01d542767dd54969cb0c1a | c3f4a29ff361c9684fe3c7e8cae19c5e34ec7e4c | refs/heads/master | 2022-06-11T07:56:08.098176 | 2020-05-09T10:31:24 | 2020-05-09T10:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | from django import forms
from course.models import Course
class CreateCrseForm(forms.ModelForm):
class Meta:
model = Course
fields = ['ce_dptcls', 'ce_abb', 'ce_name']
widgets ={
'ce_abb': forms.TextInput(attrs={
'class':'form-control',
'id': 'ce_abb',
... | [
"ytlamal@connect.ust.hk"
] | ytlamal@connect.ust.hk |
93d874fcb0503c0266f53ab533313773a94261c8 | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/nbclient/util.py | 9b672357b05be0de493e5f59054ae05e0086f448 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 3,205 | py | """General utility methods"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import asyncio
import sys
import inspect
from typing import Callable, Awaitable, Any, Union
def check_ipython() -> None:
# original from vaex/asyncio.py
IPython = sys.modules.ge... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
f98b212f7684a451a65f3afe7b8e7ed58e3ffeb3 | c8a31cb40807a168e34292c61f80b4c0a71211ed | /camera.py | 08dbac890c1ee916512ad7e693c6aa30cffc5f3b | [] | no_license | rephus/wearable-camera | b4c74b2cd75b93ed681ce536bef756b23cf5aa93 | f23f592652d8a8f38f3c91c551e95adbc15c5331 | refs/heads/master | 2021-01-22T21:22:26.512959 | 2017-03-18T19:26:27 | 2017-03-18T19:26:27 | 85,418,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | # https://www.raspberrypi.org/learning/getting-started-with-picamera/worksheet/
from picamera import PiCamera
from time import sleep, time
import datetime
FREQUENCY = 30 # timelapse frequency, in seconds
FOLDER = "/home/pi/photos" # Folder to store photos
camera = PiCamera()
# Suggested settings
camera.resolution = ... | [
"rephus@gmail.com"
] | rephus@gmail.com |
55e40b3bf8071fca05b6467d0f35479817d7a0dd | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_11546.py | 1fc582462bd10e1e682a285ef7047c01e969c822 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | # export PYTHONPATH
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
996595a07a75ebce547c75c4db7a4e7010eb959f | f7f1dfc7e14beae90e78bbd29c24ed488dfff6dd | /new_benchmarks/bm_zlib.py | c0bdd8611abb55a46c12d7e70a024daef55f560c | [] | no_license | bhavishyagopesh/gsoc_2017 | 573f013ddf40663e8f47657dd3495bb5abaf3bd4 | 9a868f49f0f6767ba4dd7432c535fc92d2541e07 | refs/heads/master | 2020-01-19T21:13:57.883162 | 2017-08-24T04:12:27 | 2017-08-24T04:12:27 | 94,213,554 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | """
Benchmark zlib module.
"""
import perf
from six.moves import xrange
import zlib
import binascii
def add_cmdline_args(cmd, args):
if args.benchmark:
cmd.append(args.benchmark)
DATA = b'This is to benchmark zlib.'*100000
COMPRESSED = zlib.compress(DATA)
DECOMPRESSED = zlib.decompress(COMPRESSED)
de... | [
"bhavishyagopesh@gmail.com"
] | bhavishyagopesh@gmail.com |
263af1eb8f7e2a492fd18367b1ef7f782b64d6c3 | d57db248cad7af0fc9685ac74d6dc068b41dc907 | /pyango/test1/booktest/migrations/0002_humaninfo.py | b7f5a9536d2e7b4de7fe3ea3717fb85f63285ec2 | [] | no_license | ankle7766/pyango | d77408588c8f2e120cfa91707f5a9959b74bca70 | e98388befec3c8404da0be850394849a6ed0bb07 | refs/heads/main | 2023-05-07T14:47:40.832224 | 2021-06-04T14:09:44 | 2021-06-04T14:09:44 | 371,297,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('booktest', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='HumanInfo',
fields=[
... | [
"pan7766118@gmail.com"
] | pan7766118@gmail.com |
b48c3b08fd97bb52892a0c5d3d04514672b1908c | 27ee9bddfbb9186bf0dd6b370dd5854f47350766 | /fmdl_algo/tests/tests_FMDLAlgoUtils/test_FMDLAlgoUtils_getApproximatedRoiBoundaryPoints.py | 9459c208b6710ed25f68827df8e8f7115e10289b | [] | no_license | hooman67/advanceDataExplorationAndAugmentationNotebooks | 275df0f5b24c6f41c2e14d30937d2498c60d689b | 0ba95d2508c287e7bb0469bc13927ed10eb4bd81 | refs/heads/master | 2022-12-11T02:43:31.114609 | 2020-03-03T23:22:39 | 2020-03-03T23:22:39 | 167,065,467 | 0 | 0 | null | 2022-11-22T03:36:10 | 2019-01-22T20:52:27 | Jupyter Notebook | UTF-8 | Python | false | false | 2,291 | py | from fmdlAlgo.FMDLAlgo import FMDLData
from utils.FMDLAlgoUtils import getApproximatedRoiBoundaryPoints
import unittest
import numpy as np
class Test_FMDLAlgoUtils_getApproximatedRoiBoundaryPoints(unittest.TestCase):
groundTruth_maxContour = np.load(
'tests/networksAndImages-forUnitTesting/roiBoundar... | [
"houman_sh2001@hotmail.com"
] | houman_sh2001@hotmail.com |
87664fa96f5619cf491af3c15187044ff7fe0dc3 | 4fc78edd1c0d18621d9cb91e79ff1f9d6fad8fa4 | /digest.py | 99f280463e8c39562dcf7849ffa58f02cb191b76 | [] | no_license | plesner/avg | 0baf1ebb1bc39d57fb1df1cd254bf9057ef5a63c | dc5ae89d0755a28cb50e29ae3c93df203c690d6c | refs/heads/master | 2021-01-19T18:51:24.844074 | 2012-12-30T09:49:43 | 2012-12-30T09:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,471 | py | #!/usr/bin/python
import sys
class Stream(object):
def __init__(self, str):
self.cursor = 0
self.parts = str.split(" ")
def has_more(self):
return self.cursor < len(self.parts)
def next(self):
result = self.peek()
self.cursor += 1
return result
def peek(self):
return self... | [
"christian.plesner.hansen@gmail.com"
] | christian.plesner.hansen@gmail.com |
a9879bdaadff217daa50056b96de0890cb3a4886 | 21d21402c70d8a95d9a4b492078e3fb36e2c9af1 | /kevin_schmitt/Django/survey_form/apps/amadon/urls.py | 8b49a29b4ba010e799b37331a5f06798327eed10 | [] | no_license | hmp36/python_aug_2017 | df897a1b0aa161300386192d48e3fcac9eb495c8 | 8747429b91b09349e5b5469d8932593b06f645e1 | refs/heads/master | 2021-04-29T23:16:50.149226 | 2017-09-11T20:14:37 | 2017-09-11T20:14:37 | 121,552,666 | 1 | 0 | null | 2018-02-14T19:34:54 | 2018-02-14T19:34:54 | null | UTF-8 | Python | false | false | 295 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^buy$', views.buy),
url(r'^receipt$', views.receipt),
url(r'^reset$', views.reset),
]
# (?P<num>\d+) is the variable for any number typed into the URI | [
"kschmit1@aisd.net"
] | kschmit1@aisd.net |
d8c6d77075894fb8fdf24de873d53fc724eb82a2 | 672b57ee6ad36cab8eff4802c423d5f836ebcab0 | /scraper/models.py | 6e27a3f4f8b2b808e7396ce290cb0582e0400c0f | [] | no_license | stanislavn/thrustfeed | a6b76dd485c80c1a16156930d078eb67267ec30d | b6a79d11b777048ff4f93629eea70c161f612d33 | refs/heads/master | 2023-02-18T19:22:25.228888 | 2021-01-24T13:08:26 | 2021-01-24T13:08:26 | 332,446,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | from django.db import models
class Product(models.Model):
availability = models.CharField(max_length=200, blank = True, null=True)
itemCondition = models.CharField(max_length=200, blank = True, null=True)
price = models.FloatField(max_length=200, blank = True, null=True)
priceCurrency ... | [
"29331439+stanislavn@users.noreply.github.com"
] | 29331439+stanislavn@users.noreply.github.com |
50e66a565a5b022effb51c22c66abcd32f5971c5 | 04303c090c6465b64f06205003ff246922bf3131 | /modules/ascii.py | 3389b29bfaa558bdffb5acdcf66be6fcb322f241 | [
"MIT"
] | permissive | merlinfuchs/clancy | 0845ca58f8e43e946099b529bc1b09ca2f0de84a | 7c08025a47a48ae2fa90ce8916fb32fa6311db68 | refs/heads/main | 2023-03-10T21:38:37.047609 | 2021-02-22T21:48:46 | 2021-02-22T21:48:46 | 337,463,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | from dbots.cmd import *
from util import *
APPEND_COMMANDS = [
("flipall", "┻━┻︵ \(°□°)/ ︵ ┻━┻"),
("rageflip", "(ノಠ益ಠ)ノ彡┻━┻"),
("bearflip", "ʕノ•ᴥ•ʔノ ︵ ┻━┻"),
("jakeflip", "(┛❍ᴥ❍)┛彡┻━┻"),
("flipbattle", "(╯°□°)╯︵ ┻━┻ ︵ ╯(°□° ╯)"),
("magicflip", "(/¯◡ ‿ ◡)/¯ ~ ┻━┻"),
("flipdude", "(╯°Д°)╯︵... | [
"merlinfuchs2001@gmail.com"
] | merlinfuchs2001@gmail.com |
458055eac4e2f8e25e954abafd1524e2dbd765d2 | d7f98cf5b4a20d3efa05d32726cf2528d27104b3 | /Chapter 4/4-1.py | 382b39a5e2dd6082971d18c03baaf1cdb7259a74 | [] | no_license | BeanSparrow/MCIS540hunt | 40e797a138d7fb02c4e6cddcde3c999640c86e73 | cf89027da9e9dfabf64520035b10c630e39c8072 | refs/heads/main | 2023-04-15T20:26:54.294912 | 2021-05-03T00:37:53 | 2021-05-03T00:37:53 | 350,469,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | # Exercise 4-1
import math
try:
# see if Swampy is installed as a package
from swampy.TurtleWorld import *
except ImportError:
# otherwise see if the modules are on the PYTHONPATH
from TurtleWorld import *
def square(t, length):
"""Draws a square with sides of the given length.
Returns the ... | [
"stvhunt132@gmail.com"
] | stvhunt132@gmail.com |
16f08340f13e5ef8e599df67e8d5494e198b58e8 | cb8c63aea91220a9272498d5ea6cca0a0738b16a | /numberfun.py | 1215b93e182f08eb2efaf9e5f70760eb790eb933 | [] | no_license | akantuni/Kattis | 1265de95bfe507ce7b50451a16f19720b86bef44 | 12f31bb31747096bf157fcf6b1f9242d91654533 | refs/heads/master | 2021-12-14T11:18:27.723045 | 2021-12-11T05:43:37 | 2021-12-11T05:43:37 | 111,472,667 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | n = int(input())
for i in range(n):
nums = input().split()
nums = [int(num) for num in nums]
a, b, c = nums
if a + b == c:
print("Possible")
elif a * b == c:
print("Possible")
elif a - b == c or b - a == c:
print("Possible")
elif a == c * b or b == c * a:
pr... | [
"akantuni@gmail.com"
] | akantuni@gmail.com |
89a3fb0509cb0063cf07ef8459140ca03e76fb17 | 36b72d1f3c6dd8ff842068052097498efff08f9d | /BankAccount.py | db8df9c8054c7e5b2c4bded6fdf6cd6ded9e3413 | [] | no_license | KuponoK/bank-account | 5423a02bbb00fc1989dedd31c82b61149e865d80 | 9713b3be7e9a5cbe5d3cac1fbf3fdcdf632782bc | refs/heads/main | 2023-01-11T23:40:18.895932 | 2020-11-10T02:31:52 | 2020-11-10T02:31:52 | 311,468,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | # bank account class
class BankAccount:
def __init__(self, full_name, account_number, routing_number, balance):
self.__full_name = full_name
self.__account_number = account_number
self.__routing_number = routing_number
self.__balance = balance
# deposit function
def deposi... | [
"kuponokealiinohomoku@AthinaspleWatch.localdomain"
] | kuponokealiinohomoku@AthinaspleWatch.localdomain |
79caaf5bfb2be6e088227f82e6450840e49f28d5 | aed32b1f500f0096e480f559b196adad88b15a8d | /python/junior/math.py | 5857f55794951485796a0519ebb5317ec26dd751 | [] | no_license | fypp/leetCode | 9f95b75fe1f553a6ccc9480d4a1059ed853da6e1 | 2bb797cb0d55eca02807574d6fe58761f9582274 | refs/heads/master | 2021-04-03T01:26:32.191371 | 2018-04-21T02:16:46 | 2018-04-21T02:16:46 | 124,632,407 | 0 | 0 | null | 2018-04-21T02:16:47 | 2018-03-10T07:19:36 | null | UTF-8 | Python | false | false | 2,189 | py | class Solution(object):
def countPrimes(self, n):
"""
:type n: int
:rtype: int
"""
if n < 2:
return 0
composite_dict = {}
prime_dict = {}
primes_count = 0
for i in range(2, n):
if i not in composite_dict:
... | [
"chenshifeng@chenshifeng.lan"
] | chenshifeng@chenshifeng.lan |
fbd79e2ea249c672bce152386465c6b69ec3b0fa | c67d38c1417c6579175ab4716ac0d84441b5aaa6 | /format_check.py | d7e2d8fa0bdca686a461112932e8dd8839d4259f | [] | no_license | huangy10/AutoUpdateArtworks | 348ff549f40b1c895e186a8a6753c071592e70d0 | eae91f486213624619ad9481351bac22af6df0d1 | refs/heads/master | 2021-01-20T06:22:30.394478 | 2017-03-07T04:51:21 | 2017-03-07T04:51:21 | 83,503,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # check the format of file names to guarantee the integrity
def check_folder_structure(root_path):
pass
def check_data_integrity(root_path):
"""
Check the integrity of image set
:param root_path: the root path where images are stored
:return: Boolean
"""
pass
| [
"woody1573@163.com"
] | woody1573@163.com |
2c1d3c28bd4ad211a96d33919d83d0e2e68e138a | ef44ff6f41eb2946615686ffe7d2cde866587821 | /chinaapi/qq/weibo/open.py | c408ae58ffbd251a984fb771c0f3ebdb8920ca18 | [] | no_license | randy-ran/ChinaAPI | 6130b050d147d8ddb26f9dc4d8af517ae68af5cf | afb1dd9aa5d0ac61fec1cab1385f92319fe7d83e | refs/heads/master | 2021-01-17T21:46:58.125522 | 2014-01-20T11:21:20 | 2014-01-20T11:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | # coding=utf-8
from chinaapi.open import ClientBase, Method, OAuth2Base, Token as TokenBase, App
from chinaapi.exceptions import InvalidApi, ApiResponseError
from chinaapi.utils import parse_querystring
IS_POST_METHOD = {
'user': lambda m: m in ['verify'],
'friends': lambda m: m in ['addspecial', 'delspecial'... | [
"14190635@qq.com"
] | 14190635@qq.com |
f6067061b3800b3c8ee2e7505ccd7992abdfcb4e | 4f3233abdd679d4e5aeaf9c542c9d8efc2e0d1c1 | /config/urls.py | 4d5c1629b781ac936c13998150122746cdf7526e | [] | no_license | TejsinghDhaosriya/tej-stock-search | 9fc195d09bea3c42aebff65dc376fdb87b68b121 | 83e2bcb2844a9d95968fdc8b1feacb648934fde9 | refs/heads/main | 2023-03-29T23:19:31.737704 | 2021-04-03T10:40:59 | 2021-04-03T10:40:59 | 354,230,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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 ... | [
"tejsinghdhaosriya@gmail.com"
] | tejsinghdhaosriya@gmail.com |
07fccbff6dc36b6923a3339363c214e6ebc79309 | ecce8a10aabb24019296cebaa46503f91876796f | /football_app/football_app/referee/urls.py | da7d9c7f2911a0055d6de80c5285c7b36bb0e0b1 | [] | no_license | Yeldarmt/DJangoFootballApp | 28450d60fbd0ec98bdf6d223545e17062442f970 | d9568cd48089c0be55217d8aecadf65053b72420 | refs/heads/master | 2022-11-26T16:19:34.252927 | 2020-04-26T18:09:52 | 2020-04-26T18:09:52 | 237,893,654 | 0 | 0 | null | 2022-11-22T05:28:37 | 2020-02-03T05:42:24 | Python | UTF-8 | Python | false | false | 216 | py | from django.urls import path
from football_app.referee.views import RefereesListView, RefereeDetailView
urlpatterns = [
path('', RefereesListView.as_view()),
path('<int:pk>/', RefereeDetailView.as_view())
]
| [
"eldarmukhametkazin@gmail.com"
] | eldarmukhametkazin@gmail.com |
06afcc7f626aad4e5894419a5470762c4e5bcfab | a3944bb458fa972f51ded5d55460e6a697a76482 | /Printing_Models2.py | 488df0c0c46dbb0fb4bf32115cad8a23b6ad720c | [] | no_license | olopez15401/Python_Exercises | 866e95be0b07953ca0f823e15eeadcd21e68dfbc | c578e59a3586568381661ca8f5500e1c91b3634c | refs/heads/master | 2020-04-09T03:53:01.766865 | 2019-01-26T19:05:11 | 2019-01-26T19:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import Printing_Models_2 as printer
unprinted_designs = ['iphone case', 'robot pendant', 'dodecahedron']
completed_models = []
printer.print_models(unprinted_designs,completed_models)
printer.show_completed_models(completed_models)
| [
"olopez15401@gmail.com"
] | olopez15401@gmail.com |
e0a494ce4ad4d72e812f2860cf7f862e5d9881f4 | bfce201a7971b05b2fbe0af4819081d71c3850db | /fermi/Pass7Validation/compare_flight_mc_psf/v1/plot.py | 8b5dbc36066c171de57395421b6155e1fcbbbf1a | [] | no_license | joshualande/PhD-Work | 2fe52f82f726ad6166937a3daed342c8cd9aee2f | 1d834a19b5a9347ccad75bd5a76126d5fd840c64 | refs/heads/master | 2020-04-18T15:14:19.127171 | 2014-01-26T22:58:10 | 2014-01-26T22:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | from matplotlib import rc
rc('ps',usedistiller='xpdf')
rc('text', usetex=True)
rc('font', family='serif', serif="Computer Modern Roman")
from mpl_toolkits.axes_grid.anchored_artists import AnchoredText
from matplotlib.patheffects import withStroke
import matplotlib
import h5py
import pylab as P
import numpy as np
fro... | [
"lande@37a9682d-6443-41a2-8582-b44379b6e86f"
] | lande@37a9682d-6443-41a2-8582-b44379b6e86f |
a6bf04eee157f8affa051c83f593901f58e2384f | 13130259156f6f9d16670cea88aa2608dd477d16 | /ranlp/quora/results.py | b70e44e2985744a977f50a0d49649dba64c0a0ff | [] | no_license | fkunneman/DiscoSumo | d459251d543be5f4df38292a96f52baf4b520a0b | ed8f214834cf0c2e04a3bc429253502f7e79fbf8 | refs/heads/master | 2022-12-14T13:34:41.496963 | 2019-07-31T15:57:02 | 2019-07-31T15:57:02 | 140,422,779 | 2 | 1 | null | 2022-12-08T04:57:55 | 2018-07-10T11:36:00 | Python | UTF-8 | Python | false | false | 585 | py | __author__='thiagocastroferreira'
import os
import json
from sklearn.metrics import f1_score, accuracy_score
if __name__ == '__main__':
path = 'results'
for fname in os.listdir(path):
if fname != 'dev':
results = json.load(open(os.path.join(path, fname)))
print(fname)
... | [
"f.kunneman@let.ru.nl"
] | f.kunneman@let.ru.nl |
0b03dea62f2f617d199febafdc8934f8f50c119c | be6c5c959bfee20c8712d0852f04a6afa3949adb | /assets/exercicios/ex-01-respostas/q2/Pedido.py | 30f01504ffee0df9853b1955eb79029409a558c9 | [] | no_license | LucianoBI/POO | 6e01aef731f926929819df52d1da819564d9bd73 | 70001165a8356db5ec3279a296fc8f77ec658bc4 | refs/heads/master | 2023-03-17T13:20:43.948105 | 2018-10-10T14:53:40 | 2018-10-10T14:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | class Pedido:
def __init__(self, valor_total=0.0):
self.valor_total = valor_total
self.itens_pedido = []
def adicionar_item(self, item):
self.itens_pedido.append(item)
def obter_total(self):
total = 0.0
for item in self.itens_pedido:
total += (item.prod... | [
"diegopessoa12@gmail.com"
] | diegopessoa12@gmail.com |
62ef51945e8fd4e850c7446372a0058b0ce54a21 | 33f2f4ed5242f256e2a31145125dad91699c1ead | /Leetcode/Contests/weekly_200_find_winner.py | 4d5aff5422154a9770e74affeafcf60927731bf5 | [] | no_license | Zahidsqldba07/competitive-programming-1 | b04b2962ce7bc4454008a3cbb7bee88c0e02251d | e35b3a1c95c559b7754d4fabf8d2c4f09b0c42b2 | refs/heads/master | 2023-07-11T01:39:38.188489 | 2021-08-29T19:29:47 | 2021-08-29T19:29:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | # 5476. Find the Winner of an Array Game
'''
Given an integer array arr of distinct integers and an integer k.
A game will be played between the first two elements of the array (i.e. arr[0] and arr[1]). In each round of the game, we compare arr[0] with arr[1], the larger integer wins and remains at position 0 and the... | [
"shinghos@mit.edu"
] | shinghos@mit.edu |
c3fc9797f0ec63a0c75e4de9a29fc39a10c528e2 | f27beb3492a78e66ecf68bc39130146d0aef90e0 | /LeetCode/292_Nim游戏.py | 5466eab2117f57502a7990917f46d3140754f030 | [] | no_license | ziyeZzz/python | 2ca23558c698b3c40dbda0729c4e60d3a2fdfa5f | 0d5c3ba1d0f57200c921abf227629b7621e207ce | refs/heads/master | 2020-03-28T15:15:08.227527 | 2019-09-11T08:14:31 | 2019-09-11T08:14:31 | 120,991,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | '''
你和你的朋友,两个人一起玩 Nim游戏:桌子上有一堆石头,每次你们轮流拿掉 1 - 3 块石头。 拿掉最后一块石头的人就是获胜者。你作为先手。
你们是聪明人,每一步都是最优解。 编写一个函数,来判断你是否可以在给定石头数量的情况下赢得游戏。
示例:
输入: 4
输出: false
解释: 如果堆中有 4 块石头,那么你永远不会赢得比赛;
因为无论你拿走 1 块、2 块 还是 3 块石头,最后一块石头总是会被你的朋友拿走。
'''
def canWinNim(n):
return n%4!=0 | [
"ziye123zoe@gmail.com"
] | ziye123zoe@gmail.com |
45bfaa924bfb448dc1c2b54c73be5810785af95f | 5b8cf355396b0ecfb3a891a0d2fd884081734f0a | /parseByCol.py | 9a3f90a36b009b7451105250ae64ecf276f04a22 | [] | no_license | rahulprabhakaran/GraphSpectrometer | 4ac327588c1b4689c305dfec97a07c1ac43cb1ef | ee55a60b4b273bf16ad88a239e25362952251dbe | refs/heads/master | 2021-05-29T07:11:20.172251 | 2014-02-04T02:47:58 | 2014-02-04T02:47:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | import fiedler
import os.path
import sys
import json
def filename_parse(fn, filter_min=.001,col=2,filter_col=2):
"""Wraps file_parse and infers paramaters based on extensions.
Takes:
filename.
".out" files will be treated as rf-ace output and filtered by imortance
all other files will be treated... | [
"ryanbressler@gmail.com"
] | ryanbressler@gmail.com |
4d853b31930bbf00def3c148a4c933d6555a3fed | d9637f39666ea0bcd9a0b7120492132bc71b0d07 | /Part 3/Config_1.py | a799a24e546d39966b07c9e13e37b596f22730bc | [] | no_license | karanajith2096/SML-Project | c06266a0caaa7465a9752b28ce56af5b6f7cc701 | 95f042ebcde1420ad35343e6da1c9f8d17ae7518 | refs/heads/master | 2020-08-02T04:20:57.577047 | 2019-12-09T04:41:45 | 2019-12-09T04:41:45 | 211,232,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | # -*- coding: utf-8 -*-
"""Untitled1.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1HIkogrW1RAGPJ8Xt96PftX7BYBulvMOJ
"""
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, ... | [
"karanajith@gmail.com"
] | karanajith@gmail.com |
d6133e030913d6f52d6462bdb35d3f36d7348abf | dd861ad8a33e1ec43a969746ec58efbbd877ca58 | /telusko/urls.py | 607c4907b6abde60fe968f17fa05fe98bf638a5c | [] | no_license | sajibuzzaman/telusko-DjangoProject | 54c74b1136f4d69dda092fe4ab03958214bc4e60 | c4a8cadfa18544bbfe4c359c730cbc4e2ef318e8 | refs/heads/master | 2023-03-05T22:10:58.583721 | 2021-02-14T20:39:09 | 2021-02-14T20:39:09 | 338,895,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | """telusko URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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... | [
"muhammadsajibuzzaman1998@gmail.com"
] | muhammadsajibuzzaman1998@gmail.com |
426484e082f5347af323f2f8c92f2c61f1ad7259 | 83be30d71563db5ca25d1173cb8e46dadcbf8ebb | /src/GFM_MLC_labelwise.py | 7f9ac97c7ff8f66abee2e8d772a012a9296dbe5b | [] | no_license | tfmortie/f-measure | 270f4aec2e121407628a4cde0d6f479e716324ba | ceccdcb9888c5fa544a5f78ca12ec83557c84ed4 | refs/heads/master | 2020-05-02T21:59:25.560069 | 2018-07-05T13:30:23 | 2018-07-05T13:30:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,366 | py | """
GFM with multiclass classification for multilabel classification tasks
Both F1 and F2 scores are calculated
"""
import os
import ast
import sys
import argparse
import numpy as np
import pandas as pd
from tqdm import tqdm
# TF - Keras imports
import tensorflow as tf
import keras.backend as K
from keras.optimizers ... | [
"stijn.decubber@ugent.be"
] | stijn.decubber@ugent.be |
5ad042bd73c818fb6e254df6b4cf72c179ab9b10 | 87b904ebf11d416567a7e49b91b8e9934f67c6f3 | /insert_row_simple.py | e642a918cd16c4942e211712d5181e4c9c09765b | [
"MIT"
] | permissive | NathanKr/pandas-playground | a701f524aa48f22f6680e48c597206e10f8222e5 | a5355c59cb61ca3a7dcce590ed42d56a6b943783 | refs/heads/main | 2023-06-05T11:07:52.061327 | 2021-07-02T02:35:15 | 2021-07-02T02:35:15 | 328,917,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import pandas as pd
df = pd.DataFrame([])
# most simple insert row
df = df.append(pd.Series([1,2,3]) , ignore_index=True) # insert at the end
df = df.append(pd.Series([4,5,6]) , ignore_index=True) # insert at the end
print(df) | [
"natankrasney@gmail.com"
] | natankrasney@gmail.com |
7972415cb517ef3bfc66323af6cb5649b2c53fb7 | c705252e5368efab6324f2c1716d50002ad22e80 | /1-2 first_exam_2.py | 7898110c7f46dc85665e8b2452fb488bb3fa3e84 | [] | no_license | younkyounghwan/python-exam | dd93124b91bc1d4f2690e9e3e9cb58ff8ef5623d | c0ed718d5dfcde65320da7c30f9a014b00e35151 | refs/heads/master | 2020-04-05T03:48:50.878125 | 2018-11-07T10:20:38 | 2018-11-07T10:20:38 | 156,528,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | """
day 2
"""
print("day 2")
"""
"""
#
f = 3.4
print(f)
i = 1
print(i)
b = True
print(b)
s ="1"
print(i+f)
#print(s+i)
print(int(s)+i)
print(s+int(s))
i = 57
j = 28
| [
"youn7117@naver.com"
] | youn7117@naver.com |
31d025fb82a70ab3eec3800b715a265d2df76bf7 | 5301656114df4d80c3353536d85e1d15829b9839 | /Frontales/.metadata/.plugins/org.eclipse.core.resources/.history/4b/3004f7adcb4500111f76ccb337b0ec7c | 6cadea6b43bd7bbc821b8e36d65d68fbe7346c30 | [] | no_license | Ducatel/TeXloud | 5f383c3fa2c27b01555574fd513d6f551e302b81 | 38f8be8857e1c6de2e103bbbe39707b49e1375aa | refs/heads/master | 2021-01-01T19:34:51.563829 | 2012-03-01T12:05:13 | 2012-03-01T12:05:13 | 2,885,054 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,575 | #!/usr/bin/python
# -*-coding:utf-8 -*
'''
Created on 10 dec. 2011
@author: Davis Ducatel
'''
import socket
from re import match
import threading
import json
import Ordonnanceur
class Frontal(object):
'''
Classe qui gere le serveur de la frontale de compilation grace à
Son adresse IP
Son port d'ecoute... | [
"hannibal@hannibal-laptop.(none)"
] | hannibal@hannibal-laptop.(none) | |
c116c570c2a56abc674c9fb63d86381c90576e47 | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /leetcode/1484.linked-list-in-binary-tree/1484.linked-list-in-binary-tree.py | 9077aff3937204041003e1371d38f9ce9273451b | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# ... | [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
2e81ea805b01eef0c74165836d792b342caab99c | 32d5a407f68d28929f06d63e81896c087ac8f730 | /tests/firsttest_linear.py | f056fa0fdcd649e0ef47c1b6fa21687f10ed0898 | [] | no_license | Brossollet-Antonin/Ultrametric-benchmark | 5e9d8ed8d79cbfff3f2ed831e66488c582654cc9 | 74d3a00e4a7412ea4e058b7fd0c1f0b873a8bf8f | refs/heads/master | 2022-08-29T21:25:50.430748 | 2021-02-02T11:11:43 | 2021-02-02T11:11:43 | 232,113,332 | 1 | 0 | null | 2022-08-10T19:11:55 | 2020-01-06T14:04:49 | Jupyter Notebook | UTF-8 | Python | false | false | 3,768 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 3 15:35:15 2019
@author: Antonin
"""
import artificial_dataset
import algo
import torch
import neuralnet
import testing
import control
import random
from copy import deepcopy
import sequence_generator_temporal_noself as sequence_generator_temporal
... | [
"noreply@github.com"
] | noreply@github.com |
28cd6eb7e066d5beef36ebf0143c8b5c570d2b49 | ff0b413d9c72b7eb30ce3092a4a3693134844f32 | /display-departure-times.py | 625a8edfe036213e5ea1c31b247af09f66261395 | [] | no_license | kastrom/departure-board | 4c6f6a67b0ca2b887745bc8c24211a79ef3257e1 | bd9e3fea5775ade8e9c524679a6543952c8b4d1d | refs/heads/master | 2020-03-06T19:17:15.827497 | 2018-05-03T15:54:04 | 2018-05-03T15:54:04 | 127,024,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,430 | py | #!/usr/bin/env python
# Display a runtext with double-buffering.
from samplebase import SampleBase
from rgbmatrix import graphics
import time
class DisplayDepartureTimes(SampleBase):
# class DisplayDepartureTimes(SampleBase, DepartureTimes):
def __init__(self, *args, **kwargs):
super(DisplayDepartureT... | [
"krisfields@gmail.com"
] | krisfields@gmail.com |
ac35789c652d5665603fa9ac264c13af26d33213 | 10988682861172a52dcb2a5d25e6f4d61f628124 | /users/migrations/0001_initial.py | 4d529e84b10c4d8c84a3c1de3ed261144582b2db | [] | no_license | whereisyourpet/petfinder_be | 99b433939c3ccca6a6b79d44f56d51098437a797 | aa853c8a3dfa9652b965199b2606ee8c3eeb568b | refs/heads/master | 2020-04-25T13:42:49.130137 | 2019-03-13T12:41:14 | 2019-03-13T12:41:14 | 172,817,855 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,800 | py | # Generated by Django 2.1.7 on 2019-03-11 02:08
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_last_name_ma... | [
"yan_sy@126.com"
] | yan_sy@126.com |
3136dc4439820a55acbd7a518b4016742c59474d | 31cc157b0167e4878309b89bab04b72c318e5406 | /566. Reshape the Matrix.py | 449cd2d6df2a75d803abc1f68214f8091d4cade5 | [] | no_license | juneepa/LeetCode-Algorithms | b026b8100fc05642fa4e1c03f873ee1d661b766b | 37cbb5351634c2fb6e384c0d116581c63f41caa8 | refs/heads/master | 2021-09-07T20:51:59.111843 | 2018-02-28T23:32:24 | 2018-02-28T23:32:24 | 113,538,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | ## https://leetcode.com/problems/reshape-the-matrix/description/
## Check website above for more details
## Easy, 165ms, 42.75%
## Not a great work but very straightforward
class Solution(object):
def matrixReshape(self, nums, r, c):
## check if r and c make sense
if r * c != len(sum(nums,... | [
"noreply@github.com"
] | noreply@github.com |
5b149dcddea3f85d1c78a37975bfe212ed99dabc | 5372114813c1812e8bdcbe9122fd96ea8403cc4b | /blog/urls.py | 5302338f0518839940f6df052f3563598130c89b | [] | no_license | EduardoLopezRodriguez/socnet | b3f59dab5d8db5b09a480fa562214e33e42a3f55 | 22c79f0acc0d2d71f376799ab09fb5b9b3a360f6 | refs/heads/master | 2023-04-25T20:53:19.976551 | 2021-05-09T20:40:03 | 2021-05-09T20:40:03 | 365,840,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.HomeListView.as_view(), name='home'),
path('post/<int:pk>/', views.PostDetailView.as_view(), name='post_detail'),
path('post/new/', views.PostCreateView.as_view(), name='post_create'),
path('post/<int:pk>/update/', views.Po... | [
"e94129@outlook.com"
] | e94129@outlook.com |
7e8bd342fc0bb96f6ba727e866bcc18731ac5afa | d5735851b605e8960ca321c0e332c7ed810f3e6d | /Python/files/eatenApples.py | 213e017a02f984a27f4332e28fc80d8f3097ee15 | [] | no_license | pyj4104/LeetCode-Practice | 6ed0cffd3605be6e187bedeb99e3b4b430604913 | 6a7d033bfd687ad2a0d79ac6a7f50ace1625f631 | refs/heads/master | 2023-03-12T00:23:50.913239 | 2021-02-25T03:38:11 | 2021-02-25T03:38:11 | 306,699,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import heapq as h
class Solution:
def eatenApples(self, apples: [int], days: [int]) -> int:
pQueue = []
dateToday = 0
numEaten = 0
for i in range(len(days)):
h.heappush(pQueue, [days[dateToday]+dateToday, apples[dateToday]])
foundStoredApple = False
while pQueue and not foundStoredApple:
thingsTo... | [
"pyj4104@hotmail.com"
] | pyj4104@hotmail.com |
ed4cfb6f7353b9a3d34d98921ab407e804cfbdbb | 982336a4698cf0fedbdd7b24c4aa8064339bba19 | /plmn.py | 1b12088b5a36791b3cededb2b5c29a7084a233c6 | [] | no_license | blackyreviewsyt/privet | 47a3fe238682743be74cf4889eaf887aacfe91c3 | cf43767df87d7a3b04b06a27d7643c57ad923d14 | refs/heads/main | 2023-01-12T13:44:11.451642 | 2020-11-15T13:43:09 | 2020-11-15T13:43:09 | 313,040,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | str = input("Введите строку ")
pl = 0
mn = 0
po = 0
mo = 0
for i in range(len(str) ):
if str[i] == '+':
pl += 1
if str[i] == '-':
mn += 1
if str[i : i + 2] == "+0":
po += 1
if str[i : i + 2] == "-0":
mo += 1
print("В это строке ", pl, " плюс(ов)")
print("В... | [
"blackreviewsyt@gmail.com"
] | blackreviewsyt@gmail.com |
5eaa73066b3c9d35699c4b176d32305dd1832ac5 | 5e6155ad914b8bf67c0b8eb07baf12dccdcc0dbb | /email_definitions/culture.py | 007fc0614c9430ad94a3ebad9366e3e8e82079fb | [
"Apache-2.0"
] | permissive | fabio-pintodacosta/gu-email-renderer | 08cc85b06580768ba89c262f1633ffcbbfbf02a5 | f9f62f6e8048cc0a6f79df734b6217f3dbcec8fa | refs/heads/master | 2020-12-27T21:16:41.510316 | 2015-11-03T13:36:57 | 2015-11-03T13:36:57 | 39,622,245 | 0 | 0 | null | 2015-07-24T09:02:11 | 2015-07-24T09:02:11 | null | UTF-8 | Python | false | false | 4,786 | py | import pysistence as immutable
import mail_renderer as mr
import handlers
import data_source as ds
import data_sources as dss
from guardianapi.apiClient import ApiClient
from container_api import container
client = ApiClient(mr.base_url, mr.api_key, edition="uk")
class FilmToday(handlers.EmailTemplate):
recog... | [
"robert.rees@guardian.co.uk"
] | robert.rees@guardian.co.uk |
26436c7f8ca5002a0efc19ff4ad758d7c00b6fb1 | 2f919b97aea7f0698830658073ab939a0e84133f | /Alexey/Numbers/fast_exponention.py | bbbec64e211d2fde85ce476602466f1676cc13eb | [] | no_license | glock3/Learning- | 1efcf9174d77363b2ecf84a688dcda82ae8ee405 | f80c8d8ac1bf6eb6472726fe86369149bb5f86ad | refs/heads/master | 2023-01-08T23:21:22.665561 | 2020-11-08T23:54:53 | 2020-11-08T23:54:53 | 290,705,463 | 0 | 2 | null | 2020-11-08T23:54:54 | 2020-08-27T07:18:49 | Python | UTF-8 | Python | false | false | 506 | py | def main():
a = int(input("Enter number a: "))
b = int(input("Enter number b: "))
o_log_n(power_of_nums(a, b))
def o_log_n(result):
temp = result
big_o = 0
while temp > 1:
temp = temp // 2
big_o += 1
print('Complexity is: ' + str(big_o))
def power_of_nums(a, b):
resul... | [
"work@localhost.localdomain"
] | work@localhost.localdomain |
08a8ecac2c1bbc0eabcd430943c305af664fc09c | ce1cf00a7e8d8b45701f5bc575434958dcc53c7e | /plugins/oauth/server/providers/globus.py | f821642694ff8d7f1d0fe3654bc4b97233f042c5 | [
"Apache-2.0"
] | permissive | lslab/girder | 1fd4cdffcbc4e581d3103dd552262921a29ab540 | b40f7f1cd3e6a516bf858b026f040c93d0928bbe | refs/heads/master | 2020-12-24T12:12:37.399019 | 2017-03-21T21:56:15 | 2017-03-21T21:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,567 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright Kitware Inc.
#
# 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 ... | [
"xarthisius.kk@gmail.com"
] | xarthisius.kk@gmail.com |
ed7b014f42fe52ce025c3ac73b90a0614d8c5b49 | 688fb8b735401e3653078e6e8d0047376dea9398 | /pizzaapp/migrations/0005_alter_ordermodel_ordereditems.py | 9cc30eab39d96c245b2822a5d28a8798891fac18 | [
"MIT"
] | permissive | vivekx01/pizzaapp-v2 | bbf2592580fc2cf1bf76db25f9aadd739046bc2a | 71c028af35955c53564b96ade4ff93c4b59799fe | refs/heads/main | 2023-06-15T00:13:25.874602 | 2021-07-09T06:04:17 | 2021-07-09T06:04:17 | 371,899,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Generated by Django 3.2 on 2021-05-03 07:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pizzaapp', '0004_rename_email_ordermodel_phone'),
]
operations = [
migrations.AlterField(
model_name='ordermodel',
... | [
"noreply@github.com"
] | noreply@github.com |
a8f8eb18de3d54d6229386e896ac579b2dc8f9a9 | a6fd8b3fefa2654cb8bb188734eb587b6051d743 | /awssaml/api/ADFSService.py | 21c772612ee87f21f4628059f93133f138c41dc9 | [
"MIT"
] | permissive | piotrplenik/awssaml | 7fc0dd51ef07b46989d7a57559953b0b935a85d4 | bebf96260bba47a8ec160b97f806bc7f4a209748 | refs/heads/master | 2023-05-28T19:58:10.716918 | 2019-10-30T20:32:28 | 2019-10-30T20:32:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | import requests
import base64
from requests_ntlm import HttpNtlmAuth
from bs4 import BeautifulSoup
import xml.etree.ElementTree as ET
from .ADFSConnection import ConnectionType, ADFSConnection, NtlmADFSConnection, WebFormADFSConnection
class ADFSService:
def __init__(self, identity_url):
# type: (str) -> ... | [
"piotr.plenik.consultant@nielsen.com"
] | piotr.plenik.consultant@nielsen.com |
43ba18e1ca65424bedf81bd23bc6740a4005af6f | 70876e11e6a102c34c9d7a626a33bda26fcfbf58 | /gino/schema.py | 192cbe80271c90ff2ee13d025cc0c85d70923146 | [
"BSD-3-Clause"
] | permissive | Urielable/gino | c275ad52b108d9ff3cd24a532d348a32cf3b3cb2 | 226d6df131ee32534fd37849a83e2513df5b5f37 | refs/heads/master | 2020-03-25T03:42:23.093065 | 2018-08-02T08:45:37 | 2018-08-02T08:45:37 | 143,355,539 | 1 | 0 | null | 2018-08-02T23:48:54 | 2018-08-02T23:48:54 | null | UTF-8 | Python | false | false | 14,910 | py | # noinspection PyProtectedMember
from sqlalchemy import exc, util
from sqlalchemy.sql.base import _bind_or_error
from sqlalchemy.sql.ddl import (
AddConstraint,
CreateIndex,
CreateSequence,
CreateTable,
DropConstraint,
DropIndex,
DropSequence,
DropTable,
SchemaDropper,
SchemaGene... | [
"fantix.king@gmail.com"
] | fantix.king@gmail.com |
5a32dd55cd15e3b4e6e7ad9559c5b39183ee2359 | fb2021d19c97b297cfeefaa5e62a51873cb7e5ef | /geekshop/settings.py | 0f817c077b458d450313b8abdef257ee0c9fe28d | [] | no_license | Katerina27/Django_1 | 7ae78d4fd978d2f398daad9bafc8edadf9a67612 | 6c0651e37d16117a4587e8abf1f348886b0c938e | refs/heads/main | 2023-06-26T20:54:55.481720 | 2021-07-19T11:06:58 | 2021-07-19T11:06:58 | 387,422,196 | 0 | 0 | null | 2021-07-31T15:26:39 | 2021-07-19T10:15:58 | CSS | UTF-8 | Python | false | false | 3,505 | py | """
Django settings for geekshop project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
i... | [
"noreply@github.com"
] | noreply@github.com |
8d9a07e99f4b4fe1788ee9b53f7d83e9c80abff8 | 9ed71fc3a63610cfe3fd25ba7b6b282e1755386c | /onlineShop/Order/urls.py | 68da976654d0fc42f10fb4643691cf9b2964fa23 | [
"MIT"
] | permissive | alirezaryahi/django-onlineShop | e3fca5ee2535c96411742511982623f6d33b4755 | b36c4a37ac98977862b83f646c2303ec4bb1a6ab | refs/heads/main | 2023-02-02T12:14:47.089604 | 2020-12-21T11:15:08 | 2020-12-21T11:15:08 | 322,706,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from django.urls import path
from .views import Open_order, add_user_order, remove_order_detail
urlpatterns = [
path('openOrder', Open_order),
path('add_user_order', add_user_order),
path('remove_order_detail/<detail_id>', remove_order_detail),
]
| [
"noreply@github.com"
] | noreply@github.com |
c3ade7808d49bedaf6b0ea9994a731efdeca9974 | 7f9de62b2952a086ea1004d81868a393449cd569 | /calc.py | 9904302736ae5dfe50aa3d78cf8ab89884e3673d | [] | no_license | fastudio4/flask-mill | abbd7b5aea8368a49d21e1c3294a9363210ed9b0 | 2729ba14165a8176919db76a77a2b5d32c87f5fa | refs/heads/master | 2021-06-28T06:05:23.365758 | 2017-09-18T18:22:57 | 2017-09-18T18:22:57 | 103,895,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | from math import pi
from statistics import mean
from db import db_milling
class Milling(object):
def __init__(self, material, d_cut, t_cut, max_speed_spindle, max_frequency):
self.material = material
self.d_cut = d_cut
self.t_cut = t_cut
self.max_speed_spindle = max_speed_spindle
... | [
"fastudio4@gmail.com"
] | fastudio4@gmail.com |
899db2725bd391edbca36a7cb68b75ffd4e74c4a | d3fefacc4e74f2ba6fdae3a03318dbdd9d43d09d | /lib/imdb_util.py | e75c0ef05c34b8f2063dbc0939be48f92cb2238f | [] | no_license | susanmosha/M3D-RPN | dabc9bc0ad084cdc1185c73e532157778d58de43 | d7354226a73eba692eb6455c0ac734ffc1aada47 | refs/heads/master | 2020-12-12T06:17:44.291207 | 2020-02-06T06:41:33 | 2020-02-06T06:41:33 | 234,062,183 | 0 | 0 | null | 2020-01-15T11:07:58 | 2020-01-15T11:07:57 | null | UTF-8 | Python | false | false | 20,578 | py | """
This file contains all image database (imdb) functionality,
such as loading and reading information from a dataset.
Generally, this file is meant to read in a dataset from disk into a
simple custom format for the detetive framework.
"""
# -----------------------------------------
# modules
# ---------------------... | [
"brazilga@msu.edu"
] | brazilga@msu.edu |
f382edecf942c8b06185993898f5cb08ef96e580 | dbbc56b58af216b923b38e7efbefd7a597945498 | /week1_alle.py | 0c1fd43667c1309a1eefb7de65b7521c15c5466f | [] | no_license | erikfsk/matin1105 | 684c68412da4699040728bd1e8c30a19efcdadec | b1c2f7908b2ff06447fe8fce6f7d12dfabe73517 | refs/heads/master | 2020-03-27T08:30:04.624643 | 2018-11-23T19:04:26 | 2018-11-23T19:04:26 | 146,261,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py |
# -*- coding: utf-8 -*-
"""
**TIL ALLE**
Så norske tegn er ikke støttet i python!
HVIS det funker for deg, så er det fordi du bruker et program som fikser det!
Jeg vet ikke hvilke program som fikser det, men atom og sublime, som jeg bruker,
fikser det ikke!
HVIS du absolutt må skrive norsk i programmet ditt, så ... | [
"erikfsk@student.matnat.uio.no"
] | erikfsk@student.matnat.uio.no |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.