blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
634ad361e16f38381b57bf4f8de237ed67db1539
5e9a2f34c833360818ed12e2a4fd33996d14fcb6
/MainApp/models.py
7ae91b6e8af831cdac94211a2e92934b3606522e
[]
no_license
sainishreya/Eshop
e308bce7cfe45df3eb1244203cc3baa3964a4ac8
f95decba0edaccb134e954b1d5cbb5b069df7b12
refs/heads/master
2020-06-18T03:14:59.500488
2019-07-10T06:43:04
2019-07-10T06:43:04
196,147,605
0
0
null
null
null
null
UTF-8
Python
false
false
1,976
py
from django.db import models from django.contrib.auth.forms import User class Brand(models.Model): bid=models.AutoField bname=models.CharField(max_length=30) def __str__(self): return self.bname class Category(models.Model): cid=models.AutoField cname=models.CharField(max_length=30) de...
[ "student@test.com" ]
student@test.com
74500f2dd0b8c53a83c336ef4540ba2e49d79f58
5ca1893df92150683d386ba61f849a8a20e80f0a
/RSRvenv/lib/python3.5/site-packages/polcart/__init__.py
e72aa4dbaf2557af7d2da9b78431fe7fe7b21272
[]
no_license
JaredJRoss/RSR
a5340a087b7e19f5c9c8a47d8b322e2384ae8152
6601afbab963f095f939ba4ca07cc07c7257e271
refs/heads/master
2021-07-10T18:26:28.128522
2018-01-08T20:24:20
2018-01-08T20:24:20
104,166,288
0
6
null
2017-11-27T23:35:25
2017-09-20T04:38:26
Python
UTF-8
Python
false
false
23
py
from .polcart import *
[ "jaredrossj@gmail.com" ]
jaredrossj@gmail.com
8e54379c9e0e2512323873740a307b5ac6552d0b
de79ece8981f0fd241bcea578e4a534a1213397e
/spirl/configs/few_shot_imitation_learning/kitchen/hierarchical_cl_gc_demo_slide_demo_trained_vae/conf.py
1f2fcbafcc3b7ab14bb8c70bf240ee9d69987572
[ "BSD-3-Clause" ]
permissive
ahmeda14960/fist
3ee684cd7da0bb531d791321f1af09adad386ab4
baf2b0bfed12a9bc0db9a099abeefad1ef618d1c
refs/heads/master
2023-08-02T01:35:29.983633
2021-09-13T20:07:28
2021-09-13T20:07:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,905
py
import os from spirl.models.closed_loop_spirl_mdl import GoalClSPiRLMdl from spirl.components.logger import Logger from spirl.utils.general_utils import AttrDict from spirl.configs.default_data_configs.kitchen import data_spec from spirl.components.evaluator import TopOfNSequenceEvaluator from spirl.data.kitchen.src....
[ "kourosh_hakhamaneshi@berkeley.edu" ]
kourosh_hakhamaneshi@berkeley.edu
1d272018d3ab808c4476b38fbcf7bd7a62ec4f2d
feb318908fd6a747f3c39d7ae75133ac33ba55c3
/src/config/utils/rbacutil.py
e4f1f4b6d1518daebcb985dcd8d2f1eeb59513c6
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
zhujunhui/contrail-controller
fc076ff94d361c6572cedeb3411d802edb208541
d03019ade541b9e9e665d0b9da0ec36ae6842082
refs/heads/master
2021-01-18T03:55:14.603612
2015-12-15T23:52:04
2015-12-15T23:52:04
48,093,859
1
0
null
2015-12-16T07:10:00
2015-12-16T07:10:00
null
UTF-8
Python
false
false
12,604
py
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # # Util to manage RBAC group and rules (add, delete etc)", # import argparse import uuid as __uuid import os import re from vnc_api.vnc_api import * from vnc_api.gen.resource_xsd import * from cfgm_common.exceptions import * example_usage = \ """ Ex...
[ "dsetia@juniper.net" ]
dsetia@juniper.net
67ad181f4344f69cbff4705ffb7bf58239f6c9a1
38ca2e5a7caddb275ed4dbf6b97a6651f647b0b7
/handlers/coronavirus.py
357bdbf0fa97749bfc70d1064bdead31c4d3a621
[ "MIT" ]
permissive
alias-rahil/CSI-BroBot
9b36042f4acc1c3b97cd10bf886fbc170dd6b368
058048a2ca9c9cb160fd4ce638dd673615adec4d
refs/heads/master
2023-05-26T22:04:02.316584
2020-07-17T19:35:06
2020-07-17T19:35:06
273,964,247
1
0
MIT
2023-05-23T00:20:51
2020-06-21T18:46:21
Python
UTF-8
Python
false
false
4,133
py
import requests from telegram import ReplyKeyboardMarkup import random from telegram.ext import ConversationHandler, MessageHandler, CommandHandler, Filters from misc.text import invalid_message, corona_api, ask_date, ask_country from misc.invalid_msg import wrong_option sessions = {} def country_selection(update, c...
[ "rahil.kabani.4@gmail.com" ]
rahil.kabani.4@gmail.com
c65f10f40c7746b6a0f8b226efa07085cf5a26f6
3634703ad8685c9bc5d73edf148b7b8722356c0e
/Algorithm/programmers/pg_2016년.py
872b394b834701e55c74ca2098cf27d1a25d7d18
[]
no_license
chj3748/TIL
23d88f97ebc8b1e3a06bb93752dfd2d331d01fd8
40a4e524c28945c95f059b0dee598abb686abe04
refs/heads/master
2022-02-26T16:43:56.964719
2022-02-14T04:43:20
2022-02-14T04:43:20
235,233,054
1
0
null
null
null
null
UTF-8
Python
false
false
369
py
# math | programmers 2016년 # github.com/chj3748 import sys def input(): return sys.stdin.readline().rstrip() def solution(a, b): months = [0, 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] for i in range(1, 14): months[i] += months[i - 1] weeks = [ 'THU', 'FRI', 'SAT', 'SUN', 'MON', 'TUE...
[ "redsmile123@naver.com" ]
redsmile123@naver.com
5377d5647573a6524196b794344d1e11aa5e927d
3440d670ec5c7d1db2c2a1e0e4cea942705c5cf7
/fatorial_v2.py
3fa7b853564d28b246f614f733fe8e17b2986241
[ "MIT" ]
permissive
paulo-caixeta/Curso-Python-IME-USP
417ae8473e5d43e4a970fc6755a5a72508160d73
03097c7ed625796560a79c01511b8990f37efa6a
refs/heads/main
2023-03-30T19:15:17.083456
2021-03-31T23:04:56
2021-03-31T23:04:56
330,421,980
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
n = int(input("Digite um número inteiro: ")) while n >= 0: fatorial = 1 while n > 1: fatorial = fatorial * n n = n - 1 print (fatorial) n = int(input("Digite um número inteiro: "))
[ "67445567+paulo-caixeta@users.noreply.github.com" ]
67445567+paulo-caixeta@users.noreply.github.com
ae48ce85c8caa8b2632e5bbc58f086388955ab75
df7f13ec34591fe1ce2d9aeebd5fd183e012711a
/hata/discord/application_command/application_command/tests/test__validate_version.py
0311466ec90e46c18abaa78702c11bd7846f90a8
[ "LicenseRef-scancode-warranty-disclaimer" ]
permissive
HuyaneMatsu/hata
63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e
53f24fdb38459dc5a4fd04f11bdbfee8295b76a4
refs/heads/master
2023-08-20T15:58:09.343044
2023-08-20T13:09:03
2023-08-20T13:09:03
163,677,173
3
3
Apache-2.0
2019-12-18T03:46:12
2018-12-31T14:59:47
Python
UTF-8
Python
false
false
1,003
py
import vampytest from ..fields import validate_version def test__validate_version__0(): """ Tests whether `validate_version` works as intended. Case: passing. """ version = 202302260011 for input_value, expected_output in ( (version, version), (str(version), version)...
[ "re.ism.tm@gmail.com" ]
re.ism.tm@gmail.com
209fce0e9ab23269f0f2c394e287b9bb821a5323
b87b4c16c0d596fff5069c3210040eb8565417fc
/Code forces/F. Way Too Long Words.py
b5f2bae7e1bffafcb88f854ea9e549b169cb86f3
[]
no_license
Seif-Fathi/Problem-Solving
e321411ec7e59c9c4f397f38896d6a1788acc1bd
ac0f3a81179e2d3418d47ab77e34188e1470425c
refs/heads/master
2023-04-25T13:03:50.780362
2021-05-15T18:39:17
2021-05-15T18:39:17
367,705,366
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
# -*- coding: utf-8 -*- if __name__=='__main__': num_tsts = int(input()) for i in range(num_tsts): sttr = input().lower() if len(sttr) <=10: print(sttr) else: print(sttr[0],len(sttr)-2,sttr[-1],sep='')
[ "seif.fathi22@gmail.com" ]
seif.fathi22@gmail.com
07ddfdca133dc644af21ed96ff81b51deae90705
7990a6b89de63d7d947224e1225d7821718d1af8
/variables.py
ca64358511e47b325f1e5633e45d2eed3e720883
[]
no_license
PragathiNS/PythonCodes
1838e75dbcd3a089954e8a67c382739660a158f3
87b63cc915bcbbc8ea29b132f888744cbf7a3aa8
refs/heads/master
2021-03-27T09:54:04.931646
2018-05-30T05:07:48
2018-05-30T05:07:48
85,904,623
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
# variables can be initialized without any type mentioned to it intVar = 10 floatVar = 1.1 stringVar = "Variable" boolVar = True #We can know the type of these variables using type() print(type(intVar)) print(type(floatVar)) print(type(stringVar)) print(type(boolVar))
[ "pragathi.code@gmail.com" ]
pragathi.code@gmail.com
8ce8d15ed85b76e97a1588db1e2a9fe574ea56bf
852b381ae34e817b7ac340d287c67216e7a18b89
/logisticRegression.py
46f2e239387d4254a60c4ade3d3aa12980195559
[]
no_license
ratom/Data-Science
d4dc85333a5c0ae3879331bc8d4c501f6955d8b6
1466fdeb02ea73c7da32dfa40665d2ba9222cb21
refs/heads/master
2021-06-09T04:40:15.157537
2021-05-08T16:35:55
2021-05-08T16:35:55
154,630,650
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.cross_validation import train_test_split from sklearn.linear_model import LogisticRegression from sklearn.metrics import classification_report,confusion_matrix df=pd.read_csv("datasets/advertising.csv") #sns.heatmap(df.isnull()) #d...
[ "dulalatom@gmail.com" ]
dulalatom@gmail.com
63e68cd682ae71bda971f13061eb08f9b94186e0
b839791d8d52186b13e8d4f734ad8dc50f514927
/Exercises/4_5_State_and_Motion/car.py
95954c43a074620fc3e5e2d0cfbd087a7231a8b7
[ "MIT" ]
permissive
giuseppe-testa/Computer-Vision-ND
d5eb0d01863212d1da981755384109d4fda7e7e7
bbb939d6a654953037ad4e9dd4a20ee5d98cf10d
refs/heads/master
2022-11-28T19:05:42.338805
2020-02-17T16:43:00
2020-02-17T16:43:00
207,527,569
0
0
MIT
2022-11-22T02:24:31
2019-09-10T10:14:52
Jupyter Notebook
UTF-8
Python
false
false
4,903
py
import matplotlib.pyplot as plt """ The Car class defines a car's movement and keeps track of its state. The class includes init, move, and display functions. This class assumes a constant velocity motion model and the state of the car includes the car's position, and it's velocity. Attributes: ...
[ "giuseppe1.testa@gmail.com" ]
giuseppe1.testa@gmail.com
d3e1cb323db751ac2050493151ddde48bb868a90
566638e179b0add891e1d5c8900d35ae531af6dc
/alembic_simplelis/versions/6487bfd4c8aa_renamed_columns.py
6cd0406fe6bfe944447113a2432ef47fb6ff8af3
[]
no_license
likit/querystud
9b023a45adfdbf6dc8a3a2f97fefb82b765c8690
1702c09ff6931b2cd94d0b55ef42f244c503a68a
refs/heads/master
2020-03-25T19:25:40.412824
2018-08-09T18:08:48
2018-08-09T18:08:48
144,082,461
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
"""renamed columns Revision ID: 6487bfd4c8aa Revises: 8c08809abb09 Create Date: 2018-08-09 15:54:28.683879 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '6487bfd4c8aa' down_revision = '8c08809abb09' branch_labels = No...
[ "likit.pre@mahidol.edu" ]
likit.pre@mahidol.edu
69fa94dee859ced3c1d201cbaba72e52e49bd102
f57337d795f19c14d67887743cbd5941d1e84378
/blog_project/blog/migrations/0002_auto_20200603_2323.py
814f9e8c538d7234a6bec958a9fea7db5e5ac65c
[]
no_license
teja465/blog-project
7662884cb3b810b9959cd6d618560eebe1f08b58
c7ccb1cbc8e7c2cbb29e39b32cd6798ce6329d36
refs/heads/master
2022-10-03T02:54:59.115590
2020-06-06T17:16:54
2020-06-06T17:16:54
270,048,157
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
# Generated by Django 3.0 on 2020-06-03 17:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0001_initial'), ...
[ "katukuri.raviteja465@gmail.com" ]
katukuri.raviteja465@gmail.com
207502ae33c51cacfd21b43da1ac824d09d91a43
1395ee264400c14a30115cdfbe374db0ca979a3d
/agent_DDQN_MA.py
05e3e64ee016613d98ef882029fd92ac4fea6892
[]
no_license
FabioTarocco/MultiAgent_ia
3b08e8c20e478ee7681da5dc998288c37d83f333
688cf7b0f3d0117685227e990d45398abfcf41c4
refs/heads/main
2023-09-01T06:24:30.694310
2021-10-25T15:02:17
2021-10-25T15:02:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,331
py
"""DDQN agent script This manages the training phase of the off-policy DDQN. """ #Simple tag, simple spread, simple push/simple adv import random from collections import deque import time import yaml import numpy as np with open('config.yml', 'r') as ymlfile: cfg = yaml.load(ymlfile, Loader=yaml.FullLoader) ...
[ "fabio.tarocco.vr@gmail.com" ]
fabio.tarocco.vr@gmail.com
61c4329bc9311c20d6ca2fdca35994a57d850ee5
38fff7bdefd8d62a740d51329b50d0e1e49258bb
/projects/oscrypto/fuzz_keys.py
891da04cd3fd9abfb86f3c556edf67a2c729e495
[ "Apache-2.0" ]
permissive
google/oss-fuzz
026384c2ada61ef68b147548e830f60730c5e738
f0275421f84b8f80ee767fb9230134ac97cb687b
refs/heads/master
2023-08-31T23:30:28.157702
2023-08-31T21:49:30
2023-08-31T21:49:30
63,809,205
9,438
2,315
Apache-2.0
2023-09-14T20:32:19
2016-07-20T19:39:50
Shell
UTF-8
Python
false
false
938
py
#!/usr/bin/python3 # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
[ "noreply@github.com" ]
google.noreply@github.com
b0beb7eb20985e2746ae25244fe46cc036f72866
07eea58a2c39932ae75fef81981e3bc2a392d35f
/robotiq_c_model_control/src/robotiq_c_model_control/baseCModel.py
2a47199aab083d0d8d37ad524df155ca0a2a5a94
[ "BSD-2-Clause" ]
permissive
jhu-lcsr/robotiq
dda4a79460e45bf85c69e8db7ed8cd00f2aa8349
c2880525ef9a5e1ea8854dd7b57007e3b148fc91
refs/heads/kinetic-devel
2020-04-05T20:09:45.839988
2017-03-03T17:30:38
2017-03-03T17:30:38
22,268,277
3
3
BSD-2-Clause
2019-03-28T19:25:20
2014-07-25T19:30:12
Python
UTF-8
Python
false
false
4,874
py
# Software License Agreement (BSD License) # # Copyright (c) 2012, Robotiq, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyr...
[ "jrgnicho@gmail.com" ]
jrgnicho@gmail.com
b043bbed978055b6395eae69ddcac30437659c9c
39555d47880ce5433845424bf9942fd359fe4602
/TaxiFareModel/encoders.py
a0c7421dde24adae4b9ccfdcf293eeb628b2ff29
[]
no_license
Doxycy/TaxiFareModel
928289f62a255feb1d8d705d5cf23fe14a71fc77
18beb16daa2fe5dfe91c4f9d6fd057c1e87b135f
refs/heads/master
2023-07-17T04:45:32.633079
2021-08-17T14:04:45
2021-08-17T14:04:45
397,279,182
0
0
null
null
null
null
UTF-8
Python
false
false
1,982
py
from sklearn.base import BaseEstimator, TransformerMixin from TaxiFareModel.utils import haversine_vectorized import pandas as pd class TimeFeaturesEncoder(BaseEstimator, TransformerMixin): """Extract the day of week (dow), the hour, the month and the year from a time column.""" def __init__(self, time_col...
[ "morgan.godard@outlook.fr" ]
morgan.godard@outlook.fr
d82c3dcf0fdf6c474665923a13598ff0c86c1f82
b916cce1d6a3e2d5bd01dee9f128c25be077eb10
/PracticaP/Pentagram/admin.py
f71531f0aafe47bf6bfa1adb0fcea9eb95040bbb
[]
no_license
PaulPanait/Repos
c763225d825241855e4862f3fcb1d805659ce197
77fa6b517d0ad55b04f87d1efeb4bc256106b98b
refs/heads/master
2021-01-20T20:31:54.404217
2016-07-26T10:01:19
2016-07-26T10:01:19
64,210,408
0
1
null
null
null
null
UTF-8
Python
false
false
195
py
from django.contrib import admin # Register your models here. from Pentagram.models import Photo, Comment, Like admin.site.register(Photo) admin.site.register(Comment) admin.site.register(Like)
[ "paulpanait93@gmail.com" ]
paulpanait93@gmail.com
50bee84349089e1aa4828f68a88a6d8a89dfdf41
568d7d17d09adeeffe54a1864cd896b13988960c
/month01/day07/exercise05.py
3493424818067ec8a5a6e612d415a224bd930150
[ "Apache-2.0" ]
permissive
Amiao-miao/all-codes
e2d1971dfd4cecaaa291ddf710999f2fc4d8995f
ec50036d42d40086cac5fddf6baf4de18ac91e55
refs/heads/main
2023-02-24T10:36:27.414153
2021-02-01T10:51:55
2021-02-01T10:51:55
334,908,634
1
0
null
null
null
null
UTF-8
Python
false
false
723
py
dict_travel_info = { "北京": { "景区": ["长城", "故宫"], "美食": ["烤鸭", "豆汁焦圈", "炸酱面"] }, "四川": { "景区": ["九寨沟", "峨眉山"], "美食": ["火锅", "兔头"] } } #1.打印北京的第一个景区 print(dict_travel_info["北京"]["景区"][0]) # 打印四川的第二个美食 print(dict_travel_info["四川"]["美食"][1]) # 2. 所有城市 (一行一个) for key in dict_t...
[ "895854566@qq.com" ]
895854566@qq.com
6b7257ba5127367668d0f729c4c4ea950ad85e19
422383c9862d10ef6c0907fa7b6fda29a3951110
/satellite.py
2a3009b2d875f2d41c79a99040fd6271e95e2e70
[]
no_license
ypodim/brin.gy
1c861a3dac7cedf8c71cd621450a977627df58a7
8957733abc79edf11c5ed73f9789dd8d75522f64
refs/heads/master
2020-04-15T23:22:01.114584
2012-04-09T21:17:40
2012-04-09T21:17:40
2,501,542
4
0
null
null
null
null
UTF-8
Python
false
false
12,791
py
#!/usr/bin/python # -*- coding: utf-8 -*- import tornado.httpserver import tornado.ioloop import tornado.web import tornado.escape import sys, os, time, random from optparse import OptionParser from capability import * import redis CAPS = ['buysell','location','profile'] class Statistics: statistics = dict(hi...
[ "ypodim@gmail.com" ]
ypodim@gmail.com
19d8978fecb310636b6db9dc5182a2863810b9a9
6d871334260c1b7f8d087dfd8ca6e2fe0c4f0307
/01-operacoes.py
a248fed695c0adb10aaf06ff978bc21822362298
[]
no_license
competcoce/python-intro
0dcffd27afd12ff2c29c6541669458fe92b32339
b6995f73ef8b9a664de8142bec1c0cb2ba3b4590
refs/heads/master
2016-09-06T13:15:40.388837
2015-03-04T12:19:20
2015-03-04T12:19:20
31,655,461
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
# coding: utf-8 # Operações #Soma # r = 1 + 1 # print r #Subtração # r = 1 - 2 # print r #Multiplicação # r = 2*2 # print r #Divisão 01 # r = 2/3 # print r #Divisão 02 # r = 2/3 # print r #Resto - par # r = 2%2 # print r #Resto - impar # r = 3%2 # print r #Potência # r = 3**6 # print r #Raiz # r = 4**1/2 # pr...
[ "gustavokira@gmail.com" ]
gustavokira@gmail.com
e5e3ff4485186df91657842fb85114991f10a0d5
013941b3bbc0d5c520be0ed2df140734f3af4f15
/voiceCommand/asgi.py
e644d3be1eb8aac3171f8d7aee94145c9f846cdd
[]
no_license
ayush380/Voice-Recognition
e313f9bc3a588254e19ff7bac16bfc0814865e78
b2678510a59fdb9d398a81eeecc3b24725e67573
refs/heads/main
2023-01-09T20:15:35.418681
2020-11-03T16:55:02
2020-11-03T16:55:02
309,749,461
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" ASGI config for voiceCommand project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
[ "ayush380@gmail.com" ]
ayush380@gmail.com
8c94be0cfe69c5251592fc5018f9ba2b28c5d1e7
89abe6a8a502bf1cb3b9169b389a4e37f7ad70f9
/graphs_w5/connecting_points/connecting_points.py
5b4d19f92d5826a5f486ae46c0c00383a6f21d65
[]
no_license
anvad/courses_algorithms
41859e34b882538e78a35a0c10a9b77d692b7664
218c40b3020270cda3399b5baa0405a93d8fddaa
refs/heads/master
2020-07-10T20:02:37.316572
2016-10-03T18:32:05
2016-10-03T18:32:05
204,357,303
0
0
null
null
null
null
UTF-8
Python
false
false
4,496
py
#Uses python3 #using Kruskal Good job! (Max time used: 0.17/10.00, max memory used: 10133504/536870912.) #using prim with array based priority queue Good job! (Max time used: 0.07/10.00, max memory used: 10129408/536870912.) #prim slightly optimized to avoid find dij in some cases Good job! (Max time used: 0.06/10.00,...
[ "anil.vadlapatla@gmail.com" ]
anil.vadlapatla@gmail.com
f6977ac67730ba0341aac78a26f5ce302c583f94
f15a00da546184507d5306b2623e03763d0cc37a
/article/templatetags/article_tags.py
394478edd01931a8a011e68189d1d543725492f8
[ "Apache-2.0" ]
permissive
glon/django_blog
c06e72c43f39c464a4d98722c7ae0d33c9523c7b
4f9d9b93886ca5f861edfcd29b06df1bcedce1ad
refs/heads/master
2021-07-04T16:50:17.982966
2017-09-27T08:24:41
2017-09-27T08:24:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
from django import template from article.models import ArticlePost from django.db.models import Count from django.utils.safestring import mark_safe import markdown register = template.Library() @register.simple_tag def total_articles(): return ArticlePost.objects.count() @register.simple_tag def author_total_art...
[ "562071793@qq.com" ]
562071793@qq.com
7b6db324523ed356f5a34ab14aeb9ef09069d341
fce91f0d47a6d13122bcaabec071229678d91676
/qa/rpc-tests/test_framework/test_framework.py
40902b459e19adb560a4b21a9f98e4a642ecc131
[ "MIT" ]
permissive
animuscoin/animus
fe0c49dbdd7a2cb172f8572264535c8c7de3aed1
518567dfefe21be5403acaf05523b598691191c6
refs/heads/master
2020-03-17T05:23:06.502435
2018-05-14T13:53:03
2018-05-14T13:53:03
133,314,527
1
0
null
null
null
null
UTF-8
Python
false
false
6,736
py
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Base class for RPC testing # Add python-bitcoinrpc to module search path: import os import sys import...
[ "peanua@gmail.com" ]
peanua@gmail.com
633f67db56b3fc27c70671b9cff7a90c51faa754
96538cc3eee3d73d429f3476d0e895be95d695e3
/worker/db/redisdb.py
e7b69ffd0713371d1380120d397a1485debac7fe
[]
no_license
FashtimeDotCom/distributed-spider
d9555670216e68d4ff031e466cbf3529d080a534
33292f098403fa73239e0c7353e4cc5918be981b
refs/heads/master
2020-03-22T11:43:14.796426
2018-07-06T10:51:48
2018-07-06T11:34:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,874
py
# -*- coding: utf-8 -*- ''' Created on 2016-11-16 16:25 --------- @summary: 操作redis数据库 --------- @author: Boris ''' import sys sys.path.append('../') import init import redis import utils.tools as tools from utils.log import log IP = tools.get_conf_value('config.conf', 'redis', 'ip') PORT =...
[ "boris_liu@foxmail.com" ]
boris_liu@foxmail.com
cb69e8b638a917546fb9bfc2214ec6c812e10454
dd225d2ffd07e8e5fbf0b841e83c6c12fd7610ef
/dynamicsettings/__init__.py
8686a3379e05f0a8fb846fffc2d8335b0ca7aee4
[ "MIT" ]
permissive
fopina/django-dynamicsettings
1e90761649538d9ade30bf36dfd46746f6bedeef
9f6949a6d26bc43199d728ce26d85eb5b016139f
refs/heads/master
2023-06-15T14:21:44.008780
2021-07-08T13:10:32
2021-07-08T13:10:32
286,098,067
3
0
MIT
2021-07-08T13:10:33
2020-08-08T18:27:42
Python
UTF-8
Python
false
false
7,523
py
VERSION = (0, 0, 3) __version__ = '%d.%d.%d' % VERSION import time try: from django.core.exceptions import ImproperlyConfigured, ValidationError import django if django.VERSION < (3, 2): default_app_config = 'dynamicsettings.apps.DynamicSettingsConfig' except ModuleNotFoundError: # allow impo...
[ "fopina@gmail.com" ]
fopina@gmail.com
af9e6bd4abe4b2dcb697a14bb3d04f04c3d8c514
b13c119cb96fe399e466731ab5db3f889af3492c
/book_catalog/migrations/0018_auto_20210103_1625.py
2efe2442ef53932bc852f9297be0576456c1ea88
[ "MIT" ]
permissive
shayweitzman/MyAutoBook
39deb85cb068c7c1e20c7cd9ce126bbd3391ce93
b5451e6d2db07c839b61802f94b57824a6b17da8
refs/heads/master
2023-02-25T19:17:56.430243
2021-02-04T14:02:59
2021-02-04T14:02:59
335,971,255
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
# Generated by Django 3.1.3 on 2021-01-03 14:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('book_catalog', '0017_book_isdamaged'), ] operations = [ migrations.RenameField( model_name='book', old_name='isdamaged', ...
[ "shaywe@ac.sce.ac.il" ]
shaywe@ac.sce.ac.il
6b02efb3ffff87a1947b446d25a44bca6402c080
246d6d6a40430e3597e91c0caa88232b05d289da
/gallery/migrations/0002_auto_20190215_2053.py
93217938f61c2a3ba64bf6963a3e5b0567c5b2a4
[]
no_license
jijiwi/portfoloi
659e5b80906ba1654afbcd24123564294a49011d
a1924b3a7c28e0275a25508ead19449691776011
refs/heads/master
2020-04-23T01:32:27.747839
2019-02-16T09:02:00
2019-02-16T09:02:00
170,815,899
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
# Generated by Django 2.1.5 on 2019-02-15 12:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gallery', '0001_initial'), ] operations = [ migrations.AddField( model_name='gallery', name='image', fie...
[ "1716357925@qq.com" ]
1716357925@qq.com
e73ea00412857d8bc51a1b6f7dd676d32b152336
1c6a29a7dcd62470d594d5e42dbea9ff79cc47f5
/shade/_heat/utils.py
24cb0b07115e1da1eb535444aa86612c446b7d0a
[ "Apache-2.0" ]
permissive
major/shade
a1691a3e3311f1b87f4a31c3a26929ddc2541b7a
0ced9b5a7568dd8e4a33b6627f636639bcbbd8a3
refs/heads/master
2023-06-07T17:15:47.089102
2020-06-01T22:59:14
2020-06-01T22:59:14
54,499,600
0
0
Apache-2.0
2023-06-01T21:26:36
2016-03-22T18:34:14
Python
UTF-8
Python
false
false
1,842
py
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
[ "mordred@inaugust.com" ]
mordred@inaugust.com
d993401850d52d98db8b268955eeb445554951db
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_371/ch47_2020_10_04_13_40_50_371443.py
3cc3cadd86d947006768c00c032c11e851f56842
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
def estritamente_crescente(lista): numero_atual = 0 numero_anterior =0 i=0 nova_lista=[] while len(lista)>i: numero_atual=lista[i] if numero_atual>numero_anterior: numero_anterior=numero_atual nova_lista.append(numero_atual) i+=1 else: ...
[ "you@example.com" ]
you@example.com
f6d7fbdef5cdaedb0fe2f8536b75a1173aca58fe
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/containerservice/azure-mgmt-containerservice/generated_samples/maintenance_configurations_create_update.py
c0abfbc1bab5cf537fc774e2f3b60eed6869983b
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,900
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
8613969c1bf11f3f89b71cdad8ad6aeef96ee7a8
89be6a30d65e9074752b1fd53f1d3225bada2ed6
/cherubplay_live/db.py
3a635a93f38a766ad8c57c6f83e60719ab36b00c
[]
no_license
tehdragonfly/cherubplay
d9da2b5b0c1c140590927a98c4a39da92063ca3b
2fcfd86f3fd8125aa751aee36549981e6556db73
refs/heads/master
2021-01-24T05:59:06.929203
2019-11-29T23:58:21
2019-11-29T23:58:21
16,424,472
4
2
null
2019-12-26T16:40:38
2014-01-31T23:59:20
Python
UTF-8
Python
false
false
1,863
py
import sys from configparser import ConfigParser from contextlib import contextmanager from sqlalchemy import create_engine, and_ from sqlalchemy.orm import sessionmaker from sqlalchemy.orm.exc import NoResultFound from cherubplay.models import Chat, ChatUser, User from cherubplay.models.enums import ChatUserStatus ...
[ "mysticdragonfly@hotmail.co.uk" ]
mysticdragonfly@hotmail.co.uk
488399fdb504ae50e47833dff927ee9e6ba0f590
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/Sourcem8/pirates/effects/JRTeleportEffect.py
8882e9e00c07ab5214be47edb6f53d4ae176d94a
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
8,337
py
# File: J (Python 2.4) from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import ParticleEffect from direct.particles import Particles from direct.particles import ForceGroup from EffectController import EffectController from PooledEffect import PooledEffect import ran...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
9792a5b3135bd29aa5e53b9ae8901a638fa9d8f1
c6759b857e55991fea3ef0b465dbcee53fa38714
/tools/nntool/nntool/quantization/multiplicative/quantizers/default_mult.py
0385ebd178ce814eee4883e29eda75e12c0747cf
[ "AGPL-3.0-or-later", "AGPL-3.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "Apache-2.0" ]
permissive
GreenWaves-Technologies/gap_sdk
1b343bba97b7a5ce62a24162bd72eef5cc67e269
3fea306d52ee33f923f2423c5a75d9eb1c07e904
refs/heads/master
2023-09-01T14:38:34.270427
2023-08-10T09:04:44
2023-08-10T09:04:44
133,324,605
145
96
Apache-2.0
2023-08-27T19:03:52
2018-05-14T07:50:29
C
UTF-8
Python
false
false
1,696
py
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
[ "yao.zhang@greenwaves-technologies.com" ]
yao.zhang@greenwaves-technologies.com
639d044c4239a0c793308a1e4284dddd61753182
5260c25c48ad33b5ef6fde53ac2b621a9fdc97e9
/src/cartridge.py
6de3d6224e8442980171d9d9d522a5686cf33497
[ "MIT" ]
permissive
ryanskeldon/pytendo
2919e5b2e614a14a01555d5e20893009f868e803
f8e1eb66b2fcae3dfb69229650eafefd7b5d63d3
refs/heads/master
2023-01-28T08:39:05.420089
2019-01-06T19:07:49
2019-01-06T19:07:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,655
py
class Cartridge: def __init__(self, filename): self._filename = filename # Load ROM data from file. self._rom = open(filename, "rb").read() # Check first 3 bytes for the letters 'NES' if (self._rom[0:3].decode('utf-8') != "NES"): raise RuntimeError("Not ...
[ "github@ryanskeldon.com" ]
github@ryanskeldon.com
8f31c83d2cf445f4383ccb17e555bd9604837762
23c7249b431c7b9cf1832631ad92816083f6b192
/2018/src/day1.py
870bb5f27bfdfdcd86b61359284edb6d778e4dc1
[]
no_license
billy1kaplan/AdventofCode
30643f6934acbcb9c7cab948c60de15561398e84
8783b8780504343aaed7878e2ac17fecbee48ade
refs/heads/master
2020-04-14T09:02:57.666779
2018-12-25T06:41:51
2018-12-25T06:41:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
675
py
# Day 1: Coronal Calibration def calibrate(): with open('../assets/day1_input.txt') as file: total = 0 for line in file: total += int(line) print('The total frequency change is %d' % total) def calibrate_2(): with open('../assets/day1_input.txt') as file: deltas = [] ...
[ "alex@molleroneill.com" ]
alex@molleroneill.com
d0133e014ff7cf5661239e7504e6191348970723
926c8273ad571bd353eee8b25e6041715e7811c7
/sparqb/query_builder/examples.py
9ba4f22cb0901db01fecc034b20b44747c9e7631
[ "Apache-2.0" ]
permissive
sbg/sparqb
7f40b884d23c7b4fe408cce40886403951a5f505
168a78a563fc8f8c93b63399966586b6802ee894
refs/heads/master
2021-06-18T23:22:43.918500
2017-06-20T16:01:01
2017-06-20T16:01:01
94,350,524
0
0
null
null
null
null
UTF-8
Python
false
false
3,305
py
__author__ = 'Jovan Cejovic <jovan.cejovic@sbgenomics.com>' __date__ = '02 March 2016' __copyright__ = 'Copyright (c) 2016 Seven Bridges Genomics' from sparqb.query_builder.blazegraph.blazegraph_query_builder import BlazegraphQueryBuilder from sparqb.query_builder.expression import * from uuid import uuid4 from rdfli...
[ "vladimir.mladenovic@sbgenomics.com" ]
vladimir.mladenovic@sbgenomics.com
8e28e993c80f61da18a42c1591380ee8d5027018
94d5ef47d3244950a0308c754e0aa55dca6f2a0e
/migrations/versions/e19ce0373a4f_made_degrees_and_personal_info_a_a_one_.py
1cdef1768726407a573115deba478c710260bcc0
[]
no_license
MUMT-IT/mis2018
9cbc7191cdc1bcd7e0c2de1e0586d8bd7b26002e
69fabc0b16abfeba44173caa93d4f63fa79033fd
refs/heads/master
2023-08-31T16:00:51.717449
2023-08-31T11:30:13
2023-08-31T11:30:13
115,810,883
5
5
null
2023-09-14T10:08:35
2017-12-30T17:06:00
HTML
UTF-8
Python
false
false
2,377
py
"""made degrees and personal info a a one-to-many relationship Revision ID: e19ce0373a4f Revises: 7d048ab06595 Create Date: 2021-03-04 09:41:21.032186 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e19ce0373a4f' down_revision = '7d048ab06595' branch_labels = ...
[ "likit.pre@mahidol.edu" ]
likit.pre@mahidol.edu
82fa75e427760add6ce2a9e6040b22dd1de0106f
243fc53d3e3403ce805bbc1b5abf7ef8019485fe
/test/testuser.py
05359e927648c877e8b67cf35585b0cd8697c269
[]
no_license
Ricskal/filmmeister
3e0b441ff88601c551d98290adc000b8baae7300
6cbd35bc212587f1af8d9a7a002838f876cf210e
refs/heads/master
2023-08-22T07:26:41.666013
2021-10-31T18:24:38
2021-10-31T18:24:38
412,818,649
0
1
null
2021-11-01T08:12:10
2021-10-02T14:24:05
Python
UTF-8
Python
false
false
834
py
#from filmmeister import app_inst #print(app_inst.config['SECRET_KEY']) from app import db from app.models import User, Movie u = User(username='Rick', email='Rick@test.com') u.set_password('test') db.session.add(u) db.session.commit() #users = User.query.all() #print(users) #for u in users: print(u.id, u.username) ...
[ "rickensinkrullen@gmail.com" ]
rickensinkrullen@gmail.com
1177ab9475ae054b2b5b2dc251aafacfd30a76fc
4db643b908cd648e7c5abf60b9e87b837b1cf953
/django_myblog/blog/migrations/0002_article_pub_time.py
b3f6b6e888c2462e4be35701b325f3a532a717c0
[]
no_license
ciphermagic/python-learn
6d09207996f30afc2b9f9284f9018fea6f270d19
837eb6ed6bb124e4b581a285dedc423adedca55e
refs/heads/master
2023-04-05T03:56:22.288256
2023-03-31T14:34:24
2023-03-31T14:34:24
98,847,622
3
1
null
2023-03-24T22:29:08
2017-07-31T04:19:12
Python
UTF-8
Python
false
false
442
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-02 13:01 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AddField( m...
[ "ciphermagic@yeah.net" ]
ciphermagic@yeah.net
c64212fbcaa3ae1e49feb372c55e74cd6e4024a0
26bcead33b5ae529883f940d34c8ed6e1f1571af
/src/wordnet/__init__.py
4e32b07df0478eabe63805e0922d9d3093bec5ff
[]
no_license
julieweeds/WordNet
a6ef1c7c757f60108c73ad02cfd43e902c2094c1
69c353c2cc0b6e5527f016a317e59bd43b8ceb45
refs/heads/master
2020-12-25T19:26:01.102329
2015-06-09T15:02:27
2015-06-09T15:02:27
9,606,663
0
0
null
null
null
null
UTF-8
Python
false
false
21
py
__author__ = 'Julie'
[ "julie.weeds@gmail.com" ]
julie.weeds@gmail.com
8ccb364187cd1c5d706fd89a0cf0b59bdb696a62
c595f403a5661ff48fbc7a0ab20ce055444b385e
/text_style_transfer/migrations/0001_initial.py
6315759ea688ccdf5dd39d51291da9cf7acd6b53
[]
no_license
AliaksandrKalenik/yrunner
0570937b43be4cdc62ad94c378d59fe41d30aa05
83e2fd004c7524111362d9af2ed4819200717014
refs/heads/master
2021-05-08T10:33:42.757167
2018-09-25T13:46:30
2018-09-25T13:46:30
119,847,964
0
0
null
2018-03-28T15:26:15
2018-02-01T14:39:13
Python
UTF-8
Python
false
false
1,210
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-02-12 15:48 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='TrainM...
[ "a.kalenik94@gmail.com" ]
a.kalenik94@gmail.com
73a9f7561884b3e2a1f48d82aa9dd9fd18077387
635e9b697a75fb7fba0dbbf3340401b75a77053a
/flask/app/forms.py
82a216a1d45816a198bf41f05c49d89d69781ffe
[]
no_license
Watchfuls/University
9de23ff166bcb901c17b46258e87457db2db011d
99447d1a5ad66088c15af50a1f88f126ea1e5175
refs/heads/master
2022-10-10T00:27:07.615228
2018-01-20T18:17:18
2018-01-20T18:17:18
118,266,764
0
1
null
2022-10-07T19:15:41
2018-01-20T17:52:19
Python
UTF-8
Python
false
false
417
py
from flask_wtf import Form from wtforms import StringField,IntegerField from wtforms.validators import DataRequired class todoForm(Form): taskstring = StringField('taskstring', validators=[DataRequired()]) completedstring = StringField('completedstring', validators=[DataRequired()]) class JobsForm(Form): j...
[ "greghs@users.noreply.github.com" ]
greghs@users.noreply.github.com
f5cb07d8502e20680654e1356fdb1f556e65edf0
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/services/ad_group_extension_setting_service/client.py
751f45c7d71aa3e7c322a037ec62396c7f357549
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,859
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
dd9b0ef8e64753a4982781b6bc1b9804d96173f1
57d261d29b407a82107e973aa085f7b051d47de0
/bannerapp/migrations/0001_initial.py
8f0bc463a6117146572e39ed61d6df69600c6036
[]
no_license
hjx-python/hjx_cmfz
953d328bfc8bd4a219b280d86a15b522a93d1113
1c8cd6ce58bc20bc3a83d97a5337920e99b91082
refs/heads/master
2021-02-17T15:29:42.301747
2020-03-08T08:11:45
2020-03-08T08:11:45
245,107,406
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
# Generated by Django 2.0.6 on 2020-03-05 09:08 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(a...
[ "314379313@qq.com" ]
314379313@qq.com
187668061f01ab4387a6c89213b6e685b0f87e39
6f9e6138b9a090f31c1b72ca0211db209cb43e05
/django-polls/polls/models.py
5dcfa11afa23f145e7b15f5d3c3a53f74bb2c9bb
[ "BSD-3-Clause" ]
permissive
Sammaye/py-django-tutorial
d16d8b0786dbcc7d481e72cb8db57a3b0d361b61
a9e4bd1b75dfb3f84144d9d1c57811b1c55e72ba
refs/heads/master
2021-01-10T15:35:23.005052
2016-01-02T17:13:19
2016-01-02T17:13:19
45,565,586
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
import datetime from django.db import models from django.utils import timezone # Create your models here. class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question_text def was_publis...
[ "sammi@SAM-PC" ]
sammi@SAM-PC
26d9cb5cae76b1197aa9fdef8f136785d5bb0d2d
a0b3945f7f2d76e531b244f0137a1f17af7ce880
/图灵机器人/图灵机器人1.py
c00e93a592857ecd1ea55bace810481eedae63fb
[]
no_license
keyboylhq/robot_vision
65a0226565823009a6afae0df9ea2d3122335573
47008a6b8b40cc92d76968b1c1fdee62124ca4e1
refs/heads/master
2023-02-01T00:31:48.011880
2020-12-14T03:30:56
2020-12-14T03:30:56
318,075,969
1
0
null
null
null
null
UTF-8
Python
false
false
1,644
py
import requests import json imageUrl = '' city = '广东' province = '湛江' street = '遂溪' api_url = "http://openapi.tuling123.com/openapi/api/v2" text_input = input('我:') while True: # text_input = input('我:') # text_input = '今天天气' req = { "reqType":0, "perception": { "inputT...
[ "1481903100@qq.com" ]
1481903100@qq.com
91c2efcb17277dc9655d1c00ba7117307c95135c
21b4a7d4a16e9a7ef54c9e87fe6d4cc6a00f2a41
/basic/n_1022_.py
83a9de0ca817d84233210d11211ac01e14cfa3e5
[]
no_license
sseraa/CodeUp
3d3e7aecb21206179d363adcbcd5411275bfb39d
b5271076f4c852de38077922b3f8fd42001d262d
refs/heads/main
2023-03-03T16:47:20.976461
2021-02-08T14:32:00
2021-02-08T14:32:00
319,667,799
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
#1022 string = input() print(string) #1023 # map(a,b) #f,b = input().split(".") #what diff? f,b = map(str,input().split(".")) print(f,b,sep="\n") print(type(f)) #1024 string = input() for i in range(len(string)): print("'"+string[i]+"'")
[ "noreply@github.com" ]
sseraa.noreply@github.com
acf50301d0e79253163b3e8893e09378f5d033af
c4bb3c80e14b7c35d7f5dc92234f9e500d2c8628
/Day3-Part1.py
b5cafe4cb9e5a4d0c09046dffdff963da0701169
[]
no_license
SeanJumper/Python
20861955a09259008ca75dcb15a47f04db733549
e23c4a485d517c72359502f9586350cad0db7b38
refs/heads/master
2023-04-26T02:31:26.944131
2021-05-21T18:23:14
2021-05-21T18:23:14
338,410,352
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
#Defining a function def hint_username(username): if len(username) < 3: print("Invalid Username. Must be at least three characters long") else: print("Welcome to the team") input_username = input("what is your username:\n") hint_username(input_username)
[ "sean23397@gmail.com" ]
sean23397@gmail.com
3cce5f338f335566330177c42858bb6eb0baddd8
80e6e31054fe9105d2c26be7aac53c4cd6a4a33f
/scripts/spyder/amac_company.py
a1708762c46b6687a0c4ff41381e2b7ae1bca9d9
[]
no_license
alionishere/learn_python
8a7f6dc7d754a357d4cb720f4bc0d5c3e6e5e895
832b8e0579da0b7ab37e815be10204f8de1ad22d
refs/heads/master
2021-06-24T11:02:05.111027
2021-06-23T08:47:06
2021-06-23T08:47:06
223,834,194
0
0
null
null
null
null
UTF-8
Python
false
false
14,079
py
# -*- coding: utf-8 -*- import requests,io,sys,time from bs4 import BeautifulSoup import json,urllib import cx_Oracle from lxml import etree import threading from queue import Queuea def conndb(): username="kingstar" userpwd="kingstar" host="10.29.7.211" port=1521 dbname="siddc01" dsn=...
[ "wang_hongke@163.com" ]
wang_hongke@163.com
764c9237e3797d3e9ab48d5e9665a89d57b9c495
d7d5af499142d9313a24ac711757a8ad7d6c2ef2
/dataPreparation/parseReaxsysFile_v2.py
6f74471536cdbf450ee5edee4136a3fbc4f5bce5
[ "MIT" ]
permissive
rmrmg/SuzukiConditions
f8fa2bb07c37c4a8d148d6f1c2a1a495c635bb50
7ec3cbab269f2e769b4451571775d1fc6e547c45
refs/heads/master
2023-04-13T20:47:06.883856
2022-02-07T10:53:02
2022-02-07T10:53:02
352,658,712
4
2
MIT
2021-11-08T10:34:16
2021-03-29T13:45:06
Roff
UTF-8
Python
false
false
48,601
py
import itertools, re from rdkit import Chem from rdkit.Chem import AllChem from collections import defaultdict from rdkit import RDLogger lg = RDLogger.logger() lg.setLevel(RDLogger.CRITICAL) def parseArgs(): import argparse parser = argparse.ArgumentParser(description='parser of Suzuki reaction in csv from ...
[ "rmrmg@wp.pl" ]
rmrmg@wp.pl
17f69630404fc6c1f6d2f160cddecc9d4d6b37b3
fbcee5df0a4eb5ac9978fd9eab7eef92f7e58db5
/results/theoreticalMagPlot.py
e3f97f827b75a9e811824021ae9a395277236cbb
[]
no_license
rogerwalt/WolffAlgorithm
ed5d0be8307a4ca7f2edb4acf6e4828b48db1b5e
1f21145756720dd8c490cb9ce78c8df4e23a799e
refs/heads/master
2021-01-01T18:01:59.867257
2013-06-26T09:05:00
2013-06-26T09:05:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import numpy import matplotlib.pyplot as plt x=numpy.arange(0,1,0.001) y=numpy.power(1-x,0.326) x=numpy.append(x,1) y=numpy.append(y,0) x=numpy.append(x,2) y=numpy.append(y,0) plt.ylim((-0.5, 1.5)) fig=plt.gcf() fig.suptitle('Magnetization',fontsize=14) plt.xlabel('T / Tc') plt.plot(x,y);plt.show()
[ "roger.walt@gmail.com" ]
roger.walt@gmail.com
03c900177fa8129e8c676e40bc3519564cbe0b4d
594cbfd9e2a37fd26f64fa63e9e7699a799ad743
/Tag.py
0d45aa590457c4c4640a283c3d1d2b1642c08e9c
[]
no_license
aungwaiyanhein21/virtual_lab
7921d51a8c804ee4fc90d49e37cd12231a3d1ffe
0cd31626af1b765525374fc8e4d3149de4b7e74b
refs/heads/main
2023-07-16T04:51:25.504802
2021-08-16T13:17:38
2021-08-16T13:17:38
394,349,659
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
from lab_db import * from utils import * COLUMNS = ['id', 'title'] def get_tags(conn): rows, error = db_get_tags(conn) objects = [] if rows is not None: for row in rows: objects.append( row_to_dictionary(row, COLUMNS)) return objects, error def ge...
[ "aungwaiyanhein@Aungs-MacBook-Pro.local" ]
aungwaiyanhein@Aungs-MacBook-Pro.local
d5de15191b5b65b8672942b474be1928172186e4
4806d5b15b45e30be16c857faaacaa278eba09d3
/parse/parse_gansu_worker.py
a675f10751af6f727dfa48302b11fee243b2bc58
[]
no_license
osenlin/gsxt_spider
9ebc90b778ca1fe31f3339ddeccdac66808a1d96
6e75fe9802620284e8c19c6f23a9a90911b39016
refs/heads/master
2020-03-20T01:10:50.348913
2018-06-12T12:34:53
2018-06-12T12:34:53
137,068,844
5
9
null
null
null
null
UTF-8
Python
false
false
28,729
py
#!/usr/bin/env python # encoding: utf-8 """ @author: youfeng @email: youfeng243@163.com @license: Apache Licence @file: parse_base_worker.py @time: 2017/2/3 17:32 """ import traceback from pyquery import PyQuery from base.parse_base_worker import ParseBaseWorker from common import util from common.annual_field impor...
[ "694982665@qq.com" ]
694982665@qq.com
6df2056ff1d872877478b3262889069c5861363e
ed69733d37d120674fb9725e2f3e3376885fc295
/svm.py
b0ba3a7513fbf13a52700b41c478cce3a66cc425
[ "MIT" ]
permissive
zacateras/nn-nbirds
b0c105066ed2c2628b1946ee8ce1a925eb14132f
3ed19982c442b8d47d284307a8a814deaef107e3
refs/heads/master
2020-03-12T10:11:40.664248
2018-06-14T23:58:42
2018-06-14T23:58:42
130,567,878
0
0
null
null
null
null
UTF-8
Python
false
false
5,666
py
""" Utilities for evaluating svms on neural model outputs Useful functions: * predict_svm_vectors -- for predicting test and training vectors * evaluate_svm """ import os import sys import keras from keras.preprocessing.image import ImageDataGenerator from preprocess import apply, build_ds_meta, bounding_box from...
[ "andrzej.dawidziuk@gmail.com" ]
andrzej.dawidziuk@gmail.com
fbd5195610ae44c4f76a292e76f30c65bf358f4e
d37f6a525fc61e22d27f5dea5d57abc3b41539d6
/main/migrations/0009_auto_20160613_1657.py
593df6fb7ea04bca30b71e794e56dfbab6f58860
[]
no_license
pawanaraballi/GradMaze
40427cd415fd32c850a9bb8f498c78934aa0077f
cb4316d63a0a0e438fd16e0c34c83790e2596eb3
refs/heads/master
2021-01-17T06:29:20.875503
2016-08-14T16:34:27
2016-08-14T16:34:27
64,424,881
0
0
null
null
null
null
UTF-8
Python
false
false
1,712
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-06-13 16:57 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0008_auto_20160613_1656'), ] operations = [ migrations.AlterField( ...
[ "jknigh28@gmail.com" ]
jknigh28@gmail.com
2cbd3471948723ca1549e4f3554303d705f8caad
78e328628b62613c69d26c2a6ae696328307d681
/tutorial/bluetooth/rfcomm-client.py
addd2dda0c03c612b0a05a2701271ecafcecf69b
[]
no_license
funwalla/Sandbox
9df4ed637cf696950657ece1c36e2c907777bd5b
32a488bcdd171afa78589fe16cd0f3aa1bae4aff
refs/heads/master
2021-01-10T18:25:38.090148
2012-06-21T01:36:44
2012-06-21T01:36:44
3,556,464
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
import bluetooth bd_addr = "F8:DB:7F:18:E1:D5" port = 1 sock=bluetooth.BluetoothSocket( bluetooth.RFCOMM ) sock.connect((bd_addr, port)) sock.send("hello!!") sock.close()
[ "johnpaulwinchester@gmail.com" ]
johnpaulwinchester@gmail.com
81d8aad24aacbad9031db09fd9f0fb41b6886ab9
6a19ba3d871f050d486c3f8f5a7973f9707f2e26
/python_1/study_webservice/__init__.py
b0fe3ab6929c51fb95596c8e061f220a7d751f51
[]
no_license
KRIS123456654321/pytest
5ea3e9eaf51d82ab904d6af06047955c5731535d
2f425a1263e78fba36bc1094175c1e967498cafc
refs/heads/master
2020-09-01T06:21:08.151013
2019-11-07T06:28:15
2019-11-07T06:28:15
218,898,234
2
0
null
null
null
null
UTF-8
Python
false
false
131
py
# _*_ coding:utf-8 _*_ # @Time :2019/7/28 17:30 # @Author :xiuhong.guo # @Email :892336120@qq.com # @File :__init__.py.py
[ "892336120@qq.com" ]
892336120@qq.com
7314c2d996c31dcbda1bb79a693a93b259857c44
fbeed384e855fc90719ad8d5423f9574d1f720c3
/programas.py
494c3c634d9a67bdc7f4c6fb231ceb426dff45e9
[]
no_license
lespinoza182/TTMelanomaESCOM
4363b49d167a8ba7ee4c11f12a05e8bbcff5bacd
0232ff8a7607e29f89097d6037138badd1ef6d4f
refs/heads/master
2020-03-27T08:00:00.571605
2019-04-05T23:33:05
2019-04-05T23:33:05
146,211,764
1
0
null
null
null
null
UTF-8
Python
false
false
31,882
py
# -*- coding: utf-8 -*- from PIL import Image from matplotlib import pyplot as plt from collections import Counter from scipy import ndimage as ndi from skimage import feature import scipy.misc import numpy as np import statistics import random import scipy import time #import cv2 """ABRIR UNA IMAGEN...
[ "noreply@github.com" ]
lespinoza182.noreply@github.com
400556d084d848f2f98fbc226d21d5d1372fb006
a97a244c1586f0f742d8ef159f86b7d8a677187f
/lunch/stores/forms.py
deb5ec107bf8df35cc5b023b14bd7d39040a1439
[]
no_license
white1033/play_django
da9d8fe695d673b8cc0069e95482554da1b02d5e
f5e56983cd45465c2efd3ac0e3f5f4e0e7703ee1
refs/heads/master
2021-01-10T02:16:12.897064
2015-10-25T04:16:44
2015-10-25T04:16:44
44,461,591
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
from django import forms from .models import Store from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit class StoreForm(forms.ModelForm): class Meta: model = Store fields = ('name', 'notes',) def __init__(self, *args, submit_title='Submit', **kwargs): sup...
[ "k75715@gmail.com" ]
k75715@gmail.com
7f0d01cad5f22e0769e53477e5496c0680068b8a
4c765c87c0fd04140b168451f0a42ed378515287
/app/api_service/core/views.py
d5b983280040fb34d2ecf362046213a6701e7303
[ "MIT" ]
permissive
TheRayOfSeasons/worker-heavy-cicd
807c0aaf44152cdb9ba0d35575d7c428d8213543
fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7
refs/heads/main
2023-03-02T01:31:25.454289
2021-02-13T07:41:26
2021-02-14T11:02:41
338,232,547
0
0
null
null
null
null
UTF-8
Python
false
false
3,913
py
from django.views.generic import TemplateView from braces.views import JSONResponseMixin from services import Services class JSONView(JSONResponseMixin, TemplateView): """ A view dedicated for responding customized json data. Reference: https://docs.djangoproject.com/en/3.0/topics/class-based-views...
[ "rsison@spectrumone.co" ]
rsison@spectrumone.co
e55c67e7f09dfa60555f9a33399e0aaf3724b524
47eb064a50b16c47c125d6cdfc63fc3ab691194c
/epidemioptim/configs/korea_dqn.py
bd1a78c376270e4b0fd181c244707b0e525f25e4
[ "MIT" ]
permissive
hyerinshelly/RL_COVID-19_Korea
3c0cb44e193496507173ce43fa23de4be8166f49
da95b6713969271043a44c10b84f9407f038b71a
refs/heads/main
2023-03-09T04:10:21.581753
2021-02-22T08:18:32
2021-02-22T08:18:32
334,847,087
1
0
null
null
null
null
UTF-8
Python
false
false
1,150
py
import numpy as np params = dict(expe_name='', trial_id=0, env_id='KoreaEpidemicDiscrete-v0', seed=int(np.random.randint(1e6)), num_train_steps=1e6, simulation_horizon=364, algo_id='DQN', algo_params=dict(eval_and_log_ev...
[ "hyerin.park@kaist.ac.kr" ]
hyerin.park@kaist.ac.kr
bd9c2429cb08c15e8eb876b779ccb1bbe80aa632
b1bdf49b6ff747f987855ced09d504b30f012b74
/tests/conftest.py
0a56dbee2a9e9ef1d8d2a3b0d15b057df3b1e986
[]
no_license
olegviv/Goal_2
6053b867bb1d69d122c3fe4b92cf4bde10e13dfc
0463a1359e3f007e1ed40a9b3b5a5c12481014ae
refs/heads/master
2022-12-24T17:18:48.099178
2020-10-13T16:48:13
2020-10-13T16:48:13
302,304,114
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
import allure import pytest from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver import Chrome @pytest.fixture() def driver(request): driver = Chrome(ChromeDriverManager().install()) request.cls.driver = driver yield driver driver.quit()
[ "oleg.viviursk@gmail.com" ]
oleg.viviursk@gmail.com
a55121c50d2cd17ca1822484ea63faff551bfcf1
89fc7f37c5a40c1766028d56319cb5fc6a87a6a6
/milicien/admin.py
e99cf318863e00b1d0477066e5a88c0a2a8496aa
[]
no_license
ubltroll/lamer_py
c795e144776db6bd1aadc231ad656b44e7d73655
69bfadcf0902acfef73bf604659db75241bdfafa
refs/heads/master
2021-05-11T16:55:55.292981
2018-04-22T13:53:59
2018-04-22T13:53:59
117,779,762
0
1
null
null
null
null
UTF-8
Python
false
false
982
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import User from milicien.models import Profile,assistance,setting,shipCode # Define an inline admin descriptor for Employee model # which acts a bit like a singleton class ProfileInline(a...
[ "chen1045bc@vip.qq.com" ]
chen1045bc@vip.qq.com
504c14f5fabb4276e0030bac3aa60f28bd43ecd0
2d2f1810cadeea58d4883806a2e768f9bb989633
/prectice/check/migrations/0011_auto_20210214_2221.py
38744f05f6c269374ad4aeacb480162a2a2fa44c
[]
no_license
khansaUmatullah/hospital-management-system
17c75aea46c8bdd4a27cbfa3d53b10644c53b3b5
b7b9c237faa352053d9faae90694ef970dc43752
refs/heads/main
2023-03-06T19:50:35.487761
2021-02-21T23:04:08
2021-02-21T23:04:08
341,020,693
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
# Generated by Django 3.1.4 on 2021-02-14 17:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('check', '0010_furniture_pharmacy_prescribed_prescription_records_staff_supplies_surgical_instruments'), ] operations = [ migrations.AddField...
[ "2017ee154@student.uet.edu.pk" ]
2017ee154@student.uet.edu.pk
649d07398de11e3ef5cede9ff99e0e0d1a27c6e5
2548c338652a3da8735e93d9fac052d2031dde73
/wsgi.py
d5ffc72431b396f3a8328da482a80637e00c6b78
[]
no_license
ronjohn4/poker-old
94f17cd7deadab004138031530f698103bcdca2d
e9bbdca0e4f13bd1f6c4cac367414a0c01d655f6
refs/heads/master
2023-07-05T01:06:53.154780
2021-08-30T12:09:39
2021-08-30T12:09:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
from app import app if __name__ == "__main__": app.run(use_debugger=False, use_reloader=False, passthrough_errors=True, port=8002)
[ "ronjohn4@gmail" ]
ronjohn4@gmail
98881a7d9718ec10104ceb76b6f517e293aeb331
e298cff908393cfbacf4910cfafb66b3231698ba
/Part 3 - Classification/Section 14 - Logistic Regression/classification_template.py
03c23d0126bf052cabb080f19b8dec8a4fd52e0f
[]
no_license
efagerberg/ml_udemy
0db9e1a9328ea14d9cd48e03c1171f4c31b13146
a679d625f98c0f9d83cfecb9eceee35909849618
refs/heads/master
2021-04-26T23:36:02.676150
2018-06-13T04:36:34
2018-06-13T04:36:34
123,825,738
0
0
null
null
null
null
UTF-8
Python
false
false
2,642
py
# Classification template # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Social_Network_Ads.csv') X = dataset.iloc[:, [2, 3]].values y = dataset.iloc[:, 4].values # Splitting the dataset into the Training set and Test se...
[ "adioevan@gmail.com" ]
adioevan@gmail.com
7357b195617ca226ab46ca633dea4d8c5de65e95
db24de31a07b254b721bb035239cd0cc03e5a364
/backup_configs.py
573885939af473e6e4f48ad1aaaf0f7c1c26b339
[]
no_license
darathma/pexpect_examples
74fe1708e7edb79a2dbc7330af9aba4db799a0b8
3e52fbeb801ef530d296509691fcae66db3e53ac
refs/heads/master
2022-09-28T13:11:10.798839
2020-06-03T21:09:09
2020-06-03T21:09:09
269,162,544
0
0
null
null
null
null
UTF-8
Python
false
false
2,216
py
import getpass import pexpect import sys from datetime import date user = input('Enter your username: ') password = getpass.getpass() ssh_newkey = 'Are you sure you want to continue connecting' today = date.today() file = open('multi_switches.txt', mode = 'r') for host in file: IP = host.strip() print('Conn...
[ "noreply@github.com" ]
darathma.noreply@github.com
2a9855d3fb56e3ed2309e33db3599a88d81e0948
c3a91a245155e5e573dc554fdacb94858df5d36a
/Nukey/cogs/cmds.py
aa750619578a257c2ace0c0a32a626dbc45e9723
[ "MIT" ]
permissive
lmnbot/NukeBotPython
ef549202594cad6a9a1b107c01f52a0ef8cdd963
036a78fb62e95d1814e0417098e61b0b7d2098ce
refs/heads/main
2023-07-15T18:13:17.848778
2021-09-02T10:19:14
2021-09-02T10:19:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,613
py
import discord, os, sys from discord.ext import commands def restart_program(): python = sys.executable os.execl(python, python, * sys.argv) class utility(commands.Cog, command_attrs=dict(hidden=True)): # Set it to False to make commands visible in the Help command def __init__(self, client): self.cl...
[ "noreply@github.com" ]
lmnbot.noreply@github.com
2fe3c41092642fd883280b535084a8e65677a4f4
283928f562574f40161cbf5b93b9b3be4de55ee9
/inference-engine/tests/test_Image_Predictor.py
4005499296b36ba51f813b803e4969bc5ff1ebe9
[]
no_license
kongseokhwan/smart_signage
4ab6689efcbe11f38e62eaf36291c845ed7c641f
b0c97d71bf8c1cf754e09ec9c61c2c693bba80fc
refs/heads/master
2022-04-05T02:08:04.636909
2020-02-25T05:46:12
2020-02-25T05:46:12
242,871,042
0
1
null
null
null
null
UTF-8
Python
false
false
364
py
import pytest from handler.ImagePredictor import ImagePredictor class TestImagePredictor: def test_read_image(self, capsys): print ("test") self.ip = ImagePredictor() self.ip.read_image('rtsp://admin:Kulcloud&&@10.1.100.35:554') #self.ip.read_image(0) print (self.ip.predict(...
[ "luzhcs@gmail.com" ]
luzhcs@gmail.com
d37c55351fcc58f0a0f56e067c8a897e7fc01e76
e912adc644de0a3df82885ff28fc1b91120ee966
/sfnenv_bak/bin/pilfont.py
f0cfccb02ca5dcd8e6c7c0b9d016c7577d4db9a8
[]
no_license
aescobarr/sapfluxnet-form
fad64a4f6ebf45d4473be4ecd11ad937bd1aea32
e4149ea30ece77995774fd87093e8967a2fcb012
refs/heads/master
2020-05-21T23:55:52.133865
2017-01-11T15:53:52
2017-01-11T15:53:52
46,056,185
0
0
null
null
null
null
UTF-8
Python
false
false
1,058
py
#!/data/webapps/sapfluxnet-form/sfnenv/bin/python # # The Python Imaging Library # $Id$ # # PIL raster font compiler # # history: # 1997-08-25 fl created # 2002-03-10 fl use "from PIL import" # from __future__ import print_function import glob import sys # drivers from PIL import BdfFontFile from PIL import PcfF...
[ "agustiescobar@gmail.com" ]
agustiescobar@gmail.com
8d2bdb40a597116b5b8b30dc0ea6843cf904412e
fffc0e2384d29fb34041e0bde8c50cd4b01422d8
/core/mixins.py
95ec4f36c493724ee34f8cf40fb82a2c4c8032f6
[]
no_license
andrei-dev-fe/HelloWord
7d87959e5c7e92d0c0f094d8dc7ccb6ce594b2e8
1c5f22623f7d51df690c2cdaa9864206cac37c0d
refs/heads/master
2023-03-22T12:37:34.015566
2021-03-23T02:25:41
2021-03-23T02:25:41
350,553,132
0
0
null
null
null
null
UTF-8
Python
false
false
1,207
py
from rest_framework import mixins, status from rest_framework.response import Response class BulkCreateModelMixin(mixins.CreateModelMixin): """ Create valid objects and return errors for invalid ones. """ def create(self, request, *args, **kwargs): # The initial serializer serializer ...
[ "andrei.webdev@hotmail.com" ]
andrei.webdev@hotmail.com
6f6e48737ae09ffa6ef92e8c00509c5193658852
5ed444725da469bd57dc149ae463fe463120da0e
/mysite/mysite/urls.py
0a74e3a40753f6a2b6f284eb97c8f272dcdd3b95
[ "MIT" ]
permissive
pranjul-jani/todo-list
45ccb923e8f4924ab2043da3f8fa26744c2ea038
f8e0c3ccdd8bda81c8b760b7af10fd6f7e4055e7
refs/heads/master
2022-12-04T08:28:29.986230
2020-08-29T14:25:12
2020-08-29T14:25:12
290,665,075
0
0
null
null
null
null
UTF-8
Python
false
false
794
py
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
[ "49308187+pranjul-jani@users.noreply.github.com" ]
49308187+pranjul-jani@users.noreply.github.com
977bc6a3732170a6fb220cdaace2fb742271b850
ae8b636b8d189090f3950a52efd8ae53dabb0cc2
/lmi_sdp/tests/test_lm.py
4245701f3ba6c7b80678b2fa8e62d3cd65256e3d
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
fanfufei/PyLMI-SDP
453a5d9f220596a313b2f72d34b2bf84ab11d614
cac22772feeff1f7d3366d89c9d3d1a977e14eb1
refs/heads/master
2020-06-13T23:00:21.030218
2014-09-14T18:48:00
2014-09-14T18:48:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,408
py
from sympy import Matrix, zeros, MatAdd, MatMul from sympy.abc import x, y, z import numpy as np from lmi_sdp import NonLinearExpressionError, NonLinearMatrixError, \ lin_expr_coeffs, lm_sym_to_coeffs, lm_coeffs_to_sym, lm_sym_expanded def test_lin_expr_coeffs(): e = 1.2 + 3*x - 4.5*y + z coeffs, const = ...
[ "crisjss@gmail.com" ]
crisjss@gmail.com
5eafb0bd65c0b310e67e3a137116184bb8059d51
a55733d3261a0a14a640616121837dd1c38e8636
/rectangle_tracker.py
713cc33bf746a6fdeab495f25179f551dbd4583e
[ "Apache-2.0" ]
permissive
jsdelivrbot/python-opencv-rectangle-tracker
795e497cb59ad89220df02f1df7da751a4fd3e71
5b081acd9b35b16ace88b84732653cd3c42cabbb
refs/heads/master
2020-04-10T15:07:28.474597
2018-12-10T00:35:52
2018-12-10T00:35:52
161,097,853
0
0
null
2018-12-10T01:06:03
2018-12-10T01:06:02
null
UTF-8
Python
false
false
13,985
py
""" Notes: 1) This is algorithm is primarily designed for a rectangular piece of paper lying flat on a flat surface, but may work in other situations assuming that the paper's corners are not obstructed. 2) The camera's view of the paper must be unobstructed in first frame. """ # Basic Depende...
[ "andyaport@gmail.com" ]
andyaport@gmail.com
fbbf8f93cf2a35f516071a2bd3596f99dbb244ed
f54b186409c85df5eaedb0800f6f1175d0832dd7
/SlidingWindow.py
c7fca4fbca12a09e5fd805ba924c5aad1d889ac2
[]
no_license
scimone/BG_Clustering
ad92fc48482267f62c5c5e4be68505e6c6e3e6f3
f073fc3be5c482b901d36ab3a0e5f357e9af1963
refs/heads/master
2023-01-22T10:32:17.894669
2020-12-05T13:33:01
2020-12-05T13:33:01
318,784,728
0
0
null
null
null
null
UTF-8
Python
false
false
1,150
py
import numpy as np class SlidingWindow(): def __init__(self, time_data, window_size=24, start_time=0, stride=1): """ Sliding window approach: Multiple vectors of length "window_size" are created from "time_data" vector, each shifted by "stride" time steps :param time_data: list of time da...
[ "56034784+scimone@users.noreply.github.com" ]
56034784+scimone@users.noreply.github.com
08d07137db86aa9a39796ee890744278c465c620
8af1e14d37b2d730aeeaf49fd2091a02708124c2
/build.py
b8953023fe83ba4262c6158faa1e1b39734e2246
[ "MIT" ]
permissive
gilmoreorless/double-30-overs
aebd0fc332121f2ff82ce5f003a9b09f023a79fe
9dec986e5a2be31dec2122dd712a1c5ac8fe77ea
refs/heads/master
2021-01-19T01:25:45.296001
2015-05-23T01:00:58
2015-05-23T01:00:58
33,439,198
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
#!/usr/bin/env python # # Requirements: pip install markdown import re import codecs import markdown with codecs.open('src/index.md', 'r', 'utf-8') as input: source = input.read() html = markdown.markdown(source) # Big callout numbers # ++1234++ callout = re.compile('\+\+(.*?)\+\+') html = callout.sub('<q clas...
[ "gilmoreorless@gmail.com" ]
gilmoreorless@gmail.com
0f97f6497d711f09d33f01461d992e7caa12c186
ed32eb1eb0a328a4ffe89e178fc4987470f333cd
/module/multi_process/multi_process_data_share_queue.py
5a0bf787d49a21a07716851ed7ecdbf5bd202769
[]
no_license
xiaoyaojjian/py_learn
c6f5bdf31bcebf29dd914e81e6be9305a61265cc
95e494ea823d2074a05c1c2a49595002a1576093
refs/heads/master
2020-12-05T23:22:11.017066
2016-09-08T01:13:08
2016-09-08T01:13:08
67,654,055
1
0
null
null
null
null
UTF-8
Python
false
false
350
py
""" 使用 multiprocessing 中的 Queue 队列, 实现进程间数据共享 """ from multiprocessing import Process, Queue def fun(q, n): q.put(['hi, ', n]) if __name__ == '__main__': q = Queue() q.put('Ao') for i in range(5): p = Process(target=fun, args=(q, i)) p.start() while True: print(q.get())
[ "q2868765@qq.com" ]
q2868765@qq.com
410876bd63bf1ac4b7d336894b9e933c1917fd8a
54011e314cc277d37d131d7e6a5977ab4e62a136
/src/split.py
f4c4ec2da428481908b14cba4727ff96c03984f1
[ "MIT" ]
permissive
DataManagementLab/fandomCorpus
578c3854e7c2038d0321520537bac4f27d57d75b
d89f57fd1b2d868d7984c572bfba3ea6b07ec8b8
refs/heads/master
2023-07-20T07:11:07.243934
2023-07-09T10:08:12
2023-07-09T10:08:12
225,869,277
1
0
MIT
2023-07-09T10:08:13
2019-12-04T13:04:43
Python
UTF-8
Python
false
false
5,018
py
import json import os import sys from os import path, listdir import random from math import ceil from parse_dump import get_base_path SPLIT_TEST = 0.1 SPLIT_VAL = 0.1 def split(wiki_name, experiment, threshold=0): """ Split available files into train, validation and test set :param wiki_name: name o...
[ "benjamin.haettasch@cs.tu-darmstadt.de" ]
benjamin.haettasch@cs.tu-darmstadt.de
104faf0976a57398e08a2092df8011c01c40ff5a
2e5dbb3b851a3e96d715bc50c54b2dbe84b52a7d
/dl/lecture01/furniture/download_furniture.py
bf49967dc44eb0f6705f470a5f97d465ab403096
[]
no_license
devforfu/fastai_courses
b3116ec93cef2174e661c1d1884a33d8510f08a5
82ee6e299c805f10e224c6a3473ac75ffbfdada4
refs/heads/master
2020-04-02T07:04:23.766567
2018-12-21T16:49:04
2018-12-21T16:49:04
154,180,455
4
1
null
null
null
null
UTF-8
Python
false
false
5,327
py
import os import json import argparse from io import BytesIO from pathlib import Path from dataclasses import dataclass, asdict from functools import partial import configparser from multiprocessing import Pool, cpu_count import requests import numpy as np import pandas as pd from PIL import Image from fastai.core imp...
[ "developer.z@outlook.com" ]
developer.z@outlook.com
a811d153e337706d515599bbb07ff549b3e288e1
b0f45a16f34ff84e217ff20cc06f1e8280459504
/antgo/measures/matting_task.py
b4d89c343881b9e68b17ca02028d5a8540f7ccae
[]
no_license
zhaoqike/antgo
c41dd4b8bc3e969f6008a6c17f0b44d0fe4a8eae
c8a62b2567f62db15f26c75dcc2191cb69f392ab
refs/heads/master
2021-07-18T17:37:58.652112
2017-09-12T01:19:15
2017-09-12T01:19:15
102,823,416
0
0
null
2017-09-12T08:04:20
2017-09-08T05:57:28
Python
UTF-8
Python
false
false
3,153
py
# encoding=utf-8 # @Time : 17-7-25 # @File : matting_task.py # @Author : from __future__ import division from __future__ import unicode_literals from __future__ import print_function import numpy as np from antgo.task.task import * from antgo.measures.base import * from antgo.dataflow.common import * from antgo....
[ "jian.fbehind@gmail.com" ]
jian.fbehind@gmail.com
fafe14b197f0c604e61c53c8e48f27d9ee291ebd
6a29573f8e6ce14d8aaa7829935c601dd972891f
/bqgSpider_v0.py
4f632ebab4a2e44eb11d70f3a7f6b04484f49510
[]
no_license
qiebzps/biqugeSpider
003d9f7bd252e234ce0e1b7541e65d86eb83a020
36ba6371e8f4454743ed30476ecc7fca3aa7472f
refs/heads/master
2020-04-07T08:54:32.819298
2018-12-08T12:17:20
2018-12-08T12:17:20
158,232,955
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
# 爬取网页的通用代码框架 import requests def getHTMLText(url): try: r = requests.get(url, timeout=30) r.raise_for_status() #如果状态不是200,引发HTTPError异常 r.encoding = r.apparent_encoding return r.text except: return "getHTMLText产生异常" if __name__== "__main__": url = "http://www.b...
[ "1033239636@qq.com" ]
1033239636@qq.com
1ddbfef718f3f76bbe9b4ec02c96d12a6471ecf9
150fe244b4bf651ad1134d10624e35162a3eb6ed
/api_tests/principal_role_test.py
469dd8a3f086aea605345d18be0ea7ad94ac8b84
[ "MIT" ]
permissive
uluru-phatnguyen/saas_rbac
4e16ee931139d29dcc9ddcce361992521665d5f4
8debc56a9610f8fef1a323155eb938bfef4fa034
refs/heads/master
2021-05-18T19:07:06.216899
2019-07-10T18:10:31
2019-07-10T18:10:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,805
py
import unittest import base_test import json import urllib class PrincipalRoleTest(base_test.BaseTest): def setUp(self): super(PrincipalRoleTest, self).setUp() self._org = self.post('/api/orgs', {"name":"role_org", "url":"https://myorg.com"}) self._principal = self.post('/api/orgs/%s/princi...
[ "bhatti@plexobject.com" ]
bhatti@plexobject.com
f3629dabc9b32d63e5b11a0fc80531d319b34122
2a1cc7bc4e6fec0295e333d64101726e83df1317
/python/MM-19 Turtle Game - Apple Hunter.py
919e10df3c8e0ddbff51a50fc024e6dc3b77c9bc
[ "MIT" ]
permissive
eealeivan/tpt
79b4c46c8a1272466f2e55074b28ac53e8dad504
5960d17f9ef303e851b6759a732e111ae8114458
refs/heads/master
2020-03-31T16:40:46.745704
2020-03-24T21:00:47
2020-03-24T21:00:47
152,385,646
1
3
null
null
null
null
UTF-8
Python
false
false
1,859
py
import turtle import math import random # set up screen screen = turtle.Screen() screen.setup(700, 700) # draw border border = turtle.Turtle() border.pensize(3) border.penup() border.setpos(-300, -300) border.pendown() border_cnt = 1 while border_cnt <= 4: border.forward(600) border.left(90) border_cnt = ...
[ "noreply@github.com" ]
eealeivan.noreply@github.com
dc0bb1fb6349725d85c52d791dfc3534d80f71ef
67616ecf67b9d2bf40fa83f96fb322e717e0b1cc
/Python/Chap02/class.py
6aba7e7332236539c7e7d756f90f8a942cfab7f1
[]
no_license
rajeshaws0054/Rajesh_Final
f9c58cd83ce2d32075e24d95075d1b75119458b4
030c621293a251d66293893e8415f1c9a54d7eb1
refs/heads/main
2023-01-03T22:46:20.916792
2020-10-22T11:46:15
2020-10-22T11:46:15
300,840,961
0
0
null
2020-10-22T11:46:16
2020-10-03T09:15:04
Python
UTF-8
Python
false
false
245
py
#!/usr/bin/env python3 class Duck: def quack(self): print('Quaaack!') def walk(self): print('Walks like a duck.') def main(): donald = Duck() donald.quack() donald.walk() if __name__ == '__main__': main()
[ "rajesh.borugadda@synectiks.com" ]
rajesh.borugadda@synectiks.com
ee2b1a66b05d351436375671a7fe15c17c9c564d
3da9b7208eb5c2192458da0fca9e2e55f3a75d73
/projPandas/app.py
a071ba009e26a5832f0f5ce6bba13ed7f1ed568a
[]
no_license
adityas27/PySnips
42348618551f58cde9aa79591c18e394c9f5413c
285b603cafebf5039b1a5bf1ff036e65c75f4bf7
refs/heads/main
2023-06-17T20:52:43.262246
2021-07-15T11:47:01
2021-07-15T11:47:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
728
py
""" ToDos for this project ¶ 1. Remove NaN values and change it to 0 2. Make Roll_number column as index 3. Sort Index 4. Make new dataframe which consists of Only [Name, Score, Std] 5. Save new dataframe as CSV """ import pandas as pd subject = "geography" df = pd.read_cs...
[ "adityasingh27072746@gmail.com" ]
adityasingh27072746@gmail.com
cb1f8328f2102a4ee9dfd5f445ed447cf7144c20
eb8841069e36ed4894f0e93ec3ce46c8cbddc089
/wishlist-microservice-python/index.py
31e194849659b0998c50170d70e7aaaffe1e7195
[]
no_license
RAJENDER-GIRISH/microservices-application
c1ac63a248e2f040e2acd1a34bcceccbed0112bd
990030db8ef3b5922625d6fcb3f549f1a0479e26
refs/heads/main
2023-06-15T00:24:42.124470
2021-07-14T05:04:59
2021-07-14T05:04:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
from flask import Flask,request from flask_cors import CORS import json app = Flask(__name__) CORS(app) @app.route('/', methods = ['GET']) def hello(): print('Getting List of WishList Items') x = { "1": "Apple Iphone", "2": "MacBook", "3": "Your Fav Something else" } y = json.dumps(x) re...
[ "root@ip-172-31-7-211.ec2.internal" ]
root@ip-172-31-7-211.ec2.internal
33f8e8c7bd58dedd1a60ff330d66f61e776030ca
17e1fef277dce4113f5d4f34107ba9f4b25d6646
/env/bin/s3multiput
f5e975662b4c63d861ea8958d11063454b5b4f2c
[]
no_license
morenopc/botoS3-storages-test-project
278a597d9c79b8b2c79b9e4b8bbe953e4c079270
4672fb00d0866e019d04ec6cd0a27bf3a049b0e1
refs/heads/master
2021-01-23T22:15:24.813838
2012-10-23T17:49:44
2012-10-23T17:49:44
6,357,058
0
1
null
2020-07-25T21:42:25
2012-10-23T17:46:06
Python
UTF-8
Python
false
false
12,970
#!/home/moreno/projects/django/botoS3-storages-test-project/env/bin/python # Copyright (c) 2006,2007,2008 Mitch Garnaat http://garnaat.org/ # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software w...
[ "moreno.pinheiro@gmail.com" ]
moreno.pinheiro@gmail.com
db15a162e4c6680d4242c10abdce862662440536
466125d21b53adce5095912a5c1c91782a9542e4
/price_evaluator_app/urls.py
49d5c35563bbea75e3b54e3965749e7cfd2d2274
[]
no_license
DominikaPasek/price-evaluator
1c7c7a0389969a7cc646c6be155fcf5a30d605ba
837b537825df0639c33c6773f515693dfd5a1aa9
refs/heads/master
2023-06-19T11:16:13.117318
2021-07-17T09:36:50
2021-07-17T09:36:50
384,397,910
1
0
null
null
null
null
UTF-8
Python
false
false
1,428
py
"""price_evaluator_app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home')...
[ "76444887+DominikaPasek@users.noreply.github.com" ]
76444887+DominikaPasek@users.noreply.github.com
aeef40161ad8a17f366260d7335f1bb1e51c30ae
dcd2dea5a0054690cb9a25ac7d55652037d09eae
/gallery/urls.py
09f6a2f2069cf1c987cdcd9a524411daecae9523
[]
no_license
SadLaboka/PhotoGallery
76c1244a6206b1dcba4a39d7ed420b0d4728347b
c5723eb0eff8892b567fb5b7b8ea40d38b7eaee5
refs/heads/main
2023-06-11T18:43:17.482423
2021-07-03T11:35:10
2021-07-03T11:35:10
347,159,247
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
from django.urls import path from .views import ( GalleryView, PhotoDetailView, PhotosByCategory, PhotosByAlbums, PhotoManagement, AddPhoto, DeletePhoto, EditPhoto, UserProfile, UserAlbums, CreateAlbum, DeleteAlbum, user_login, user_logout, register, ) urlpa...
[ "toteshephysic@yandex.ru" ]
toteshephysic@yandex.ru
35e7ae1cc93316c77bb4544a66133e4b8de23b35
5e2ce4d3e4e0f1117a34d859b9bfd4b8ddf45dd3
/show/views.py
0fababbf01f9e1d72a6a88cac11ac1ccd54b9ce3
[]
no_license
Jaspreet-singh-32/Notes
1d231525dee02511dcf84d4b29d04494a6122ddf
354b9d4a69cf25637e1f6624c09a10c077b864ec
refs/heads/master
2022-12-23T19:33:10.844573
2020-07-17T08:33:58
2020-07-17T08:33:58
280,372,293
0
1
null
2020-10-01T05:53:05
2020-07-17T08:38:00
Python
UTF-8
Python
false
false
2,599
py
from django.shortcuts import render,HttpResponse from show.models import Data from django.contrib import messages from show.models import Contact # Create your views here. def all_notes(request): # first = First.objects.filter(subject=slug).values('title','any_message','id','trade','subject') # second = Second....
[ "jassimehra2612@gmail.com" ]
jassimehra2612@gmail.com
4991781b7f3e6313b0c345c9656600838ac75d30
f63d1f49e9cce41016b7c22d880d206948f62627
/lexicons/extract_csw.py
452353bfa1d94ff7daadfd0ea66ea585d26e6551
[ "MIT" ]
permissive
tblock007/boggle
4824c236d5277c29de0b132b03df9c85c03f00e1
8e6f38348a3a7f9e010b54231314bf42cfd4ce36
refs/heads/master
2020-06-30T17:14:00.596702
2020-05-08T05:44:01
2020-05-08T05:44:01
200,893,210
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
def convertLine(l): return (l.split()[0] + '\n') ifstream = open('CSW19defs.txt', 'r', encoding='utf-8') ofstream = open('csw_en.txt', 'w+') words = [convertLine(line) for line in ifstream.readlines()[1:]] for w in words: ofstream.write(w) ifstream.close() ofstream.close()
[ "the.t.block@gmail.com" ]
the.t.block@gmail.com
94e94f0a49146bdb6be636a8ec08afefab19692d
34652a47355a8dbe9200db229a1bbc62619de364
/Matlibplots/dataset/weighted_moving_average.py
ba1c72dd6c5721cf2c82d983bfe57dd402757fc0
[]
no_license
btrif/Python_dev_repo
df34ab7066eab662a5c11467d390e067ab5bf0f8
b4c81010a1476721cabc2621b17d92fead9314b4
refs/heads/master
2020-04-02T13:34:11.655162
2019-11-10T11:08:23
2019-11-10T11:08:23
154,487,015
0
1
null
null
null
null
UTF-8
Python
false
false
1,098
py
# Created by Bogdan Trif on 05-02-2018 , 11:25 AM. import numpy as np import matplotlib.pyplot as plt #first generate some datapoint for a randomly sampled noisy sinewave x = np.random.random(1000)*10 noise = np.random.normal(scale=0.3,size=len(x)) y = np.sin(x) + noise #plot the data plt.plot(x,y,'ro',alpha=0.3,ms=...
[ "bogdan.evanzo@gmail.com" ]
bogdan.evanzo@gmail.com
4b64ead8aaa5f3622333594515050ea8272d1336
c39e19e8fada4df5bf8999f93a470fc5db0b8ea7
/tensorflow/python/keras/distribute/keras_stateful_lstm_model_correctness_test.py
4802c8d07d7c1f2aa5807fb9066c48b3319404fb
[ "Apache-2.0" ]
permissive
ivomarb/tensorflow
6bb05bc6dbaa8e59b43d00a8216bb0b8cb766080
df2fbb89588065fca2c6e5fcfba7d8c2b4378591
refs/heads/master
2020-06-26T05:03:06.321649
2019-07-29T20:30:03
2019-07-29T21:40:30
199,530,704
1
0
Apache-2.0
2019-07-29T21:45:39
2019-07-29T21:45:38
null
UTF-8
Python
false
false
4,359
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
6509cf0f6ae61fc6658747d5fd7bef580f311729
33b401c13196e622b6a492f04e285972a23256df
/main.py
f46f8c2c758b554c925b908525c0e45749eb5212
[]
no_license
bigavo/website_status_checker
104c9501e95c52f0d5e625c8c9cdd783741b9276
5866cb0a95a66a253c43504507037b14d6faf326
refs/heads/master
2023-04-23T22:00:46.249597
2021-05-04T09:38:05
2021-05-04T09:38:05
341,370,887
0
0
null
null
null
null
UTF-8
Python
false
false
2,153
py
import requests import sys import time from typing import Final #Constants URL_FILE: Final = 'websiteList.txt' LOG_FILE: Final = 'log_file.txt' LOG_FILE: Final = 'log_file.txt' def update_page_status(new_status, url, request_time): f = open(LOG_FILE, "r+") for line in f: split_line = line.split("---")...
[ "kieutrinh.ibc@gmail.com" ]
kieutrinh.ibc@gmail.com
b6e9da8a58931142ae37f79ad52061c92bc9993f
5b0e6f520310c30b444cfafd5ee7789b599f7955
/bb.py
79a87809a1c65cdf18820c65b20959f4f9e5c9d7
[]
no_license
heynoparking/code
d1e1d5494ad13bc847ee8c73bec13cc5c02daab7
6a2b3686d82591bdbae787e251f5402b149934aa
refs/heads/master
2020-03-22T15:45:14.605012
2018-08-06T15:50:07
2018-08-06T15:50:07
140,275,277
1
0
null
null
null
null
UTF-8
Python
false
false
285
py
import json import requests url = 'https://www.metaweather.com/api/location/2306179/2018/7/18/' r = requests.get(url) r.encoding = 'utf-8' data = json.loads(r.text) print("Taipei on a 18th Jul 2018. Weather: " ) for i in range(len(data)): print( data[i]['weather_state_name'])
[ "booboo0590@gmail.com" ]
booboo0590@gmail.com
83614d139789b63f093ae4f54391f322b254c0ec
6555c394e124bd9220a03dead6db570f61825474
/blog/urls.py
f25127581696140f31182db2244b7832879ff474
[]
no_license
ccrossla/python-django-blog
5b6c271780b3825ea55b341eec87a5987ad6a78d
ae547ceffc95d653aa8b72bc253507ed6c006a29
refs/heads/master
2020-05-04T12:52:59.924842
2019-04-06T16:25:17
2019-04-06T16:25:17
179,139,198
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
from django.urls import path from .views import PostListView, PostDetailView, PostCreateView, PostUpdateView, PostDeleteView from . import views urlpatterns = [ path('', PostListView.as_view(), name='blog/home'), path('post/<int:pk>/', PostDetailView.as_view(), name='post-detail'), path('post/<int:pk>/upda...
[ "ccrossla@trinity.edu" ]
ccrossla@trinity.edu
76d741d22429a7d8c099ca771922fad8c0f5979e
875673c9ecc38c086c77b1ecdf250e1bb595d09d
/RBC_github_API/extract_github.py
fdf825faaf1e4a8a72fbad2ab014048a84c546e3
[]
no_license
RanajaySenapati/Datasets
9566b17fd5406fae8f6331d2b52e07d76854b5e0
fa38ebc763f1415983862abdd786494794e8ac07
refs/heads/master
2023-06-08T20:11:02.599122
2023-06-03T13:19:36
2023-06-03T13:19:36
166,786,318
0
0
null
null
null
null
UTF-8
Python
false
false
4,388
py
from flask import Flask, request, jsonify import json import pandas as pd import numpy as np import requests import urllib app = Flask(__name__) @app.route('/', methods = ['GET']) def test(): while request: return("Test successful!!!") @app.route('/extract_git', method = ['POST']) def route(): while ...
[ "noreply@github.com" ]
RanajaySenapati.noreply@github.com