blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
26bfeb22b3064fc58afdc997ac5789a4f16af76b
5d14637227621d9d8d8632a6b2487765d11e55c7
/vowelSubstring.py
14c9cd0d4eaae7063f1ecbd18dff0c104fe41f7f
[]
no_license
kubra1tas/Exercises
ad5c0c961a80618484bbe67efef09488de4fffe5
7866674408855ef835e697cd1653f6189d6de664
refs/heads/main
2023-02-17T11:31:58.044300
2021-01-05T10:39:50
2021-01-05T10:39:50
326,958,281
0
0
null
null
null
null
UTF-8
Python
false
false
908
py
vowelSubstring.py
#!/bin/python3 import math import os import random import re import sys # # Complete the 'findSubstring' function below. # # The function is expected to return a STRING. # The function accepts following parameters: # 1. STRING s # 2. INTEGER k # def findSubstring(s, k): coutner = 0 coutner2 = 0 tmp...
b232815474203dc5ce726d291c6ca168b23b7f2d
de3b4dad78b504ace01d181bcc0b542f9377177b
/label_image1.py
fa6ab1db03d7f8b419df610e1e8495ccc2036130
[]
no_license
SulhiCader1/Smart-Prosthetic-ARM
4b0bac2ac49e9a79a804c035241b4d78b722a284
9e8e07d1487b5d8026f5665bd7eeede5c4e22db9
refs/heads/master
2020-04-24T09:04:17.961084
2019-09-15T12:44:15
2019-09-15T12:44:15
171,851,347
0
0
null
null
null
null
UTF-8
Python
false
false
5,413
py
label_image1.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import sys import time import numpy as np import tensorflow as tf import cv2 as c import threading # Author A.C.M.Sulhi (CSE,UOM) # This Code based on concurrent programming . when the code ...
6ef4b18279312a57246744fe585fcd4ca79d39e0
8e1990fa6d430d525d26eeb32d11c6251fcbb4b9
/dengue/settings.py
a3ad41c5c178092ce1d98e4098c3434f6d9590f9
[]
no_license
aldnav/denguepy
c837e133d786632cebeb7cc91d4781a0633a5bf3
cd55effba2fbe325291158940216cafe7aa22660
refs/heads/master
2021-01-20T08:48:56.397611
2014-11-11T21:59:03
2014-11-11T21:59:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
settings.py
__author__ = 'aldnav' db = 'sqlite:///database.db' __config_file__ = '.config.json' import json with open(__config_file__) as file: config = json.loads(file.read())
680d3d7505edbf86876b427cbc9b89b509a94201
bb2d44a0c979db5b97841328a4cf5608cef7d1ca
/ingwebservice/utils.py
d8c2222b90feda8336dd8a50aadadf48862433e2
[]
no_license
emesik/ing-webservice-python
04ecb7a4ee3b56dab1e77fe66a6c975903c6ad7e
d498d7b653c28410ee9438bb6dc30eae009a1334
refs/heads/master
2021-10-10T20:04:46.927058
2019-01-16T15:13:31
2019-01-16T15:13:31
114,558,037
0
2
null
null
null
null
UTF-8
Python
false
false
736
py
utils.py
# -*- coding: utf-8 -*- import re from unidecode import unidecode _VALIDCHAR = re.compile(u'[A-Za-z0-9,\/()\?\.\ -]') _VALIDCHAR_PL = re.compile(u'[A-Za-zĄĆĘŁŃÓŚŹŻąćęłńóśźż0-9,\/()\?\.\ -]') def charfilter(s, allow_polish=False): validator = _VALIDCHAR_PL if allow_polish else _VALIDCHAR chars = [] for ...
87eeac243a435d934b9079c6aef320ea6871a8be
6a63b4a189ba65822971ba08b018bf4e6123759a
/test.py
0a67bdb90fe3f81dffaafe013bc6e24d4f5a3907
[]
no_license
HyundongHwang/MyMlStudy
f2d941cd8d38417fd8fcae020d7f21a613d4cb3f
5459639f61c3ab8004900efcd1204a90dd91376f
refs/heads/master
2021-01-12T02:11:37.087188
2018-04-19T13:42:02
2018-04-19T13:42:02
78,484,938
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
test.py
import numpy as np for x in range(100): if x in [0, 1, 2, 4, 8, 16]: print(x) for x in [0, 1, 2, 4, 8, 16]: print("x = %d" % (x)) import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import te...
f895cc605857e26d378c116b97c067daed3857c4
917d2ecb334664b38f67c30c66c7d8da9b562099
/why_web_tech_is_bad/in.py
45c8feac40a856e699ba5eab7c6bcf545237c5a2
[]
no_license
worldmind/tech-notes
442ad76638770fc1130a3c3e05be4b0f056e6934
570ade93cd52df6fd27128f4acf588c24340b8f8
refs/heads/main
2023-05-01T22:01:50.476031
2023-04-30T15:19:54
2023-04-30T18:28:17
127,509,122
1
0
null
null
null
null
UTF-8
Python
false
false
58
py
in.py
arr = [0,1,2] elem = 2 if elem in arr: print('Start')
c65f40462a268c5afb519f7718c99ee623b00f9d
b2c853a74088e7073ca2f3c7fc2543a64e122c42
/oef-03.py
f79eb5071f7146551c5260a62a91f8173b565c24
[]
no_license
DeBusscherElias/oefeningen-week-4
9ca51e506e1b50c05e843c60c37ed5708a66ecb6
73183c8bf4a56aa7c11416234932e3702f87858e
refs/heads/main
2022-12-25T21:22:31.726449
2020-10-12T14:30:16
2020-10-12T14:30:16
303,417,906
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
oef-03.py
vrienden = [] vriend = input('Geef de naam van een vriend of sluit af met een leeg veld') while vriend != "": #opslaan in lijst vrienden.append(vriend) #opnieuw vragen vriend = input('Geef de naam van een vriend of sluit af met een leeg veld') print(f"Dit zijn je vrienden: {vrienden}")
7a4f87163125abafc45b897d010fd10820d87fdf
7ef908647f5fcdf8f5b11302203c3fa8d8347b64
/DeepConvRF.py
c77e264fa0380a7435f263f5d9fdffef05a49548
[]
no_license
ypeng22/ConvRFClassifier
55d6376c99e965d2ad624b1f788ca5835e5e5514
9da7a139a2fd4b1d9bc5a5a432a261ede517a879
refs/heads/master
2023-04-18T03:57:41.206125
2021-04-30T09:17:10
2021-04-30T09:17:10
305,228,158
0
1
null
null
null
null
UTF-8
Python
false
false
4,109
py
DeepConvRF.py
import numpy as np from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor from sklearn.metrics import accuracy_score from sklearn.metrics import confusion_matrix import torch.nn import torch class ConvRF(object): def __init__(self, kernel_size=5, stride=2): self.kernel_size = k...
cab5a98b2b3fe3264e5eaee3e52a79662076a505
2277573df4a9e16678c00d8a62cbf1538e8d4bb6
/director/main.py
c4f18c7b00ec4e6b029d5ba0621114f749a9b907
[ "Apache-2.0" ]
permissive
valleedelisle/director
ad7de0b3891a2bd34a8835686a39efed6e2c51c4
e4e102dacb8c26616bdf2a88a543ef40aa38f9e2
refs/heads/main
2023-04-10T15:28:17.497597
2021-04-20T15:43:56
2021-04-20T15:44:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,079
py
main.py
import argparse import json import os import sys import yaml import tabulate import director from director import mixin from director import user from director import utils def _args(): """Setup client arguments.""" parser = argparse.ArgumentParser( description="Deployment Framework Next.", prog="D...
1209f339eb9d9e465e31ef1a0dd92a7807054414
9647bae27cdaa54c2ae06684a99f79acb3e5a073
/src/GestorTemplates/migrations/0001_initial.py
d5d8d2902b6e1de65a350f067bc1588dda5e6007
[ "MIT" ]
permissive
Galimbor/LES_Event_Management
73c42409b410b015674c8fe9df0a4b590e796708
fcdb73fdcd8d318813ea7ea6d27be14b91248f7b
refs/heads/master
2023-07-13T05:47:34.980791
2021-08-01T13:38:22
2021-08-01T13:38:22
391,631,509
0
0
null
null
null
null
UTF-8
Python
false
false
6,543
py
0001_initial.py
# Generated by Django 3.2 on 2021-05-10 22:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('Utilizadores', '0001_initial'), ('Inscricao', '0001_initial'), ('Evento', '0001_initial'),...
f6bc2ac44c63254f66cf2fabd73e799a98237fad
0aedfc4c5e98499d9021b75857cee43629d9f185
/bostaSDK/pickup/list/ListAllPickupsResponse.py
4f9e243e335138a0eeca737458af392f0db72674
[ "MIT" ]
permissive
bostaapp/bosta-python
f42a3389d2056ca6700c69174236d50a806eaee8
df3f48dafac49b2577669fd4d74a5e5e9d28f2c1
refs/heads/master
2023-01-07T20:23:36.153997
2020-11-18T11:10:17
2020-11-18T11:10:17
293,577,512
0
0
MIT
2020-11-18T11:10:19
2020-09-07T16:24:28
null
UTF-8
Python
false
false
970
py
ListAllPickupsResponse.py
class ListAllPickupResponse: def __init__(self, res): """ Initialize new instance from ListAllPickupResponse class Parameters: res (dict, str): JSON response object or response text message Returns: instance from ListAllPickupResponse """ self.fromResponseObj(res...
036b1adedc0f983c6181415d9f5fcadbaf337b64
5ffd64a9a002c0e49ed5d46d28e46a7896f26e22
/Entry.py
d8166e180cc9e91012f9c3e849fb2713830b7a9d
[]
no_license
Anneliese1989/PythonLearning
605fd5d161c5186ff0175ebcb89ecda888171759
a56f7eb11663e7cac420307f0f86de2db8def60c
refs/heads/master
2020-09-24T04:50:50.260269
2016-11-02T03:44:14
2016-11-02T03:44:14
67,040,018
0
0
null
null
null
null
UTF-8
Python
false
false
73
py
Entry.py
import io import test if __name__=="__main__": n=test
4e4336ec11a08f809d680dace02efa01fc1a1d4f
1d59f0b2d7d52680c87d7cd31070bc771862e458
/code/prime_factor.py
32db8dc6507bf397aa7b4bc4431a7c9115a30f94
[]
no_license
youngtailors/pythong
98fcb7648dc4a9e95185296871882cd44e691289
a0438ce95e82a8a2f149c3eab9ad90a03626258d
refs/heads/master
2022-12-12T15:40:54.465202
2020-08-18T11:50:15
2020-08-18T11:50:15
210,789,849
0
0
null
2022-12-11T07:06:35
2019-09-25T08:06:05
Python
UTF-8
Python
false
false
500
py
prime_factor.py
import math def primeFactors(n): if n == 1: return [] if n <= 3: return [n] ans = [] while n > 3: conti = False for i in range(2, int(math.sqrt(n)) + 1): if n % i == 0: ans.append(i) n = int(n / i) conti = True...
6df67b766f31fa0f46afc9e15b513046a1454f04
05d16d13c0ff73d8e78c7124edace2151b711291
/challenges/python/yodle/jugglefest.py
ed64c6744f91a977c3f2e120f6fd39517ef8ce30
[]
no_license
ZacharyThomas/learning
698507410792c77b3f7eb661086ac1581f9c04fb
74e8301a08e40b9ad4c6a29143bceb41cc10e144
refs/heads/master
2021-06-06T13:52:49.077113
2017-07-15T23:40:24
2017-07-15T23:40:24
25,894,475
1
1
null
2015-11-01T03:04:48
2014-10-28T23:13:01
Python
UTF-8
Python
false
false
7,557
py
jugglefest.py
''' Python Solution to Juggle Fest Coding Challenge by Yodle Input: Formatted text file containing juggler/circuit information Output: Formatted text file containing juggler assignments For more information see http://www.yodlecareers.com/puzzles/jugglefest.html Created by Zack Smith 12-22-14 ''' # Necessary imports im...
7416a60a6249365ed422179c67c5670bb07b532e
74f7d5c6388910580784d3fb67ad6024d3f648be
/Text_HLSTM.py
40d2057d8c840a6a401d531dbf5a8d50d8d020db
[]
no_license
neuece/PyTorch_Model_Zoo
92e5ec542e56bbed7c85d8553dcc94e1a48227c0
c2c7216638ddb4453968da55b5aa68bba19dea9a
refs/heads/master
2020-04-15T13:42:23.559268
2019-02-04T03:01:05
2019-02-04T03:01:05
164,726,146
1
1
null
null
null
null
UTF-8
Python
false
false
4,004
py
Text_HLSTM.py
# Highway LSTM (HLSTM) # https://arxiv.org/abs/1510.08983 import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import torch.nn.init as init import numpy as np import random class HighWay_BiLSTM(nn.Module): def __init__(self, opts): sup...
278046922c53d70341497e1623d708eea030d4e1
2a6182594759d971e88a9d5b6752b9a21d952261
/tracking/apps/alerts/models.py
a34a7e4e2cd3cd3e97ef4ea78268dba033dbd4ac
[]
no_license
RobertUJ/tracking
37972f77d31f72b06ec4613b98e5482a45834eec
45a1eec097799b3372ffcc4942a014f90ea8f59c
refs/heads/master
2020-05-18T11:43:29.379609
2013-01-16T17:22:24
2013-01-16T17:22:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
models.py
#encoding:utf-8 from django.db import models from django.contrib.auth.models import User from tracking.apps.devices.models import device class alert(models.Model): user = models.ForeignKey(User) device_alert = models.ForeignKey(device) date = models.DateTimeField(auto_now=True) latitude = models.CharField(max_leng...
5322688ae2ff0a352dcce722af5110cf96aeba9f
f1da75762ea9e9baec0425a80acd05cfcdaa1179
/pynteractive/graphd3.py
e4667bb969cb706a50e2624f09059c7e11224224
[]
no_license
Tagar/Pynteractive
f3253ae5c62b998340f6568718f7de933a7c6d7f
135ac7a6d58e111680553a9c53dbdca3db8ef825
refs/heads/master
2021-02-28T17:49:02.538711
2020-03-08T00:17:31
2020-03-08T00:17:31
245,719,354
1
0
null
2020-03-07T23:11:35
2020-03-07T23:11:34
null
UTF-8
Python
false
false
128
py
graphd3.py
from pynteractive.Network import * class GraphD3(Network): def __init__(self,name=None): Network.__init__(self,name,True)
cf9b0f91aba76dddd87f2e42eb93b6124b36a1e1
400afad2537a911fdecbf18ecac935806e135706
/hcanet/nn/nets.py
e356768d2d0b0c50f5988c8dd1a65f5928c30dcd
[ "Apache-2.0" ]
permissive
TzuRen/hcanet
7afda125bf064c4487f06d4be489fe1b30443f68
4f41900b62c3308334431e2610fff798638147b7
refs/heads/master
2023-05-15T14:41:42.221538
2021-06-07T13:59:59
2021-06-09T16:56:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,910
py
nets.py
from enum import Enum import torch as th from torch_geometric.data import Batch from ..encoding import isin from .modules.action import ActorCriticLayer, HeteroMAGNetActionLayer, QLayer from .modules.encoding import EncoderByType from .modules.graph import GATModule, GCNModule, GraphModule, RGCNModule from .modules.m...
16c24e8c5a8508bec4dab38ec6e8e1589cd43db4
d97fd6e8c60c7b01c6f44dc841769520f59bf57c
/tests/test_vcs_interact_no_open.py
39e59acf1f4b032900da570e63a1333c91f87e94
[ "BSD-3-Clause" ]
permissive
CDAT/vcs
9c231543b82e7c1cb977523efee70e32b250af76
a7652673e585761a4fb32fb3b250ab6f50a4dc05
refs/heads/master
2022-06-03T09:44:48.366523
2022-05-18T22:48:04
2022-05-18T22:48:04
65,930,616
12
5
null
2022-05-18T22:47:59
2016-08-17T18:04:50
Jupyter Notebook
UTF-8
Python
false
false
451
py
test_vcs_interact_no_open.py
import unittest import vcs import warnings #warnings.filterwarnings("error") class TestVCSInteract(unittest.TestCase): def testInteractNoOpen(self): x = vcs.init() x.drawlogooff() # x.interact() with warnings.catch_warnings(record=True) as w: x.interact() se...
6b923c271a743489eca0552adaefa1c4d5b3196d
b0a85ce474f0cdc68c643d6899719e086c609557
/PrimeraParte/caso_archivo/__init__.py
d5c9d9a4819dbee1e49900335782ed87deddf116
[]
no_license
Alicida/cursopython
da77dbbc010898d2cc44358d4aa8a24be90fd800
5c50399d6fc0ca0070d7f96bba1bb181cae5f477
refs/heads/master
2021-01-10T22:01:41.044079
2015-03-02T04:34:32
2015-03-02T04:34:32
31,522,905
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
__init__.py
#! /usr/bin/python # -*- coding: utf-8 -*- import altas import listado import datos excepcion = True while excepcion: excepcion = False try: alumnos = raw_input("Número de alumnos: ") alumnos = int(alumnos) print except (ValueError) as error: print error excepcion = ...
8479c70fed36dc6f1e6094c832fb22d8c2e53e3a
0cd05c58bf7c8f4b21fcedf33207a694adf10278
/scripts/FindMergeConflicts.py
91e798a1712e5a92cd5104961cd2b095bbb54489
[ "MIT" ]
permissive
Manas-Embold/MSRDemos
5343e45ef33ddf4128887273a7814b83fbf884cc
619ee1852fb648d34b7bf4fc9cb4b3d7d7c97c99
refs/heads/master
2022-12-06T08:45:26.606705
2020-08-31T13:46:59
2020-08-31T13:46:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
FindMergeConflicts.py
import os import time from datetime import datetime, timedelta from git import Repo class CommitAnalyzer(): """ Takes path of the repo """ def __init__(self, repo_path): self.repo_path = repo_path self.repo = Repo(self.repo_path) assert not self.repo.bare def get_conflict_commits(self): conflict_commits...
a41d00c86d0bdab1bced77c275e56c3569af4f4e
f3541f1f0538d5388321b30ae916affac8649711
/alchemist/libraries/django_rest_admin/apps.py
b7ce7b71d93cf183a887cefd480ef48852640be1
[ "MIT" ]
permissive
shitpaster/alchemist
95616862df5d5b435e9cb6d5971057a52ca246d2
20163d5fa53f92b4c209c1a34ce6eb93183a9f4f
refs/heads/master
2021-08-28T16:23:07.293617
2017-12-12T18:27:24
2017-12-12T18:27:24
112,838,112
4
0
null
null
null
null
UTF-8
Python
false
false
2,178
py
apps.py
from django.apps import AppConfig from django.conf import settings import importlib import importlib.util class RestAdminAppConfig(AppConfig): name = 'libraries.django_rest_admin' verbose_name = 'Rest Admin' loaded = False def ready(self): autodiscover() def autodiscover(): """ Auto...
e0435b0b34fc011e7330ab8882865131f7f78882
fceee46286848f692cc2ea22cdb04d1543ad3a12
/tests/test_auctioneer.py
328d2e830289cb936e1cca311a2aebfcb67a2f9d
[]
no_license
arkataev/auctioneer
bf7936cc55b942ee181738c33be48cde9c3eb451
9ae229c1d6cd58f9c294666d69cb9f004b31bfb0
refs/heads/master
2020-04-24T14:38:11.759860
2019-02-25T11:10:32
2019-02-25T11:10:32
172,028,458
0
0
null
null
null
null
UTF-8
Python
false
false
4,071
py
test_auctioneer.py
import pytest import responses from auctioneer import constants, controllers, entities from common.http import UnExpectedResult def test_keywordbid_rule_init(kwb_rule, account): assert kwb_rule.get_max_bid_display() == kwb_rule.max_bid * 1_000_000 assert kwb_rule.get_bid_increase_percentage_display() == kwb_...
66904cbe3e57d9cc1ee385cd8a4c1ba3767626bd
44048b7a125bd19ab58e742ce134cc35c36340d2
/chi/truncation/hetapsi/4chi.py
09b749a18edbb0e023f396bd6adda7b58ef70075
[]
no_license
yinshi2018/Nosea
218259f4b25dc9167173ec9a5d8e63d9e4f1ae8a
ef5a09689df24a05a9656e1a57f09527157ba328
refs/heads/master
2021-07-05T06:21:09.278574
2020-11-08T02:56:55
2020-11-08T02:56:55
199,407,749
0
0
null
null
null
null
UTF-8
Python
false
false
1,538
py
4chi.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # sphinx_gallery_thumbnail_number = 3 import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import NullFormatter # useful for `logit` scale import matplotlib.ticker as ticker import matplotlib as mpl mpl.style.use('classic') # Data for plotting ch...
a01ca49c3fa8ea76de2880c1b04bf15ccd341edd
dc7361fd292d59d3ba53cdc4becac4521104ed53
/radmin/manage_accounts.py
8986469cf708d01ea4772707d9f5fa35d20d882d
[]
no_license
piotrmaslanka/athena
cfbb23c9bb6eb34c825ce3731ac05626e3f9ab1e
38d9279a3e720df5ff3e32caedf67c5dab5b3b39
refs/heads/master
2021-01-17T17:01:50.032335
2014-05-14T23:55:41
2014-05-14T23:55:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,376
py
manage_accounts.py
# coding=UTF-8 """ View for managing accounts """ from django.contrib import messages from django.http import Http404, HttpResponse from django.shortcuts import redirect from django import forms from athena.core import render_to_response from athena.users.models import User from athena.users import must_be_admin def...
9adff5da4e26088def9f0e32aa712a1f2b0336ba
fc9f4e6af9df3d05c507c9e114b956dfc26cd0f0
/chapters/2023/team-a/assets/code/step.py
673eaeb3a62c2da3bdac291813622558d07d7439
[]
no_license
RIMEL-UCA/RIMEL-UCA.github.io
0f1334bf9ba77a5ef59c63065f2dbe7c00d70f25
3009e69eab06c9dc4f6f2b7f866fa0b00f909516
refs/heads/master
2023-07-03T16:00:05.606141
2023-02-12T14:40:35
2023-02-12T14:40:35
230,765,683
7
29
null
2023-03-05T22:09:35
2019-12-29T15:04:00
Jupyter Notebook
UTF-8
Python
false
false
257
py
step.py
class Step: def __init__(self, action): self.action = action def __str__(self) -> str: return f'Step: {{action: {self.action.__str__()}}}' def __repr__(self) -> str: return f'Step: {{action: {self.action.__str__()}}}'
668a8005f2f66190d588fb9289293d73a608f767
d027d2c2c4fc3f5a3442956fee712c4e4cdab976
/killmusic.py
d344b0fda784f8eb61f1a10a277af824abf54db6
[]
no_license
trostonfernandes/JasperModules
33080c7802f29d39a9f04611f4c5eb0cacfa5918
69d77fda9be1b55bccb64a9f3725f4625df3f660
refs/heads/master
2021-01-20T06:05:34.401465
2016-11-08T22:09:30
2016-11-08T22:09:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
killmusic.py
# -*- coding: utf-8-*- import random import re from datetime import datetime, time from phue import Bridge import os import glob WORDS = [] def handle(text, mic, profile): messages1 = ["Naturally Sir ","Of course Sir ","I'll get right at it"] final = random.choice(messages1) mic.say(final) command = "ssh pi@...
2257f73a290dfd428a874e963c26e51f1c1f1efa
aac3aac3c24ed84cb55aec802db65e701926918f
/dribdat/app.py
711e24729fa6a6efcce6a8457a2eba30ec69f141
[ "MIT" ]
permissive
loleg/dribdat
92cc0c97b7849ce7b403ac57077a6ab02be1f18b
5d4f9b44f9bd90649b6799070d62845df7c230e1
refs/heads/main
2023-08-30T20:56:34.548047
2023-08-29T22:54:36
2023-08-29T22:54:36
148,625,735
1
3
MIT
2023-03-15T14:27:49
2018-09-13T11:06:49
Python
UTF-8
Python
false
false
6,200
py
app.py
# -*- coding: utf-8 -*- """The app module, containing the app factory function.""" from flask import Flask, render_template from flask_cors import CORS from flask_misaka import Misaka from flask_mailman import Mail from flask_talisman import Talisman from werkzeug.middleware.proxy_fix import ProxyFix from micawber.pro...
d39e3a552a7c558d3f5b410e0b228fb7409d732a
913f942a101e1a89f3f0f0c2d94be58f00558a14
/DBnet/libs/dataset/__init__.py
156ea2c8f92ac4d564bfa06107b45cfdc7863a96
[]
no_license
francisx2019/END2END_OCR
9bdeb0b2d54b5a656e6c5a9cfe20c3fda0161d43
1da9620c877a2a95b234d32265f463795c838b97
refs/heads/main
2023-05-13T22:32:26.679434
2021-06-02T08:08:01
2021-06-02T08:08:01
372,352,338
3
0
null
null
null
null
UTF-8
Python
false
false
59
py
__init__.py
# -*- coding:utf-8 -*- """ Author:xufei Date:2021/1/21 """
c18c407476375fb1647fefaedb5d7ea0e0aabe3a
5ad9dca7ac4fb020ed4d281fddef04511e519c52
/test.py
86a123cd4b1aa8af5e2d55feac48a442a816fd76
[]
no_license
debajit15kgp/BERT-ABSA-E2E
13f7a0c83819b89581bd435ed36e4cee1edbed40
6c0e52266c82df920609592279d4ba055a38b0b0
refs/heads/master
2022-11-26T14:12:38.669544
2020-08-01T17:14:20
2020-08-01T17:14:20
284,304,209
0
0
null
null
null
null
UTF-8
Python
false
false
2,221
py
test.py
import pandas as pd import numpy as np import csv #import nltk #nltk.download('punkt') from nltk.tokenize import sent_tokenize csv_file=open("/home/debajit15/train+dev.csv") pd.set_option('display.max_colwidth', None) df=pd.read_csv(csv_file,sep=','); df = df[pd.notnull(df['Aspects'])] #print(df['Opinion_Words'].iloc[0...
ae871d51bedf16af8ca4186af135f3d8f1ab9a83
db51fb4f7f2bfbb186ea8a366ef950d38504a224
/invoke.py
e56f2ff0c21719707752e0571703153d43a1e867
[]
no_license
sleeping1943/ice_client_test
7b0b294cee8e3564643101bf0ad34e1879d308ff
52ece5673a91be2c30c8b48a0e381a55409be279
refs/heads/master
2020-09-15T07:04:47.440013
2020-01-16T03:38:23
2020-01-16T03:38:23
223,374,440
0
0
null
null
null
null
UTF-8
Python
false
false
1,854
py
invoke.py
import sys from ctypes import * import json ''' ctypes 使用说明URL: http://blog.timd.cn/python-ctypes/ ''' def invoce_ice(dll_file, ice_flag, addr, func_name, in_params, out_params, is_print=False): ''' 指定 函数的参数类型 注:虽然delete_str的参数和invoke的返回指针为char*,但是执行后不知为何指针地址会改变, 都改为void*后无此问题,很是奇怪 ''' if is...
9b2b97bc67c176e89f1830fe820b868f51d74568
89012c1f0873f787e2cdb2306216508f759ed153
/python/python-request/pyreq/lib/python3.7/token.py
0fa9e5542102f3d97438920403f6d5dcbcd6b4ed
[]
no_license
mazharul-miraz/summer-mid-night-019
4727aa7ec70fc22f8870b1ce63cdd19637c0f6aa
ba73ab575fd24a6307d5a0421b514600c2d1e93f
refs/heads/master
2020-05-26T23:20:08.874374
2019-06-13T07:36:09
2019-06-13T07:36:09
188,410,243
1
0
null
null
null
null
UTF-8
Python
false
false
45
py
token.py
/home/miraz/miniconda3/lib/python3.7/token.py
b7a319ef7a91049a1d6cbba784053de406821ee2
981d34373b2c73d548c962ddeb43cb4f37b24a50
/pymetamap/SubprocessBackendLite.py
be351a9facad7430629868a5482d36e47f4340a7
[ "Apache-2.0" ]
permissive
research-bridge-partners/pymetamap
0f1a81f3e69b0c42d11cbdc7b9d46a3bb0ac05bb
572f562af3a21b0dc33ff3f7c830e90fa192b095
refs/heads/master
2020-12-20T13:14:31.970763
2020-02-13T17:59:27
2020-02-13T17:59:27
236,087,691
0
0
Apache-2.0
2020-02-13T16:32:09
2020-01-24T21:36:31
Python
UTF-8
Python
false
false
4,929
py
SubprocessBackendLite.py
# 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 agreed to in writing, software # distributed under the Li...
c1e3df5747a39b9ef8f12455176e5a97e78fd43b
81b5f1ca14b0b6d450bfa22f0f3095e7ca859661
/filings/services/get_open_calais_entities.py
f09159376abf7fa64aaebd54595a9d0d57fb7df4
[ "MIT" ]
permissive
adelevie/filing-explorer
6840b495b3de055fbde0bc1dcdc25e6389adfb50
7ad873b15b573d892fb61bfd3930c9275f74ab70
refs/heads/master
2020-12-24T20:10:08.856068
2017-05-15T16:13:13
2017-05-15T16:44:29
86,239,272
2
0
null
2017-05-10T22:36:26
2017-03-26T14:35:49
Python
UTF-8
Python
false
false
750
py
get_open_calais_entities.py
import requests from IPython import embed class GetOpenCalaisEntities(object): def __init__(self, api_key, text): self._api_key = api_key self._text = text def perform(self): headers = { 'X-AG-Access-Token' : self._api_key, 'Content-Type' : 'text/raw', ...
e9e11f721344cf839d8672764504e03ed83a2eae
c8d477e654b2ce3edf43cfdcc99dab8793925d32
/views/vscpu_view.py
5291492ae8128ec07776baa54fcac8abe25d494d
[]
no_license
MarAlba8/TicTacToe
c135b2e8d47197b4963e3e949403f1394fd61dd4
797bf848fe2712344871f16b23b65cadbe1a590a
refs/heads/master
2023-06-17T20:25:35.740192
2021-07-11T17:32:23
2021-07-11T17:32:23
385,010,724
0
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
vscpu_view.py
from minimax.cpu import CPU from views.vsplayer_view import ViewPlayerVsPlayer class ViewPlayerVsCPU(ViewPlayerVsPlayer): def __init__(self, parent=None): super(ViewPlayerVsCPU, self).__init__(parent) self.cpu = CPU() self.player = 1 def button_clicked(self): name = self.sende...
c50e37dc6703594c1b99bf86acd601e8c9a1ca0d
a306ac255897ef28d86e70852c473ecdb9085664
/UTDMHAD/Classifiers/create_dataset.py
31ae8aee594cc5542576a2acfd8f22cd8fbe3a93
[]
no_license
carodak/Human-Movement
2efa31541141ee4583d1b188ee488abf4b93995c
9084ca1c61fd6339bfc5980a1d2224cde17b7672
refs/heads/master
2020-04-05T18:34:55.260724
2019-05-11T21:20:07
2019-05-11T21:20:07
157,104,337
1
2
null
null
null
null
UTF-8
Python
false
false
5,913
py
create_dataset.py
import numpy as np import random from sklearn import svm import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # This import has side effects required for the kwarg projection='3d' in the call to fig.add_subplot import numpy as np import time import sys def minkowski_mat(x,Y,p=2.0): dist = (n...
4969ba8f21379db24e47d4fab3a3927274810adc
c5744c2fda48ae6a79c155c641fe98021a0cb7f3
/PP4E/MyProjects/WeatherApp/weathercodes.py
31bc49df6f0f7ac05448415085b97b90d6927bc7
[]
no_license
skinkie/Scripts
e0fd3d3f767612ade111f28bc7af3e1b25fc2947
80a1ba71ddf9a0c5ff33866832cb5c42aca0c0b1
refs/heads/master
2021-05-31T16:57:21.100919
2016-05-23T09:58:59
2016-05-23T09:58:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
weathercodes.py
wea_codes = [('城市', 'city'), ('白天', 'status1'), ('夜间', 'status2'), ('日间风向','direction1'), ('夜间风向','direction2'), ('日间风力','power1'), ('夜间风力','power2'), ('最高气温','temperature1'), ('最低气温','temperature2'), ('空气指数', 'pollution_l')]
2a60f021ea9140efdbc88c168a1610ab216524f9
cf4e5165a8408344a4c62e63a0fd2d0fe6308b37
/00-2017/基础班/学生管理系统.py
310050f07f7ae7ca9709baea7d84ccfce3d87545
[]
no_license
kennycaiguo/Heima-Python-2018
5f8c340e996d19f2b5c44d80ee7c144bf164b30e
a8acd798f520ec3d079cc564594ebaccb9c232a0
refs/heads/master
2021-01-08T10:54:18.937511
2019-09-01T14:37:49
2019-09-01T14:37:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,121
py
学生管理系统.py
#coding=utf-8 #auther:microease studentInfos = [{'name': 'huyankai', 'sex': '男', 'phoneNumber': '15172332476'}] #有重复代码,需要完善 while True: print("*"*30) print("欢迎使用系统") print("1:添加新名字") print("2:删除一个名字") print("3:修改一个名字") print("4:查询一个名字") print("5:遍历所有的名字") print("0:退出系统") print("*"*30) key = input("请输入您想要的选项...
827b88170665cb32a5091cca2aa12fe7f6487792
0286453f37380bd9e2ae96d400fdf8342cef6d64
/woodstove/__init__.py
dd95d383093136312210e423aa9d06dbfac2f3d7
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
richardmarshall/woodstove
c6bbf55b33a0ef677c1999742643dcafb743c6fd
9e13705c0d20182d5d0d48199a9b9d086fc29c3f
refs/heads/master
2021-01-15T12:58:55.977691
2016-06-10T03:16:09
2016-06-10T03:16:09
16,850,984
0
1
null
null
null
null
UTF-8
Python
false
false
187
py
__init__.py
# Copyright (C) 2016 IAC Publishing Labs. All rights reserved. # # License: Apache (see LICENSE for details) __author__ = 'Richard Marshall' __version__ = '0.1.1' __license__ = 'Apache'
8a31f32a4353b97430a7210b00eb07789107c5fb
e9987d8b88c39c56281c9553142c3a36c66086c5
/mysite/customs/bugtrackers/wikimedia.py
66ddf41222e943ede43ec236d8ebcaacbab00efa
[]
no_license
rafpaf/OpenHatch
43efad73a9cd7d913285e431ce5a021a1f0cb234
2f84ee1d572bb07cbd27e755ecfe786bc09effe1
refs/heads/master
2016-09-05T14:47:14.654445
2010-06-11T17:20:56
2010-06-11T17:23:30
687,353
6
1
null
null
null
null
UTF-8
Python
false
false
1,791
py
wikimedia.py
import mysite.customs.bugtrackers.bugzilla_general QUERY_URL='https://bugzilla.wikimedia.org/buglist.cgi?keywords=easy&query_format=advanced&keywords_type=allwords&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=VERIFIED&resolution=LATER&resolution=---' BUG_URL_PREFIX = 'https://bugzilla.wikimedia.or...
d7e40a7e5a7b3d8b75737621300727a4efa7d858
0f3391a91018ee88699ef5f556e27445d41c3147
/commands.py
b24b6ac72e9198c8b2703df8b1a8f0b10ea8d777
[]
no_license
sadmicrowave/com.irc.bot
77955cf4e4330ad29ddd0a42b7ea9b7695642c42
ba20e8e53efdcf65d1056943ffe70712f089a7ac
refs/heads/master
2021-05-16T10:43:50.347048
2017-09-26T00:36:45
2017-09-26T00:36:45
104,816,259
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
commands.py
import re, datetime class Bot(object): ircsock = None sendnick = None channel = None @classmethod def push(cls,msg): """Send the expressed command/msg to the remote server we are connected to.""" print( msg ) cls.ircsock.send(str(msg).encode()) @classmethod def get_user(cls, msg): """Get the send...
27c544051af7757afd0841352f560a0cbe1a9450
378e3cf1b9d147a352d19c7357b29ed4e027eb90
/easy/arith_geo.py
a60ce5fc4178f879cf27de66dceee955c728518d
[]
no_license
santiagoahc/coderbyte-solutions
f829d6e613962d6722b114b73bf533081b558ba7
0f1039a824079e6fd59a3ca8f98fc70d305eae6f
refs/heads/master
2023-03-16T09:57:42.286213
2015-11-30T14:35:52
2015-11-30T14:35:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
arith_geo.py
def ArithGeo(arr): diff = arr[1] - arr[0] mult = arr[1] / arr[0] for i in range(2, len(arr)): if arr[i] - arr[i-1] != diff: diff = None if arr[i] / arr[i-1] != mult: mult = None if diff == None and mult == None: return -1 return 'Arithmetic' if diff != None else ...
10887f4bd4f0a94921b16268b2d0b4f24cd6baac
550733d3403902f72be11d248a1cfaad973bb2d2
/Beginning Python/Exercise Files/Ch5/jsondata_start.py
e8108113e7e111fd578ea2af9a1a6adff0eb4fcc
[]
no_license
skb30/Python-Workspace
6323b081166ea40cca47ea2e95a30282f15f6b14
b3304a6bd9007c20669d99beb5ce667543055e94
refs/heads/master
2021-09-10T11:43:32.925076
2018-03-25T22:01:23
2018-03-25T22:01:23
104,132,949
0
0
null
null
null
null
UTF-8
Python
false
false
3,055
py
jsondata_start.py
# # Example file for parsing and processing JSON # (For Python 3.x, be sure to use the ExampleSnippets3.txt file) import urllib2 import json import operator import datetime from datetime import date, time def printResults(data): eq_table = [] # sorted_table = [] tuple_table = () # Use the json module to loa...
cfdeafbf91f3e0a5008ed641f60c19219754d9b6
7963513607e2d7268864467c6bad071146407b33
/omxdsm/tests/test_xdsm_viewer.py
6611f2623dea4fe3358c4854f01af5dd766d12cb
[ "Apache-2.0" ]
permissive
naylor-b/OpenMDAO-XDSM
7eb0a3a22c322aecfec14884cbaa6fe2f16325ad
1497d0e9b1b4d7e62278f42ff036cf772b604039
refs/heads/master
2021-03-04T20:44:11.367945
2020-02-29T15:54:01
2020-02-29T15:54:01
246,063,156
0
0
Apache-2.0
2020-03-09T14:50:14
2020-03-09T14:50:13
null
UTF-8
Python
false
false
40,241
py
test_xdsm_viewer.py
import os import unittest import numpy as np from numpy.distutils.exec_command import find_executable import openmdao.api as om from omxdsm import write_xdsm, write_html from openmdao.test_suite.components.sellar import SellarNoDerivatives, SellarDis1, SellarDis2 from openmdao.test_suite.components.sellar_feature imp...
c2b1f9c60606ad8ffd7139716e3351011e2efc20
c5c8b84aa3cf2b56455c9c1382d09cf12746739c
/time.py
475839a4b976f3727d2da8e7ae86f11dc95748dd
[]
no_license
1ef7yy/course_dutt
b846553d7a3354f415a0fed273ba98cf8c6f2a46
0de67bc59dcbb3c8e5e57626af2d8a0622ed586e
refs/heads/master
2022-12-28T07:57:48.132813
2020-10-07T12:52:18
2020-10-07T12:52:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
time.py
import datetime import time datetime.datetime.now() datetime.datetime(2020, 1, 6, 15, 8, 24, 78915) res = f'{datetime.datetime.now()}' while True: s = f'{datetime.datetime.now()}' print(s[:-7]) time.sleep(1)
b733fed55d270fa0931a43ac8d9559a357ea1bb9
e82b3c6000fe8e4639d6606f9d3605e75a8a5d5c
/src/primaires/joueur/contextes/creation/choix_genre.py
5c5d62030a107e74e1a7ac4e03b1188b5f0cafb7
[ "BSD-3-Clause" ]
permissive
vincent-lg/tsunami
804585da7bd1d159ad2c784b39f801963ca73c03
7e93bff08cdf891352efba587e89c40f3b4a2301
refs/heads/master
2022-08-02T15:54:35.480614
2022-07-18T12:06:41
2022-07-18T12:06:41
25,605,543
5
2
BSD-3-Clause
2019-06-05T15:59:08
2014-10-22T21:34:10
Python
UTF-8
Python
false
false
3,314
py
choix_genre.py
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # 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 copyright notice, this # ...
c94f8be6e6417d893970f875bdf1f8298cbf2531
821f12cb1b5700c3f85b907476712e82f498d47d
/SEII/bayesian_curve_fitting.py
35409b904c134150a8e6c751309766ac0b65c749
[]
no_license
Junjie-Feng/Previous-Projects
bfb19134d79b83f0a5a08b2624ee8f39831736f9
7d1f22c5f5a4134f43297d64f36f8341c36d4431
refs/heads/master
2021-01-11T04:16:43.688141
2016-10-18T00:59:11
2016-10-18T00:59:11
71,194,272
0
0
null
null
null
null
UTF-8
Python
false
false
2,673
py
bayesian_curve_fitting.py
# Name : Junjie Feng # Course : SE II # Homework 3 : Bayesian Curve Fitting # Date of submission : Feb 26 2016 import numpy as np import math import pylab as pl # store data function def store(filename): file = open(filename) data = [] for i in file: data.append(float(i)) return(data) #get ...
5558b9d15ecb2b9eb5d298cd4123210ac4974bab
d6c6e12ab8137caeaf8cd473d05a281d1e206515
/recirq/quantum_chess/move.py
4861b55d343ad213262e28fada5bef8beb219ccc
[ "Apache-2.0" ]
permissive
xeedmm/ReCirq
d31e4263a34640ee9ed581a8b4e8ff733d89de1f
75e7b82543acbffe0986f9b9a178ee6b50abe00b
refs/heads/master
2023-06-19T05:58:15.699438
2021-07-19T16:17:48
2021-07-19T16:17:48
387,850,420
1
0
Apache-2.0
2021-07-20T16:23:19
2021-07-20T16:23:18
null
UTF-8
Python
false
false
6,617
py
move.py
# Copyright 2020 Google # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
25fb6a571b99ce4be6593c8dcd76a7e64afba884
c5208d6cc3d7dd1112324bf564acc6570cf4d9a6
/utils.py
088b9b40df621cf6a918d3be94a15fcd7e65e8e5
[ "BSD-3-Clause" ]
permissive
Billingegroup/19st_tio2b_notebooks
0aa21b1c12256a62c0be387f5a5aca6688b16922
ff1f87cbfebaef2fe298ea50e4f94de1e96e8ef6
refs/heads/main
2023-07-01T14:39:10.710810
2021-08-02T20:53:27
2021-08-02T20:53:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,216
py
utils.py
import math import matplotlib.pyplot as plt import numpy as np import pdffitx.modeling as md import pdffitx.parsers as ps from diffpy.srfit.fitbase import FitResults from diffpy.srfit.fitbase.parameter import Parameter from diffpy.srfit.fitbase.fitresults import initializeRecipe from diffpy.srfit.fitbase.profile impor...
af81a3a22726064d41090e7d7e1aff732114484f
f60b964dc39ba54bb84f1c4949be3b91a92b8346
/issue_order/migrations/0015_auto_20180823_2108.py
0df0f4f40cfacb851faf95607e04c72dca3591ef
[ "Apache-2.0" ]
permissive
jiejiang/courier
4b0b4fc56c5510228ffcc4de51b074c7aff9502f
6fdeaf041c77dba0f97e206adb7b0cded9674d3d
refs/heads/master
2022-11-30T14:24:53.950502
2019-12-06T16:42:00
2019-12-06T16:42:00
195,387,643
0
0
Apache-2.0
2022-11-22T01:22:33
2019-07-05T10:08:19
Python
UTF-8
Python
false
false
1,247
py
0015_auto_20180823_2108.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2018-08-23 20:08 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('issue_order', '0014_auto_20180819_2108'), ] operat...
24bfab16611ca0174b084b5c7695682f59b77ea8
cfe85afcae08c844cb99e603d6c1060a99e320b1
/Divide Two Integers.py
1233b05fbd9e8f537e869a78222952f52a31255a
[]
no_license
Turtle-Duck/leetcode
27392c92cd5843f635982d810b6f95e8f190077f
68b1a8ee4c58e209de3175b61dab53ea04ad8f3a
refs/heads/master
2020-06-15T00:02:31.476480
2019-08-11T08:09:58
2019-08-11T08:09:58
195,159,914
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
Divide Two Integers.py
# Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. # # Return the quotient after dividing dividend by divisor. # # The integer division should truncate toward zero. # # Example 1: # # Input: dividend = 10, divisor = 3 # Output: 3 # Example 2: # # Inpu...
5ca856821f743208f7a7566f5749e8e6fcd073b2
f5848c09e02d3a96b2ecfdccd63e885dd0c5a81b
/balsam/launcher/futures.py
cf9182585d4a5045912fceb53e779589846b2197
[ "BSD-3-Clause" ]
permissive
felker/balsam
a6420aa1ec441fe54780afab307e959af064308e
2a4d2f217daa6265d31a6574ee0228ebedc6381c
refs/heads/master
2021-07-10T22:13:17.842707
2021-03-01T16:18:59
2021-03-01T16:18:59
236,127,321
0
0
BSD-3-Clause
2020-01-25T04:56:12
2020-01-25T04:56:11
null
UTF-8
Python
false
false
5,086
py
futures.py
from collections import namedtuple, defaultdict import time from balsam import setup setup() from balsam.core.models import BalsamJob from balsam.core.models import END_STATES from balsam.launcher import dag class TaskFailed(Exception): pass WaitResult = namedtuple('WaitResult', ['active', 'done', 'failed', 'cancelled...
4956cffddba5297480148b09af2d65efd716fb8c
96602eeaa034e3e7b36df4ed10fba9bc9c9ed5c8
/day35/4.生产者消费者模型.py
0901c8c1f5bbb8af65ad86e9458d7e552aa0e54a
[]
no_license
microease/Old-boy-Python-knight-project-1
f4b12fe6f46bd159c6dc8151b1d28c6520042441
dc32749e29cc63b44849d40af345d4bb7817d624
refs/heads/master
2020-09-20T18:00:34.821769
2019-12-11T14:47:44
2019-12-11T14:47:44
224,553,833
1
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
4.生产者消费者模型.py
# 5000个网页 # 爬取这5000个网页 # 把网页中所有的url链接拿到 # 获取网页 、 从网页的内容中提取链接 # 网速慢、网页的服务器响应慢 import time import random from multiprocessing import Process,Queue def consumer(q,name): # 处理数据 while True: food = q.get() if food is None:break time.sleep(random.uniform(0.5,1)) print('%s吃了一个%s' % (na...
b91b15b4cb2cad765871f0eda36083b7a02c0e5b
6739794e0a06cc8a40341c64f352682d6c22fd8b
/Week 4/Week 4 Code.py
3ef21efd4fe7ef6423c90f46d7febf2a8aa7beee
[]
no_license
Slunb/SIAM-Knights-Python-Workshops-2021-
8edf7181dec06f2f9ba582d4629c0427ba08694d
7040a6da99aad416165644cdd4a6c412f33e3b8e
refs/heads/main
2023-04-01T07:28:59.320159
2021-04-04T21:30:27
2021-04-04T21:30:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
Week 4 Code.py
import pandas as pd #creating a dataframe from a dictionary var1 = {'people':['matt','chris','hanna','jenna'], 'numbers':[1,2,5,6]} #print(var1['people'][1]) df = pd.DataFrame(var1) #each section is made into a column #print(df) rows = df.index #print(rows) cols = df.columns #print(cols) #print(df[df['people...
94a1543f4658b9c430c797bce7218e2288e410e2
ed15f8a33bcc569369c7dcbe8bf0f9e644e12b94
/motion.py
237753985c95750d324e7c5f07025de8a4735b3a
[]
no_license
Alexander-Andrade/ant_colony_optimization
af4b8b0aa6676d842b7c5f8e867fd337f59c5beb
6c593ae53a14b99c539621fbfff2ff1ea2e65c8b
refs/heads/master
2020-03-30T07:51:21.654401
2018-12-09T18:33:22
2018-12-09T18:33:22
150,971,133
0
0
null
null
null
null
UTF-8
Python
false
false
3,030
py
motion.py
from direction import Direction import random import numpy as np class Transition: def __init__(self, pos, direction, probability): self.pos = pos self.direction = direction self.probability = probability class Motion: def __init__(self, pheromone_map, ant, direction_distr, pheromo...
1cef27e5e97888a2ff690c7f466a78849adc80e2
9c30bd74c6d9dd5dc3128265fb399ce29bb36262
/kivypong.py
f458c805a678f8bbc6a83b40e7d6d4b6d62a720b
[]
no_license
majagidlund/laundry
da256e06f26dee49b4404bcdc71a1a6c30d59c8a
6127876d5206c09e4b45b35513c1676fdedd7923
refs/heads/master
2021-01-14T14:23:01.172331
2016-10-17T19:34:42
2016-10-17T19:34:42
68,632,293
0
0
null
2016-10-17T18:25:29
2016-09-19T18:06:10
Python
UTF-8
Python
false
false
682
py
kivypong.py
from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import NumericProperty, ReferenceListProperty, Clock from kivy.vector import Vector class PongGame(Widget): def update(self, dt): pass class PongApp(App): def build(self): game = PongGame() Clock.schedule...
0c892dda7567194288bee86a4770fd219bacb0eb
4de0c6d3a820d7669fcef5fd035416cf85b35f23
/ITcoach/openpyxl处理数据/1.10 批量写入数据/1.10.2.py
f833f517b2cac104b69c81efb729469097336234
[ "AFL-3.0" ]
permissive
ww35133634/chenxusheng
5e1b7391a94387b73bcd7c4d12f1247b79be8016
666e0eb3aedde46342faf0d4030f5c72b10c9732
refs/heads/master
2022-11-12T03:46:47.953680
2020-07-02T20:50:56
2020-07-02T20:50:56
275,168,080
0
0
AFL-3.0
2020-07-02T20:58:37
2020-06-26T13:54:48
HTML
UTF-8
Python
false
false
530
py
1.10.2.py
# import openpyxl # wb=openpyxl.load_workbook('demo.xlsx') # ws=wb.active # # for r in [['%d*%d=%d'%(y,x,x*y) for y in range(1,x+1)] for x in range(1,10)]: # # ws.append(r) # # ws.delete_rows(1) # # wb.save('demo.xlsx') # for row in ws['a1:c6']: # for c in row: # c.value=1 # wb.save('demo.xlsx') import...
65717d827d867294b5413fc9cefec1ce5a013d20
5b9a3f86120742ee631522c9682de51dcb57347a
/macsniffer.py
20c57a9976f25195401b97c0fb09781f0ed81290
[]
no_license
csteer509/WiFighting
a0677c83d3a032f84d0f28fe93ae6fde9a11cabe
946b71294563ee9924923a56695350d534ae0248
refs/heads/master
2023-01-23T18:41:08.006376
2020-12-09T14:28:23
2020-12-09T14:28:23
297,149,355
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
macsniffer.py
#!/usr/bin/python3 from scapy.all import * class MACSniffer: def __init__(self): self.macs = [] def handleProbes(self, pkt): if pkt.haslayer(Dot11): if pkt.type == 0 and pkt.subtype == 4: self.macs.append(pkt.addr2) #Count is the total number of packets to sniff before stopping. Not the number of pro...
09c8b91cc85820c9ae7433136c79331ba3374453
65d7c55b992662d7d371be8f7dea5d0d329c6345
/DIFFPOOL_h.py
a36979e4207dc6597907cc8ff5760d6d3cc32cde
[ "Apache-2.0" ]
permissive
ICMLsubmission-2233/SAGPool
9cf4f48dcec5a82c741057920c759e3b3d7697f2
19cc33d66bcacb209d06dfa06d0b1b9dcaf8f9f3
refs/heads/master
2020-04-18T01:59:32.503772
2019-01-23T15:35:30
2019-01-23T15:35:30
167,142,558
3
0
null
null
null
null
UTF-8
Python
false
false
12,986
py
DIFFPOOL_h.py
import os.path as osp from math import ceil import torch import torch.nn.functional as F from torch_geometric.datasets import TUDataset import torch_geometric.transforms as T from torch_geometric.data import DenseDataLoader from torch_geometric.nn import DenseSAGEConv from torch_geometric.data import DataLoader from t...
121902b83122d10cf553e2ec954010feab9d312c
73e458e6d996b85b56bccb85ff3f94aa313e1054
/Hackerrank/Mathematics/K Candy Store.py
282c53e2f2251276f3fb2d292581b585853238ed
[]
no_license
aswanthkoleri/Competitive-codes
ec573efddd7f243c6eb83ccc3ac7b24a76e4de89
81c19c692b54be58eac838076e30e159fbd0e6ce
refs/heads/master
2022-01-06T00:29:46.555891
2019-07-09T21:15:19
2019-07-09T21:15:19
113,237,403
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
K Candy Store.py
def comb(n,i): count=0 mul=i denominator=1 for k in range(i): denominator*=mul mul-=1 numerator=1 mul=n for k in range(i): numerator*=mul mul-=1 ans=(numerator//denominator) if len(str(ans))>9: newans=str(ans) # print("run1") #...
b7c5551ab3dc0efadf5ecb301862b0759286a91d
0881d509c2234c9207eb3c6299f1df5a12266d68
/eshore/auth/__init__.py
9a7e5773f96eddb198edc777496f7f10d92b246f
[]
no_license
ST9527/openstack-restful-demo
cc6a43d351413230150a4d8f9a791c3dad38de40
80f51dba17ddce5ab70ee0bbf0e2b078cb5fe508
refs/heads/master
2019-05-18T08:09:39.443010
2017-02-28T08:02:23
2017-02-28T08:02:23
83,402,884
1
1
null
null
null
null
UTF-8
Python
false
false
185
py
__init__.py
# !/usr/bin/env python # -*- coding:utf-8 -*- """ @File : `__init__.py` @Author : `long` @Date : `2016-05-26` @About : '' """ if __name__ == "__main__": pass
3a4a178af54bc77f1794385010dbe0c239e2d658
384813261c9e8d9ee03e141ba7270c48592064e9
/new_project/fastsklearnfeature/interactiveAutoML/new_bench/multiobjective/metalearning/openml_data/pair_experiments/openml_meta_learning_grid_privacy.py
2de38708e2bf8b9cbfc0a9ac31b2bb12271ce5a0
[]
no_license
pratyushagnihotri/DFS
b99d87c085e67888b81c19629c338dae92272a3b
3b60e574905e93c24a2b883cc251ecc286cb2263
refs/heads/master
2023-04-18T22:17:36.816581
2021-04-20T13:41:29
2021-04-20T13:41:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,695
py
openml_meta_learning_grid_privacy.py
import copy from sklearn.metrics import make_scorer from sklearn.metrics import roc_auc_score from sklearn.linear_model import LogisticRegression import pickle from sklearn.model_selection import StratifiedKFold import warnings warnings.filterwarnings("ignore") import time import numpy as np from fastsklearnfeature.in...
009da56d08f7a5f81d0e2302e867baf91669aa26
31d3034a961b2bcbaa6930ba440dffe64790ab31
/cbirApp/models.py
a840bb670cd0eb3b7e263ed8e4e7788bed8c87e3
[]
no_license
gorkemkurt/cbir-django
955ce98f04de5b8d10a2034e197f3bce658e4cc5
06a8ac23c44f324e44d6ce9eea16c6dfb4ac35a1
refs/heads/master
2020-09-16T10:26:45.898220
2020-03-14T12:22:01
2020-03-14T12:22:01
223,742,074
2
0
null
null
null
null
UTF-8
Python
false
false
663
py
models.py
from django.db import models class Images(models.Model): name = models.CharField(max_length=100) status = models.CharField(max_length=1, default='1') type = models.CharField(max_length=5) width = models.IntegerField(default=0) height = models.IntegerField(default=0) color_histogram = models.Te...
154c447c75813333d95aca3e09274b6e241fc885
27e3b10101c876225a15d079880ef2176c9b82ff
/RECEIPT ANALYSIS/SIGHTPG/DoKemPo/Health_Check_UP/Adaptor.py
586fb9fa256c1da4b8e53895c1805c0eba85f2d3
[]
no_license
tatsuyoshi-ikenoue/RECEIPT-CODE
8df221d0b0ec05af49227d57e2d82ed02d4794f5
3903b5d824eb3a2b61b3758e09e3fae6e2ca7a06
refs/heads/master
2021-12-09T01:49:03.406038
2021-09-04T13:41:13
2021-09-04T13:41:13
199,611,614
1
0
null
null
null
null
UTF-8
Python
false
false
6,036
py
Adaptor.py
#!/usr/bin/env python # coding: utf-8 # IMPORT DATA import pandas as pd import numpy as np from numpy import vectorize import os import sys import re import zenhan from insurance import * from eGFR import * from cleans import * from pdread import csv # CURRENT DIR Cur_DIR = os.getcwd() # ディレク...
ff9cb53987e7574efa5a34540a30d922f2eb79eb
0ed6f7cfb6edcfa4f4e4a32531035faa4f5f896d
/python_list_Demo.py
26480fb0dec71dd7eda3053fa268081efd908242
[]
no_license
hisatoshi/python_list_demo
759c0b62f600e48203735aea96becfca0938de3d
d956811d58397a1f5e5f7b043adc39cc5e047be6
refs/heads/master
2020-04-17T00:46:46.136918
2017-02-02T23:20:06
2017-02-02T23:20:06
66,625,339
0
0
null
null
null
null
UTF-8
Python
false
false
3,878
py
python_list_Demo.py
#coding:utf-8 #python3.4.3で動作 #python2系列は動かないと思う #使い方:コマンドライン引数を適当に import sys import time import random def speedDemo() : input = [x for x in range(9999999)] startTime=time.time() outputFor=[] for x in input : outputFor.append(x) rapTimeFor=time.time() outputList = [x for x in in...
f7168b484cac065dbe8f0f7aec0ee673bf865e90
da5859a939cd61cbe4dc60331149ee066dbac107
/examplecom/apps.py
2b99cec9077e668cbfcb7105dd6d81b19e914fa3
[]
no_license
tomaccosheep/ical_sample
173ca00e180c14b2a845d2366f957ee41c2a018b
ffcbca0b01393594597ab985ccdc79e17077b62a
refs/heads/master
2020-12-26T12:45:05.875394
2020-01-31T20:49:07
2020-01-31T20:49:07
237,513,460
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
apps.py
from django.apps import AppConfig class ExamplecomConfig(AppConfig): name = 'examplecom'
fd8287e05f127d1166353b7348d291f46a30f9c5
c00fccc1710d3e3d8ffa3c9acd4cfb4dfcb6ec65
/extra/native_regions.py
d64dc8be26b856fc5cd2445d1f60f180c52ef5d3
[ "MIT" ]
permissive
priscasev/sloth-bot
e2be334246537aa31102806cd2313ba4db4c90e9
f67110d1ac7fc0621b5e07887acda2161494b6bf
refs/heads/master
2023-08-20T16:34:12.035616
2021-09-18T14:24:25
2021-09-18T14:24:25
371,818,365
0
1
MIT
2021-05-28T21:43:28
2021-05-28T21:06:31
Python
UTF-8
Python
false
false
2,224
py
native_regions.py
# 'eu-west', 'hongkong', 'dubai', 'us-east', 'southafrica', 'south-korea', 'us-west', 'sydney', 'us-central', # 'eu-central', 'india', 'europe', 'singapore', 'amsterdam', 'japan', 'london', 'russia', 'us-south', 'brazil', 'frankfurt' language_regions = { "Native English": "us-east", "Native German": "eu-centra...
191111bf9fdf7ebf53bb8b9e600e8364a030a90a
2f3c460b6bf1b2843ec81989524ab475dcbfa425
/Algorithm/AI/test.py
c7338529de00e3df0f23f579e6c475d11532afb3
[]
no_license
superpigBB/Happy-Coding
41bb8832ff863e43541a0bd06cb1706949558d02
c34b55bb42dc44a9026a902f6afcc018b4154662
refs/heads/master
2023-01-20T01:23:07.157750
2023-01-11T05:33:38
2023-01-11T05:33:38
136,658,179
0
0
null
null
null
null
UTF-8
Python
false
false
1,348
py
test.py
"""Corner Cases: better ask interviewer to confirm return value for corner cases""" if list is None or len(list) == 0 or k == 0: return [] """find closest element from target first in list: 利用helper function call binary search first to get closest index make that closet element a centered value and set two...
e248871483b55af061a0a7c5c8b0722bc1a1a54f
cffcdb2fff22f5491213fb68b70d615947ea0588
/model.py
7046e61d808c7e7e388304d587be9fd59b5074cf
[ "MIT" ]
permissive
KAltieri/pytorch-evo-gym-pcgrl
9080963d9c2e42d0d2b524c0b3354b23b2694728
6b250692a71347d7d0f1dd1d88d1ce2939ef5d77
refs/heads/master
2022-07-04T17:02:38.549645
2020-05-16T05:42:15
2020-05-16T05:42:15
251,718,728
1
0
null
null
null
null
UTF-8
Python
false
false
9,322
py
model.py
import tensorflow as tf from tensorflow.keras import layers from gym import spaces import numpy as np from stable_baselines.common.policies import ActorCriticPolicy, FeedForwardPolicy from stable_baselines.common.distributions import CategoricalProbabilityDistributionType, ProbabilityDistributionType, CategoricalProbab...
9d5d35e811e071e96b8936fcccc10de0f54a59d2
04819ca2afc91c14b7580b9236bafbfc18cb1aea
/sistemaContable/urls.py
560b8626f3e5b46dca17c93a637461bd38031883
[]
no_license
Nighttraveler/sistemasAdministrativos2
ada2d7f513a2014ae50b25a3824bcfc72683a48a
b6daac1cefe46bd2911ff5552b4ff1bab0c8dcd0
refs/heads/master
2021-09-01T04:39:26.442098
2017-12-24T21:43:08
2017-12-24T21:43:08
108,769,427
0
0
null
null
null
null
UTF-8
Python
false
false
664
py
urls.py
from django.conf.urls import url,include from django.core.urlresolvers import reverse_lazy from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required from . import views app_name ='sistemaContable' urlpatterns = [ url(r'^cargar-asientos/$', login_require...
20917a5a62a1983f5d7a869336760334a496fa15
1510fa7ecdb0cd868521bacd1926c304f5a381df
/D3_5248.py
91089130e91d2a35ad562a44bb4000e3e706078c
[]
no_license
Jinha95/Algorithm
29f0cdc8efb29248270d785a0228ebbbcb995887
d3fce5bfc4c75d219bb69323e370b1dafce9b809
refs/heads/master
2023-02-02T21:19:01.137462
2020-12-24T19:37:38
2020-12-24T19:37:38
289,652,395
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
D3_5248.py
def ㅋㅋ(start): if visit[start] == 0: visit[start] = 1 q = [start] while len(q) > 0: a = q.pop(0) # print(a) for k in range(len(friend[a])): if visit[friend[a][k]] == 0: q.append(friend[a][k]) visit[friend[a][k]] = 1 T = int(input()...
358bf9de734fc8e236b7618bfec66cc85f0c8ca2
5ba867b23d5a7293b64d9a7345c6259157e8e159
/test.py
f3544fb7a88d9bb41335b61c0d9b3e20efaff676
[]
no_license
dracoa/ai-controller
e70319701a62928d3f0522670089e2a39e766ac5
29c040924a9b88572e98fce0cb237c55b9d44c6a
refs/heads/master
2022-11-14T08:36:02.024692
2020-07-06T13:48:25
2020-07-06T13:48:25
272,738,815
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
test.py
from PIL import Image import matplotlib.pyplot as plt import numpy as np box = {"x": 693, "y": 989, "w": 64, "h": 72} img = Image.open(r"b.png") width, height = img.size print(img.size) left = box["x"] + 8 top = box["y"] + 15 right = left + 48 bottom = top + 48 print(left, top, right, bottom) crop = img.crop((left, t...
5afe5b5b47d51b6ba06a18427cedb59bdaede215
a29fa72662c448dee626a6388c378440e57c308c
/python/Activity12.py
3fa248bd6bccd21295cabac9685cab7aad54765b
[]
no_license
divyamavuri/sdet
24e9310604fc0265a98adb912947cc1747a40b9c
8c63bd1b878914366ac56b6aac0771ea0ed725d8
refs/heads/main
2023-03-29T22:12:48.258425
2021-04-06T06:27:39
2021-04-06T06:27:39
333,318,177
0
0
null
2021-01-27T05:51:05
2021-01-27T05:51:05
null
UTF-8
Python
false
false
217
py
Activity12.py
# method def calculateSum(num) : if num: return num + calculateSum(num-1) else : return 0 #start execution call method result = calculateSum(3) print('Recursive Sum of 3 is :',result)
cf9b9460371a216e36a70fac5547dfede4a4af74
d05ff6dda43729011b7d469b0a2bc02ed66b6342
/frappe/integrations/doctype/token_cache/test_token_cache.py
44b58fb238383959fbb57a3ad94747d3b8a29818
[ "MIT" ]
permissive
frappe/frappe
520c14bed3810c3360629a81dcc33f0ebe21ac4d
dd8f314bf4a8a4739eebbfac741abc533ac58bc1
refs/heads/develop
2023-08-30T19:29:10.406706
2023-08-30T11:20:40
2023-08-30T11:20:40
1,864,194
5,955
3,735
MIT
2023-09-14T16:08:04
2011-06-08T08:14:16
Python
UTF-8
Python
false
false
949
py
test_token_cache.py
# Copyright (c) 2019, Frappe Technologies and contributors # License: MIT. See LICENSE import frappe from frappe.tests.utils import FrappeTestCase test_dependencies = ["User", "Connected App", "Token Cache"] class TestTokenCache(FrappeTestCase): def setUp(self): self.token_cache = frappe.get_last_doc("Token Cache...
9b0b560bb9dace022337b3b9a52eb1d68add83fa
ba9c66bd1cdcb62b5f10833c6920de70e7aed2dd
/pythoncode/mathTest.py
7e9ce7ac69301ea0287516b0f54736d33c319595
[]
no_license
echoqyg/lagouproject
11e788dcb26637ee319a985ee96b73f06c1347d6
8bf842e4cda3bbb3dd257f4c70ca06f044ee3255
refs/heads/master
2023-01-20T07:43:17.301224
2020-11-28T15:06:48
2020-11-28T15:06:48
269,636,122
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
mathTest.py
#!/usr/bin/env python # encoding: utf-8 import math print(math.sqrt(2)) print(math.ceil(2.2)) print(math.floor(5.5))
55d46a592a4af1ea8cd73d75e2511b7ab44b38c1
9c76e8febd72d8eaaf13739d43e956df3917313e
/aws/test_enqueue.py
ae7a441675486679147ed9b60f022341882d0cfe
[]
no_license
Transfinity/MHacks_Iris
9eab16a576160f61b0022c85e43bbc1b0e9ac12f
24e0bc9b390b39b222a83cb181b2976a0d0a3364
refs/heads/master
2020-12-24T14:53:42.994367
2013-03-12T08:22:03
2013-03-12T08:22:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
test_enqueue.py
import sys from ocr_queue import OCR_Queue q = OCR_Queue() while True: print 'Input filename:', line = sys.stdin.readline().strip() if line == 'quit': break print ' > adding ' + line + ' to s3' q.enqueue_frame(line) print ' > success!'
5dae68cadd13b69646dcc705b06a810c2de27b3f
3ea9e9bfbf3737d16aff222bae2f169ad53e2cd6
/Basic Programming/Basics of implementation/Little Jhool and psychic powers.py
3f56ab204d1ffbe0d8af73b69ad315685365c75f
[ "MIT" ]
permissive
prashplus/HackerEarth
27af5ae788a547e6f5637e79e17a914e1107b3b1
b3eeb8e9d5696ed09231a37283941f89b31debe9
refs/heads/master
2021-06-29T15:27:26.893461
2020-11-09T14:51:35
2020-11-09T14:51:35
181,620,049
0
4
MIT
2020-05-01T11:46:56
2019-04-16T05:23:33
C++
UTF-8
Python
false
false
531
py
Little Jhool and psychic powers.py
a=input() count=0 c = 3 flag = 0 for char in a: if char == '0': if c == 0: count = count+1 else: c=0 count = 1 else: if c == 1: count = count+1 else: c = 1 count = 1 if count >= 6: flag=1 ...
c6b2382fd3ac01b92c69daced05a2198a4dae4c9
d18220ea012d7d25a8b70104fab92823e7e641d9
/Node/Pycom Node Final/id.py
54ccb5e53feda3c85ba61b401c18cda28bd35d56
[]
no_license
wildejono/RFCT-LoraWAN-Cow-Tracking-Architecture
c35f93f38fdda384d4a38932bb75ffd1a1657b2d
b69438825ce0552b4cfabc0c8132d6ea45b9e2c5
refs/heads/master
2023-01-08T05:36:48.110125
2020-11-02T04:12:16
2020-11-02T04:12:16
283,361,376
0
1
null
null
null
null
UTF-8
Python
false
false
297
py
id.py
from network import WLAN from network import LoRa import binascii print() lora = LoRa() print("Device EUI (LoRa): %s" % (binascii.hexlify(lora.mac()).decode('ascii'))) #wl = WLAN() #print("Device EUI (WLAN): {}".format(binascii.hexlify(wl.mac())[:6] + 'fffe' + binascii.hexlify(wl.mac())[6:]))
ae7d3a211a639eaf9fc70b33844aec399bfaf0bd
ab2f1480d591c7851e3e5dcf4af81f1d54307dff
/open7/retention/account.py
ed1d2d40fc44e597306f6afbcb2ff22f32872f05
[]
no_license
rrcruz85/sources
5e6b23ed79358888fe45e258e951e1af3d07ee48
df76f056ba0634b109ccfade18e71d580b7adfd9
refs/heads/master
2021-01-22T09:37:50.923356
2019-08-22T04:05:23
2019-08-22T04:05:23
73,513,453
0
0
null
null
null
null
UTF-8
Python
false
false
25,027
py
account.py
# -*- coding: utf-8 -*- ############################################################################## # # Account Module - Ecuador # Copyright (C) 2016 Core Cloud Cia Ltda # osantacruz@corecloud.ec # $Id$ # # This program is free software: you can redistribute it and/or modify # it under the terms of...
aa9ea49f3278e9c002a7c6deab7b3eb48000f742
fb5cb06d41de4a956f734f032ae76f51b78f184d
/13.py
f3e7703a5822562f99d6c85fe3f0a75d2c07a5a0
[]
no_license
Liusihan-1/python
7ad1486953c71da165111d65abfb339877ad6748
038b70205ef166d91a8ac4fa3dfbfda40578ca40
refs/heads/master
2020-09-21T02:39:20.695018
2020-02-04T11:38:24
2020-02-04T11:38:24
224,656,353
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
13.py
#13.古典问题:有一对兔子 #从出生后第3个月起每个月都生一对兔子 #小兔子长到第三个月后每个月又生一对兔子 #假如兔子都不死,问每个月的兔子总数为多少 month=int(input("繁殖几个月:")) month_1=1 month_2=0 month_3=0 month_adult=0 for i in range(month): month_1,month_2,month_3,month_adult=month_adult+month_3,month_1,month_2,month_adult+month_3 print("第{}个月共{}对兔子".format(i+1,month_1+month_2+m...
74b0ccb5193380ce596313d1ac3f898ff1fdd2f3
e2c308c2d3f80ab43f513eb6af813941c7c39ce4
/djlotrek/__init__.py
ffd1518b8d48083c8b24a9d0a041249e950f5f6c
[ "MIT" ]
permissive
shauryachawla/djlotrek
a8bd2fea6982c36cc7e28197c8b0eab7b680175f
0461f088fe22c701766b80892a83120996c0613c
refs/heads/master
2021-07-08T17:52:37.420837
2017-10-07T19:58:02
2017-10-07T19:58:02
106,126,096
0
0
null
2017-10-07T19:50:46
2017-10-07T19:50:46
null
UTF-8
Python
false
false
74
py
__init__.py
from .mail_utils import send_mail from .request_utils import get_host_url
4e1f7fddb6bd3413dd6a8ca21520d309af75c811
074e8e358d2be324a480375e3cbb6f9f9e4a9b22
/scripts/app.py
6079cd3fbb429a741375af34399d83da7eb93c6e
[ "MIT" ]
permissive
Codestined/sledge
27a3c45a11444e439eb36158c64e971b6a431c1d
83b22e388af04afa0a5db3a5fde469e1f7e57d7b
refs/heads/master
2020-04-20T09:37:47.247997
2019-02-01T08:22:46
2019-02-01T08:22:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
app.py
import sys import os sys.path.insert(0, "main") import main workspace = os.path.abspath(sys.argv[1]) main.hammer(workspace)
db1e3a109af2db2c8794a7c9c7dfb0c2ccee5800
e0a8fe03d18b75ad83c430893fe8469f5ae87ddf
/0x06-api_advanced/0-subs.py
05bb1cf1d8e7cf16ffcb2445d39ce88e20f0a566
[]
no_license
oumaimabenbarara/emsi-devops
eeec1ca2abd2f696ec7e7d3bab52754d0ab4a0f8
8834dd66ac2fd1e90977aa4692cc75c3f2b1d9b6
refs/heads/main
2023-05-02T13:40:21.775005
2021-05-12T00:24:19
2021-05-12T00:24:19
353,080,468
0
3
null
null
null
null
UTF-8
Python
false
false
508
py
0-subs.py
#!/usr/bin/python3 """0. How many subs""" def number_of_subscribers(subreddit): """return the number of subscribers from an Reddit API""" import requests resInf = requests.get("https://www.reddit.com/r/{}/about.json" .format(subreddit), headers={"Us...
d20e41dd7054ff133be264bebf13e4e218710ae5
1a3234c1deeb8987fb4c5b424e6485ddd10c8ace
/estagios/core/tests/test_view.py
edbd4122a51ad791cd3da4e54c5d907f32184356
[]
no_license
orlandosaraivajr/estagio
0c46b16fccf52861f68431a88032ba0fdc46bf66
439b797406c82673e9972eee373d60f844679a9c
refs/heads/master
2022-05-14T14:15:53.109355
2020-04-03T05:58:13
2020-04-03T05:58:13
189,227,824
0
0
null
2022-04-22T21:20:07
2019-05-29T13:09:14
CSS
UTF-8
Python
false
false
372
py
test_view.py
from django.shortcuts import resolve_url as r from django.test import TestCase class coreGetHome(TestCase): def setUp(self): self.resp = self.client.get(r('core:core_home')) def test_template_home(self): self.assertTemplateUsed(self.resp, 'index.html') def test_200_template_home(self): ...
ff7a865822a4f8b343ab4cb490c24d6d530b14e1
acea440fad3e9be8b3e447e3d987263fb99f5012
/profile.py
3a4b14b88cd8b0b074121f90a79206e9bfe04f22
[]
no_license
arckiCriss/compute-server
b1741eb2d35305bc8bad125cd053029de9a360d1
5ca956e3e0b5f5cc047f8b09dccf6e1ee5f1b688
refs/heads/main
2023-06-17T10:19:26.373430
2021-07-03T12:38:22
2021-07-03T12:38:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
profile.py
#!/usr/bin/env python kube_description= \ """ Compute Server """ kube_instruction= \ """ Not instructions yet """ # # Standard geni-lib/portal libraries # import geni.portal as portal import geni.rspec.pg as PG import geni.rspec.emulab as elab import geni.rspec.igext as IG import geni.urn as URN # # PhantomNet ext...
a93884757069393b4d96de5ec9c7d815d58a2ea5
53d94213e461058240ff2475576de77cc77902a8
/qimen_server/waybill_jd.py
b99d4d180391b3b5517fa9dbf04353603ad90bb3
[]
no_license
cash2one/Dockerfile
7f10ee50c9e7c71dcf9dc57b485533e4fd5147ef
d40b48d6fadac56616139442388680c6e6b5e95e
refs/heads/master
2021-06-21T07:51:27.724273
2017-08-08T16:44:06
2017-08-08T16:44:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,592
py
waybill_jd.py
# coding: utf-8 import logging import uuid import json import xmltodict import bottle from bottle import HTTPError from bottle.ext import sqlalchemy from database import Base, engine from database import JdWaybillSendResp, JdWaybillApplyResp jd = bottle.Bottle(catchall=False) plugin = sqlalchemy.Plugin( engine, ...
0cc1aaa182fcf002ff2ae6cbcd6cbb84a08a3bc1
f1eca8a68bfb607b5974e9c20fa6c359385f1a43
/script/restapi.py
3ff7a0ea8a330b07961f382525bfaa721cfd46a2
[]
no_license
Mironiny/test-management-tool
f0c93bb844a897409ae1473490b32652b9b6a3af
3638494b7716f4652dafd635f670986572cf6d28
refs/heads/master
2021-01-18T18:28:19.101262
2017-06-13T21:24:20
2017-06-13T21:24:20
86,855,240
0
0
null
null
null
null
UTF-8
Python
false
false
7,845
py
restapi.py
# Basic script which send some request via rest api to the test-management-tool. # Be sure you setup host and api_token variable import http.client host = "localhost:8000" api_token = "fuukp8LhdxxwoVdtJu5K8LQtpTods8ddLMq66wSUFXGsqJKpmJAa1YyqkHN3" # Connection conn = http.client.HTTPConnection(host) # Create a heade...
5bd8cee2595215fda6ab523a646cf918e3d84a50
e31683349ec58670d437b49ed00a1f1b0a24aafb
/user/urls.py
61d04356251a061a45db0bb4bf5ed5dab711c0a0
[]
no_license
Adarshpp7/socialmedia
95f0302d6c862d957667b2560f78ae8314c54f56
9f985ba3a2fa13e00c7f81d0fab421f645e5b1bd
refs/heads/main
2023-06-04T03:38:24.770535
2021-06-23T10:25:32
2021-06-23T10:25:32
377,383,156
0
0
null
null
null
null
UTF-8
Python
false
false
1,817
py
urls.py
from django.urls import path,include from.import views from user.views import DetailsChangeView, HomeView, PasswordChangeView,SignUpView,LoginView,SettingsView,LogoutView,CreatePostView,CommentPostView,PasswordChangeView urlpatterns = [ path('', HomeView.as_view(), name = 'HomeView'), path('LoginView/', LoginV...
18dce1ce683b15201dbb5436cbd4288a0df99c28
7a8dfc12c8ccc242e9e1f73f9b1d21c7ea684e63
/geo_console.py
504a840a94e4aeb2ef8a999b0c81af95ef7f9d3c
[]
no_license
passal/WebDataFinal
d5e2b0f216343fd7260b023d7dcb0da7feb80b58
87c57a7632b48a6564560e6520794e79e9b43865
refs/heads/master
2020-08-31T18:08:06.463465
2019-06-17T19:21:20
2019-06-17T19:21:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,944
py
geo_console.py
from const import BORN_KEY, PRESIDENT_KEY, CAPITAL_KEY, PRIME_KEY, MINISTER_KEY, POPULATION_KEY, \ GOVERNMENT_KEY,AREA_KEY, WHO_KEY, IS_KEY, THE_KEY, OF_KEY, WHAT_KEY, WHEN_KEY, WAS_KEY from geq_queries import capital_of_country_query, area_of_country_query, government_of_country_query, \ population_of_country...
1968923cd923e68dc5ff2148802f18e40a5e6c33
269cc7919548319aed2596aaa3540921c81f9258
/tests.py
e6f602c366727e7b4b887b9299c71b670b5aaccb
[]
no_license
moecando/Tic-Tac-Toe
f91f9c9c6c9ce8b4bb71eeb9de0cbfb92972b776
cf5edc9b7eb9b1dc5b58e3d0062183e7325b0bd0
refs/heads/master
2020-05-30T12:55:07.173149
2013-11-20T05:14:57
2013-11-20T05:14:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,941
py
tests.py
''' Created on Nov 16, 2013 @author: mo ''' import unittest from Board import TicTacToe_Board from ComputerPlayer import ComputerPlayer from utils import debug_print as d_pr from main import StartNewGame class Test(unittest.TestCase): def setUp(self): self.the_board = TicTacToe_Board() de...
abf75084317f9effda4d5617c3e6ac4b18011d28
54259599160d6ed9880838f640a4e4072b969360
/do_save_inference_graph.py
cbffcc5f3d8f006a008d6d3b306d3ad0abcc709f
[]
no_license
wangxianrui/post_training_quantize
2da7f2a554a849d8081dea311b2bd6abc2d089f9
7d227b1c35b98b801972cf0b1ebca82e14f39b3d
refs/heads/master
2020-05-01T15:59:11.401652
2019-04-26T08:27:20
2019-04-26T08:27:20
177,560,663
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
do_save_inference_graph.py
import tensorflow as tf import numpy as np from hyper_parameters import * from tensorflow.python.tools import freeze_graph import net import os def main(): input_placeholder = tf.placeholder(dtype=tf.float32, shape=[1, 512, 512, 3], name='ckpt_input') logits, loc = net.inference(input_placeholder, bn=False, r...
660205bc7d2b5140b2704eefb47ab330e2044d43
cdf3d0b937d37cf3a5746e89b5c4ec3b5197e3e1
/exercicio qual o seu nome.py
7cb6c2cf91d17b9298df4e32b93ef9f12ba65568
[]
no_license
Bruno-Nasc-Br/Curso-Pytho---Curso-em-video
4049853e565f55481783decdae22a79bff6f911d
756827b5336d4e722155399c866bf2baf3ee2fca
refs/heads/master
2021-05-05T18:54:41.218317
2018-01-17T00:06:09
2018-01-17T00:06:09
117,750,340
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
exercicio qual o seu nome.py
''' Curso básico de Python ---------------------- www.cursoemvideo.com ----------------------------- Professor: Gustavo Guanabara Aluno: Bruno Nascimento ---------------------------------------------------------------------------- Desafio 001 = Crie um scrip python que leia o nome de um...
48a4b3525649564ff1384300ddd4721b97d38c07
662bb1f69e37e6db2823122ccdbd8a0404e2f05f
/week5_ex4/sigmoidGradient.py
2c47effa5bf32b04f1936eef02f8f6217d69daf7
[]
no_license
ashrystein/Python-Assignments-Implementation-of-Andrew-Ng-s-Machine-Learning-Course
c9c9f731fafcc2195f687f299c95e1796196a1cd
b55de1a39e033df5e09c3a3f65ab5fb04ec714c1
refs/heads/master
2020-06-08T06:14:52.395961
2019-08-15T15:58:53
2019-08-15T15:58:53
193,175,025
1
0
null
null
null
null
UTF-8
Python
false
false
311
py
sigmoidGradient.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.io import loadmat import scipy.optimize as opt from displayData import displayData from nnCostFunction import nnCostFunction from sigmoid import sigmoid def sigmoidGradient(z): return np.multiply(sigmoid(z),(1-sigmoid(z)))
3443571ac09f43d6d7dc3d49debec54d767ea98d
2296c579cd7126772e6214705840e612ace8699a
/binary_search.py
7ba9996eadc2c81d6bf63e094f07a4db406cce6c
[]
no_license
kaslong015/DSA305_python
da12c844d3340f35941938f1af7af61f5b39302b
fda40f7ac294b11bd897b0bd47fac879b5984a3d
refs/heads/master
2020-07-10T20:33:18.522770
2019-08-26T00:05:44
2019-08-26T00:05:44
204,364,601
0
0
null
null
null
null
UTF-8
Python
false
false
1,229
py
binary_search.py
class BinarySearch: def __init__(self): # self.collection = [] pass def bubble_sort(self,arr): lent = len(arr) for i in range(lent): # print(i) for k in range(1,lent-i): if arr[k] < arr[k -1]: arr[k-1],arr[k] = arr[k]...
78c000797ce942016aa314fe9688cad545bdde7a
862b7a66fe0b809e5696c8c4fbe8e696d3dd163d
/project/__init__.py
dc3c67bd0022bb7a8a5d2bbd1a97f1b19372d8d7
[]
no_license
OpenEducationProject/IAS
d185db9c51ea31f9a22121e15cd42d784adee49d
5da297769a3d00c36dbfa12c452b11f4e82eb123
refs/heads/master
2021-01-19T03:12:04.781251
2014-04-02T14:07:58
2014-04-02T14:07:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
__init__.py
from __future__ import absolute_import from flask import Flask from glob import glob app = Flask(__name__) app.secret_key = "iaspls" import project.routes
e30b0a7e17ec0bbd09a6d0113b040bb1fd8a0004
8dfbbb2e78014003881e8c3bb589bc5e109db5b0
/bin/straxer
b5a433d25d04348c3b6d0d9b91d5fb4fa368438f
[ "BSD-3-Clause" ]
permissive
WenzDaniel/straxen
f2b4269cfacaea213f47d7d50870120d13b28ef7
e5c6128d0f07fd86fff4f620bb97daea112127ea
refs/heads/master
2021-06-22T16:35:16.968751
2020-12-16T16:38:35
2020-12-16T16:38:35
216,993,127
0
1
BSD-3-Clause
2021-03-30T14:39:18
2019-10-23T07:18:22
Python
UTF-8
Python
false
false
8,366
straxer
#!/usr/bin/env python """Process a single run with straxen """ import argparse import datetime import logging import time import os import os.path as osp import platform import psutil import sys import json def parse_args(): parser = argparse.ArgumentParser( description='Process a single run with straxen'...
d60738353a4215bdf86efe90a68eccbd768f38cd
e17f3da71159311356976107aa660ae5cc9a9154
/AppleandOrange.py
98c2461f208d08ba4aa3ea847366eedfe498ed8e
[]
no_license
Hemanth258/hackerrank
32a94855a392d4c69ce7d7f1783e671d330bd52a
e8e3108bc5688fc9401a72901fceb4fa04609a0f
refs/heads/master
2023-06-09T13:55:23.700662
2021-07-07T04:31:16
2021-07-07T04:31:16
330,128,793
1
0
null
null
null
null
UTF-8
Python
false
false
296
py
AppleandOrange.py
def countApplesAndOranges(s, t, a, b, apples, oranges): a_house = 0 for i in apples: if (a+i) in range(s,t+1): a_house+=1 o_house = 0 for j in oranges: if (b+j) in range(s,t+1): o_house+=1 print(a_house) print(o_house)
431297df9b26bae7e06778df2fbbc441a7923069
6ada2963ec266fe22c3890b4aa0fae1bd179efbd
/leetcode/老是做不对的/第二梯队/518. 零钱兑换 II medium 没思路/change.py
b970c5d5e91cd370edaf4891abd4b6de28d4e7e7
[]
no_license
guohaoyuan/algorithms-for-work
e40bc920dbae0436146b590441d4c83d1fb8ab51
f1bbd6b3197cd9ac4f0d35a37539c11b02272065
refs/heads/master
2023-06-20T21:55:46.037990
2021-08-06T08:20:05
2021-08-06T08:20:05
267,294,002
2
0
null
null
null
null
UTF-8
Python
false
false
2,768
py
change.py
""" 完全背包问题: 初始化dp横纵多一行 1. 定义状态 dp[i][j] 表示从前i个 硬币中挑选,组成目标为j的方法数 2. base case dp[0][..]没有硬币,则方法数为0, dp[..][0]目标为0,则方法数为1 3. 转移方程: dp[i][j] = dp[i-1][j] + dp[i][j-coins[i-1]] 两种情况组成 1. 从前i-1个硬币中挑选,组成目标为j 2. 从前i个硬币中...
3d3ddebc8e62c9793b911d36b03fe54cb2e1497c
0f4d0f09db8fc5140dc84b0f9851ea0833c2dbf4
/exercises/exercise-48.py
50d71e2cb81aac3189e304782430215643efbd8d
[]
no_license
satrini/python-study
1ede6ed3b4181a02401daaaee26cac7ee0463c3a
87884a5aa7ed73e97240478d9b29cc4e85b81954
refs/heads/main
2023-04-09T18:51:28.010101
2021-04-13T23:37:22
2021-04-13T23:37:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
exercise-48.py
# Palindrome txt = str(input("Type: ")).strip().lower() txt_split = txt.split() txt_join = "".join(txt_split) txt_inverse = "" for i in range(len(txt_join)-1, -1, -1): txt_inverse += txt_join[i] print("Reverse: {}".format(txt_inverse.capitalize())) if txt_join == txt_inverse: print("Palindrome!") else: ...
5c37a9079020b9f7860ca0f1c0674ef4efac94d4
3d05a382e418234558bed720ad5a56dbbf976a6a
/game.py
3e0a01bab1c9d7a87849d46d9b85a0652467a729
[]
no_license
richwandell/tank-tennis
79354963197ea8469ecd90a682f1d522e5fd7c13
47e822d21b6ad3e0330f6f2427da56bf0043a668
refs/heads/master
2020-04-02T14:24:14.956038
2018-10-24T15:19:57
2018-10-24T15:19:57
154,523,097
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
game.py
from modules.stage import Stage from modules.main_menu import MainMenu import json, pygame pygame.init() pygame.mixer.init() screen, world = pygame.display.set_mode((0, 0),), {} def showMenu(): global world, screen world = MainMenu(screen) def playLevel(level): global world, screen level1 = json.loa...