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
25454d11e4902e3ee96778aa068c6150e7eb95d9
ee10de6ce6a56c3ba8670144490c61ff7ecaface
/json_to_csv.py
c6eb6a65a8864162d2eab96fb9ce3dbe9dcc350a
[]
no_license
thegsi/appstore-api
91bdc2f8cdf32703981dc8a34c6679e11e3a2adb
4c1e3a92d67a741a9f481f31d4303e45a0dab483
refs/heads/master
2020-03-19T20:52:33.445477
2018-09-27T10:53:04
2018-09-27T10:53:04
136,920,345
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
import pandas as pd from pandas import DataFrame import json with open('appstore_books150.json') as f: appContent = json.load(f) keys = appContent['results'][0].keys() print(keys) df = pd.DataFrame(columns=keys) for i in range(len(appContent['results'])): for k in keys: if k in appContent['results...
[ "dr.gethin.rees@gmail.com" ]
dr.gethin.rees@gmail.com
a75789c16f0297f9a5da3ef0759607a3352284a8
161f0edac3720b488b3ba6e7f21083409bb841bc
/problem093.py
ed25ce7a8f68c6600c319b335ab97256bebb9124
[]
no_license
chadheyne/project-euler
cd28589c12a092faf2c3f6f52df16b30bba2bf2d
20155d0987754685a89d11b45a58580f7d1528de
refs/heads/master
2021-01-09T20:14:00.659905
2013-11-10T06:41:59
2013-11-10T06:41:59
61,950,422
0
0
null
null
null
null
UTF-8
Python
false
false
1,514
py
#!/usr/bin/env python from itertools import ( combinations, permutations, chain, product) def partitions(iterable): n, s = len(iterable), iterable first, middle, last = [0], range(1, n), [n] return ['{}'.join(map(lambda i, j: '(' + '{}'.join(s[i:j]) + ')', chain(first, div), chain(div, las...
[ "chadheyne@gmail.com" ]
chadheyne@gmail.com
a72ddaff756e17ca53489a0964db37665a6783d2
ded7716aaf8b0d118759bbb0f8f68e21ad1b2bf0
/tasks.py
68c4ed354fc47a747264b87ed2187e8492c70259
[]
no_license
wmeaney/national-oceanographic-data-centre
1617f0f398b9dfb8c2cf3b255da18678aa6258e7
83d9bd1627aa4f67217186019f9b4f686e4b7e88
refs/heads/master
2020-07-30T17:11:35.737649
2019-09-09T15:58:15
2019-09-09T15:58:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,107
py
from invoke import task import os import xml.etree.ElementTree import flask app = flask.Flask('flaskInInvoke') def enum(): return {'baseUrl': 'https://irishmarineinstitute.github.io/national-oceanographic-data-centre/'} def getXmlNamespaces(): return {'gmd': 'http://www.isotc211.org/2005/gmd', ...
[ "aleadbetter9@gmail.com" ]
aleadbetter9@gmail.com
2d81eefaf47a0eaeb84f24fa28661b2e22ca929b
d67b4d6907b31ac2d9c07b73305e25a20d3a827b
/repro_packs/ellis/repro_exec_files/scripts/cext_wave_iso_pillar_AR3.py
5e45796944c98b73f432fb3c66af6f6b4e675634
[ "BSD-3-Clause", "CC-BY-4.0", "CC-BY-3.0" ]
permissive
stjordanis/pygbe_validation_paper
13de7b06ebdb792146abdd8fb775d6e7361f4709
ef826a8e956a817f919c4357a08aa8f675a910a4
refs/heads/master
2023-03-19T05:13:51.961685
2021-03-03T15:38:39
2021-03-03T15:38:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,200
py
import numpy import time import sys import os from argparse import ArgumentParser import pygbe from pygbe.util.read_data import read_fields from pygbe.main import main from cext_wavelength_scanning import create_diel_list, Cext_wave_scan, Cext_analytical def read_inputs(args): """ Parse command-line argumen...
[ "natyclementi@gmail.com" ]
natyclementi@gmail.com
bc125099241b8ffd9f1ccc9d93c01b6f7eaf5f23
a05550df7d8385ac8cfe2f1ac30aa438e706dd59
/src/eval/create_ranking_3models.py
18e28432ac756acbb80fa5497ee808f946b56465
[]
no_license
raosudha89/clarification_question_generation
9a537e4410d649519e662c8ddd1d776d5a891deb
f8ed75cc25622fc82c753e8f73e9c25d5e2df344
refs/heads/master
2020-03-08T10:34:33.771492
2018-06-27T18:27:54
2018-06-27T18:27:54
128,076,744
0
0
null
null
null
null
UTF-8
Python
false
false
4,741
py
import argparse import gzip import nltk import pdb import sys, os from collections import defaultdict import csv import random def parse(path): g = gzip.open(path, 'r') for l in g: yield eval(l) def read_ids(fname): return [line.strip('\n') for line in open(fname, 'r').readlines()] def read_model_outputs(m...
[ "raosudha@umiacs.umd.edu" ]
raosudha@umiacs.umd.edu
34a3c2e383db34435bf9f7f6871b4759c697745c
30f15a184450d6e914ac16375e674cc2f993b9ce
/game/engine/scummvm/actions.py
753eacd9cdf63940e2303b46b603fc71086fe5a4
[]
no_license
Erick-Pardus/2013
9d0dd48e19400965476480a8e6826beb865bdb2e
80943b26dbb4474f6e99f81752a0d963af565234
refs/heads/master
2021-01-18T16:57:58.233209
2012-10-30T20:35:42
2012-10-30T20:35:42
6,467,098
2
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get ...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
3ae3022f4d02fd4850ca632a44e0205b7d1fa653
c93080264201fe6d0c84a79ae435022981d8ccf6
/panoptic/panoptic/doctype/frt_link/frt_link.py
67e8a4394dda3a574c7eb1b126c1d9f854e6c6c7
[ "MIT" ]
permissive
wisharya/panoptic
100e733e9aad33d087851fc4ea9bd064e81954f2
7c9a0eeb6bd5d9032087ccb7c805a3e65a357ba8
refs/heads/master
2023-07-09T14:20:45.377441
2021-08-25T06:58:45
2021-08-25T06:58:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
# -*- coding: utf-8 -*- # Copyright (c) 2020, Internet Freedom Foundation and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class FRTLink(Document): pass
[ "scm.mymail@gmail.com" ]
scm.mymail@gmail.com
938be44e36a1a72ed095f30a41dfeae540855d1a
c9ecaf4c376f7a4617588f382ee70fb3b4142bf0
/weight/main_window.py
f3558dfdb195e521e543436566d94c614d53f91a
[]
no_license
Snowfly11531/api_get
d69a0629bc16d3dc3218163999e680ce18d9b9bb
9668c563fb19cf5fe8a27b9a0ea082a763fb6797
refs/heads/master
2020-09-22T18:42:35.260445
2019-12-10T14:31:21
2019-12-10T14:31:21
225,300,450
0
0
null
null
null
null
UTF-8
Python
false
false
901
py
import sys from PyQt5 import * from weight.main_window_ui import * from weight.parameter_frame import * class Main_Window(QtWidgets.QWidget,Ui_Form): def __init__(self): super(QtWidgets.QWidget,self).__init__() self.frameHeight=0 self.frameCount=0 self.setupUi(self) def addframe(...
[ "245134041@qq.com" ]
245134041@qq.com
f4ef2defc06bdd2a35f26acedd9b7bac282e0460
4e54d2199f7c601f6efc58d88447eeeb3594a637
/riselive/python_courses/datatype.3.py
f917572804f2b27081ab90ec6371e9caf2148654
[ "MIT" ]
permissive
Z3Prover/doc
4e23e40cef32cf8102bd0dda7fb76d01051f9210
f79ba59ce06e855d783508d9b6f47a8947480d12
refs/heads/master
2023-09-05T19:45:26.160516
2023-08-01T17:01:16
2023-08-01T17:01:16
151,014,945
34
20
MIT
2023-06-30T03:29:19
2018-09-30T23:09:21
HTML
UTF-8
Python
false
false
393
py
Color = Datatype('Color') Color.declare('red') Color.declare('green') Color.declare('blue') Color = Color.create() print is_expr(Color.green) print Color.green == Color.blue print simplify(Color.green == Color.blue) # Let c be a constant of sort Color c = Const('c', Color) # Then, c must be red, green or blue prove(O...
[ "nbjorner@microsoft.com" ]
nbjorner@microsoft.com
63d075ebba8d418a5abd61db3765aec5ea7064c8
57ae9f6e97851930616739893493c335d04f6520
/wings_sanic/utils.py
515a95b58ee2d700a6b29faf48909962acc1669c
[]
no_license
songtao-git/wings-sanic
25c9c5b4d75949b4872f1e32cb6d0368d877e2b2
f273759360021aafdcf83ae30786e98af1b5df3d
refs/heads/master
2021-06-11T23:27:45.604572
2021-03-29T08:11:58
2021-03-29T10:43:34
161,740,871
10
4
null
2021-03-29T10:43:35
2018-12-14T06:21:53
Python
UTF-8
Python
false
false
5,059
py
# -*- coding: utf-8 -*- import datetime import decimal import inspect import json import os from typing import Sequence, Mapping from wings_sanic import datetime_helper def instance_to_dict(instance): """ Convert instance to dict """ if not hasattr(instance, '__dict__'): return None data ...
[ "songtao@kicen.com" ]
songtao@kicen.com
5b5698735c4bd1e1ec8573b99abd07c76cd9c04b
b5c6599d206ff282e9aa7539024d320bbafc99d2
/dmtools/dmt_content/urls.py
1877a2d967859034ad9c567ec20c2cdb5b58f142
[]
no_license
BlitzKraft/DigitalMediaTools
e58c3a53fce5fb145d0e8f11e0780ec7e0b775bb
86b7fd90dcf80c6cde7263864feee5691f6736d6
refs/heads/master
2021-01-22T11:29:18.500685
2017-05-29T05:59:17
2017-05-29T05:59:17
92,703,898
1
0
null
2017-05-29T03:38:07
2017-05-29T03:38:07
null
UTF-8
Python
false
false
851
py
"""dmtools 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-ba...
[ "andie.yancey@icloud.com" ]
andie.yancey@icloud.com
3d1563c262a258c965c363b560ee8504998737bb
f214053ac4ea47da1c1ed1757625834c4251d79d
/utils/Yaml_Factory.py
27d2e1473a4ffdfd5fa182f6d7266c9097c2222b
[]
no_license
gaozhao1989/mobile_uiautomation
fb031ccb6161c73b4aca92852891d4f0dc947ceb
554edcaeb0164d3ac3e7fb1c99933b58e46d4a2d
refs/heads/master
2020-12-03T00:09:25.556194
2017-07-02T00:59:42
2017-07-02T00:59:42
95,994,842
0
0
null
null
null
null
UTF-8
Python
false
false
1,508
py
import os, yaml current_path = os.getcwd() workspace_name = 'mobile_uiautomation' workspace_path = current_path[:current_path.index(workspace_name) + len(workspace_name)] def get_yaml_data(file_path): stream = open(file_path, 'r', encoding='utf-8') yaml_data = yaml.load(stream) stream.close() return ...
[ "zhaogao@ZhaodeMacBook-Pro.local" ]
zhaogao@ZhaodeMacBook-Pro.local
2cd19af823e90d2a4f99f3ee7ad155f837d1bb6c
f708a01bdfd1133883ec43dc9f7fc1dd8efd655c
/backend/home/migrations/0002_load_initial_data.py
cd9ce165d6eece5be8715f7fd500ce6e879c1ef5
[]
no_license
crowdbotics-apps/cws-v2-24857
d289f5011c0c122079399365b040ccde1731282c
2bd623d18e207ddf7f048ca117eaf3f864edae7e
refs/heads/master
2023-03-12T10:33:38.218689
2021-03-05T02:19:14
2021-03-05T02:19:14
344,669,015
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "CWS v2" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") ho...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
3298c87b6791939424088c9efb422d0f53e6f361
cb3d5a3cebfb1cc06f563bc36001d5f100cac97a
/fb/parser.py
18cb6d4cbc44d9b1eb4a10778b4ecf0c74e35fbc
[]
no_license
ax-sh/facebook-saved-saver
8f6f3a3795a7f631710c93ea17e49cea920ff0aa
34f453a9e9d7ecb26684b32093ed1d8652aa1817
refs/heads/master
2022-11-28T15:55:57.815165
2020-08-07T17:42:04
2020-08-07T17:42:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
import re from urllib import parse import json class ParseError(Exception): pass class TokensParseException(ParseError): pass def url(url): parsed = parse.urlparse(url) result = {'query_json': dict(parse.parse_qsl(parsed.query))} result.update(parsed._asdict()) return result def rx_json_...
[ "ahwn@pm.me" ]
ahwn@pm.me
a05fd4236ca57745dbcdd8597f5735fa61ad3ca4
863a6e23a71bbddccd73b0891cd5e4f85a51c29f
/cesar_env/bin/python-config
1d6b23686401646f119adabbe21ba6e285a47602
[]
no_license
neonua/ceaser
e3b2d6e2f484b5b05a3aaa62e97151e9ed663194
0ad25bdb1ad16abeee7a54591b9d22162cb5a4e5
refs/heads/master
2021-01-11T23:16:17.670349
2017-01-11T08:50:11
2017-01-11T08:50:11
78,562,060
0
0
null
null
null
null
UTF-8
Python
false
false
2,347
#!/Users/igor/new_prj/cesar_env/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags') if sys.version_info...
[ "neonua666@gmail.com" ]
neonua666@gmail.com
31f19286a7a027e1aa34217ed97ef9790a1d3f06
2d9762e34f80c169daa9b2f724cab3a83f90d5fb
/dao/Topic_QuestionDao.py
bdcebed9dc8ce957e79e35ad2cb25288412c17ba
[]
no_license
skomefen/ZhihuSpider
11ae293a294e4d2f18c4d58e602ffa087f96c3c5
735a32bcdee784a3c303befae35e23e7ed5aab25
refs/heads/master
2021-08-24T09:38:32.422571
2017-12-09T02:48:11
2017-12-09T02:48:11
108,355,021
2
0
null
null
null
null
UTF-8
Python
false
false
1,659
py
import logging from dao.ConnManager import ConnManager class Topic_QuestionDao: def __init__(self): logger = logging.getLogger(__name__) conn = ConnManager().get_conn() # 表不存在就创建表 tableIsOK = False try: if not tableIsOK: sql = '...
[ "1072760797@qq.com" ]
1072760797@qq.com
6bfd98d0acb97cfadfc17f5ebe4ecf36c7af746b
4ea92cda40dce3acec7016aaf65488a5c5286b36
/src/crumblebundle/input/windows_keycodes.py
10e46ca9876170d11ccb4cd7fc2231a94097efaa
[ "MIT" ]
permissive
Peilonrayz/crumblebundle
694137315617201a9797a7bc1f249121981c2bd9
cffb3b0b16e9bc6497e9ba43f9c7cc3fd008c3ee
refs/heads/master
2021-01-09T13:34:25.026340
2020-02-21T20:09:50
2020-02-21T20:09:50
242,320,620
0
0
null
null
null
null
UTF-8
Python
false
false
15,565
py
# Table headers # [name, ext, ext-shift, ext-ctrl, ext-alt] # [name, dec, char, dec, char, dec char, dec char] _keycodes = [ ["ESC", 1, 27, None, 27, None, 27, None, 1, 0], ["1!", 2, 49, "1", 33, "!", None, None, 120, 0], ["2@", 3, 50, "2", 64, "@", 3, 0, 121, 0], ["3#", 4, 51, "3", 35, "#", None...
[ "peilonrayz@gmail.com" ]
peilonrayz@gmail.com
df37a819293392094e379a0bab9ba5496f5eac55
a96f8bac6128c04a8df342c93767387a497baac4
/__init__.py
270588e7f5d006e36163f42b0b07b2d5540b9db7
[ "MIT" ]
permissive
unhideschool/uhql
0587ba601885087f0f81b4988fe67c4f3da72ff9
b2194388ee73d7bb4d08ef73ced44c73ab598e6a
refs/heads/master
2020-09-26T01:35:39.923209
2019-12-09T15:09:22
2019-12-09T15:09:22
226,133,093
0
0
null
null
null
null
UTF-8
Python
false
false
23
py
from .main import UHQL
[ "cadu.coelho@gmail.com" ]
cadu.coelho@gmail.com
bcae55b9da79fb75de68d0bdce8f367853beb588
5439206885b4161a50491affa08b1983e5adb7ed
/scope_test.py
473c94095fe00ce95eabb4fbf38b135bc9bd9f89
[]
no_license
adamwatts112358/horn_fieldmap
50ec364c99e7f2eafff69ca4f6ca34df00a59209
e33cc001535966014a2000b189aee4d04c04d4f7
refs/heads/master
2022-12-16T09:03:31.966938
2020-08-25T23:52:31
2020-08-25T23:52:31
259,395,331
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
from scope_communication import * import numpy as np from os import system import Adafruit_BBIO.GPIO as GPIO # Define and setup the horn trigger pin trigger = 'P8_7' GPIO.setup(trigger, GPIO.IN) stripline_scope_IP = '192.168.1.2' stripline_scope_type = 'Agilent' # Setup BBB ethernet connection print 'Setting up Beag...
[ "39932368+adamwatts112358@users.noreply.github.com" ]
39932368+adamwatts112358@users.noreply.github.com
d7d0149d97c5d90e7a108933c72213f71f493c05
3e84ee44588ee906cf782a1719b96355987e2f45
/IMBD/Actors.py
f519b15a03d404ba842f447d147f40cf126aacfc
[ "MIT" ]
permissive
himansh-nagar/web_scraping
b66e1854d4c3d0046fb9c759cb56e1d8f6d3d33b
f63b7c879c70b88429d33b949784e1dcb2908f5b
refs/heads/master
2022-09-03T00:03:33.219753
2020-05-29T10:44:59
2020-05-29T10:44:59
255,666,008
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
import json,pprint file=open('all_movie_cast.json','r') File=json.load(file) file.close() all_movie_cast=[] all_movie_cast2=[] for dic_list in File: one_cast_list=[] for dic in dic_list: cast_list=dic_list[dic] for j in range(2): one_cast_list.append(cast_list[j]) all_movie_cast.append(one_cast_list) for dic...
[ "noreply@github.com" ]
noreply@github.com
4762de0549dd0e5a2c55d037f49bed37dd3c8877
5e2fd1d42423cb1de218ce2b07696c98c14adb09
/extest/migrations/0002_auto_20200711_2145.py
89a65cda1206afbf0a35558e54fd058cfa3b9bae
[]
no_license
Yaanibaano/Todo-Web-App
ea72ac08703d9ce227e1c1de73a704ddbda48bcf
5fe929f9b3bcf57140bf8d5514f4525870d40a0d
refs/heads/master
2022-12-22T09:28:37.120036
2020-09-23T09:48:04
2020-09-23T09:48:04
297,924,635
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
# Generated by Django 3.0 on 2020-07-11 16:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('extest', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Element', new_name='Task', ), ]
[ "chandru.vijayan101999@gmail.com" ]
chandru.vijayan101999@gmail.com
5c45e9998b505e3bdd5403e41fd8ec79d4127387
f43418339d85ab07ec369fd8f14df6f0b1d4bcd8
/ch3/barrier/python/barrier.py
86ed375668e3f0bb72ae10219c42461b09699ee9
[]
no_license
frankieliu/little-book-semaphores
732fbb1787d826666e750c4e8c8897877631921c
9017ddceeab30090af983100729649f0f29c7c99
refs/heads/master
2021-07-14T03:40:05.503689
2020-08-15T13:55:19
2020-08-15T13:55:19
195,286,896
1
4
null
null
null
null
UTF-8
Python
false
false
967
py
from threading import Thread, Semaphore import time from random import randint class Person(Thread): def __init__(self,i,m,s,count,numthreads): self.s = s self.m = m self.count = count self.count.i = 0 self.numthreads = numthreads super().__init__(name=i) def ru...
[ "frankie.y.liu@gmail.com" ]
frankie.y.liu@gmail.com
a9874ad67c55edcf3fa4110df2021f892397f8be
cc1118a5033fb13b68473fb6e7dc1fcbcbd955e1
/models/encoder.py
1ec642809f0b3d87deab3dbdeed022f0bbca7caf
[]
no_license
Tony-Xiang-Cao/3D-Reconstruction-Pix2Vox-LSTM
d961729510ea554a5e9b67343ea0c935144c268b
05cf1a76224217cb5b2a5a1b2c9b776aa143360a
refs/heads/main
2023-04-01T16:15:07.396181
2021-04-18T04:02:58
2021-04-18T04:02:58
358,793,458
1
0
null
null
null
null
UTF-8
Python
false
false
2,348
py
# -*- coding: utf-8 -*- # # # References: # - https://github.com/shawnxu1318/MVCNN-Multi-View-Convolutional-Neural-Networks/blob/master/mvcnn.py import torch import torchvision.models class Encoder(torch.nn.Module): def __init__(self, cfg): super(Encoder, self).__init__() self.cfg ...
[ "noreply@github.com" ]
noreply@github.com
532c1fbc727c31ff6486882eee4a7280a77783c2
bb0efa84c5e3fdbb406a5cbbdcacabcdaf041a68
/venv/bin/easy_install-2.7
f6822712f8fb3243675c82786863af5ac8515e4d
[]
no_license
luzhaohong/Pyramide_myproject
ce85a22ec4c5fea34f6a5c8360f3e29a10ba0b3f
30b51981dfdeb9c3c53734579bf2274a4b010c18
refs/heads/master
2020-04-01T00:34:32.515469
2018-10-12T06:42:09
2018-10-12T06:42:09
152,702,914
0
0
null
null
null
null
UTF-8
Python
false
false
279
7
#!/home/luzhaohong/PycharmProjects/myproject/venv/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "luzhaohong@yeah.net" ]
luzhaohong@yeah.net
30e2605d76c1c5ced65e21beb0f039317794a686
15fbe75198cc2646f843de9a795c1b3cb1b9bf21
/tools/optimization/candidate.py
e5b0c706f8353a729b047536ad353fa83b10c319
[ "BSD-3-Clause" ]
permissive
jlcox119/HOPP
8750b4a82bf97e8fc1d1794418f7c40650b22baf
e8faa5012cab8335c75f8d1e84270e3127ff64bb
refs/heads/master
2023-06-18T15:09:55.119235
2021-05-17T17:06:37
2021-05-17T17:06:37
368,262,087
0
0
BSD-3-Clause
2021-07-19T16:16:41
2021-05-17T17:03:13
PowerBuilder
UTF-8
Python
false
false
470
py
import pprint class Candidate: """ Simulation inputs to be optimized """ def __init__( self ) -> None: pass def __repr__(self) -> str: return pprint.pformat(vars(self)) def __str__(self) -> str: return self.__repr__() def ...
[ "noreply@github.com" ]
noreply@github.com
79b42026725b7e117b7171373a8e3a7e7a7b72d5
227f6d603ed405ec6f82928102de3d00cd24837c
/python/start_algs.py
26d46349ec3a437fcaf9c827977e36e2a0109f01
[]
no_license
Egorich42/algs
946022389e13384a796918272fe088cb01e80862
65b02b7d818fc53ca3f90406e7a13ea444ad4b59
refs/heads/master
2020-07-30T02:14:02.106929
2019-09-21T20:53:23
2019-09-21T20:53:23
210,051,982
0
0
null
null
null
null
UTF-8
Python
false
false
4,161
py
#!/usr/bin/python # -*- coding: utf-8 -*- #бинарная #быстрая #Сортировка вставками / Insertion sort #Сортировка выбором / Selection sort #Сортировка слиянием / Merge sort test_arr = [8,0, 16, -3, 889, 19, 19, 0, 11, 6,4,56] def bubble_sort(arr): for i in range(len(arr)-1): # идет простая проходка по циклу. for x ...
[ "e.g.hutter@gmail.com" ]
e.g.hutter@gmail.com
74a36c63655f9b9bee75b5c2fbfe2b5322ae3db4
9b1e600c3e1c521a82a782be6b26ec3634168843
/CLRS/1 排序/堆排序.py
25fcf4e01ca2821158a4b7cf9d3f99a7ecb4e52b
[]
no_license
lijingwei1995/Algorithm
b782732c4364c4eaa256ebec827b4241cb39ad45
5d8a228d75369e4d72e3d76608584e43e329d531
refs/heads/master
2021-01-03T18:47:42.165193
2020-02-28T09:57:16
2020-02-28T09:57:16
240,197,233
0
0
null
null
null
null
UTF-8
Python
false
false
1,326
py
# 最大堆的heapify # 这是一个递归函数,他可以调整 任意左右子树以满足性质,但父节点未知的树 def MAX_HEAPIFY(A, heap_size, i): # 下标i如果是父节点 left = 2 * i + 1 right = 2 * i + 2 # 找到最大节点 max = i if left < heap_size and A[left] > A[i] : max = left # 将数字比较写在左边可以避免超限问题 if right < heap_size and A[right] > A[max]: max = right # 如果最...
[ "lijingwei@outlook.com" ]
lijingwei@outlook.com
13564f1fa07291d92bd2edd1ade46fb1f410c888
e84020108a7037d8d4867d95fada1b72cbcbcd25
/django/nrega.libtech.info/src/nrega/migrations/0118_auto_20170621_1328.py
219d29cf057534d7b88f61db611446f66075c53b
[]
no_license
rajesh241/libtech
8384316051a2e8c2d4a925cd43216b855b82e4d9
0105e717357a3626106028adae9bf162a7f93fbf
refs/heads/master
2022-12-10T03:09:00.048841
2020-06-14T09:39:04
2020-06-14T09:39:04
24,629,538
1
1
null
2022-12-08T02:26:11
2014-09-30T07:57:45
Python
UTF-8
Python
false
false
3,064
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-06-21 07:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('nrega', '0117_auto_20170621_1123'), ] operations = [...
[ "togoli@gmail.com" ]
togoli@gmail.com
75498a2f5f3b001a45ca4069131312af6328a494
7ad19e854135977ee5b789d7c9bdd39d67ec9ea4
/members/amit/f0_experiments/model.py
05a5e529b028aa62ab646eb7176aec7490be90a4
[ "MIT" ]
permissive
Leofltt/rg_sound_generation
1b4d522507bf06247247f3ef929c8d0b93015e61
8e79b4d9dce028def43284f80521a2ec61d0066c
refs/heads/main
2023-05-02T19:53:23.645982
2021-05-22T16:09:54
2021-05-22T16:09:54
369,842,561
0
0
MIT
2021-05-22T15:27:28
2021-05-22T15:27:27
null
UTF-8
Python
false
false
1,197
py
import tensorflow as tf from tensorflow.keras.layers import Input, concatenate, RepeatVector from tensorflow.keras.layers import Dense, GRU, Dropout def create_model(): _velocity = Input(shape=(5,), name='velocity') _instrument_source = Input(shape=(3,), name='instrument_source') _qualities = Input(shape...
[ "amit.yadav.iitr@gmail.com" ]
amit.yadav.iitr@gmail.com
d88f28ea450ca654dba6310cde31716208642a8a
e5c04d26f143fff684684139c59e4f5f9519cc1a
/simple_python_game.py
a6aa8e200f749cc8d2d98ea6669bfe97ac98432a
[]
no_license
nabilnegm/simple-python-game
c243c5724572293479ca4227c2b789bba5c9c076
03f02c0344a5b99dbb9b1bbb2c4b8638c467b886
refs/heads/master
2020-09-29T01:09:29.079760
2019-12-09T16:01:57
2019-12-09T16:01:57
149,772,056
0
0
null
null
null
null
UTF-8
Python
false
false
1,150
py
import random random_number = [] for x in range(3) : random_number.append(random.randint(0,10)) if x > 0 : for y in range(x) : if random_number[x] == random_number[y] : random_number[x] = random.randint(0,10) y=0 while 1 : input_from_user = [] for ...
[ "n.negm321@gmail.com" ]
n.negm321@gmail.com
72f3f148ec829bafe29c6dfa81210b74988a3f3d
fd291e4d0291a96d1854f9b05e5b3628f953cfdc
/source/main/encryptor.py
659595a42945106f6f826adea93f1ad1efcf2402
[]
no_license
joegumke/csgy-6903_proj1
a7ec7aaf510865aa3633325f938cbf4a7e1296f3
de0a2f3c4ba9c093009b33dce004cd05266f62a9
refs/heads/main
2023-04-02T07:28:00.418883
2021-04-08T21:39:13
2021-04-08T21:39:13
356,054,027
0
0
null
null
null
null
UTF-8
Python
false
false
15,861
py
#! /usr/bin/python # NYU Cryptography Project 1 from random import * import decryptor as decryptor import time, os alphaLower = "abcdefghijklmnopqrstuvwxyz" fileToWriteTo = "../test.resources/testDecryptorResult.txt" selectedPlainTextFile = "../main.resources/selectedPlainText.txt" plaintextDict1File = "../ma...
[ "noreply@github.com" ]
noreply@github.com
e4d4fea068c46ee67164d1c119beff0d536a0ce2
b02234111d79ea1fe352e57884cbaef7822c92b6
/day6/Hurdle 3_3.py
be5ec4b303a9686852f4d5432d3963c476cd52d1
[]
no_license
medbasso/python_bootcamp_solution
1567d257d6cf4c339195f59f341fdf289790d09c
07e234d4199cfdaa87e0f4e3b039bfaa0ac522be
refs/heads/main
2023-02-05T00:47:29.722318
2020-12-24T20:03:23
2020-12-24T20:03:23
322,890,807
1
0
null
null
null
null
UTF-8
Python
false
false
538
py
def right(): turn_left() turn_left() turn_left() def jump(): turn_left() move() right() move() right() move() turn_left() while at_goal() !=True: if wall_in_front() != True: move() else: jump() ...
[ "tounsi1295@gmail.com" ]
tounsi1295@gmail.com
42caf49b668d0512a63087fa1f772a41f02fcc14
f811ff7901a565842b71ceb347ff613c07036ffb
/python/1-6-2.py
33d9c37acd775d62b517bbd642bf54a1021a6b67
[]
no_license
anfernee84/Learning
600f8006f1c0033245b9e1bf7e4191540d7bd04f
6fd9e24e6ca51155b313957c77119bab816c0a07
refs/heads/master
2021-08-03T15:47:53.226387
2021-07-25T12:00:26
2021-07-25T12:00:26
234,156,414
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
def total_salary(path): fh = open(path, 'r') sums = 0 while True: line = fh.readline() if not line: break l = line l = l.rstrip("\n") l = l.split(",") sums += float(l[1]) fh.close() return (sums) print(total_...
[ "noreply@github.com" ]
noreply@github.com
93e57d2c77d07d9aed1f2c455f9e6ead7e2746ae
621070139978d383f95203aaf994ba8ee8814fcc
/brewwolf/rate_beer/migrations/0003_auto_20191225_1931.py
67436c421a8f252f6975620f23a93ab626a29d48
[]
no_license
AMPER54ND/tin-django
2c0022653d8c7a455ce2bd9a5425f14a45990393
90aa56abbf412f809d978cff8d1bb121744a4379
refs/heads/master
2020-11-29T15:56:20.785884
2020-01-07T15:18:52
2020-01-07T15:18:52
230,158,346
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
# Generated by Django 3.0 on 2019-12-25 19:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('rate_beer', '0002_auto_20191212_0116'), ] operations = [ migrations.RenameField( model_name='beer', old_name='creator', ...
[ "btmacd@gmail.com" ]
btmacd@gmail.com
e0b5ca9db7e40e9b5e0260f2d584aa234eb16f94
cb2a40b70bc21d0057c96ddb2c86edceffe19707
/payments/migrations/0011_auto_20180104_1301.py
259d5612830139f25d17956bd53eef9cb226afa7
[]
no_license
rebkwok/pipsevents
ceed9f420b08cd1a3fa418800c0870f5a95a4067
c997349a1b4f3995ca4bb3a897be6a73001c9810
refs/heads/main
2023-08-09T14:11:52.227086
2023-07-27T20:21:01
2023-07-27T20:21:01
29,796,344
1
1
null
2023-09-13T14:32:16
2015-01-24T23:53:34
Python
UTF-8
Python
false
false
697
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-01-04 13:01 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('payments', '0010_auto_20180102_1130'), ] operations = [ migrations.AlterFie...
[ "rebkwok@gmail.com" ]
rebkwok@gmail.com
ea3767f48063c198e4644402f4f8bd10e8f8c404
5683e0be45bbd4c0eff0bc143e1fabb39e3dd2d1
/data_bootstrap/management/commands/bootstrap.py
63aa966cbb00559c06f1852f44fddc334c1e4161
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
permissive
SteveWaweru/mfl_api
be1e6b24a039553447dc6fdc23b588c4a6756a8f
695001fb48cb1b15661cd480831ae33fe6374532
refs/heads/master
2023-05-29T04:27:35.421574
2021-10-27T06:07:10
2021-10-27T06:07:10
205,343,934
0
5
MIT
2023-05-15T00:38:30
2019-08-30T08:54:14
Python
UTF-8
Python
false
false
734
py
import os import glob from django.core.management import BaseCommand from ...bootstrap import process_json_file class Command(BaseCommand): def add_arguments(self, parser): # Positional arguments parser.add_argument('data_file', nargs='+', type=str) def handle(self, *args, **options): ...
[ "marika@savannahinformatics.com" ]
marika@savannahinformatics.com
41719d1f84a14e2c8c31ca71d64fb6fe025054a3
40c6fa589a0dfe88e82f8bd969cd5ef0ed04f303
/SWEA/D2/1954.py
6f69fcd9fca262d0e6c5087f16a45514a8d6b3b2
[]
no_license
EHwooKim/Algorithms
7d8653e55a491f3bca77a197965f15792f7ebe47
5db0a22b9dc0ba9a30bb9812c54d2d5ecec1676b
refs/heads/master
2021-08-20T04:05:09.967910
2021-06-15T07:54:17
2021-06-15T07:54:17
197,136,680
0
2
null
2021-01-08T05:51:37
2019-07-16T06:46:57
Python
UTF-8
Python
false
false
751
py
T = int(input()) for t in range(1, T + 1): print(f'#{t}') N = int(input()) i = j = 0 min_num = 0 max_num = N - 1 count = 1 result = [[0]*N for i in range(N)] while count <= N**2 - 1: while j < max_num: result[i][j] = count j += 1 count += 1 ...
[ "ehwoo0707@naver.com" ]
ehwoo0707@naver.com
a2efb56dab315b04b0175314bda7483e3137b35a
b08f5367ffd3bdd1463de2ddc05d34cbfba6796e
/search/search_missing_among_billions.py
89e090a9dfd46719bbba7f53ba780a4de22f17eb
[]
no_license
uohzxela/fundamentals
cb611fa6c820dc8643a43fd045efe96bc43ba4ed
6bbbd489c3854fa4bf2fe73e1a2dfb2efe4aeb94
refs/heads/master
2020-04-04T03:56:44.145222
2018-04-05T01:08:14
2018-04-05T01:08:14
54,199,110
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
''' create an array of 2^16 32-bit integers for every integer in the file, take its 16 most significant bits to index into this array and increment count since the file contains less than 2^32 numbers, there must be one entry in the array that is less than 2^16 this tells us that there is at least one integer which has...
[ "uohzxela@gmail.com" ]
uohzxela@gmail.com
e8da1751379981edada6b01f73513a0670fac6bd
f15620243d86981982ac3f79839fc5224a5a2adf
/__main__.py
a14001cb1571124598d6c1a7f8ae6aab9654a3b0
[ "Unlicense" ]
permissive
w73pa/kivy-calc
6f47866993e78101fad56fd230567728a2f493f7
1284d5e6ecca7a537c2b5391da43596c7bf2ffce
refs/heads/master
2016-09-06T07:57:52.182411
2013-11-05T19:53:46
2013-11-05T19:53:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,100
py
from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import * class Calculator(BoxLayout): wip = BooleanProperty(False) display = ObjectProperty(None) info = ObjectProperty(None) def append(self, c): if self.wip: self.display.text += c els...
[ "bernd@gauweiler.net" ]
bernd@gauweiler.net
be823ef9a397bb6adc46c4212db7e1c05d19effa
afe50e43fcdcda9bc8ab3d48d8e46dfd8e3b40a8
/django_env/bin/pip
f7fda958f777a5249a24a98774f9b5e6e659f79c
[]
no_license
astazja/Opti
79ef7cc9f89191a2b1b079765c62c3744827d163
c4792dc5e9b9da4fa86e9396d05e5222cdd134e4
refs/heads/master
2022-12-10T10:36:30.629227
2020-09-07T07:52:46
2020-09-07T07:52:46
293,458,585
0
0
null
null
null
null
UTF-8
Python
false
false
403
#!/home/kasia/coderslab/OptiKurier/django_env/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip' __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]) s...
[ "katarzyna@pacewi.cz" ]
katarzyna@pacewi.cz
9124041deaeabe8651514004072aaac126543069
a36f2bea040d5b2da1da3af6162008cdb0b9dcea
/ADXL345.py
0fd034e277a4a36fd67735a6ee245bb439accd33
[]
no_license
omar-abdelwahab2/cpsc359-4
5ef11823d910d638269441c25e58a900795b1ae9
cec4643cf8dee755a3799c0714edf7e742744c9d
refs/heads/master
2021-08-23T17:50:34.354969
2017-12-05T23:59:22
2017-12-05T23:59:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,254
py
''' class: ADXL345 Purpose: This class is used to communicate through the SMbus and collect information from the accelerometer. Methods: Constants: These constants are used throughout the code of the ADXL345 class and have been provided by the manufacturer. __init__: constr...
[ "baraka.am@gmail.com" ]
baraka.am@gmail.com
fdb02bf66446c83561f10691d239c3aad88bb1b7
09efdf48ca3444c4020dfac88000e4cf182db2e7
/Basic Programs/menu.py
2033960b26c6d31422418cbdc8eee029268c8ea3
[]
no_license
himanij11/Python---Basic-Programs
1aac3a1d0caccd2bde0d6cf067a70fb9427476e6
2f9a92bbd1fe1530f26027d24685bc927109b14e
refs/heads/master
2020-11-24T15:04:37.270439
2019-12-15T15:28:40
2019-12-15T15:28:40
228,207,045
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
#menu driven for even,palindrome,armstrong def even(n): if(n%2==0): print("{} is an even number.".format(n)) else: print("{} is not an even no.".format(n)) def palindrome(n): temp=n rev=0 while n!=0: a=n%10 rev=rev*10+a n=int(n/10) if tem...
[ "himanij2451@gmail.com" ]
himanij2451@gmail.com
4c17a2fd6c5aae776b17d9474dacb25c0396c160
738aedb8035e49951f83ce3f4291eee149cad5fb
/OB Damage - Li-Hopfield Model/All the code/Damage Trials/MC-1col_20_2D.py
83d3c9d36ca88bf3d357b7ab8bca600c998a336b
[]
no_license
jkberry07/OB_PD_Model
fb453303bfa64c1a3a43c7d81d2b5373950e1f4d
1ce30205354dc30cab4673e406988bfa76390238
refs/heads/master
2022-11-21T09:39:09.692654
2020-07-25T23:25:11
2020-07-25T23:25:11
282,358,721
0
0
null
null
null
null
UTF-8
Python
false
false
24,848
py
# -*- coding: utf-8 -*- """ Created on Tue Dec 18 13:38:32 2018 @author: wmmjk """ #This one does the damage to each of the granule cells (columns of H0) #Olfactory Bulb Model a la Li/Hopfield and Li/Hertz #Translated from Avinash's Matlab code #This one I have the initial condition in odeint as the...
[ "noreply@github.com" ]
noreply@github.com
3545e70ca1d77d61f305eff8dd5a893eeea97f75
d2eb6c904536abf3c66ecd3a67d160285ea32bc4
/process_image.py
b2439d8bb9ed8695f23a5906c3e53e4671c56fe5
[]
no_license
peiciwu/CarND-Advanced-Lane-Lines
7f9fe92c13bbec26b6c1bfc2b6bd933f59d99f06
7b2c6933dad2ab19e61cbded0b0e9391c65e45b7
refs/heads/master
2021-01-05T08:58:55.470407
2017-08-23T07:09:36
2017-08-23T07:09:36
99,514,760
0
0
null
null
null
null
UTF-8
Python
false
false
16,740
py
import numpy as np import cv2 import matplotlib.pyplot as plt import matplotlib.image as mpimg import glob import os import collections from image_processor import ImageProcessor, plotTwo # Global parameters ym_per_pixel = 30/720 # meters per pixel in y dimension xm_per_pixel = 3.7/700 # meters per pixel in x dimensio...
[ "peiciwu@gmail.com" ]
peiciwu@gmail.com
d509eed695ce2b3e20d2b819a42172b2c95fccab
4e04db11d891f869a51adf0e0895999d425f29f6
/portalbackend/lendapi/v1/accounts/permissions.py
d03cc4c6a2749a8264b3b36768a2678d71de1192
[]
no_license
mthangaraj/ix-ec-backend
21e2d4b642c1174b53a86cd1a15564f99985d23f
11b80dbd665e3592ed862403dd8c8d65b6791b30
refs/heads/master
2022-12-12T12:21:29.237675
2018-06-20T13:10:21
2018-06-20T13:10:21
138,033,811
0
0
null
2022-06-27T16:54:14
2018-06-20T13:04:22
JavaScript
UTF-8
Python
false
false
4,807
py
import json import re from rest_framework import permissions, status from rest_framework.exceptions import APIException from portalbackend.validator.errormapping import ErrorMessage from portalbackend.validator.errorcodemapping import ErrorCode from django.utils.deprecation import MiddlewareMixin from datetime import ...
[ "thangaraj.matheson@ionixxtech.com" ]
thangaraj.matheson@ionixxtech.com
76d246ae50464e8ce26b99f4892ebf619b0fd6bd
0d98a09a81bdcead13e6020877380a4e7e6b5d74
/fizyka/pyfiz.py
2bdca7ea555847122d2cad6111eb675dc7d39be6
[]
no_license
pawelsag/Studies
e7f56b823fdf5d7aa438c6dfb41f0d617718576e
34c2e8a786df59ce18c8dbf9f4476d891a456fe1
refs/heads/master
2020-04-04T14:29:38.184527
2020-01-11T08:16:45
2020-01-11T08:16:45
156,000,522
0
1
null
null
null
null
UTF-8
Python
false
false
710
py
import math # data amount n = 12 tau = 0.0 fiY = 0.0 delA =0.0 delB =0.0 with open("fiz.txt", "r") as f: # get A, B coefficients A,B = f.readline().split(',') A = float(A) B = float(B) # get measured values x,y data = [] for line in f: x,y = line.split(' ') data.append( ( float(x),float(y) ) ) # ca...
[ "sagan.pawel1000@gmail.com" ]
sagan.pawel1000@gmail.com
c2e0941d1ce77fcbec7429f96196816cf290fd15
99d8cdf79898b5dabd2b80340d9b90e78831a3b7
/handlers/helper.py
dcec79c00fe8067c52bf0d4dd66f856d3e0767c5
[]
no_license
crazcarl/gridironguessinggame
99fa021f1ce8e946d68e8524317b5e969510a7e7
517596dbec03c6f2126fbbbe08e4ce9d0ea90467
refs/heads/master
2021-01-01T17:16:05.986335
2015-10-20T01:29:47
2015-10-20T01:29:47
16,240,124
0
0
null
2014-01-29T04:19:25
2014-01-25T21:16:50
Python
UTF-8
Python
false
false
2,547
py
def teamToLong(input): if input=="NYG": return "NY Giants" if input=="WAS": return "Washington" if input=="BAL": return "Baltimore" if input=="CAR": return "Carolina" if input=="CHI": return "Chicago" if input=="GB": return "Green Bay" if input=="HOU": return "Houston" if input=="BUF": return "B...
[ "crazcarl@gmail.com" ]
crazcarl@gmail.com
4e0e5d6bdbe92c957594f844fe1240c99f90303c
25cb3605e3239f41ca73e860c65fddf63c887924
/src/Calculator.py
7e16169da3ceeeb37f5174a0e53d7dd28ecf1c4c
[ "MIT" ]
permissive
Ayush6459/Simple_Calculator_package
8dacc5ee345e8efcd01456288f77c3adb1ac95ea
8c7260ed8e91def3bf0964798b716e1305433872
refs/heads/master
2023-04-25T10:56:36.308773
2021-05-14T10:41:35
2021-05-14T10:41:35
367,270,133
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
def add_num(num1, num2): return num1+num2 def sub_num(num1,num2): return num1-num2 def multi_num(num1, num2): return num1*num2 def div_num(num1,num2): return num1/num2
[ "ayushranjan6459@gmail.com" ]
ayushranjan6459@gmail.com
702dc360e83014136e7a9d53ebe06f992815b006
ebf6463d4e520429a24d1fd34375d3302b245346
/net/modifire/PStats.py
3ca2c2ffd73208b91bc45b11b48128de21450347
[]
no_license
czorn/Modifire
6f8c8f2d679c7be7618607e1b46a3a019f09b918
77f2cdff0214468482a98ca92c7a2d548d77f3d9
refs/heads/master
2020-12-24T14:26:53.286484
2013-10-22T18:54:26
2013-10-22T18:54:26
3,159,644
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
#import direct.directbase.DirectStart def pstat(func): from pandac.PandaModules import PStatCollector collectorName = "Debug:%s" % func.__name__ if hasattr(base, 'custom_collectors'): if collectorName in base.custom_collectors.keys(): pstat = base.custom_collectors[collectorName] ...
[ "chrismzorn@gmail.com" ]
chrismzorn@gmail.com
3452b41fdad457f398c9c0dc90e7f1a6f36d42ff
8fbafbd67689c487615ed4b08db835457b67ea52
/demo_python_backend_files/sparse_feature_selection_methods.py
061fa59e3d9473a7298ccecc67f959cd9834112a
[]
no_license
RezaBorhani/RezaBorhani.github.io
c8939e2f3484a7e5f3f0b4b9199c9d90ca51bf78
ca23e5288f7ac8aab80559192fbf4fa6f3aeb20f
refs/heads/master
2021-01-21T06:39:02.122817
2017-07-21T01:31:43
2017-07-21T01:31:43
82,868,389
1
0
null
null
null
null
UTF-8
Python
false
false
2,878
py
import numpy as np import matplotlib.pyplot as plt plt.style.use('ggplot') import matplotlib.patches as mpatches def plot_genes(X, gene_id_1, gene_id_2): N = X.shape[1]/2 plt.xlabel('gene #'+str(gene_id_1)) plt.ylabel('gene #'+str(gene_id_2)) red_patch = mpatches.Patch(color='red', label='healthy') ...
[ "rezaborhani@Rezas-MacBook-Pro.local" ]
rezaborhani@Rezas-MacBook-Pro.local
29c4cee2c425d08ec436f41058b807836271e49a
89e53cff0ab14d22511157e1b6ed877790a862e1
/posegan/code/param.py
d0417371a71487157f112356d4d9cf1aff3feb44
[]
no_license
dahburj/deepcoaching
96d6cabe120043f4ebf6bfb0e425b38d94213b54
535e0a374666f7815f6cf5c20eb05f455871ff38
refs/heads/master
2020-06-13T23:59:01.781604
2019-06-11T00:51:58
2019-06-11T00:51:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
""" Various important parameters of our model and training procedure. """ def get_general_params(): param = {} dn = 1 param['IMG_HEIGHT'] = int(256/dn) param['IMG_WIDTH'] = int(256/dn) param['obj_scale_factor'] = 1.14/dn param['scale_max'] = 1.05 # Augmentation scaling param['scale_min'] ...
[ "chuanqi.chen@gmail.com" ]
chuanqi.chen@gmail.com
65c21d782d2fdb0fa84bfc14127e2a04d4bf7534
0a66dcbf1f96676ccca588191f940c798d15eebb
/DRL_data/data_labeling.py
8c24d935ce6b438655dfe8441f251cae7f85c637
[]
no_license
Fence/Documents
5e498203f2b2363b98441ecba0e2eadc74aaec4d
d5874fae9cb6618d275fcc9ea303a2c68e331f52
refs/heads/master
2020-03-11T07:02:33.351230
2018-05-14T14:55:40
2018-05-14T14:55:40
129,847,147
0
0
null
null
null
null
UTF-8
Python
false
false
49,850
py
import re import os import sys import ipdb import time import json import pickle from tqdm import tqdm class QuitProgram(Exception): def __init__(self, message='Quit the program.\n'): Exception.__init__(self) self.message = message class TextParsing(object): """docstring for TextParsing""" ...
[ "787499313@qq.com" ]
787499313@qq.com
a3858baa61f208bad13adece86e95fda7e011367
d8f858b496a7133868d0e89cc8f4aad8f3001dff
/pytex.py
d5a8f7d16131824c54853c3167b2274141118044
[]
no_license
shawsa/m565
812b451acfb7239486a3fe689cafed0a174edaf0
47511eef4a921a1f02b5ed7311fac6067825f350
refs/heads/master
2021-01-20T08:38:17.971734
2017-12-08T05:10:09
2017-12-08T05:10:09
101,568,001
1
0
null
null
null
null
UTF-8
Python
false
false
708
py
def latex_table(t, headers=None): cols = len(t) rows = len(t[0]) print('\t\\begin{center}') print('\t\t\\begin{tabular}{' + '|c'*cols + '|}') print('\t\t\t\\hline') if headers != None: assert len(headers) == cols header_str = '' for h in headers: header_str...
[ "sage.b.shaw@gmail.com" ]
sage.b.shaw@gmail.com
ce1cd13eb01ac664a6e72d6cac7965fbd900cff5
fcae2c35e3430702b643b8d914992c1d044f785d
/test_gp3.py
28a822b2c3fa4546c449b674823580521761759a
[]
no_license
016mm/gpTest
1754faf4c66c3735d5d39e0294374139917af201
5a83f51cd738bbfd5ea5ba0604487a567a694118
refs/heads/master
2023-03-06T18:13:36.785870
2021-02-23T03:33:33
2021-02-23T03:33:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,356
py
import urllib3 import requests import json from bs4 import BeautifulSoup def get_html(stock): headers = {"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"} url = "https://xuangubao.cn/stock/" reponse=requests.get(url+s...
[ "menghongtao@sinotrans.com" ]
menghongtao@sinotrans.com
251796be631c7ff6cc48f6a893e651c17c6cd7a2
e2b7ba8a2df5089f0af1c52cd5ef33efbb389f4c
/tests/test_extension.py
77bf946e745db38ab065a80f7525d14a65dacd91
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
Neki/datadog-lambda-python
22406422a8984e4c4e9d348c0ea6e6f8da611c60
57cc2404b7d2d8ee5ff7791f41f0036aabd13d0c
refs/heads/main
2023-07-14T06:08:39.913580
2021-09-08T07:38:55
2021-09-08T07:38:55
384,703,202
0
0
NOASSERTION
2021-07-10T13:22:32
2021-07-10T13:22:31
null
UTF-8
Python
false
false
2,646
py
import os import sys import unittest import httpretty try: from unittest.mock import patch except ImportError: from mock import patch from datadog_lambda.extension import ( is_extension_running, flush_extension, should_use_extension, ) def exceptionCallback(request, uri, headers): raise Exce...
[ "noreply@github.com" ]
noreply@github.com
6fda0d0407e79c6d9a3df29ca3f097cbd2dcf0f5
b5cec2e9527e130d652ba87bcee9648c29a05e84
/src/zojax/cms/generations/__init__.py
641f878dc1da3c0ecf8825234b5d5b1b71677adf
[]
no_license
suvanna/zojax.cms
162766ccfb6df74421f8653fa1d3eb1a94447536
f5d88f6a2769e81369c3bdd302aefcee94d8cf28
refs/heads/master
2021-01-18T01:11:17.313119
2014-02-12T22:06:37
2014-02-12T22:06:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "suvdim@gmail.com" ]
suvdim@gmail.com
7f0af037e66773cb760072ebad5fd4da7c335db8
9748610adb3d3ffcb3efd2d2661b691c2afbd2d4
/MERCURY2/m6_input.py
9fa18d19e363b09f203c128fb4d62bbb9e820f73
[]
no_license
Jooehn/Stars-Eating-Planets
bb421a9b283fe414e863b94b4a8a2760fff9bff7
5f66c23c82d79c89fbaa88c98ef8654ead68343e
refs/heads/master
2021-06-07T21:31:33.956125
2021-05-19T09:13:18
2021-05-19T09:13:18
172,890,639
0
0
null
null
null
null
UTF-8
Python
false
false
14,609
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jan 30 13:51:34 2019 @author: John Wimarsson """ import numpy as np from tempfile import mkstemp from shutil import move from os import fdopen, remove ##### Format of input ##### # Bigdata must be an array with Nx10 elements containing for each big bod...
[ "jooehn@gmail.com" ]
jooehn@gmail.com
dd503f30535313cc118f2aff0289365f7759c68e
db3a0578ef5d79cee7f9e96fa3fd291bbaaf9eb4
/Web/flask/morse/morseclient.py
51987ad7f8af39d04cbbd30327428eafbe498b75
[ "MIT" ]
permissive
otisgbangba/python-lessons
0477a766cda6bc0e2671e4cce2f95bc62c8d3c43
a29f5383b56b21e6b0bc21aa9acaec40ed4df3cc
refs/heads/master
2022-11-03T22:10:52.845204
2020-06-13T15:42:40
2020-06-13T15:42:40
261,255,751
1
0
MIT
2020-05-04T17:48:12
2020-05-04T17:48:11
null
UTF-8
Python
false
false
626
py
import requests from time import sleep from codes import PASSWORD, morse_codes, words_by_symbol URL_BASE = 'http://localhost:5000' INTER_LETTER_DELAY = 0.2 def request_secret(): response = requests.get(URL_BASE + '/secret') print(response.text) def send_unlock_request(message): for letter in message: ...
[ "daveb@davebsoft.com" ]
daveb@davebsoft.com
863a9e7fabd741444ae2d183a4dac774c8e404b4
204d62b325fe5dff332a517a6bea9a3cad76371d
/django/first_project/first_project/settings.py
770e2788b153469112fe4d647d2f72998cd71d5f
[]
no_license
tedyeung/Python-
ca5b87b66df95cf3e2d68e516becc04a890bb361
f379aa48d1e2118729c422e6d48a067b70639c5f
refs/heads/master
2021-09-21T11:52:20.389770
2018-08-25T14:47:46
2018-08-25T14:47:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,274
py
""" Django settings for first_project project. Generated by 'django-admin startproject' using Django 1.11.8. 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/ """ imp...
[ "slavo@mimicom24.com" ]
slavo@mimicom24.com
3dca66b0b5cacb2e54ac3f447510aa0439007103
03fee24072271df3afde70f7c6abaa6bceaf4d18
/utils/image_downloader.py
eccd908636408c09dbd06c33bf313e71abf85b2c
[]
no_license
pottlock1/Automatic-celebrity-face-detection
1939a536c53c5a278d840157ba5e88b695b61c0a
3dff70e2edccfe5ae59d034127b0ba5297690787
refs/heads/main
2023-06-01T20:57:10.322600
2021-06-18T04:45:53
2021-06-18T04:45:53
373,872,966
0
0
null
null
null
null
UTF-8
Python
false
false
2,869
py
import os from selenium import webdriver import requests import time import pickle class CollectCelebImages: def __init__(self, celeb1, no_of_images = 20): self.celebs = [celeb1] self.no_of_images = no_of_images def download(self): for celeb in self.celebs: sel...
[ "noreply@github.com" ]
noreply@github.com
0ab796f72f784b236f26c7a00d313df9f1ed0f6e
7bf5c0107bc2aa5eb2cccacc7096d95d0d54f176
/config/settings.py
e7c097b616f92377165a76b7ed3144228d9e9dd5
[]
no_license
aycaateser/djangoBlog
072704cf12334906953ff9b9f3e753ba290ba510
921f1e48d1efd32b1f9b6b3ad33474f6bf1e5856
refs/heads/master
2023-08-04T04:29:05.918480
2021-09-18T14:53:02
2021-09-18T14:53:02
401,058,729
0
0
null
null
null
null
UTF-8
Python
false
false
3,090
py
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
[ "56490914+aycaateser@users.noreply.github.com" ]
56490914+aycaateser@users.noreply.github.com
58bcee664f37fd7932bda3ef2c04efa273f85d5a
743d58b82ed4aaeb556e703e3f698072087f98da
/user/views.py
fccc2e3d2f6705bd62cb1efde1794831ea2d5616
[]
no_license
johir9185/warrant_management
45397ebab0be8ab2a8b8999718c5f370e734eb8f
061d8b2f6a5e888dcd3b81bd89b3dd8bc2cd032b
refs/heads/main
2023-08-22T11:11:41.537185
2021-10-07T11:20:28
2021-10-07T11:20:28
414,567,032
0
0
null
null
null
null
UTF-8
Python
false
false
1,714
py
from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from user.models import CustomUser from user.forms import UserForm from django.shortcuts import redirect, render from django.views.generic.base import TemplateView # Create your views here. # user views st...
[ "johir9185@gmail.com" ]
johir9185@gmail.com
fbe7dd8af83e6e959b7c891b3883ac4c3029f0e0
0ccd82d94bfa1f6f1c0728dd19d89b7a29389a6f
/DOCODEX3/UmbralesN.py
33595d18746065f6e3bcc37f87dcf975668459c7
[]
no_license
plreyes/Memoria-DOCODEx3
e571bea5fe87ce731da2b4becd29ea1f61bcaf55
f2d4398de13fef7a3832a6c8c066fffa92456ddd
refs/heads/master
2020-12-24T09:22:24.184300
2016-11-22T16:11:26
2016-11-22T16:11:26
73,300,180
0
0
null
null
null
null
UTF-8
Python
false
false
125,904
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt plt.rc('text', usetex=True) plt.rc('font', family='serif') a = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.002, 0.003, 0.003, 0.003...
[ "pablo.reyes@net-works.cl" ]
pablo.reyes@net-works.cl
620acd2432ea3ff3bb15d4301c8bbf72de6e9a3a
cfaa3a0762ca9655845637f4983c381d8d139a84
/examples/summary.py
00ce28e190ef109b1babc1fef25c5b12b3bffcb3
[ "Apache-2.0" ]
permissive
dteach-rv/mrtparse
6d72775060ef826a925f36e72562c2cde12b58c6
3a34fde53b5c2a65c11c0a559e06d18edb21e441
refs/heads/master
2020-07-22T01:02:12.368866
2019-05-02T15:19:29
2019-05-02T15:19:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,088
py
#!/usr/bin/env python ''' summary.py - This script displays summary of MRT format data. Copyright (C) 2019 Tetsumune KISO Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/...
[ "t2mune@gmail.com" ]
t2mune@gmail.com
9e4ee13b50083c91fb8d6304fd6933a06bc69f7b
278b060127761f2300037ed8983db5901e7f5ca5
/17.py
00f6bf7b9cadc6f7d14338e090339acf473e90f2
[]
no_license
AakashJaiswal21998/Basic-Python-Examples
d6de41f19fd4cdf3d395f151c20d0fd7e236680f
9911f6e4faede067363cc18fc224d957c8e9c908
refs/heads/master
2022-12-19T00:56:34.699926
2020-10-01T04:04:01
2020-10-01T04:04:01
300,136,153
1
0
null
null
null
null
UTF-8
Python
false
false
393
py
'''Program to print the sum of 1/1-1/2+1/3+1/4-1/5+1/6-1/7.............1/n Developer:Aakash Date:03.03.2020 --------------------------------''' a=int(input("Enter the number for which you want sum up=")) i=1;j=2 su=0;sm=0; while(i<=a): su=su+(1/i) i=i+2 print("The odd sum is=",su) while(j<=a): sm=sm+(1/j) ...
[ "aakash123564@gmail.com" ]
aakash123564@gmail.com
0ef158ff4223440075caf395937a47ef60ba3264
0d8e03c2d3d506a878730b6bedf3af4b714ad431
/dz5/home/models.py
96a0425bc2cee5f83640da9e90eec77074bfbadf
[]
no_license
RyslanaBinko/Django
7baa0e1352fd3ec75aa1ea8967a541be92155e0f
6df5aff2c1b12202ae75e3827c49cd1a43b6f2b8
refs/heads/main
2023-04-01T09:15:42.910096
2021-03-16T10:49:15
2021-03-16T10:49:15
321,369,492
0
0
null
2021-03-16T10:49:16
2020-12-14T14:15:40
Python
UTF-8
Python
false
false
1,587
py
from django.db import models class Student(models.Model): id = models.AutoField(primary_key=True) # noqa name = models.CharField(max_length=200) normalized_name = models.CharField(max_length=200, null=True) age = models.SmallIntegerField(null=True) sex = models.CharField(max_length=200, null=True...
[ "binko.ryslana@gmail.com" ]
binko.ryslana@gmail.com
0a85d3a207041fe40d86bcaf79b55bb1e71d6e30
3ac6cc22d2a1c727064f4721a8e4e026dcfbfc9b
/configs/top_down/resnet/mpii/res101_mpii_256x256.py
17e9c7e66d65027869079d8b699e9a86f265eba9
[ "Apache-2.0" ]
permissive
Alex-bd/mmpose
8a3201a40208c4687342ad08ef83c1c79d0e775a
5bf1d8ceafc6ac4c3e1f4fdf10f5a8a0e86ad0e9
refs/heads/master
2022-12-12T00:10:13.368567
2020-08-31T11:15:01
2020-08-31T11:15:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,340
py
log_level = 'INFO' load_from = None resume_from = None dist_params = dict(backend='nccl') workflow = [('train', 1)] checkpoint_config = dict(interval=10) evaluation = dict(interval=1, metric='PCKh') optimizer = dict( type='Adam', lr=5e-4, ) optimizer_config = dict(grad_clip=None) # learning policy lr_config = ...
[ "noreply@github.com" ]
noreply@github.com
711d23ae5d368b269fb5d365992d30d65c87469d
21bd158545402c0912f303444002c7c8b62720d1
/src/url_storer_test.py
587d54d72613811f37c3d83bf54f7cefe6fedac4
[ "MIT" ]
permissive
Taekyoon/PyCrawler
23ef5cd6971ca00971ffd93380d3f915b75da5ea
93f0ef8bc07436ff70ba9a198b89d2ffa27bcc9e
refs/heads/master
2021-01-20T14:48:31.499910
2017-02-22T08:18:19
2017-02-22T08:18:19
82,775,691
0
0
null
null
null
null
UTF-8
Python
false
false
1,214
py
from url_storer import UrlStorer table_name = 'TEST' def create_database(): UrlStorer('test.db') UrlStorer.create_table(table_name) def close_database(): UrlStorer.close() def get_test(): return UrlStorer.get(table_name) def insert_test(key): UrlStorer.put(table_name,key,1) def exist_test(): ...
[ "tgchoi03@gmail.com" ]
tgchoi03@gmail.com
bc52f37436a7565189d51e912a3ff824c5577c49
d21326e0e2604431549e80cf025074624f36c6bb
/boneless/test/test_alsru.py
a8fd22835150c7e12b619be0fccb994aac84ee72
[ "0BSD", "Apache-2.0" ]
permissive
zignig/Boneless-CPU
ad9232d82e19c1035f5e10443b81f147d96c4072
10bb571b4efab015e1bf147c78f0b8b3c93443e4
refs/heads/master
2020-04-25T20:29:47.987910
2019-07-05T05:35:18
2019-07-05T05:35:18
173,051,283
0
0
NOASSERTION
2019-02-28T06:06:16
2019-02-28T06:06:15
null
UTF-8
Python
false
false
4,413
py
import unittest import contextlib import random from nmigen import * from nmigen.back.pysim import * from ..gateware.alsru import * class ALSRUTestCase: dut_cls = None def setUp(self): self.checks = 100 self.width = 16 self.dut = self.dut_cls(self.width) @contextlib.contextm...
[ "whitequark@whitequark.org" ]
whitequark@whitequark.org
75fd5e661c51351127197212dce3457ddcf5037a
aea7f59f919992d5b49366552e40d777042a0a7b
/lib/event_handler.py
3a37e9dd98e30b54ad10b8ce6683532b36a01c62
[]
no_license
yogae/serverless-lambdaedge-resize
2f8334aef87a525574abe69562085ed1eb3a2b56
860e01b673f83cc4c186ce8fb7fd8a6a987368aa
refs/heads/master
2022-11-25T04:01:06.916311
2019-10-27T07:55:28
2019-10-27T07:55:28
216,831,630
0
0
null
2022-11-22T04:46:36
2019-10-22T14:16:28
Python
UTF-8
Python
false
false
1,054
py
import urllib def parse_resolution(request): query_string = request.get("querystring", None) if query_string is None: resolution = "origin" else: resolution = urllib.parse.parse_qs(query_string).get("resolution", None) if resolution is None: resolution = "origin" ...
[ "" ]
0baaa732089fcef332a853334b008c15112aac4d
42d51b7f53a88e2808066782cc9786634a9138e5
/recipes/iris_nn.py
7d0721dc3a4c7d17be6d6e61297c965d4b64043c
[]
no_license
kent0304/PyTorchTutorial
64707a3bc8e187a3bddf62a7bafe5afc672d163f
ee0a4bb7904829f06880991bd1cdf4689ce8d912
refs/heads/master
2022-12-11T21:18:38.889200
2020-09-16T07:56:18
2020-09-16T07:56:18
264,959,345
0
0
null
2020-05-18T14:12:51
2020-05-18T14:09:56
Ruby
UTF-8
Python
false
false
1,823
py
from sklearn import datasets import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F iris = datasets.load_iris() # 教師ラベルをダミー変数化する必要はない # y = np.zeros((len(iris.target), 1+iris.target.max()), dtype=int) # y[np.arange(len(iris.target)), iris.target] = 1 y = iris.t...
[ "tanaken0304.0123@gmail.com" ]
tanaken0304.0123@gmail.com
3cf839ea331331771691d73a49bad587c20960f2
9952f1a28e430313211b609a73e5fa6ef4b7f976
/lab_1/lab1.3.py
93298e94680584cde666c1e47a5e91f17d03b718
[]
no_license
onlysingle007/labs
f5666dc991d0fb7a14b03623454021635d8a0fc3
f43a3f0d86ab5d370c49690bda6c5053ecf6ad2b
refs/heads/master
2020-12-20T02:45:39.845664
2020-01-30T14:17:51
2020-01-30T14:17:51
235,938,089
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
x=str(input("enter sentence to be checked: ")) print (x) y=len(x) z=a=b=0 for i in x: if i.isalpha(): z=z+1 elif i.isdigit(): a=a+1 else: b=b+1 print("number of alphabets are",z) print("and number of numbers are",a) print("number of special characters are",b)
[ "noreply@github.com" ]
noreply@github.com
acdd334ba1e6d6b647648d7ce04d95c971a8a97c
6b9084d234c87d7597f97ec95808e13f599bf9a1
/Dataset/Utility/youtube_downloader.py
9dfc738aba4989d5f42cfc43fb334b8de60c5b2a
[]
no_license
LitingLin/ubiquitous-happiness
4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc
aae2d764e136ca4a36c054212b361dd7e8b22cba
refs/heads/main
2023-07-13T19:51:32.227633
2021-08-03T16:02:03
2021-08-03T16:02:03
316,664,903
1
0
null
null
null
null
UTF-8
Python
false
false
1,870
py
import os import subprocess import threading from tqdm import tqdm import shutil def _read_outputs_from_precess(process): def _print_stdout(process): for line_ in iter(process.stdout.readline, ""): if len(line_) > 0: print(line_.strip()) def _print_stderr(process): ...
[ "linliting06@live.com" ]
linliting06@live.com
4f2562228bcdf52337ff368b81103a2b007a2635
9d14540c5cc793e10e7aa761cffddbb301004adc
/wide_resnet.py
9f37d8bc2e5753a481218e443c9c67a4fa97f2db
[]
no_license
Liang-yc/will_delete_later
290a1a5f407ad5c801895e2b2e8590d2c6cb94b9
b5208754c1f6e868c53ba529ff32c72d11907de5
refs/heads/master
2022-10-12T10:01:03.456910
2019-08-22T22:50:06
2019-08-22T22:50:06
203,884,669
0
0
null
2022-09-29T12:20:19
2019-08-22T22:49:16
Python
UTF-8
Python
false
false
2,122
py
import keras from keras.models import Model from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import Input, Add, GlobalAveragePooling2D, Dropout,PReLU from keras import regularizers weight_decay = 5e-4 def conv3x3(input, out_planes, stride=1): """3x3 convolution with paddin...
[ "noreply@github.com" ]
noreply@github.com
68e5589fe85596c30ef2e358b26b9a438f01ad92
0f7e18a483a44352dfac27137b8d351416f1d1bb
/application.py
c5bacc7030432a73f7dc538367825d6dc44c5983
[]
no_license
rinoshinme/slim_finetune
b5ec4ed53a2d6c15dfa5b4cfb73677ccb58a4aa6
1e465e3faff668e65cc873828057365114d4cfb1
refs/heads/master
2022-11-07T21:02:38.253001
2022-11-02T14:48:45
2022-11-02T14:48:45
199,089,723
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
from app.nsfw_process import NSFWProcessor
[ "rinoshinme@163.com" ]
rinoshinme@163.com
c81a40039c0c97890bc37a375a712236114ae380
1122bcd042953f085835483ca7809c7dfeac21e2
/Gluon/k_means/main.py
81e2ccb65324768e76ebb32bdd7d4405119e1af7
[]
no_license
nguyen-viet-hung/Mxnet_Tutorial
7b293db2f415720e144e4e506d5fd3678fbedeb4
9892dbd91377476f8482baff473ae2c74105faff
refs/heads/master
2020-12-29T13:56:58.804003
2018-03-07T18:39:39
2018-03-07T18:39:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
import mxnet as mx import kmeans kmeans.K_means_Algorithm(epoch=5000,centroid_numbers=10,point_numbers=5000,ctx=mx.gpu(0))
[ "medical18@naver.com" ]
medical18@naver.com
5d6557971ba1b18c0b15b18bead81f318c365147
87a22d7b301bb0234f813c5f142446f9d409e024
/vumi_http_retry/workers/sender/tests/test_worker.py
4235e92ef4ec536e996b3b1bb22f5a0259e6b174
[ "BSD-2-Clause" ]
permissive
praekelt/vumi-http-retry-api
9dad08ceef614fc9a5dc358cd45ec1927231706c
01c1e5635b2d281986de66489582be0a7bd8e040
refs/heads/develop
2021-01-02T22:45:36.606706
2017-06-09T14:28:33
2017-06-09T14:28:33
39,622,844
0
0
null
2017-06-09T14:21:40
2015-07-24T09:15:25
Python
UTF-8
Python
false
false
21,699
py
from twisted.internet import reactor from twisted.internet.task import Clock from twisted.trial.unittest import TestCase from twisted.internet.defer import ( inlineCallbacks, returnValue, DeferredQueue, Deferred) from vumi_http_retry.workers.sender.worker import RetrySenderWorker from vumi_http_retry.retries impor...
[ "justinvdm.0.1.0@gmail.com" ]
justinvdm.0.1.0@gmail.com
ad4c83cd892a3de7b7eb7a93417326f79ec89583
34e9126f2044f1a38841e22563d3742a56cc24d4
/ez-bof-exploit.py
c946f80877bf8ccd229cbcf1371244238d953095
[]
no_license
Ko-kn3t/my-oscp
d2a40c5990d41f93e99e43e262402a83aab0fa36
1fe6ec31fa24f61d20483ba2f47e430181365df7
refs/heads/master
2023-06-06T17:41:29.269723
2021-07-09T20:05:24
2021-07-09T20:05:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
import socket ip = "192.168.34.110" port = 4455 prefix = "OVRFLW " offset = 0 overflow = "A" * offset retn = "" padding = "" payload = "" postfix = "" buffer = prefix + overflow + retn + padding + payload + postfix s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.connect((ip, port)) print("Sending ...
[ "noreply@github.com" ]
noreply@github.com
1be2af53fa6f016ff4072f573289d49e119594b7
ca4b0be8f4ead842938c2f82254d5ebb781140be
/models/bilstm.py
1f86e8cd2c213d8029750f61fcb01a531bc88333
[ "Apache-2.0" ]
permissive
wuba/qa_match
27bd64df81800329dfc88cda42a1e8afbd7d8308
f74ffeb4a66589eb383a6c251b0a7413e0be7f20
refs/heads/master
2022-07-23T06:07:58.383905
2022-07-19T02:49:05
2022-07-19T02:49:05
245,431,046
348
90
NOASSERTION
2021-06-04T07:24:02
2020-03-06T13:47:37
Python
UTF-8
Python
false
false
7,273
py
# coding=utf-8 """ a bi-lstm implementation for short text classification using tensroflow library """ from __future__ import print_function import tensorflow as tf from tensorflow.contrib import rnn class BiLSTM(object): def __init__(self, FLAGS): """Constructor for BiLSTM Args: ...
[ "herui02@58.com" ]
herui02@58.com
c38baec5d263b52e5b8b07f604db735e512f235b
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/KbIsvMaCode.py
fa25c52f96b6b0de55cd7ffaf33dc6023902ce7c
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,183
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class KbIsvMaCode(object): def __init__(self): self._code = None self._num = None @property def code(self): return self._code @code.setter def code(self, value...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
609d3a6c31bdda855c9cdee73943267fea809e40
9645bdfbb15742e0d94e3327f94471663f32061a
/Python/719 - Find K-th Smallest Pair Distance/719_find-k-th-smallest-pair-distance.py
8370a768504118d06936fb1274d64a87cac376a5
[]
no_license
aptend/leetcode-rua
f81c080b2260adb2da677612e5c437eda256781d
80e44f4e9d3a5b592fdebe0bf16d1df54e99991e
refs/heads/master
2023-06-22T00:40:05.533424
2021-03-17T13:51:28
2021-03-17T13:51:28
186,434,133
2
0
null
2023-06-21T22:12:51
2019-05-13T14:17:27
HTML
UTF-8
Python
false
false
609
py
from leezy import Solution, solution from heapq import heappush, heappop class Q719(Solution): @solution def smallestDistancePair(self, nums, k): # MLE A = sorted(nums) N = len(A) heap = [] def push(i, j): heappush(heap, (abs(A[i]-A[j]), i, j)) for i...
[ "crescentwhale@hotmail.com" ]
crescentwhale@hotmail.com
ad46c5cf701393737c5af474da5fe9ea2f31a1c9
56554999cdd882b6a6701b2a09e148c1fa4465c8
/scramble.py
c9cd6805db2f8759634629df0b007e63d9a93de0
[]
no_license
theriley106/Cubuyo
a266bd97fb82a8443785b40151222f68901a4bb2
38fb8caf2cb395c3df2274fd0651b51c621a5723
refs/heads/master
2020-04-11T17:17:43.095793
2018-12-16T02:34:15
2018-12-16T02:34:15
161,955,403
2
0
null
null
null
null
UTF-8
Python
false
false
645
py
import random import re Notation = ["R", "R'", "L", "L'", "U", "U'", "F", "F'", "B", "B'"] def genNew(length): Scramble = [] while len(Scramble) < length: Move = random.choice(Notation) MoveStr = " ".join(re.findall("[a-zA-Z]+", str(Move))) PreviousMove = Scramble[-1:] PreviousMove = " ".join(re.findall("[a...
[ "christopherlambert106@gmail.com" ]
christopherlambert106@gmail.com
f46874aae652fa3eb63244fb046e91dd42da42aa
80e152f49b355b3e07faaab6b468ca8dda6aa097
/python/streamlit-sample/align-epub/epub.py
94f4c812edb5b0b8ffabe802589336488cf1e1ca
[]
no_license
Pitrified/snippet
13ad9222f584570b10abb23a122b010b088eb366
1d7e5657014b00612cde87b78d5506a9e8b6adfc
refs/heads/master
2023-05-25T16:14:42.133900
2023-04-19T18:20:32
2023-04-19T18:20:32
174,192,523
2
0
null
2023-05-01T23:48:48
2019-03-06T17:47:16
Python
UTF-8
Python
false
false
10,849
py
"""Class to load an EPub in memory and analyze it. Split in chapter, paragraph, sentences. Sentences are translated. """ import re import zipfile from collections import Counter from pathlib import Path from typing import IO, Literal, Union from bs4 import BeautifulSoup, Tag from spacy.language import Language from ...
[ "nobilipietro@gmail.com" ]
nobilipietro@gmail.com
6d20efd0a2f73ce1149cbb51844ba642ed36743f
2016147854b89b96154644e6c18d686e90f40450
/methods/exact_method.py
2b681356d244986578c297c07523cff0b6d86494
[]
no_license
ilshat-fatkhullin/differential_equations_assignment
2b3cc596504a1b5b71e9ebd0db56483757a71d6c
a9f680c4b2a10a8fa9e18c10d605397a2dfcddff
refs/heads/master
2020-04-01T11:38:06.083063
2018-11-01T16:41:55
2018-11-01T16:41:55
153,170,689
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
from calculator import * class ExactMethod: @staticmethod def get_result(x0, b, n, y0): x = x0 step = (b - x0) / n x_rows = list() y_rows = list() while abs(b - x) >= abs(step): y = Calculator.get_general_solution(x, x0, y0) x_rows.append(x) ...
[ "ilshat.fatkhullin@gmail.com" ]
ilshat.fatkhullin@gmail.com
d727f6d92b367e32c9823e70668b9e985c4951f2
d18b6a5ba144d3c13450e07c12ccc8b80a3bc222
/main.py
6c46c009a6b7b3f9e2ed57aba87c46e3b1be2e32
[]
no_license
zhihuinang/SJTU-EE228-project1
b6270f14317136de2f1a1676714058019c4f430a
958c197bf56e52f66eb5ebd751f96219de012b5a
refs/heads/master
2023-05-26T03:08:20.931244
2021-06-16T06:15:46
2021-06-16T06:15:46
366,617,112
0
0
null
null
null
null
UTF-8
Python
false
false
8,591
py
import argparse import os import torch from tqdm import trange from torchvision.transforms import transforms import torch.utils.data as data import torch.nn as nn import torch.optim as optim import numpy as np from info import INFO from model import ResNet18,ResNet50 from utils import ACC,AUC from dataset import PathM...
[ "zhihuinang@126.com" ]
zhihuinang@126.com
f268e4ec3c301c496e6e87cfff9d394bdb45b105
85fa96e129cac68d1f7c52142207d80c43650cc8
/img_viewer.py
ef7d654feb38af027bec66ea3e7aca30e2aa7aa7
[]
no_license
hitarthsolanki/ADV-C164-165-IMAGE-VIEWER
bfebaa42f60708a91e9aa379a06e9438a5f93cbe
0704f49159e19a955dfe6a1328ebebc7317dd40e
refs/heads/main
2023-06-29T04:33:34.133567
2021-08-02T16:09:27
2021-08-02T16:09:27
392,012,098
0
0
null
null
null
null
UTF-8
Python
false
false
1,187
py
from tkinter import * from tkinter import filedialog from PIL import ImageTk,Image root=Tk() root.title("Planet Encyclopedia") root.geometry("600x600") root.configure(background="black") img_path="" def Open(): global img_path img_path=filedialog.askopenfilename(title = "Select Image File", filety...
[ "noreply@github.com" ]
noreply@github.com
2a742123549ed793dd03e532042a323592171d10
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_sp_res_response.py
f475eccd26c2ba4a71ea8a20576fbef3e88e9b9f
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,331
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowSpResResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name a...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
7cb6b8c630bf709694fc2422eae80020740c9721
e4814f60eefbc6ede78a91bd1a5717b225fbf1dd
/resizeeeeee.py
2c248b099548a7e8529320ab56e23c269830c1a6
[]
no_license
sukumargaonkar/MazeRunner
9c52ce606438c0d19f210de7a7908c02d8259107
584b0418ddb64582f04b78481890cf8614fb97d3
refs/heads/master
2020-03-29T18:01:05.522220
2018-10-08T01:55:43
2018-10-08T01:55:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
647
py
import math import os from PIL import Image dim = 50 k = 600/dim print(k) j = math.ceil(k) size = j, j filename1 = 'mario.gif' filename2 = 'wall.gif' file_parts1 = os.path.splitext(filename1) file_parts2 = os.path.splitext(filename2) outfile1 = file_parts1[0] + "_" + file_parts1[1] outfile2 = file_part...
[ "noreply@github.com" ]
noreply@github.com
c31d6a0e04a28b132c1ee51440b80382e70f188b
9de26c31c5904387932c7467870e469abb7ec488
/test_case48/test_case19.py
4fbf6cbe3ae6c400bb02e5e3167c4bc4cb476a06
[]
no_license
wanghao-820/data_create
6b680e980fcbba1fcd55fe1189472718f4ef5a2b
ec774e3a5f9341f3bcdf5760e712cb9b0521684b
refs/heads/master
2023-06-13T01:00:28.099793
2021-07-08T15:53:20
2021-07-08T15:53:20
384,153,560
0
0
null
null
null
null
UTF-8
Python
false
false
2,164
py
from data_creater.utils import db_utils, str_utils from data_creater.apis import portal_apis from time import sleep from data_creater.controllers.renewal_controller import Renewal if __name__ == "__main__": # 测试用例, 学生未续报;调账号 """ A:春 → 调入秋 B:秋 A班主任:分子+1 pass B班主任:不变 pass """ ...
[ "1427211856@qq.com" ]
1427211856@qq.com
5b370d6b432e10fca26598659c827a659c0d4f0e
3decd738a2f43e70c040644aca4e604b13fd7eb6
/tools/setup-deb-pkg.py
3c45692405a61768039fa30350e1a268033d25b5
[ "MIT" ]
permissive
mmarchini/libstapsdt
433ab727ca886ea51ffbff5612ca8574ba186afa
5a44c3a5e4b1cdb16e1c02e1cc2474f9ca56d4ff
refs/heads/main
2021-12-04T19:05:56.550352
2021-10-16T03:09:11
2021-10-16T03:09:11
417,709,808
1
0
MIT
2021-10-16T03:59:54
2021-10-16T03:59:53
null
UTF-8
Python
false
false
3,927
py
#!/usr/bin/env python3 import os import re from os import path import argparse import fileinput def inline_file_edit(filepath): return fileinput.FileInput(filepath, inplace=True) LIB_SHORT_DESCRIPTION = "Runtime USDT probes for Linux" LIB_LONG_DESCRIPTION = """ Library to give Linux runtime USDT probes capabilit...
[ "oss@mmarchini.me" ]
oss@mmarchini.me
e19aaa55db0692b20e430e06a921b19c03074b63
277540803d133c40b24733857fc553983a59d863
/src/SwarmBot/run.py
e3223401213853893a2341cf05feb803cdc3a14a
[ "MIT" ]
permissive
Dyex719/Battlecode
d3ddf518b66ba09fe5243e997b3b1d2cef4c912f
5ed0932b0ba18ce914725e90839a476328cb9460
refs/heads/master
2021-05-12T17:43:06.118059
2018-01-16T05:14:37
2018-01-16T05:14:37
117,052,193
0
0
null
null
null
null
UTF-8
Python
false
false
5,400
py
import battlecode as bc import random import sys import traceback print("pystarting") # A GameController is the main type that you talk to the game with. # Its constructor will connect to a running game. gc = bc.GameController() directions = list(bc.Direction) useful_dir = [bc.Direction.North,bc.Direction.Northeast,b...
[ "30334566+Dyex719@users.noreply.github.com" ]
30334566+Dyex719@users.noreply.github.com
749b6395b6d8726189553c6d5d199595a4229343
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_pause_resume_stutus_response.py
c5684b791851a26cc2626b0be1f8ff75fd7fc5a2
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
8,747
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowPauseResumeStutusResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name a...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
ee5f649704cbc12a6f353db6ecfd4a96c972f041
f8c183aa549f36808844f5e6304a6129a222f182
/lesson_01_slyusar_roman/02. task 2.py
26a49235298f3db5d06d1e6681b78a4d9a1e669a
[]
no_license
ITihiy/gb_algo_solutions
70f59a6b22412e7d7df1111c5506cf944245cd2a
faa94f916becca8524f55ca2630f134f3f4741de
refs/heads/master
2023-08-04T07:18:14.159191
2021-09-25T17:54:29
2021-09-25T17:54:29
403,243,335
1
5
null
2021-09-25T17:54:30
2021-09-05T07:27:03
Python
UTF-8
Python
false
false
1,269
py
"""" 2. Выполнить логические побитовые операции «И», «ИЛИ» и др. над числами 5 и 6. Выполнить над числом 5 побитовый сдвиг вправо и влево на два знака. Объяснить полученный результат. """ a = 5 b = 6 a_byte = format(a, 'b') b_byte = format(b, 'b') rez = [] print("Логическое \"И\": ") for i in range(len(a_byte)): ...
[ "slyusarrv@yandex.ru" ]
slyusarrv@yandex.ru
d66816d4187adc8ec829d96ab77ec309eb85a3dc
65d8d97a05ef63e0a43bdcb2ff6f683442d85b25
/venv/Scripts/django-admin.py
e45374fb41873a133de05ebf09b01be163c1745b
[]
no_license
philipko100/Ecommerce-Site
a1ba8e15b59ef3a5e66bada044a169198a292a2f
976268eb740ee664ee71b956b520697937271db2
refs/heads/main
2023-08-15T00:41:02.015798
2021-09-22T00:14:52
2021-09-22T00:14:52
405,302,940
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
#!C:\Coding\ecommerce\venv\Scripts\python.exe # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'django-admin.py was deprecated in...
[ "philip.ko.100@gmail.com" ]
philip.ko.100@gmail.com
7f23226f64137649209c8979392ca73a776cc6ed
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5738606668808192_0/Python/xulusko/CoinJam.py
2d99d9e5c0b0750367878956b22ae6d543d493aa
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
697
py
from random import randint from pyprimes import nprimes N = 16 J = 50 jamcoins = set() somePrimes = list(nprimes(47))[1:] def findDiv(val): for p in somePrimes: if val % p == 0: return p return None def getDivisors(coin): divs = [] for base in range(2, 11): val = int(coin, base) ...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
5973172ad98373f1365860f01f4fce3b89ba00f1
be81dc6b30ddfcb512a58aae2a592f5707b65479
/8월/swea_4839.py
0fcbd1792f442828f20b105382deff17b3b87d46
[]
no_license
mingddo/Algo
799082d2a9d8e2fa43a910ebf5e769e372774a70
6dee72aa3c99b59ada714bfe549b323dbdff2f30
refs/heads/master
2023-01-06T00:32:29.457676
2020-11-07T07:45:07
2020-11-07T07:45:07
281,081,195
3
0
null
null
null
null
UTF-8
Python
false
false
686
py
import sys T = int(input()) for tc in range(1, T + 1): num = list(map(int, input().split())) result = [] for i in range(2): start = 1 end = num[0] cnt = 0 page = num[i+1] while start <= end: c = (start + end) // 2 if c == page: ...
[ "dk.myeong@gmail.com" ]
dk.myeong@gmail.com
a27f8c7745fc850e88e726b1c9dea6b2f85427bf
844d9398f308362a88e1282f1c3c1963a1a93acd
/wordcount/urls.py
de041350b898e473ea6934e5293d0a37d529a5ba
[]
no_license
lcres7/wordcount-project
ea13f7b2c2e23d665e667878d7697720d75f80fc
9b8cd00862452a625f58e94c44b224049cbae9aa
refs/heads/master
2022-04-10T07:18:36.082882
2020-03-26T14:59:14
2020-03-26T14:59:14
250,291,176
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
"""wordcount 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-bas...
[ "lukec@localhost.localdomain" ]
lukec@localhost.localdomain
57b50a91bccb5468120878e16db6c15f95c792be
e87e71e01a14d3469f3249a5dc546f9f7e5f6332
/api/blockchain/views.py
d2e4d7469e7440c82d438b051d6b2ee3e320d126
[]
no_license
jlmallas160190/challenge-ripio-be
7f4b55da67c45b1c5bbcea011376691f144a4a49
bf7354ed61372e80c31d6120f062db193a651db4
refs/heads/master
2023-05-30T18:58:10.139040
2021-06-14T15:14:40
2021-06-15T04:36:53
373,355,348
0
0
null
null
null
null
UTF-8
Python
false
false
5,174
py
from decimal import Decimal from app.blockchain.tasks import calculate_balance_task import logging from rest_framework.authtoken.models import Token from api.blockchain.serializers import (CoinSerializer, TransactionSerializer, WalletSeria...
[ "jomasloja@gmail.com" ]
jomasloja@gmail.com
447ffb47be7aa30b0ecec7aad540537018d8f179
d6703af7ee5c1f711fa117145c614801c5199762
/lambda/pain_lambda.py
c63dd949fb764245e287e1b8c0536557f503e110
[ "MIT" ]
permissive
AdamMcCormick/share-the-pain
641b71a9af1608a83e5e23a75edddcf317717f0f
c7a7055723925dd36b42982b5d17c9f8ccf5b397
refs/heads/master
2021-09-01T11:56:46.637013
2017-12-26T21:17:03
2017-12-26T21:17:03
114,928,433
0
0
null
null
null
null
UTF-8
Python
false
false
2,691
py
from datetime import datetime import json import re import os import pyrebase firebase = pyrebase.initialize_app(os.environ) auth = firebase.auth() def resource(path, base = None) : base = base if base else firebase.database(); segment, subPath = re.sub(r'/+', '/', re.sub(r'^/', '', path)).partition('/')[::2] ...
[ "awMcCormick@sbgtv.com" ]
awMcCormick@sbgtv.com
3fea2dc185356ece549895fc3905f0ab08fbe826
eaae0c717cbb3189f84f64ec1e06c2b90184d6b2
/ai_moive_project/build_database.py
dd63d337863727591507cab629c0671a7ec2dea9
[]
no_license
ZhikunWei/AI_project_moive_conversation_agent
50c5701f36486d5beab25e01f5590f38fe8e076a
f7637223915a654d71909c532c117bb5cdaef8ef
refs/heads/master
2022-06-18T04:52:54.497144
2020-05-10T15:04:20
2020-05-10T15:04:20
262,812,079
0
0
null
null
null
null
UTF-8
Python
false
false
7,822
py
import rdflib from rdflib import Graph, Literal, BNode, Namespace, URIRef from rdflib import RDF, RDFS import pickle def buildGraph(): g = Graph() url_prefix = "http://example.org/" my_namespace = Namespace("http://example.org/") uriDict = {} # concepts moiveID = URIRef(url_prefix+'moiveID') ...
[ "noreply@github.com" ]
noreply@github.com