blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
37321511f55b483428e71701554e9e17bf1df771
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_7/hrnali002/question1.py
bddd72a0b19d90ef62d339aa08a5e015b73c2dc2
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
"""A program to print a list with not duplicated words Alison Hoernle HRNALI002 27 April 2014""" # get input and convert to a list list = [] strings = input("Enter strings (end with DONE):\n") while strings != "DONE": list.append(strings) strings = input() print() print("Unique list:") # create an empty...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
89183a2d8db1679d97f14a455576df1e17c8699d
a93caa7552963b075e72bb9b6beb08aab94bac27
/code/plots.py
353f651e62182392288e94882edcf51ad8e349d6
[]
no_license
anmalara/DeepWWTagger
ae2e7773f230bf7e74136a44dc09f51b066dbf35
1d3e1745a6b6b6a64bb83ae7f86dd53208a720a6
refs/heads/master
2020-03-11T03:07:19.989454
2019-02-19T09:36:44
2019-02-19T09:36:44
129,737,942
0
0
null
null
null
null
UTF-8
Python
false
false
9,247
py
import sys import os import os.path import glob import time import numpy as np from ROOT import TFile, TCanvas, TLegend, TH1F, TH2F, TColor, TAxis from ROOT import kWhite, kBlack, kGray, kRed, kGreen, kBlue, kYellow, kMagenta, kCyan, kOrange, kSpring, kTeal, kAzure, kViolet, kPink from ROOT import kNone from root_numpy...
[ "andrea.malara@cern.ch" ]
andrea.malara@cern.ch
f3a2ad5c32de8876caeae5f5f9095fdd0ef824c5
400c569b19d003d0b9d1b31bc1b698ae510cbc46
/Celestial classification/models.py
d4b60dffc8e997aebb887787f6bf21975ed96fb3
[]
no_license
as950118/dacon
05a203ab36375a69549ac39ba3b02a90431c860a
a1489a55a7a53a755d6cf50081522bd7c1c48b4f
refs/heads/master
2021-02-13T20:06:38.169482
2020-03-03T19:51:51
2020-03-03T19:51:51
244,727,899
0
0
null
null
null
null
UTF-8
Python
false
false
2,054
py
import pandas as pd from sklearn.model_selection import train_test_split from catboost import CatBoostClassifier from lightgbm import LGBMClassifier from xgboost import XGBClassifier from data_processing import DataProcessing random_seed = 0 train_data_path = "./data/train.csv" test_data_path = "./data/test.csv" sampl...
[ "na_qa@icloud.com" ]
na_qa@icloud.com
fa2be5e5a08ffaa6b639bc4c0c9eee8944b46147
c12947b326618c1c000e240d9515aa79ef127d5d
/migrations/versions/6decd80da190_added_equipment_table_to_the_database.py
d6dfaa538895073361eac32e2edf225747dcaa83
[]
no_license
allanderek/angular-velocity
3135559b18587477774375c1c2b0a4a93a85ed60
cdc2d3c0b647e0ed41015356dd058870589a41a8
refs/heads/master
2016-08-12T06:18:42.330608
2016-01-23T16:10:21
2016-01-23T16:10:21
49,957,645
0
0
null
null
null
null
UTF-8
Python
false
false
969
py
"""Added equipment table to the database. Revision ID: 6decd80da190 Revises: 69a3f32dd441 Create Date: 2016-01-23 15:03:36.991513 """ # revision identifiers, used by Alembic. revision = '6decd80da190' down_revision = '69a3f32dd441' from alembic import op import sqlalchemy as sa def upgrade(): ### commands aut...
[ "allan.clark@gmail.com" ]
allan.clark@gmail.com
7dc2b3f8fd6f281401a3c4676506bc5b3d23b623
ca5a3cd03a1951db3ba496fbb4b62dbbfcc198dc
/obtain_government_data/mergeFiles.py
d0a17d6da91be3f6dc63d3c49ef12e625f7e9073
[]
no_license
KaartGroup/localModelScripts
e9ae5c0f2fabee531a04c220106416350e9ff341
89acc3c6968c7aa3ede1da70751f13dd2063af5f
refs/heads/master
2022-12-11T18:30:16.218586
2021-05-06T18:24:00
2021-05-06T18:32:47
242,195,519
0
1
null
2022-12-08T07:44:50
2020-02-21T17:33:43
Python
UTF-8
Python
false
false
1,307
py
#!/usr/bin/env python3 import json import os import glob import sys def merge_json(files, save_file): if (len(files) == 0): return json_data = {} for fh in files: with open(fh) as fd: try: data = json.load(fd) for item in data: ...
[ "taylor.smock@kaart.com" ]
taylor.smock@kaart.com
446f69a026cc2ab7a8d1473354a3452e64b019c0
e148f3cd0f96b7ab189a6de8a59b756ec980228a
/proxy.py
392f7f0edbb089b0bd405264c1cd22d3fe7b70b3
[]
no_license
innovationb1ue/govinfo
439844552bac769f707855c9247109fad276e127
501a232ef21e82721c8d9020a28e4c8a34eeea5f
refs/heads/master
2022-03-12T13:02:21.084077
2019-10-23T14:42:50
2019-10-23T14:42:50
215,671,788
0
0
null
null
null
null
UTF-8
Python
false
false
6,154
py
import requests import random import time import multiprocessing USE_REDIS = True if USE_REDIS: import redis as red redis = red.Redis(decode_responses=True) redis.flushdb() class Proxy_Pool: def __init__(self, proxy_url:str,test_url:str,failwords:list=None, worker=4): self.proxy_url = proxy_ur...
[ "517262600@qq.com" ]
517262600@qq.com
a3f76984e69b7bfbe74621b895652b299a42164e
fcb06b09a805dbb983b1f7acdde97d41cf1da2e9
/igamingplatform/spins/apps.py
cb4041a710f6304b158ab53690a52d02af4b137d
[]
no_license
BartoszBereza/i-gaming-platform
a6a1e1148b22799cd5afaa1050aac970625cfece
b39658eb2c395755df09a43ab3b03b6e2739c1fe
refs/heads/master
2020-03-27T10:46:23.836289
2018-09-06T12:49:37
2018-09-06T12:49:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
from django.apps import AppConfig class SpinsConfig(AppConfig): name = 'spins'
[ "bbplen@gmail.com" ]
bbplen@gmail.com
833f34bfee5778cae876b543fd5e519ac588c965
db371807e5f23a739369c1d86677b6f888a2c724
/dev/parse_time_domain/parse_functions.py
81f2592e21ef207c765866a525889a8efa9e1c6e
[]
no_license
ivyu1265/rocketsat12
d1cc2b15fcfb68ff081ecd6f0c40f7b7e0b9933d
4171848fd6acec64fc570b211924ddfef556fb52
refs/heads/master
2018-10-21T06:12:24.853508
2018-07-26T19:06:36
2018-07-26T19:06:36
122,880,264
0
0
null
null
null
null
UTF-8
Python
false
false
5,225
py
import subprocess as sp import re import pandas as pd import struct import numpy as np class Header_Info: def __init__(self, file_name): self.file_name = file_name self.read_file_data() self.define_headers_list() def read_file_data(self,): gnuradio_command = 'gr_read_file_metadata -D {}'.format(self.file_n...
[ "dawson.beatty@colorado.edu" ]
dawson.beatty@colorado.edu
3994ec01676f94e3b0ed9d34c4e51522f1548082
6b3ec47ee410a7d2ed2102cc5bcfa13c7a6342e2
/bin/easy_install-3.6
5d6f8c4e10d68c760d508456eeaaa31b7e59754b
[]
no_license
makkar-nishant123/Refermeframework
fddb912304bdb4ffe3e169fda2d60b4171d8b6c1
a152f42f6ab63c037bf3f117aa5be1ceb3a1d178
refs/heads/master
2020-05-15T23:29:18.684101
2019-04-28T17:31:22
2019-04-28T17:31:22
182,555,118
0
0
null
null
null
null
UTF-8
Python
false
false
460
6
#!/Users/nishantmakkar/PycharmProjects/RefermeFramework/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.p...
[ "makkar.nishant123@gmail.com" ]
makkar.nishant123@gmail.com
f529c2813ffd27be60a2c246cf2853fcf650896f
78912badbaa634d84a93ac03872f18b3f14092a0
/photosorter-readbuckets.py
21e4410b93a348af18e57021e9ae46609456fa81
[]
no_license
mperry8889/photosorter
fc556054ce2af1a50c91c585c80eb6d65ff23f4f
d20c7a51a6e0e7aef4e4eb9260a344d54c52e539
refs/heads/master
2021-05-29T06:55:32.482767
2011-05-08T17:04:59
2011-05-08T17:04:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
#!/usr/bin/env python from photosorter import PhotoSorter from photosorter import Bucket from photosorter import Photo if __name__ == "__main__": p = PhotoSorter() for bucket in p.buckets: for state in ["during", "after", "before", "unknown", "unsorted"]: for photo in getattr(bucket, stat...
[ "none@none" ]
none@none
1154ef51601a72adda015a0c0c6295a88ba79108
cad7eb211a9254a263e5d924f9d3d05859e42f8f
/app/utils/view.py
30f20e2823a77bbcb050c3965093723311996e0d
[]
no_license
Arthur264/music-new.chat
d0568b6096119c863bf95f58159839d9844a1f30
0cf4fabf385954c060dec7408213a911a49358e7
refs/heads/master
2020-04-23T17:29:26.766098
2019-03-12T21:27:43
2019-03-12T21:27:43
171,333,921
0
0
null
null
null
null
UTF-8
Python
false
false
2,024
py
from cassandra.cqlengine.query import LWTException from sanic.views import HTTPMethodView from app.http import error_response, json_response from app.utils.request import check_uuid class ModelBaseView(HTTPMethodView): model = None @staticmethod async def _make_request(data, many=False): if not ...
[ "Artyr2643@gmail.com" ]
Artyr2643@gmail.com
254224591b0953224bf8db8c78c02177f1786852
3b4719eb840e4a60bdb5bfd3e694dfb3e08593bb
/generate_preds.py
8bfa41746e69eb8a280d2bbe0e9382602be0510d
[]
no_license
qzhsjz/TSVM-on-Python
60408d339c344a57dfe2b4cd47f6bd673058f70e
9b900453bcc065b86a7f9c27c670737fed992943
refs/heads/master
2021-01-11T19:01:49.370519
2017-01-18T02:54:30
2017-01-18T02:54:30
79,295,940
0
0
null
2017-01-18T02:40:44
2017-01-18T02:40:44
null
UTF-8
Python
false
false
793
py
from svm_hps import * from svm_ovo import * from kernel_gen_pol import * from kernel_gen_lin import * from F1 import * from pandas import * import numpy as np x2 = np.array(read_csv("../data/titanic/test_samples.csv")) y2 = np.array(read_csv("../data/titanic/test_answers.csv")) x1 = np.array(read_csv("../data/titani...
[ "esengie@esengie-K53SV.(none)" ]
esengie@esengie-K53SV.(none)
da8775e18d3b0e6f3cfa5b7ce00126f7f11d9688
b819632a899cc4919c4efb097b87009a9d07d209
/testbed_nodel11_vm_container.py
a54514a0093d7fb87304a63cdeb2ee24793ed008
[]
no_license
NuthanChandra/ctools
bb2570786d9b1a584c5b08800f48b02ed8664480
bcb967c53375104e32b32c8f0d2b3ca25ed69e49
refs/heads/master
2022-11-28T04:25:30.092129
2020-04-14T12:38:27
2020-04-14T12:38:27
255,604,269
1
1
null
2020-07-23T16:29:45
2020-04-14T12:34:11
Python
UTF-8
Python
false
false
4,050
py
from fabric.api import env import os host1 = 'root@10.204.216.115' host2 = 'root@10.204.216.116' host3 = 'root@10.204.216.117' host4 = 'root@10.204.216.118' host5 = 'root@10.204.216.119' host6 = 'root@10.204.216.125' kvm_nodel12 = '10.204.216.114' ext_routers = [('hooper','10.204.217.240')] ...
[ "nuthanc@juniper.net" ]
nuthanc@juniper.net
93f7e9fbb43b6cfe911188440c10510bd94cd5be
10933f33099b423c5971d12993de07cc6f7d0f07
/python_scripts/oci_3layer.py
aaba84aa9465707fc5e2577b74818c16c6aa4614
[]
no_license
Joako360/Voice-Identification
ed521d3fe41c6d862ab72e4585b1600742295847
744cb2276097c2839e7bd5f5db9f461d44e48b25
refs/heads/master
2023-03-15T15:10:30.219968
2019-04-29T02:56:09
2019-04-29T02:56:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,389
py
import os import sys import time import librosa import tflearn import pydub import wave import pickle import speech_data import segment_data import tensorflow as tf import librosa.display import numpy as np # load constants - training directory, testing directory training = '/home/cc/Data/train/' testing = '/home/cc/D...
[ "drew.boles88@gmail.com" ]
drew.boles88@gmail.com
f05d5623522500c5c226e1312c11a49f091677f5
422c3d0ff2f02b8393d82d89ffdfe4d08e817d36
/myapp/admin/views.py
9f58e6c802b2201e7cfc964b996a744602a86cf7
[]
no_license
juanda/blue
dd132857589d16464cbcaa6a8aacada99d5f2d43
2291959b5a2fc395f9c3c8d4a0af12ce5eb725af
refs/heads/master
2021-01-12T00:05:15.774907
2017-01-11T18:56:21
2017-01-11T18:56:21
78,669,455
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
from flask import render_template from . import admin @admin.route('/admin') def admin(): return render_template('admin.html')
[ "juanda@yuido.com" ]
juanda@yuido.com
315b999cddf33d0a70d199ad6d25cc2503896eb6
d271993bf1579e835995e0d4c2427dbe1abddde3
/gim/migrations/0012_product.py
78667b6c7c26ef349504b185af5ad7ddc41b428e
[]
no_license
Mesus/Uvis
5392507083abf02a6a98c59c20bb82a82072acbf
9dd54dea852a61a60d1ac54611566c03da6f4dfd
refs/heads/master
2021-01-22T19:59:16.065873
2017-03-17T03:19:32
2017-03-17T03:24:40
85,266,398
0
0
null
null
null
null
UTF-8
Python
false
false
573
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-01 03:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gim', '0011_area'), ] operations = [ migrations.CreateModel( na...
[ "304073257@qq.com" ]
304073257@qq.com
8f377dbae4bdfac6f266dec47f88176f4f0e1eca
b50f07920a48df36c5303e6bbd35ff1eafbece16
/jms/expression.py
0668bf0f294aef112c6ee929ab72cafc5af0faa2
[]
no_license
principia12/project_re
ed21cd369412d440ae794fd7ff422400988be5e3
d165026e08cd1efd27ed9a0147aaf790f9374916
refs/heads/master
2020-08-27T19:39:08.872522
2019-11-07T09:31:04
2019-11-07T09:31:04
217,472,878
0
0
null
null
null
null
UTF-8
Python
false
false
2,657
py
from abc import ABC, abstractmethod from .common import ConsumeFailException, is_valid_char, is_whitespace, is_word_char, is_numeric from .tokenizer import TokenType class Expr(ABC): @abstractmethod def consume(self, text, idx): pass @classmethod def from_token(cls, token): if token...
[ "jms7446@gmail.com" ]
jms7446@gmail.com
100838865d1fd32a0d5a82570553b60d6f2b6b9e
4734604d2a835ae6e9050626d27e933a4e58aeb7
/Exercise/kaggle/HousingPricePredicting/HousePricePredicting_NumAndCat.py
1bea9b1337b54ad7ae5fde54facf59486cf786a8
[]
no_license
iamjunwei/TensorflowLearning
a9a44a4db590a33d39d1c14eeecb4ba86d89cdc7
586cf6af5ac31c5dca9824351f734a150f3afa5c
refs/heads/master
2020-04-05T17:52:09.289319
2019-01-22T15:31:53
2019-01-22T15:31:53
157,079,220
0
0
null
null
null
null
UTF-8
Python
false
false
7,314
py
import tensorflow as tf import pandas as pd from sklearn.ensemble import IsolationForest from sklearn.preprocessing import MinMaxScaler from sklearn.model_selection import train_test_split import numpy as np import itertools import matplotlib import matplotlib.pyplot as plt # Deep Neural Network for continuous and cat...
[ "xiajunwei0713@163.com" ]
xiajunwei0713@163.com
b3dfa3fff3e16c7710431debde8cfa47233c5fea
652f467ebefadaa2da28d36d1da54e5be993ff70
/tests/integration_tests/scripts/choose_strand.py
3a21ae45c2c4494fad3a9d89f5fb7b44557570c6
[ "MIT" ]
permissive
malonge/RagTag
e64d807797e6f8a916b9cc4af5748b1ab0895e4c
df751bfeacbf0d9529eb2a0c82b10684407db59e
refs/heads/master
2023-04-12T08:16:27.410868
2022-12-27T22:32:03
2022-12-27T22:32:03
242,898,323
354
46
MIT
2022-11-30T20:36:23
2020-02-25T03:13:56
Python
UTF-8
Python
false
false
341
py
#!/usr/bin/env python import sys import pysam from ragtag_utilities.utilities import reverse_complement # Only one argument: FASTA file x = pysam.FastaFile(sys.argv[1]) for i in x.references: print(">" + i) s1 = x.fetch(i) s2 = reverse_complement(s1) if s1 < s2: print(s1) else: ...
[ "malonge11@gmail.com" ]
malonge11@gmail.com
e3e20c4815f94f2e31e28474bdc0058ee5c7bdbb
69f25bc9f53fd6b93a2aafb4d6973b38c7a56371
/homework/migrations/0003_product_price.py
ca166231f377341f9c96df8d3a009e6abcfcbab0
[]
no_license
sahara66/Dz_3-master
2ceff65165d03c8264fe124a76c92b3111535a6e
738a651eb660b9fc19592912037b56521de31f85
refs/heads/master
2023-06-16T05:35:38.920825
2021-07-10T09:01:55
2021-07-10T09:01:55
384,655,291
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
# Generated by Django 3.2.2 on 2021-05-08 15:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('homework', '0002_auto_20210508_1401'), ] operations = [ migrations.AddField( model_name='product', name='price', ...
[ "fasterkombast@gmail.com" ]
fasterkombast@gmail.com
7b50501068693c67817ab9351f21fd24bab7380a
5e4f98d3808b98c980b902f4ce6dc3864fefc365
/ipython_config.py
b62195b5c7096e72a48c344532d21e5bdd32ccf0
[]
no_license
tom-doerr/dotfiles
bdd608bd147beafc78b99d1530f4211a1751c069
9603e64c4dcfb18626c3051abc660c1c213db817
refs/heads/master
2023-08-08T13:31:14.489282
2023-07-28T14:26:47
2023-07-28T14:26:47
117,894,597
3
0
null
null
null
null
UTF-8
Python
false
false
22,406
py
# Configuration file for ipython. #------------------------------------------------------------------------------ # InteractiveShellApp(Configurable) configuration #------------------------------------------------------------------------------ ## A Mixin for applications that start InteractiveShell instances. # # ...
[ "tom.doerr@tum.de" ]
tom.doerr@tum.de
75d3392dc40e06676c640968578a29a6e4230e6b
1e139784a36ce2a26dafaac0bb795b168ca91776
/electron_project/abstract/migrations/0003_delete_workeraccount.py
bda3728b90ddb267ad2ad6addfa863d7ca628b2e
[]
no_license
TestAccount2077/Mas-Electronics
a9f4431be7ea740b99616cb4ce4acf9bba46096f
6bb887805900affdcd905deb33b341892bebd41f
refs/heads/master
2020-03-28T15:11:57.044686
2019-01-26T16:01:55
2019-01-26T16:01:55
148,566,318
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-10-20 04:57 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('abstract', '0002_workeraccount'), ] operations = [ migrations.DeleteModel( ...
[ "maselectronics594@gmail.com" ]
maselectronics594@gmail.com
6a6293a6a797e6bfa61d9f42a97405b209674de1
87b4f4074c3eb18ed4b83e698237205637a249b0
/Examples/IPv4 Address/add_static_ip4_address_example/add_static_ip4_address_example_page.py
4b4d0419e59cdc6d7b922628f12e4549dee45d3a
[ "Apache-2.0" ]
permissive
glennmcallister/gateway-workflows
1b18d5c3a4bb8d0be6cf343f184144b5136458d0
d9daa0ba4efa9715ed40ef7e54b2b98fba4bb63e
refs/heads/master
2021-03-24T13:24:39.607721
2017-10-25T20:30:22
2017-10-25T20:33:02
109,297,506
1
0
null
null
null
null
UTF-8
Python
false
false
4,211
py
# Copyright 2017 BlueCat Networks. All rights reserved. # Various Flask framework items. import os import sys import importlib from flask import url_for, redirect, render_template, flash, g, request from bluecat import route, util from bluecat.api_exception import APIException import config.default_config as config ...
[ "vfarafontov@bluecatnetworks.com" ]
vfarafontov@bluecatnetworks.com
7dc113ee481c418f95b7e7967637e33cc63663f3
a41735b5092b1f8576e21ca6c7b93b57ebae58b2
/processing_tennis_matches.py
68b33567ba963e5426117bd7ca9dc92c84511859
[]
no_license
ajkrish95/cs229-tennis-prediction
300f378f8e8aa17c71e5a248f2afbb032cc146ca
6609486defcb2af19e3f31b5d42aeedf5ee76ceb
refs/heads/master
2020-11-24T05:26:10.972751
2019-12-14T07:29:27
2019-12-14T07:29:27
227,983,585
0
1
null
null
null
null
UTF-8
Python
false
false
38,163
py
import csv import matplotlib.pyplot as plt import numpy as np import json from sklearn.linear_model import LogisticRegression from sklearn import svm from sklearn.ensemble import RandomForestClassifier def getdays(date1): year1 = int(date1[0] + date1[1] + date1[2] + date1[3]) month1 = int(date1[4] + date1[...
[ "noreply@github.com" ]
ajkrish95.noreply@github.com
c82c8b8c6b31aa7a2fbea0a59b5f32fd34dcd6e1
d9f4400d47e0ce914be636698365e26f836b766c
/apps/screen/urls.py
71d2c6af754bfffc99bcf77e2a85e73445a03918
[]
no_license
otonelunico/prevex
deffc3cfd82354b20e61ac636b2b7fb4dd48d360
e32efb317a05031a5e0c454d3343748ea7ff534e
refs/heads/master
2021-01-22T08:39:26.389747
2017-06-24T20:52:27
2017-06-24T20:52:27
92,628,288
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
from django.conf.urls import url, include from apps.screen.views import index, Settings, Prevent_, Video_ from django.contrib.auth.decorators import login_required urlpatterns = [ url(r'^$', index, name='index'), url(r'^settings/$', login_required(Settings), name="settings"), url(r'^prevent/(?P<funct>\w+)/...
[ "ocubillosj@gmail.com" ]
ocubillosj@gmail.com
c13a51b1f3b36682ca85ce3ef6df16001152ec90
a2a0a6db5781626035e3657f7be8034579aad3d0
/app.py
0fe9f88555fff88aa16e02d1ded9aba9257744c3
[]
no_license
lpreimesberger/otr
07c8d2d8ed0c5dc9fcbcc6c58abe869e1d8df3ea
0024ffaa866c1c89f2ce7becb870501c63881f98
refs/heads/master
2023-02-09T11:14:08.783890
2020-12-23T20:57:08
2020-12-23T20:57:08
296,576,483
0
0
null
null
null
null
UTF-8
Python
false
false
9,153
py
""" burning man 2021 project numbers from: https://freemusicarchive.org/music/The_Conet_Project """ #!/usr/bin/env python import sys import os import random from time import sleep import psutil from pydub import AudioSegment from pydub.playback import play from threading import Lock from flask import Flask, render_te...
[ "meathead123" ]
meathead123
59dc987bd295de691feb48bd7cd6fb3b0022b320
7ce00c738fea22b200e8c0b5f14110da678f3560
/MayLongchallenge3.py
eb830d191c73038b09f517abe1efa92e75940827
[]
no_license
Yogesh-001/Python
c0c929100b169b17d178436a3a43b64518e5d576
6cb25790c4f0de3d21389377ee978830a3febd56
refs/heads/main
2023-05-07T01:55:05.120602
2021-06-02T14:44:41
2021-06-02T14:44:41
354,456,700
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
# cook your dish here t=int(input()) for _ in range(t): p = (int)(1e9+7) n=int(input()) print(pow(2,n-1,p))
[ "noreply@github.com" ]
Yogesh-001.noreply@github.com
dd5e2a1ea852ce0926d23d2517ce7a6499aa5d2c
75bd816c06203f9ae8b988b1f51778b199fbe629
/backend/app/db/__init__.py
47daae9c5a072f088859a5a05e80b73162277462
[]
no_license
mcptr/bbone-js-py
ce209e377976707d1e0661fda5d5ceb6452dd8a1
ee07dce6907c645fbdd843daa80604d7228778b1
refs/heads/master
2020-03-27T00:11:34.310231
2018-08-21T18:17:30
2018-08-21T18:17:30
145,602,495
0
0
null
null
null
null
UTF-8
Python
false
false
19
py
from . db import *
[ "dev@metaceptron.com" ]
dev@metaceptron.com
d91f30dbf517bb4df1471f50de15a38476683448
41cf0c7473ffb214633f793087f765d3208b5eab
/naslib/predictors/trees/__init__.py
3542b946613e40dd5c3cf7e1a0ee6a447dcaa350
[ "Apache-2.0" ]
permissive
sailor921/NASLib
7ca38dcbe6ef87ee388e57c8a8b54f3b9d75189c
a91a4714e08aca2507f1cec15e125e8c405bcaaa
refs/heads/master
2023-03-31T04:33:10.910230
2021-04-05T04:33:35
2021-04-05T04:33:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
from .base_tree_class import BaseTree from .ngb import NGBoost from .xgb import XGBoost from .gbdt import GBDTPredictor from .random_forest import RandomForestPredictor
[ "zelaa@cs.uni-freiburg.de" ]
zelaa@cs.uni-freiburg.de
734a353a9b4a5f50f3a72adeae60c79376b0e30d
e82245a9e623ef3e2b4b9c02f0fd932c608c4484
/firecode.io/08-find_the_transpose_of_a_square_matrix.py
3d2ba5c22dcb19e7aba1339638498c7d1921455a
[]
no_license
Zylophone/Programming-for-Sport
33e8161028cfddce3b7a1243eb092070107342e3
193d6184f939303d8661f68d6fd06bdec95df351
refs/heads/master
2020-06-16T23:11:44.719286
2017-05-21T17:10:46
2017-05-21T17:10:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
''' Args: - matrix (list of lists) - a square matrix Modifies: - arg into its transpose in-place Returns: - nothing (None) Complexity: - O(n^2) time - O(1) extra space, in-place ''' def transpose_matrix(matrix): if matrix is None: return None n= len(matrix) ...
[ "jfv33@cornell.edu" ]
jfv33@cornell.edu
9aa0ccb8b6f0b1229c280b27cf975f65ac1d9503
55ca1d0e6fbd6e1b024eb59068e3d6ae2c466882
/dice.py
cc51e4ec8e0004b48d7abddf1e59ab0e7493b1ff
[]
no_license
coding-world/led-matrix
899c2c126a5c4305fa25dc81bb8249fed23d9175
ef47bc0b44330a9b0b7ef8f8757bdd674afee13f
refs/heads/master
2021-01-09T20:07:47.894084
2016-08-13T17:10:34
2016-08-13T17:10:34
65,627,897
1
0
null
null
null
null
UTF-8
Python
false
false
486
py
import RPi.GPIO as gpio import time import max7219.led as led from random import randint from max7219.font import proportional, SINCLAIR_FONT, TINY_FONT, CP437_FONT gpio.setmode(gpio.BCM) taster = 14 tasterStatus = 0 gpio.setup(taster,gpio.IN,pull_up_down=gpio.PUD_UP) matrix = led.matrix() def neue_zahl(channel): ...
[ "samuel@jugend-programmiert.com" ]
samuel@jugend-programmiert.com
74557e0c1abec5628914160e2920d0efd85752c9
57b0ca183f325a06da5aef60b18e7ba03657e623
/alpha.py
a060dbef2004cbd5c8f4ea43a6a0eb553aecff3d
[]
no_license
vickyrr24/guvi
5baa287195c8ce9e1259091f54f1885e3ec2ad83
3fa306d901a76071acb48da7db724ba1725c63af
refs/heads/master
2020-05-28T02:24:05.829944
2019-08-01T09:38:24
2019-08-01T09:38:24
188,852,485
0
1
null
null
null
null
UTF-8
Python
false
false
119
py
ch = input() if((ch >= 'a' and ch <= 'z') or (ch >= 'A' and ch <= 'Z')): print("Alphabet") else: print("No")
[ "51054175+vickyrr24@users.noreply.github.com" ]
51054175+vickyrr24@users.noreply.github.com
484a63b88f96b2ae3a944ccd12b5db00e8411892
89fcda1a024b2b341c2995891fcefc0aa3196c11
/util.py
2513f97b737a64896bbe418f4ea52038f446ef37
[]
no_license
guruzoa/DBPI-BlindSR
e05d018dc0369b2414c5745e6f4ae69c8215a2ed
5c7702cfd34018ea93576755afe1b0bbc67e7fd6
refs/heads/master
2022-12-08T09:43:33.168318
2020-08-31T10:41:46
2020-08-31T10:41:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,710
py
import torch import numpy as np from PIL import Image from scipy.signal import convolve2d def move2cpu(d): """Move data from gpu to cpu""" return d.detach().cpu().float().numpy() def tensor2im(im_t): """Copy the tensor to the cpu & convert to range [0,255]""" im_np = np.clip(np.round((np.transpose(mo...
[ "noreply@github.com" ]
guruzoa.noreply@github.com
81c239cc97dac7e912fc4ac2e31f9fd9697588f7
5dd82b92cef1ff19d5b5a42b4d0388b7456535b0
/zajecia02/del01c.py
6a2d457b786505037a666a8dbb7729c8b89bc5ee
[]
no_license
grzeborz/codeme_pyth_adv
0bd350daf56baf228c6639913ce964b290cee5be
98808d179d6dec8e11ed04d172fd12810469a0ae
refs/heads/master
2023-02-06T13:06:12.915439
2020-03-02T21:15:36
2020-03-02T21:15:36
238,560,637
0
0
null
2023-02-02T05:14:21
2020-02-05T22:23:54
Python
UTF-8
Python
false
false
214
py
class Klass: def __init__(self): print('Nowy obiekt:', self) def __del__(self): print('Usunięto obiekt:', self) if __name__ == '__main__': k1 = Klass() print('Koniec programu')
[ "grzegorz.szyperek@gmail.com" ]
grzegorz.szyperek@gmail.com
5db1fbf5131e9fcb3b1160d38c497df02b701c2d
12a5b72982291ac7c074210afc2c9dfe2c389709
/online_judges/Codeforces/113/A/code.py
6a269bbf442e5a4f164b88db14eb1cdb942cc845
[]
no_license
krantirk/Algorithms-and-code-for-competitive-programming.
9b8c214758024daa246a1203e8f863fc76cfe847
dcf29bf976024a9d1873eadc192ed59d25db968d
refs/heads/master
2020-09-22T08:35:19.352751
2019-05-21T11:56:39
2019-05-21T11:56:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
s = ["lios","liala","etr","etra","initis","inites"] input_string = raw_input().split() answer = True for e in input_string: flag = False for k in s: if e.endswith(k): flag = True if not flag: answer = False break if (answer): print "YES" else: print "NO"
[ "mariannelinharesm@gmail.com" ]
mariannelinharesm@gmail.com
b6d6600a7f6b283bd1bc4668a6c9dba2a2c17779
20a8c6b3a8a2e21a2af58cb13383959352b74976
/models/resnet/resnet18.py
0635a71a6dbf1677a77c74550826bc455261b5d7
[]
no_license
ririverce/neural-network-pipeline
5f4a028f371c3820847ad75fa6b93397fdb3d0ba
13d58c2f4370e239e6781da538c208564a147333
refs/heads/master
2022-10-06T02:53:07.500727
2020-06-01T01:25:07
2020-06-01T01:25:07
235,989,100
0
0
null
null
null
null
UTF-8
Python
false
false
1,904
py
import torch import torch.nn.functional as F from models.resnet.resnet_components import ResidualBlock class ResNet18(torch.nn.Module): def __init__(self, input_channels, num_classes): super(ResNet18, self).__init__() self.input_channels = input_channels if type(num_classes) is list: ...
[ "ririverce@gmail.com" ]
ririverce@gmail.com
89c9f9e46665a2454c9859f9dcb6c2109c28180a
9f571823bbbd3dbd1bbc75b0918c45b0a4d1f2f9
/loss_functions_keras.py
02c8615efc6989c03aefad1b157b86d9846682d9
[]
no_license
woooo95/useful-codes
61bfada92156eeb62ebdc9172d13e1658ff454f0
dc328fb3d929d22afe80264068cd65523ba9febc
refs/heads/main
2023-04-07T09:56:18.872038
2021-04-13T04:55:03
2021-04-13T04:55:03
357,427,448
0
0
null
null
null
null
UTF-8
Python
false
false
3,584
py
import numpy import keras import keras.backend as K #DiceLoss def DiceLoss(targets, inputs, smooth=1e-6): #flatten label and prediction tensors inputs = K.flatten(inputs) targets = K.flatten(targets) intersection = K.sum(K.dot(targets, inputs)) dice = (2*intersection + smooth) / (K.sum(ta...
[ "kswoo3030@korea.ac.kr" ]
kswoo3030@korea.ac.kr
bcc1bcb89bfa3c79f11eb519c8602ae48751272e
69ac330e946e6be0ea58e10b4647cf9771cc28cc
/comments/migrations/0001_initial.py
c21e325499116ca51dc26a9278846a59de3ed60b
[]
no_license
dcbaker1992/YouTube_backend
83a4f2f41b34ce89e57eab8dacbd395041417b89
0f532adc283ebb314838fb9e35787b95246fa823
refs/heads/main
2023-06-04T01:58:32.430652
2021-06-29T17:22:29
2021-06-29T17:22:29
379,698,343
0
1
null
null
null
null
UTF-8
Python
false
false
1,135
py
# Generated by Django 3.1.8 on 2021-06-23 19:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Comment', fields=[ ...
[ "schmidt1519@gmail.com" ]
schmidt1519@gmail.com
5be18446763910fd04a7f72bed150df5e238ae6e
337d3a3cc8d8df90848456227f35c2422ab2df0c
/cmar.py
e38658a66dddc9abf2d12552a935fae78c0bd31e
[]
no_license
rb640/CmarReports
005da6e5369b9385c3a4716a2be662ffbf9d80b4
68e61bb389d78ded62f19580770b008e1f005bcb
refs/heads/master
2021-01-21T11:40:32.752129
2015-07-24T03:47:19
2015-07-24T03:47:19
17,615,415
1
0
null
2014-04-17T01:22:39
2014-03-11T02:09:19
Python
UTF-8
Python
false
false
3,490
py
# -*- coding: utf-8 -*- """ Flaskr ~~~~~~ A microblog example application written as Flask tutorial with Flask and sqlite3. :copyright: (c) 2014 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import os from rpttree import get_logs_list from sqlite3 import dbapi2 as sqlite...
[ "junk@ronbarnard.com" ]
junk@ronbarnard.com
e150154f909cece055f4e8c8dc55d8fe129130e0
931e18f0102882b917f85788ad9094bc2b5ec625
/Python/Django/dojo_ninjas/main/apps/dojo_ninjas/migrations/0001_initial.py
0557ce657151b24c302a5e6cf7392b52cdbb0ff4
[]
no_license
jaechoi15/CodingDojoAssignments
5008591e36989332493197ed3b5ca3525877ecdd
ce44710722cb6f17c888b2f29d8243fb8862ce86
refs/heads/master
2021-05-05T15:33:10.022211
2018-06-10T03:39:43
2018-06-10T03:39:43
108,343,247
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-03-16 14:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Dojo'...
[ "jchoi625@gmail.com" ]
jchoi625@gmail.com
653c6ee77e55fe39bf26522d6e3e04161daa0ce3
022104aa2456429356bdd26c701a2949381a83cf
/install/lib/python2.7/dist-packages/robotnik_msgs/msg/_SetElevatorFeedback.py
fe9731c70b42e53a2afd11197435c3aea3f8e08d
[]
no_license
nachocz/campero_ws
204f313d5fbdb81d1f7cc568341a1170ddd2b4cf
f2b09f96165166c0e867e3f5f3dcd092dbac1c1b
refs/heads/master
2023-02-02T03:25:56.603172
2020-12-11T11:28:42
2020-12-11T11:28:42
320,539,897
0
0
null
null
null
null
UTF-8
Python
false
false
6,506
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from robotnik_msgs/SetElevatorFeedback.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import robotnik_msgs.msg class SetElevatorFeedback(genpy.Message): ...
[ "nachocz@gmail.com" ]
nachocz@gmail.com
5b53a36bee2036572206bbee9f1c7c467f6c0d83
bc1b6df82b2d5897549399363f95ef4d05c9ac54
/18B09784-04-06_a.py
0ff99eda559d47b568b19743e8a98cafa162df08
[]
no_license
Tananan-Jee/exp_ict_34
45945a11341c9a1b859693456d61f7aa21df979c
f582bd48c9c4532a41da7026b6e5c0046d2fa5ec
refs/heads/master
2021-05-19T05:57:01.350274
2020-03-31T09:27:16
2020-03-31T09:27:16
251,556,749
0
0
null
null
null
null
UTF-8
Python
false
false
3,336
py
# -*- coding: utf-8 -*- #プログラミング言語:Python version 3.8.0 #コンパイル方法:python3 18B09784-04-06_a.py #実行方法:ターミナル上で python3 18B09784-04-06_a.py を実行 import math import numpy as np def print_array(array): for i in range(len(array)): print(''.join(map(str,array[i]))) def add(array1,array2): array='' x='' ...
[ "noreply@github.com" ]
Tananan-Jee.noreply@github.com
13df03b871310d1372d8dcd906428643b3748f60
482de18083520953c95120a9c421a8a08c0e5aee
/lib/common/wdr/task.py
629f7b73d8fc481bf0d37058e655e9e5522115f2
[ "Apache-2.0" ]
permissive
WDR/WDR
9cbb7ef28e922db83849663fcc5cb9a8c1523b52
5e2576cbff2675f7338e31abd673cd761eeb802b
refs/heads/master
2021-07-08T23:41:39.598603
2021-04-01T20:24:40
2021-04-01T20:24:40
4,683,359
32
28
NOASSERTION
2021-04-01T20:13:17
2012-06-16T08:46:16
Python
UTF-8
Python
false
false
1,436
py
import logging import re import wdr ( AdminApp, AdminConfig, AdminControl, AdminTask, Help ) = wdr.WsadminObjects().getObjects() logger = logging.getLogger('wdr.task') _listPattern = re.compile(r'\[(.*)\]') _itemPattern = re.compile( r'(?<=\[)' r'(?P<key>\S+)' r'\s+' r'(?:' + ( r'' ...
[ "mplonka@gmail.com" ]
mplonka@gmail.com
65d840aff58fbb8be0d0880fe19a3af7eccfdc7a
9e57a2776dc5b91d29eb3c5370934c3ef5cb1e74
/sudukoSOLVER/newBoard.py
608dd885df36355a48643300ad96b79cd16350a2
[]
no_license
steffanp98/Freelance
38e42d7ade9051d215e417d170bf410df45a41b4
bf49597a2329d781ca681f1976f19c2578cde515
refs/heads/main
2023-07-13T00:47:37.336942
2021-08-05T23:29:48
2021-08-05T23:29:48
393,140,478
0
0
null
null
null
null
UTF-8
Python
false
false
1,263
py
class board(object): def __init__(self,board_file): self.board = self.__create_board(board_file) def __create_board(self,board_file): #create the matrix data struct for the board board = [] #iterate over each line of the matrix for line in board_file: line = l...
[ "steffan.phillips@hotmail.com" ]
steffan.phillips@hotmail.com
2ffa0b789fd7bedb02f8cc8683ee87eb0cdbb113
1bf9f6b0ef85b6ccad8cb029703f89039f74cedc
/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_agent_pool_operations.py
3f303bb5a4713c0abb643d1787ec91d545c4e585
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
VSChina/azure-cli-extensions
a1f4bf2ea4dc1b507618617e299263ad45213add
10b7bfef62cb080c74b1d59aadc4286bd9406841
refs/heads/master
2022-11-14T03:40:26.009692
2022-11-09T01:09:53
2022-11-09T01:09:53
199,810,654
4
2
MIT
2020-07-13T05:51:27
2019-07-31T08:10:50
Python
UTF-8
Python
false
false
22,671
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
VSChina.noreply@github.com
fe127ffd20fb046fece7f6a04ab6c4c45564fef9
8b9e8ea570070db4b9b7e75c1b818d4518aff81a
/main.py
fdf8710a5bf752e72b0b345efef59359146afbd2
[]
no_license
cygong/lstm_simple_sinus
eb6db1449946c567b044b4a890a555a03f1ceac3
2e9cb32317acf8afe00663b2ed9b35f1f4107542
refs/heads/main
2023-03-27T09:21:05.473240
2021-03-29T03:26:11
2021-03-29T03:26:11
352,504,474
0
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
from model import * from generate_data import * from torch.utils.data import DataLoader import matplotlib.pyplot as plt def main(): # generate_data dataset_train,dataset_test = generate_data() #neural network model = neural_network() train(model,dataset_train) test(model,dataset_test...
[ "noreply@github.com" ]
cygong.noreply@github.com
93bf069315275af00c1b6b2ba64ba2d59d2877ca
201e9473ee35b00b7fffe9e59724b3c98c986add
/utils.py
aa001cbad72eec8289ec16376c3850c627f6cb63
[]
no_license
Harshp1802/pos_negation
810e1bb1ca11c033efb2ea2eaa00475ea9c0a699
b74f58e531c9591f59193674e86e211b9b15bac2
refs/heads/master
2023-06-27T01:20:31.366975
2021-06-19T17:34:12
2021-06-19T17:34:12
371,942,316
0
0
null
null
null
null
UTF-8
Python
false
false
3,748
py
from sklearn.metrics import f1_score import torch # def create_vocab(training_sentences, training_POS): # words, tags = set([]), set([]) # for s in training_sentences: # for w in s: # words.add(w.lower()) # for ts in training_POS: # for t in ts: # tags.add(t) # ...
[ "45335740+Harshp1802@users.noreply.github.com" ]
45335740+Harshp1802@users.noreply.github.com
aa5e3ad78d8d478ac37adf19c49d550439526cd0
9f177297a490a3b2604bda027eac87deccb22ade
/convert_html.py
1dbc9e39c4657d4ad6e8d32f3cfbfc71b3cdf869
[]
no_license
lin826/Janet
a27cdd5043f18b53911fdec4a3d6fe1613c0b5d1
cbb59cdeddb57bad44d57060dfd4bd402f0fd9df
refs/heads/master
2021-12-14T16:45:40.745307
2021-12-13T05:00:06
2021-12-13T05:00:06
88,283,857
0
0
null
null
null
null
UTF-8
Python
false
false
1,037
py
INPUT_TXT = 'data/doc_origin.docx.txt' OUTPUT_HTML = 'test.html' str_rating = "<div class='ui huge star rating'></div>" str_solved = "<button class='ui primary button'>Solved</button>" full_page = "" def write_content(): global full_page with open(INPUT_TXT,'r') as file: c = file.readline() ...
[ "liniju826@gmail.com" ]
liniju826@gmail.com
0271411a63fff75c6ccceb030d69175bd3075563
cbf9f600374d7510988632d7dba145c8ff0cd1f0
/abc/207/a.py
ab70569c2994dfed4061f58d6ae22f8216cea250
[]
no_license
sakakazu2468/AtCoder_py
d0945d03ad562474e40e413abcec39ded61e6855
34bdf39ee9647e7aee17e48c928ce5288a1bfaa5
refs/heads/master
2022-04-27T18:32:28.825004
2022-04-21T07:27:00
2022-04-21T07:27:00
225,844,364
0
0
null
null
null
null
UTF-8
Python
false
false
62
py
a, b, c = map(int, input().split()) print(max(a+b, b+c, c+a))
[ "sakakazu2468@icloud.com" ]
sakakazu2468@icloud.com
f4daf147759bbfcfded6daaf2aec856edc7bed2d
1d9706595c9d2a18c7de072804f8e566eef219fd
/utils/base_utils.py
6aef92b19c7a6b3ae354e538d74f1f067725f6a2
[]
no_license
bimo12138/tornado_demo
506e19337b918d7644b218303d2c5a51efe629ea
bc5fe2f44e5cf1a78a1b6faf1161e1410c948dd3
refs/heads/master
2022-11-15T08:44:12.000690
2020-07-18T05:15:30
2020-07-18T05:15:30
280,369,359
0
0
null
null
null
null
UTF-8
Python
false
false
4,659
py
""" @author: 13716 @date-time: 2019/7/1-19:17 @ide: PyCharm @name: base_utils.py """ import hashlib import uuid from model.models import Students, Teachers import time import base64 import time import hmac def hashed(text): return hashlib.md5(text.encode()).hexdigest() class GetUuid(object...
[ "1371639183@qq.com" ]
1371639183@qq.com
c43e8a88c499ba3fea713b72bb54b40182ee466a
44ee0d902a9cd7d321e4ed7c0962ef9ffb978e10
/tile_editor.py
a930432d2c4ff789009cb1a9b9e3a338b0b081a1
[]
no_license
aashishthy/Tile_editor
f085238fdb2e63bbf5d83d686185af99faf6627c
d177c1fecdeb8055f4a607236f738de2a3af29db
refs/heads/master
2020-03-06T21:04:55.846952
2018-03-28T02:08:52
2018-03-28T02:08:52
127,069,664
0
0
null
null
null
null
UTF-8
Python
false
false
15,911
py
""" Following are the modules used for creating the tile editor """ import pygame import PIL.Image from tkinter.filedialog import askopenfilename from tkinter.filedialog import asksaveasfilename from tkinter import messagebox from tkinter import * import os import glob from shutil import copy from te_constants import ...
[ "aashish.thyagarajan@gmail.com" ]
aashish.thyagarajan@gmail.com
6293b1c33585bb63fb13582f05d372a5eb3c69d1
84137a5667299b375dc1a3fc70ac339a70559e1f
/simulation.py
40356f9c6c0eb348b28468cfe1d62686984c2983
[]
no_license
Sabotaz/hypersonic
3c150b411243acf0f5a718449de65a905ee8a31a
906fa55d75246667b704ca7bb5e3e5088f38ecfa
refs/heads/master
2021-01-24T08:46:40.932841
2017-06-06T14:32:29
2017-06-06T14:32:29
93,395,784
1
0
null
null
null
null
UTF-8
Python
false
false
1,259
py
import config import functools import utils import random def simulate_turn(game): game.next_turn() actions = [choose_action(game,pid) for pid in range(config.NB_JOUEURS)] my_action = None for action in actions: if action.pid == config.MY_ID: my_action = action game.apply_a...
[ "sablier@zendikar.fr" ]
sablier@zendikar.fr
ae2d9e4f8d5f960e48a22b646f462eb9b28643a7
709d9a545802b9ab36d0969dcd066e23ee6afd50
/bounds.py
3c7c3df93eb493d2a1ae9249b9dce6e68be54bf6
[]
no_license
yang0110/graph_signal_processing
65d1cafd7967b1949c140c51818680c592631300
9639e4da9c1f7ff31465b757e18d5d2397cfd4d2
refs/heads/master
2020-04-04T19:39:17.905570
2019-01-17T18:47:24
2019-01-17T18:47:24
156,214,993
1
1
null
null
null
null
UTF-8
Python
false
false
4,862
py
import numpy as np import matplotlib.pyplot as plt from sklearn.metrics.pairwise import rbf_kernel from sklearn.preprocessing import Normalizer from scipy.sparse import csgraph import scipy import os os.chdir('Documents/research/code/') import datetime import networkx as nx from bandit_models import LinUCB, Graph_r...
[ "noreply@github.com" ]
yang0110.noreply@github.com
737afb20142aa4df6664eaa1655c26902c8de00b
81d220b8e45ad167e283ffda2feefd2bfb7fb1a4
/manage.py
3bbd89d416b4caa1e11790a9cd19b787f3cc6229
[]
no_license
danieljcs/pira_truths
c57333f9b116f0f387ee0cc45e633fca13a8b5b3
f9d9c51335a5d01ed5f0bafad5a614c14049d60b
refs/heads/main
2023-01-13T16:32:32.814092
2020-11-18T12:53:21
2020-11-18T12:53:21
313,933,295
0
1
null
null
null
null
UTF-8
Python
false
false
667
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pira_truths.settings') try: from django.core.management import execute_from_command_line except ...
[ "50522425+danieljcs@users.noreply.github.com" ]
50522425+danieljcs@users.noreply.github.com
bef36379784dfd5d27c3748d08a7c9263568ac69
8b3047774c7cb24d3cec4cd38321558863ccec4d
/training-set/train_frame.py
693177ae4fb6653134f4ae6d9ad443880063a85a
[]
no_license
aman-jakkani/636-Final-Model
e1b47979f102d37ae9f2996861ee1861fbf049de
fa003571e0a2df0d58e0ba554b19263ce17026e4
refs/heads/master
2022-06-06T03:16:58.675226
2020-05-01T21:16:02
2020-05-01T21:16:02
260,517,772
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
#framer program # # all imports import cv2 import math frame_count = 0 videoFiles = ['gettinginto_1.mp4', 'gettinginto_2.mp4', 'gettingout_1.mp4', 'gettingout_2.mp4', 'gettinginto_3.mp4', 'neither_1.mp4', 'gettingout_3.mp4', 'gettingout_4.mp4', 'gettinginto_4.mp4', 'gettinginto_5.mp4'] for each in videoFile...
[ "aj280598@gmail.com" ]
aj280598@gmail.com
a67d6079a5eec64bc07497534737ee8ef949dd51
3ab1f37b4372d0796c85ef24343dd8c03accb6ef
/CoinBase/ConnectFour.py
aa65bc2e3204e93c5a8b26877efbaf25d28eb2c3
[]
no_license
Blossomyyh/leetcode
2be6a99534801fc59fe9551317ca49c3704b1c3d
38615779eb43d147587467e11dc22761ac0726cb
refs/heads/master
2023-01-22T16:56:26.624677
2020-11-20T13:47:43
2020-11-20T13:47:43
266,845,278
2
1
null
null
null
null
UTF-8
Python
false
false
3,135
py
""" Connect 4 use get column and line and diagonals to find wins 4 ->wins https://codereview.stackexchange.com/questions/225840/a-simple-connect-4-game-in-python https://github.com/KeithGalli/Connect4-Python/blob/master/connect4.py Better solution: focus on the current move's row and col! to check wins """ TEAM1 = ...
[ "blossomyyh@163.com" ]
blossomyyh@163.com
5f2abcf4f52ffd5536b61da41e9a77fe6fcd0b3a
2560d2678456d6d2efb889fb4ddde6aedb772a6a
/601IntroToEEAndCSI/solutions/python_tutorial/section7/712worksheet.py
b2a259220f6fac92c926ae6f82eebf4a6250b9c4
[]
no_license
GolfyMcG/MIT_Classes
2b53896fc8fd9ebc593a56f0a614adb994734fde
367e75f7638a377b8035ad1b6e064892b3a276cf
refs/heads/master
2021-01-01T15:29:42.719979
2014-07-22T04:43:26
2014-07-22T04:43:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
742
py
import sys import os.path sys.path.append(os.path.join(os.path.dirname(__file__), '../modules/')) import checkers n = 0 def emptyAlist(): return [] def addEntry(al, k, v): al.append([k, v]) def lookup(al, k): #return (pair for pair in al if pair[0] == k) for pair in al: if pair[0] == k: return pai...
[ "avilla0429@gmail.com" ]
avilla0429@gmail.com
f57152994f9ef694ce26e8b9cde3dd48fc02ec45
48df8729bc22f7f5560e2a19504e9d949818e8c9
/urlform/forms.py
68fbb69e2d08a672581f040146bdcd243260f0b4
[]
no_license
njdevil/shorten-url
27bb3e3b0dcde9a29ae32c51a284b92d770b53b5
c22a0972c80f31a04a774e7046621f0669c0e785
refs/heads/master
2021-01-01T19:35:12.280228
2013-11-07T08:03:08
2013-11-07T08:03:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
from django import forms from ****.urlform.models import ShortLinks class ShortLinksForm(forms.ModelForm): class Meta: model = ShortLinks fields = ('long_url',)
[ "root@mpsclient.info" ]
root@mpsclient.info
c0573c684911278d9ca87fad422d50b5649709c8
095f35858f26e1b1f456f5462512b1b42c6419da
/venv/Part2/XML_1.py
ff3178520e3011bec73c0af64ca96de4dd2d2d96
[]
no_license
rheehot/DataBaseWithPython
9aa456880beea8195b8691854f2cf23f145f142d
1261223a4b64ae8925ec0bc4cfbb7fc5138a302f
refs/heads/master
2023-01-07T21:06:09.750691
2020-11-15T13:44:29
2020-11-15T13:44:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,151
py
# 메모리에서 XML의 XDM 트리 처리하기 import xml.etree.ElementTree as ET # 파이썬 객체를 메모리에 로딩하여, XML 스트링 (XDM 트리)로 변환. newDict = { 'PLAYER' : [ {'PLAYER_ID': '2007001', 'PLAYER_NAME': '정병지', 'TEAM_ID': 'K03', 'E_PLAYER_NAME': 'JOENG, BYUNGJI', 'NICKNAME': None, 'JOIN_YYYY': '2011', 'POSITION': 'GK', 'BACK_NO': 1...
[ "9h0jun1115@gmail.com" ]
9h0jun1115@gmail.com
339700e4ddf899c0336dd7012c4c6385c8eb3cbb
9716a77ef1d0ba5ef9a61be04f6229494744d5d5
/chapter06 정렬/위에서 아래로.py
158d19ce05bdd45aaedf7a1c03c28402fb6a8ac5
[]
no_license
korea-space-codingmonster/Algorithm_Study
98b00c81839cf8ac8365d3982c25650a21226ce9
8c92857e458994a2d1d77dc3ea0d4b645b8b6a4b
refs/heads/main
2023-06-03T20:00:52.915447
2021-06-20T05:51:47
2021-06-20T05:51:47
329,354,196
0
0
null
null
null
null
UTF-8
Python
false
false
712
py
# 하나의 주열에는 다양한 수가 존재한다. 이러한 수의 크기에 상관없이 나열되어 있다. # 이 수를 큰 수부터 작은 수의 순서로 정렬해야한다. 수열을 내림차순으로 정렬하는 프로그램을 만드시오. # 입력조건 # 첫째 줄에 수열에 속해 있는 수의 개수 N이 주어진다.(1 < N <= 500) # 둘째 줄부터 N + 1번째 줄까지 N개의 수가 입려된다. 수의 범위는 1이상 100000이하의 자연수이다. # 입력예시 # 3 # 15 # 27 # 12 # 출력예시 # 27 15 12 n = int(input()) array = [] for i in range(n)...
[ "replituser@example.com" ]
replituser@example.com
88702a2b262efec4b9998b739edd2a203fb96bf5
3930ffcf78a3a80b53fc47317cddce79f416d1d8
/bsconsulting.py
c580eee8d1ed1bc6211f8767a3f0df8715c0be62
[]
no_license
r3ap3rpy/bogusconsultation
4986328b3f6d77ec0499fb9eb58dcee559672dfb
5a44f5ba1f2af40a6de17e8e23e0d2df9beb3cba
refs/heads/master
2022-11-24T09:09:54.001725
2020-07-28T15:19:53
2020-07-28T15:19:53
283,228,947
0
0
null
null
null
null
UTF-8
Python
false
false
6,229
py
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.keys import Keys from queue import Queue import os import itertools import argparse import requests import threading if not os.sys.platform == "win32": raise SystemExit("This script can only run ...
[ "dszabo@itron.com" ]
dszabo@itron.com
a0414e6d33697862f9e5277510df817eb85fe440
69ff402d57d7d9605430aeeef30383ca83e7bfb1
/neurone_with_lib/exo2.py
3e54e90e797fec628d750fc40d80f75f55aab18a
[ "Apache-2.0" ]
permissive
yann-nshare/AI_project
5ee29f13b0472b8abb179e27338623c6c0d11e44
b3af8fa0bb0bd561c730f871dfdb3b8165f546de
refs/heads/master
2021-01-09T03:43:49.637587
2020-02-21T22:04:38
2020-02-21T22:04:38
242,234,776
0
0
null
null
null
null
UTF-8
Python
false
false
2,237
py
# import standard PyTorch modules import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.tensorboard import SummaryWriter # TensorBoard support import torchvision import torchvision.transforms as transforms from torch.autogra import Variable from torch.utils.data...
[ "yann.nshare@epitech.eu" ]
yann.nshare@epitech.eu
56337b1337e5899c09e974e19288f2cdc899dc73
eb94bccbcc8d2244843dde59d201850870ef29ca
/datahub_lib/swagger_client/models/role_assignment_request.py
d57b16e3d72f647de2aff3f2b4762c479931ea5c
[]
no_license
sunasing/noaa_docker
d7e2000d1cfc91123d74f0c95f8efe2c7eda8c12
7d9e05686463a6cd8d39313af9496a06bdf00367
refs/heads/master
2020-12-27T14:44:18.967963
2020-02-03T06:50:52
2020-02-03T06:50:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,051
py
# coding: utf-8 """ Azure FarmBeats API <p> <p>Azure FarmBeats helps you build digital agricultural solutions in Azure. By providing a standardized schema to query agricultural data from various sources, Azure FarmBeats provides you: <ul > <li style=\"margin: 7px;\">Ability to acquire, aggregate, process ...
[ "abmallic@microsoft.com" ]
abmallic@microsoft.com
677a797647835a828b4b94df32fc98c68f9440dc
f1c19ef6da5367209045cb4f39727251f7ebdf15
/constants/card.py
4863843ae4309e89dfd52c0bd21163357bf41e2a
[]
no_license
mw4n6/autobots_go_fish
3b7a73763042ab3fba46e6458d88e87182ecb33d
75e3b30882f9411c8c9e986553f8c005101caed0
refs/heads/master
2022-12-15T15:42:36.374044
2020-09-12T00:17:30
2020-09-12T00:17:30
292,422,860
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
SUITS = [ 'Clubs', 'Spades', 'Hearts', 'Diamonds']; RANKS = [ 'A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K' ];
[ "michael.wang08@gmail.com" ]
michael.wang08@gmail.com
3e5a6e3f8242994e087853773022b3c4f8b1d9b8
7d2ae7cd571a0ea99c98e0c10abfbc04c439bccf
/Bank_system/urls.py
17dd850bd34febcc67f7d9b3c99baaa575d47edb
[]
no_license
dhruvk112/dhruvk112.github.io
587ca5e9167078532c0cd48298ad9acf114a7d74
2d5c401cdba06f5ba39c809e37199a7c98279ce0
refs/heads/main
2022-12-25T07:33:45.048943
2020-10-10T17:23:47
2020-10-10T17:23:47
302,153,452
0
0
null
null
null
null
UTF-8
Python
false
false
908
py
"""Bank_system 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-b...
[ "dhruvkandpal13@gmail.com" ]
dhruvkandpal13@gmail.com
0eb8c05f44ce6192a839496e20dd39bbaf464182
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_RelativeDifference/trend_Lag1Trend/cycle_5/ar_/test_artificial_1024_RelativeDifference_Lag1Trend_5__100.py
f07285216a3cc7ff2114694287b967c65119eace
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
275
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "RelativeDifference", sigma = 0.0, exog_count = 100, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
4523e952a55597f9698342a2cd3e2d65f8a2c12a
4b581371a8429b8f9f6f2ee4c6905b624679102d
/fall/18_db-nmcrnch/db_builder.py
fceba6c26cf8dfbdbe36d78e6bdca261837cd73f
[]
no_license
jjshawshaw/SoftDev_Work
9474ac2c37c4695c17d671e0abfa48b0547b4ae8
2d997f44a7688e8b2ae42c093d21904bc9578a91
refs/heads/master
2020-07-23T12:12:04.199127
2020-04-22T03:50:12
2020-04-22T03:50:12
207,552,505
0
0
null
null
null
null
UTF-8
Python
false
false
1,329
py
#Justin Shaw #SoftDev1 pd1 #K17 -- No Trouble #2019-10-10 import sqlite3 #enable control of an sqlite database import csv #facilitate CSV I/O DB_FILE="discobandit.db" db = sqlite3.connect(DB_FILE) #open if file exists, otherwise create c = db.cursor() #facilitate db ops #======================...
[ "jshaw00@stuy.edu" ]
jshaw00@stuy.edu
cf5db8547d4d1246066b14aa9ec4eeec1d1d642b
ae5268cec244d19a10094a0c1cbe6df64c21978e
/kvadratická rovnica.py
59a05fc1d93a3c82d92041fc74229ddc6e68fb75
[]
no_license
Zochova/kvadraticka-rovnica-NikolasCibula
65def02bbcf5fbb9ee0edb67781131b6eff99eea
fe3b1abd8503d94596e89e3606d853ca41c83b68
refs/heads/main
2023-08-23T07:13:23.301418
2021-09-28T07:31:36
2021-09-28T07:31:36
411,171,376
0
0
null
2021-09-28T07:00:50
2021-09-28T07:00:45
null
UTF-8
Python
false
false
264
py
a=int(input('Zadajte číslo pre a=')) b=int(input('Zadajte číslo pre b=')) c=int(input('Zadajte číslo pre c=')) #d=> diskriminant d=b*b-4*a*c if 0 > d: print('Rovnica má 0 riešení') else: x1=((-b)+sqrt(d)/(2*a)) x2=((-b)-sqrt(d)/(2*a))
[ "noreply@github.com" ]
Zochova.noreply@github.com
24b6342cfd9d6f470842e7b811d8251cdbf6b932
c85a6d674679780ee510b5c8c3dbcbdecc859f64
/test/test_alert_config.py
b935b925e2b7e72d3f4f6959ec9d5a61a7aa6c8d
[]
no_license
cbrowet-axway/APIM_sdk
d4f4a124e86a7b2e65d0ef07b54c68e95de68337
4f82df67ebe3dd6eae645bab8f86e72c0347ee24
refs/heads/master
2020-05-25T13:22:35.802350
2020-04-16T09:25:21
2020-04-16T09:25:21
187,820,389
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
# coding: utf-8 """ API Manager API v1.3 No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.3.0 Contact: support@axway.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future_...
[ "cbro@semperpax.com" ]
cbro@semperpax.com
bde0ecd51b6b0fbaa4ff999ec4a52d29de106ae1
7a3d8ad6ff5cf0862392a8d62dfba3285891ae62
/Scrapy/data_scraping/data_scraping/pipelines.py
036e591ef20e230f4146c05ff767a64557503698
[ "MIT" ]
permissive
jonatascs/labdata-tcc
de112d9620e013294721ae9267f95e0df35f4bc1
bb15d988f41ae15754ae4c76bc0c438dc4c7a2f9
refs/heads/master
2022-12-14T18:16:14.770493
2020-09-21T13:13:54
2020-09-21T13:13:54
295,526,211
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html class DataScrapingPipeline(object): def process_item(self, item, spider): return item
[ "noreply@github.com" ]
jonatascs.noreply@github.com
d96ed2ce95e6d3184151b1539a6f3a0eb664c89b
75d8667735782cd1d0eb4877e52c89da5cd92dde
/nova/api/openstack/compute/floating_ips_bulk.py
3107887da5317d24b2fbdb3186c0eec49b39a49a
[ "Apache-2.0" ]
permissive
bopopescu/nova-token
ffecfd3ec561936b7d9d7e691bc57383cde05436
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
refs/heads/master
2022-11-22T09:53:31.073483
2016-05-14T02:47:01
2016-05-15T22:02:55
282,105,621
0
0
Apache-2.0
2020-07-24T02:42:19
2020-07-24T02:42:18
null
UTF-8
Python
false
false
13,677
py
begin_unit comment|'# Copyright 2012 IBM Corp.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy of the License at' nl|'\n' commen...
[ "dmg@uvic.ca" ]
dmg@uvic.ca
0d512e3aeaa270f706df8a5e3db7f4ca01e7a2fa
64be1c4b09ef228d73a50523674c66cda10e366e
/oop/inheritance_example2.py
7116a421adb841baf465aa48c330b21166a40be2
[]
no_license
nkirkpatrick/google-python-crash-course
b18191bd36b687073424ca28d82aad2e7df4f25e
c57f06ffd9759084e823261322b6c0b993a87197
refs/heads/master
2022-11-13T20:54:52.522996
2020-07-06T00:54:32
2020-07-06T00:54:32
264,575,266
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
class Animal: sound = "" def __init__(self, name): self.name = name def speak(self): print("{sound} I'm {name}! {sound}".format(name=self.name, sound=self.sound)) class Piglet(Animal): sound = "Oink!" hamlet = Piglet("Hamlet") hamlet.speak() class Cow(Animal): sound = "Mooooo" mi...
[ "norbertkirkpatrick@macbook-pro.lan" ]
norbertkirkpatrick@macbook-pro.lan
26a2f122cb7b9221175cb1153bca90f9d6bd1f86
363fe3dafdbedbb8346b0c38e58f483fec165d13
/dataFiles/SinglePulse.py
e517cb460451b3a01a58d744a6dc7e93b9ab6efc
[]
no_license
rossjjennings/REU-pulsar
53598d23f2f2e2dbfd8025cec8bee53124ec8673
4ad8c8fd1cc6e093af18c49eb0ecca9ad1f3ae57
refs/heads/master
2023-06-06T21:30:14.369858
2021-07-08T00:04:50
2021-07-08T00:04:50
276,169,029
1
1
null
null
null
null
UTF-8
Python
false
false
6,422
py
''' Michael Lam Last updated: 12/31/2013 Define interpulse alignment as putting the peak value at len/4. Interpulse will be roughly at 3*len/4 Need to handle what to do if no opw for offpulse noise, etc. Figure out way to add/average SPs. ''' from __future__ import division, print_function from matplotlib.pyplot i...
[ "rossjjennings@gmail.com" ]
rossjjennings@gmail.com
f12c7e78f6cc76322a20f97f04b8731c60d73ac0
5474905a26e356fe2742e62567718173b81b616d
/templates/python.flask/{{cookiecutter.project_safe_name}}/test/test_demo.py
52e109dcd4a6b06c2716df9480549aeac5797cf5
[ "MIT" ]
permissive
by46/recipe
16dd24a8a83f2a00beab84c5b6522c0bff073233
203abd2141a536b66b4e57d073169a49395be1f0
refs/heads/master
2020-04-13T22:41:27.865516
2016-09-09T10:09:20
2016-09-09T10:09:20
65,368,302
0
0
null
null
null
null
UTF-8
Python
false
false
746
py
import unittest import app from app import create_app class HelloWorldTestCase(unittest.TestCase): def setUp(self): self.client = create_app('test').test_client() def test_hello_world(self): response = self.client.get('/{{cookiecutter.project_slug}}', follow_redirects=True) ...
[ "ycs_ctbu_2010@126.com" ]
ycs_ctbu_2010@126.com
cc2a1c27b48d6d2b129e924104a057d843445b3a
31de01be3f4bb6b94aff79e098ccb15f7e939597
/WOL PXE Project/WOL-PXE/WOL-BF/impacket-0.9.12/build/lib/impacket/cdp.py
5958d6e4471be6e1211a20b36ca2e1d41d7048a4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "Apache-1.1", "BSD-2-Clause" ]
permissive
gregesposito/EspoScripts
0c3e540767a2459bc4b625c00ae3034b6ad8ed27
22cb11423d5168367a9aa078cab4dd5c68a858c2
refs/heads/master
2021-01-25T08:48:07.949199
2015-07-06T17:05:55
2015-07-06T17:05:55
38,629,342
1
1
null
null
null
null
UTF-8
Python
false
false
13,594
py
# Copyright (c) 2003-2012 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # $Id: cdp.py 529 2012-04-29 21:39:46Z bethus@gmail.com $ # # Description: # Cisco Discovery Protoco...
[ "gregesposito@mac.com" ]
gregesposito@mac.com
4dca51173e60182e6e60683a2886289259f51398
4f07d4f41e4692b89a81b88ec0b56cd45dfb3121
/week 2/day 3/A/A.py
2c01ab0c2c4ef08938141a37c1d2141f18eb8f37
[]
no_license
Beisenbek/PP2Summer2020
594f1fe8bda7fbdaec1beeb880dad1fb949f469a
3b9b947601aaee4efb9424c0c6fbf1d6a665cfc1
refs/heads/master
2022-11-11T21:06:55.330860
2020-07-09T14:12:42
2020-07-09T14:12:42
271,017,160
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
def numberOfDigits(n): res = 0 while(True): res = res + 1 n = n // 10 if n == 0: break return res def firstDigit(n, k): x = pow(10, k - 1) return n // x n = int(input()) k = numberOfDigits(n) res = True leadingZero = False for i in range(0, k // 2): a = numberOfDigits(...
[ "bbaisakov@dar.kz" ]
bbaisakov@dar.kz
0af2519c0df633db3f643a4c658518190f0a2164
f8e65ae20ca2f7c7f143eaf4e6e6061ddf3b4807
/leapsec_test.py
e39e4798cfb376329bd1dff5aab5c1b6a94dbeea
[]
no_license
Gerenjie/Centaur-Model
af59e6810b9b8132ecb060f1dffe28bad2b15dc7
465d5dab5c9233229e68cf31e861c665c0bd4553
refs/heads/master
2020-07-22T10:48:50.467503
2019-09-12T00:37:52
2019-09-12T00:37:52
207,173,259
1
0
null
null
null
null
UTF-8
Python
false
false
328
py
from obs80 import leapsec import novas.compat as novas def test_leap(): """example from leap-seconds.list""" l = leapsec.LeapSeconds() jd9 = novas.julian_date(1972, 6, 30, 23 + (3599. / 3600)) assert l.getLeapSeconds(jd9) == 10 jd0 = novas.julian_date(1972, 7, 1, 0) assert l.getLeapSeconds(jd0...
[ "noreply@github.com" ]
Gerenjie.noreply@github.com
a6d5ec1887858dde34ae03c2bd2f11d3e85e9e80
07657cee40a89c8a12fb10bcbeca89ae381aedbb
/apps/experiment/adminx.py
15bbe23353b9423e9debbe15d3e6e6aab7284f9a
[]
no_license
my-master-yang/xiong
aad07a5d9953e2dc57662678ae0117fa3721b701
38e928c8857ae07427d87f5dc854809d68717324
refs/heads/master
2018-10-29T23:11:15.312313
2018-08-13T01:29:41
2018-08-13T01:29:41
113,152,387
2
0
null
null
null
null
UTF-8
Python
false
false
799
py
# _*_ encoding:utf-8 _*_ __author__ = "kusole" __date__ = "17-12-7 下午1:39" import xadmin from .models import LabCategory, Lab class LabCategoryAdmin(object): list_display = ['name', 'desc', 'add_time'] search_fields = ['name', 'desc'] list_filter = ['name', 'desc', 'add_time'] class LabAdmin(object): ...
[ "3079362259@qq.com" ]
3079362259@qq.com
192c834c943d4e4dfafb959d91354a48dc2b1af8
63df3647761f94d0937f5d14f02b916eb2208eb4
/blogapp/migrations/0001_initial.py
ddba767d5506a6f31428c05822c1a0eb15d39aaa
[]
no_license
alidabour/DokkanzBlog
6a05098b5cbdb63381b595c6315e9ab28cba514f
d9220a183a173a117fb1975200bcf011dbbc2999
refs/heads/master
2021-05-06T06:23:12.572283
2017-12-11T22:28:41
2017-12-11T22:28:41
113,913,191
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
# Generated by Django 2.0 on 2017-12-10 10:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
[ "alidabour0@gmail.com" ]
alidabour0@gmail.com
9106c5d1a7b95165084dd263e4a7421c8030d12e
e95eeb123f3772da8d2dc7677e7afdc1287f1276
/bot.py
a1f32743e20491dec9bd1bd4b5ce00cf5bfb409e
[ "MIT" ]
permissive
jayrav13/presidency
3cf880bf51d211f8fb21d5c4bc564f22c2a8ae4f
f18721d5df9af161cc01f503b6657d9b06fea0e9
refs/heads/master
2022-09-29T22:53:40.867506
2017-03-03T18:57:04
2017-03-03T18:57:04
72,818,604
15
2
MIT
2022-09-16T17:46:42
2016-11-04T05:56:54
Python
UTF-8
Python
false
false
5,501
py
""" Imports """ from presidency.models import * from lxml import html import requests import json import datetime from twython import Twython import os import time import sys """ Set UTF-8 for everything. """ reload(sys) sys.setdefaultencoding("utf-8") # Establish Base URL. base_url = os.environ.get('WHITE_HOUSE_URL'...
[ "jayrav13@gmail.com" ]
jayrav13@gmail.com
7c3c653ac29e14cec2d578ecf6c2370af6effa9a
05e796c29226573944b01c927a5469ccef60d9f8
/proj/local_settings.py
d8020b7a76f040819500c0ca6f8e78076a8371b7
[ "MIT" ]
permissive
jbnerd/Anc_Portal
4cb2065a27d263d1866c523b41da394368d0f085
92f3a6c57f76da1bdd0f511a3d8edfb61cfcc4ce
refs/heads/master
2021-01-21T23:28:42.304389
2017-08-05T11:48:12
2017-08-05T11:48:12
95,243,478
3
0
null
null
null
null
UTF-8
Python
false
false
6,060
py
""" Django settings for proj project. Generated by 'django-admin startproject' using Django 1.9.2. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # Bu...
[ "abhivjoshi.aj@gmail.com" ]
abhivjoshi.aj@gmail.com
b1897521c7b612921d88df7a303a832036796e83
4bd555bc662b8182a2e7644976bfdb00ed5e1ebe
/PythonistaAppTemplate/PythonistaKit.framework/pylib_ext/scene.py
14aa3e0938459fe4581caf119b859a026e19008b
[]
no_license
fhelmli/homeNOWG2
a103df1ef97194dec9501dbda87ec1f7c111fb4a
e794fd87b296544542fd9dc7ac94c981c6312419
refs/heads/master
2020-04-04T13:40:20.417769
2019-01-30T21:41:04
2019-01-30T21:41:04
155,970,686
0
0
null
null
null
null
UTF-8
Python
false
false
9,230
py
#import pythonista #coding: utf-8 from _scene2 import * import _scene2 from scene_drawing import * import math from numbers import Number from io import BytesIO import ui DEFAULT_ORIENTATION = 0 PORTRAIT = 1 LANDSCAPE = 2 BLEND_NORMAL = 0 BLEND_ADD = 1 BLEND_MULTIPLY = 2 from ui import get_screen_size def run(sc...
[ "tberk@gmx.at" ]
tberk@gmx.at
8b04b0680c919fab45b483ef6ab1551ab145d51b
6a983aa7f216cbeec15aefeaa2ef8731771f2e7d
/gcsite/urls.py
3e3ef4b067d5ffb036f2ca564f8faeda5a83e4ae
[]
no_license
srlee056/gcproject
c970ae0fc645eeeaad10b63ca5e223dc32abe611
82ebcdf5fb16b336d2652ba57512b24f775d8ef2
refs/heads/master
2022-11-25T06:39:09.708299
2020-07-31T23:41:57
2020-07-31T23:41:57
281,684,913
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
"""gcsite 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 ...
[ "imsolem1226@gmail.com" ]
imsolem1226@gmail.com
c2c60a9263d26d5897f8406ba267856e1bd4bdf0
2410646752e83818dd5d751d653c09232d6fc705
/rdsexport/functions/rds_export_to_s3.py
8b026094c19aa494917f5e8a2ed751c5b839220b
[]
no_license
ArchTaqi/IaS-Code
6ce5b551b154a9eda6c40e79ac31b2e35b8cd50d
dda4271e52510abc1c8c1172ab63ccf4608cc17b
refs/heads/master
2023-06-02T18:01:28.252518
2021-06-16T07:35:59
2021-06-16T07:35:59
377,379,355
0
0
null
null
null
null
UTF-8
Python
false
false
3,345
py
#!/usr/bin/env python3 """ This utility helps to copy the monthly aws rds snapshot to the S3 bucket. This is to maintain the backup of rds snapshot in s3 for DR needs. """ import os import sys import json import boto3 import logging from datetime import date, datetime, timezone, timedelta from botocore.client ...
[ "taqi.arch@gmail.com" ]
taqi.arch@gmail.com
7e57a13ccb33e59dd349b8957eb2347ccf682b14
8a87d58c47bb3eb19184f7096766ca286cd3e586
/ff.py
4fac3277f7eb96d2bb6a3fdca64e040896423a5f
[]
no_license
jesusble/evening
9d8dc6e1bbfa28e65cc9b8bc584a2cf1f48166a6
a3c3f1843185e1976397cd5ec97a9395b7ae7148
refs/heads/master
2020-06-17T04:51:41.479661
2019-07-10T12:46:23
2019-07-10T12:46:23
195,802,693
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
sb=int(input()) for i in range(1,sb+1): if(sb%i==0): print(i, end=' ')
[ "noreply@github.com" ]
jesusble.noreply@github.com
a2300d6a94ca2cefd91d8d13d10b57d752bcefa4
1ade02a8e0c6d7e442c9d9041f15518d22da3923
/w2/d5/sqlite_db/schema.py
99c0917574b62199a3263ba8d784e3cfc122ffc9
[]
no_license
fodisi/ByteAcademy-Bootcamp
7980b80636a36db6da3e0fc0e529fbc6b8e097e0
d53e3f4864f6cba1b85e806c29b01c48e3c2e81d
refs/heads/master
2020-03-19T12:55:31.489638
2018-07-25T16:19:19
2018-07-25T16:19:19
136,550,128
0
1
null
null
null
null
UTF-8
Python
false
false
458
py
#!/usr/bin/env python3 import sqlite3 # create a connection to the database connection = sqlite3.connect("securities_master.db", check_same_thread=False) # create a cursor object to represent the "gaze" of the database management system cursor = connection.cursor() cursor.execute( """CREATE TABLE rippleUSD( pk I...
[ "fodisi@users.noreply.github.com" ]
fodisi@users.noreply.github.com
3c3091a21cf5d12371f8d133ebbc1bd9dfd495c3
b4d720c4d9de5f464fe7aa3bd2fb9155dba2f4df
/omni_anomaly/eval_methods.py
c4f95d2bc86f9e9c2b087560dbe3536e51e38ba6
[]
no_license
real-lhj/CTF_code
7d367eafd70d40f7e369b8139c578e9ce7f263f2
2ccb3a528745e4b42ffb7eea57208a4d0273ec74
refs/heads/main
2023-03-19T03:44:30.393132
2021-01-12T13:22:25
2021-01-12T13:22:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,996
py
# -*- coding: utf-8 -*- import numpy as np from omni_anomaly.spot import SPOT def calc_point2point(predict, actual): """ calculate f1 score by predict and actual. Args: predict (np.ndarray): the predict label actual (np.ndarray): np.ndarray """ TP = np.sum(predict * actual) T...
[ "420822631@qq.com" ]
420822631@qq.com
f80068e4c813e20b94f963bc6e02662511c57101
b7204fa9006e8328d06dab9e66229b4a07c0c85a
/Project 1/uninformed.py
9ae3c66e4f2c42c37cb9bb3e641ec83e6d15d742
[]
no_license
iamchristoph/AI
ec72c2e998532980e86ebc9d10de287c918ef856
5afa7626330a8be28765eff1ba5d553a72a3058d
refs/heads/master
2020-05-18T18:02:40.742861
2015-12-09T19:01:23
2015-12-09T19:01:23
41,823,281
0
0
null
null
null
null
UTF-8
Python
false
false
15,546
py
import time import sys from collections import deque # ------------------------------------------------- # Project by Christopher Terry and Travis Smith # ------------------------------------------------- # Instructions on use: # python uninformed.py <optional file name> # # If a file name is not provided, the foll...
[ "iamchristoph@yahoo.com" ]
iamchristoph@yahoo.com
55b708e6c7de4d53c9d8f7c3c0a01fa15e1c2cf9
cbeb1d7060dbc281c11c6b029a1d156e1ec7ebfd
/yugoslavia/locations.py
37f896b9e1d335e65c273a0e6078610e6cfad4ce
[]
no_license
paulkirkwood/py.parcoursdb
28ceceaf4f44e03d9911892a9a916447cd7c7477
df2745064e4c66dc0c2d522fc0381bf13a8e7859
refs/heads/master
2020-09-14T04:58:10.940799
2020-02-24T21:04:31
2020-02-24T21:04:31
223,024,314
0
0
null
null
null
null
UTF-8
Python
false
false
126
py
from country import Yugoslavia from location import Location def ljubljana(): return Location("Ljubljana", Yugoslavia())
[ "paul@paulandsue.plus.com" ]
paul@paulandsue.plus.com
606c6daa39403e1f7813670974620cd5c5c62c6f
9c8b45b2b2be2e4c7063675965fa25538114e660
/namseoul/urls.py
85b13d914746388b20e042876187df50d8b64b07
[]
no_license
gloweean/namseoul
1a8f8b85b7ff4213c078b8e3cca409dfadfac5f4
9acc0c3c0e12f61d5ad399c32364bff2d11cbcfb
refs/heads/master
2020-04-07T01:49:23.669077
2018-12-22T05:44:37
2018-12-22T05:44:37
157,953,505
0
0
null
null
null
null
UTF-8
Python
false
false
1,509
py
"""namseoul URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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-base...
[ "gaius827@gmail.com" ]
gaius827@gmail.com
ea9f6e7a47afd34b16da8ec54171afda6c3c36d7
1a47c5af54e1dc8b71d2dd4267e0883bab81ba1d
/genetic_algo.py
66e407e50b056b38d0a8fe986e019aea10cc0c2c
[]
no_license
gauravchopracg/genetic_algorithm
5690d421a151bc5a7351357391d5a74f9df99837
3ed6511d968362b8df1ca0f7e1843d262b60a1f7
refs/heads/master
2020-06-19T17:33:03.559285
2019-07-14T06:55:42
2019-07-14T06:55:42
196,803,640
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
from tpot import TPOTClassifier from sklearn.model_selection import train_test_split import pandas as pd import numpy as np #load the data telescope=pd.read_csv('MAGIC Gamma Telescope Data.csv') #clean the data telescope_shuffle=telescope.iloc[np.random.permutation(len(telescope))] tele=telescope_shuffle.reset_index...
[ "gauravchopracg@gmail.com" ]
gauravchopracg@gmail.com
f19a4bb0dc2e392197331c9ddc9a58eef5dc0f86
30043f42552c9d74e9c81d396f7303ea9bb9946b
/src/commands/__init__.py
c2342847b4d20229993a5209974d970e2ef9cbc6
[ "MIT" ]
permissive
SkylarKelty/pyirc
ad483bb30f6c661529060e539ec75e8318dd2d71
7fae4435671d8281e3dcf4c5341ef85a79031ca9
refs/heads/master
2021-01-19T06:12:29.720773
2014-10-04T10:21:07
2014-10-04T10:21:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
from src.commands import hello from src.commands import noaction from src.commands import remind
[ "skylarkelty@gmail.com" ]
skylarkelty@gmail.com
9baf993431c633cca33d8c2904b04c63250aa8a1
57d958cdd7eda2e0d6f010e0b0e1578217d616cc
/onlineCalcProj/client/generate_token.py
ea72287157237a7e7bcc8af60eadebbd03cb2262
[]
no_license
mohdhallal/OnlineCalculatorApiDjango
61ed2388ddab5e2b92e23c774db8cd531ecb4245
5480d1373ce3fb437abccc2202e8a053abfacfec
refs/heads/master
2020-07-06T10:41:26.944777
2019-08-16T09:40:05
2019-08-16T09:40:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
import requests r = requests.post('http://127.0.0.1:7070/api/token/', data={"username": "user", "password": "megasoft123"}) print(r.text) print(r.status_code) print(r.json())
[ "martin.mamdouh2014@gmail.com" ]
martin.mamdouh2014@gmail.com
487668fe2ef1bf1b80979377f315ef43e5eef143
4fb624627e9a0e198d1658981fd059c18f7df35a
/test.py
a49cc1ae97cd225cc411d471d8fad5b5a8dd6863
[]
no_license
bemorepower/Event-knowledge-map
be4475278d233d72122fc92cab8b374e2ec5093c
fcdc9f20bd919e1f83774b36ce80aff624f7210c
refs/heads/master
2023-02-11T03:37:01.730011
2021-01-12T06:37:47
2021-01-12T06:37:47
328,854,602
0
0
null
null
null
null
UTF-8
Python
false
false
7,959
py
# -*- coding: utf-8 -*- """ 文本中事实三元组抽取 python *.py input.txt output.txt begin_line end_line """ # Set your own model path MODELDIR = "/data/ltp/ltp-models/3.3.0/ltp_data" import sys import os from pyltp import Segmentor, Postagger, Parser, NamedEntityRecognizer print "正在加载LTP模型... ..." segmentor = Segmentor() segm...
[ "2460712447@qq.com" ]
2460712447@qq.com
6bd121269c85094184fe489d0e9a2a61f4760cff
d7ec4aad024745725efb9587c7f9f56020311ee5
/env/bin/jupyter-migrate
e320c1cb9573b4fc31a7ea685fd7ce3a96569a1e
[]
no_license
PlumedSerpent/PPE-Object-Detection
e3c382c5a099d76d76f3b36ea21634d8706178ff
035d105ee10439f441626704a27f2cd14e34242a
refs/heads/master
2023-03-23T22:32:03.644884
2021-03-22T19:38:30
2021-03-22T19:38:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
257
#!/home/ec2-user/PPE-Object-Detection/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from jupyter_core.migrate import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ec2-user@ip-172-31-67-74.ec2.internal" ]
ec2-user@ip-172-31-67-74.ec2.internal
169249ed1830a96d7cd1e82c22572fba0f053b0e
16ca6a7afcd4f62b055d6ba1c9841b59c1b15082
/configs/atss/baseline/atss_r50_fpn_1x_coco_zsd_sfl.py
485e3d0bccc2d30d4c52af4cb07c5d36c0b5f029
[ "Apache-2.0" ]
permissive
mengqiDyangge/HierKD
787365f22eb4b25cb64bb9e255f7824be06a9541
18b2307eb7a98e45b6e6d3d30e2a72e13da86c7b
refs/heads/main
2023-05-23T09:04:31.348978
2022-08-25T14:59:41
2022-08-25T14:59:41
470,613,658
34
1
null
null
null
null
UTF-8
Python
false
false
1,063
py
_base_ = [ '../../_base_/models/atss_r50_fpn_zsd.py', '../../_base_/datasets/coco_zero_shot_detection.py', '../../_base_/schedules/schedule_1x_zsd.py', '../../_base_/default_runtime.py' ] # log log_config = dict( interval=50, hooks=[ dict(type='TextLoggerHook'), dict(type='Tens...
[ "flouzhaozli@gmail.com" ]
flouzhaozli@gmail.com
28a57877699840d447b57131eafedbf97d4ffd13
9e15ada895e90d033bc3b65c2666065bddd62605
/08/8.1.repr_test.py
06248a91f25680a03388cc1f6d0487d858914dcf
[]
no_license
zhyErick/fengkuang_python
b0f0c78273420fd862691799bfd7e4f1b6eadf80
6d50ad3b7d4ae05d06379c2dc87d91081964ec6d
refs/heads/master
2021-02-14T08:23:26.616211
2020-05-06T13:08:07
2020-05-06T13:08:07
244,788,500
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
class Apple: # 实现构造器 def __init__(self, color, weight): self.color = color self.weight = weight # 重写__repr__()方法,用于实现Apple对象的自我描述 def __repr__(self): return "Apple[color=" + self.color + ", weight=" + str(self.weight) + "]" a = Apple("红色", 5.68) print(a)
[ "xingzhishangyang@163.com" ]
xingzhishangyang@163.com
a5148d91637002d9a241730d570829467d4d050f
cbb3e1df6e3abdd7ac66087aff8b74e43dae278d
/cgi_scripts/play.py
ce5630e1896c66bf2c7bf0cccf172721b91130b4
[]
no_license
ElasticBottle/primer_checker
695d2c24fb8bcb2c59c7f2568c7149305f4b480b
8b225b5f404b01a78fdb1b5a62d7bd41ba3fea86
refs/heads/master
2023-04-11T20:49:39.924106
2021-04-17T03:29:43
2021-04-17T03:29:43
293,309,689
3
0
null
null
null
null
UTF-8
Python
false
false
1,125
py
import json import pandas as pd base = "D:/Datasets/GISAID_Update_Analysis/blast/" result = "C:/Users/Winston/Documents/Code/intern_and_work/Astar/primer_checker/cgi_scripts/output" data = {} with open(f"{result}/test.csv") as f: data["US-CDC-2"] = pd.read_csv( f, dtype={ "virus_name"...
[ "winstonyeo99@yahoo.com" ]
winstonyeo99@yahoo.com
30d563f13f6423cd18ccd165a856cab9a1290c3a
95e2375d75ffab2a524a8f4c7dd689b5b54569ed
/2018/TreeNode/104. Maximum Depth of Binary Tree.py
9377453eb22809cac4e8fd9f850963a2e3070fdb
[]
no_license
wufans/EverydayAlgorithms
c0bd561e6bd1aaa930bdf698e50d06e337e9dcf1
e85277c83b904db365d828e51d89b7398e399a8a
refs/heads/master
2020-03-23T03:04:35.827120
2019-08-08T03:17:17
2019-08-08T03:17:17
141,008,260
4
0
null
null
null
null
UTF-8
Python
false
false
2,476
py
# -*- coding: utf-8 -*- """ Created on Thu Aug 30 10:56:44 2018 @author: wufan # ============================================================================= # Given a binary tree, find its maximum depth. # # The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf...
[ "noreply@github.com" ]
wufans.noreply@github.com
387f78efedf54707074b3d54e433ca863301716b
9c9701f79c8eeaa05f684442d2d03f7de4bba1f1
/Korpora/korpus_namuwiki.py
2e75dd8d2a48c3a78b50a187af42870c394678d6
[ "CC-BY-4.0" ]
permissive
hank110/Korpora
e54708fe2d7910df4e6ec5cff1cf1ca0696636bf
b0e014f5c8c4ba71aba335285d0be48cbb802a0d
refs/heads/master
2023-01-10T04:24:14.386097
2020-09-21T03:42:25
2020-09-21T03:42:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,007
py
import os from .korpora import Korpus, SentencePairKorpusData from .utils import fetch, default_korpora_path, load_wikitext NAMUWIKI_FETCH_INFORMATION = [ { 'url': 'https://github.com/lovit/namuwikitext/releases/download/v0.1/namuwikitext_20200302.v0.1.train.zip', 'destination': 'namuwikitext/namu...
[ "soy.lovit@gmail.com" ]
soy.lovit@gmail.com