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
b323940d9fdcde4373ba3301758443ba69f43de2
766a331c4d00120b80b69fec3c53805fbb4c4a8d
/scvae/__init__.py
a616c88cd16d3202cf7a42ca8858c80147df0460
[ "Apache-2.0" ]
permissive
dpaysan/scvae
55e3037e4e106f2301341d36611f4a5ebc52b532
d6148efabfb12eda8bd1b895e1bb72f592e39ab0
refs/heads/master
2022-11-14T16:10:17.691767
2020-06-30T07:07:01
2020-06-30T07:07:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
__init__.py
from scvae.__version__ import __version__ __name__ = "scvae" __title__ = "scVAE" __description__ = "Model single-cell transcript counts using deep learning." __url__ = "http://github.com/scvae/scvae" __author__ = "Christopher Heje Grønbech, Maximillian Fornitz Vording" __maintainer__ = "Christopher Heje Grønbech" __em...
f503969656678133861b3fa36e59d7b7d3c796aa
68fdbd773931c072da76c7fe9b28a4117f801f33
/production/polynomizer.py
8443e89af9a6535ba9ef83171827e810f6228d68
[]
no_license
attilapalfi92/machine-learning-ingatlancom-predictor
a766197af710e0a690d4136ad0a0845ada7202cc
25748d212e497b25d7bcf42560b875805f4a2dc7
refs/heads/master
2022-07-20T08:40:29.223785
2019-01-28T09:31:03
2019-01-28T09:31:03
122,330,260
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
polynomizer.py
from sklearn.preprocessing import PolynomialFeatures import pandas as pd class Polynomizer: def __init__(self, dataset, degree=1): features_to_poly = dataset[['rooms', 'half_rooms', 'size', 'latitude', 'longitude']].values self.polynomialFeatures = PolynomialFeatures(degree=degree) self.po...
802cd39f5ec3f926fc42e59d977ce1b829d7716a
0378aa0a20a17686731c21bc1ed52547fdf197c4
/wdux/wdlib.py
c047dcc6f908485cfb0fe7a069c95e895da8d337
[]
no_license
fredjupp/watchdog
aa7726ab8d77270c7eaa089dcc8384719d8604b7
d03e84566e3dd6008b3d3efc50c29188efcb60f3
refs/heads/master
2021-01-11T13:42:10.451564
2017-06-22T12:31:13
2017-06-22T12:31:13
95,090,929
0
0
null
null
null
null
UTF-8
Python
false
false
33,232
py
wdlib.py
#!/usr/bin/python # -*- coding: iso-8859-1 -*- ''' ----------------------------------------------------- WatchDog UX module module name: wdlib.py purpose : watchdog library created : 2006-07-04 last change: 2007-11-29 for QVC Germany, Hueckelhoven by B+B Unternehmensberatung, Ba...
d4429f62c05b2ef339264c3304bc1fa199a98e78
e96dc2322b52dc4dfd32fab15519dd762ad27564
/collectors/collection/migrations/0002_auto_20170131_2107.py
2fb5793f26b5e1da1d8fb08fdc2b1c58961a852b
[]
no_license
VojaX/collectors
f1aef73def589d7fe14b8f6f8894fc005898d749
1a78d63401dd70589f3d13058af4ea744e7b95cd
refs/heads/master
2021-01-12T00:41:03.941917
2017-03-07T14:53:45
2017-03-07T14:53:45
81,666,809
1
0
null
null
null
null
UTF-8
Python
false
false
1,073
py
0002_auto_20170131_2107.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2017-01-31 21:07 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('collection', '0001_initial'), ] operations = [ ...
9073a91cbe4d9c1709e1f0edc71737592de0a4e3
7954d17e93f95486dcbcfe1e223bb2a59ffa33e9
/AI/modal.py
73ca946bf3b11f9f0d83ec40abcd3588ff0bb065
[]
no_license
vaquata206/vat-attt
7ac1d1315feadd4db7968f19c025159f71055e1b
57c61a5ccc914ebab5eec9fcc9be20e2ca808dc9
refs/heads/main
2023-05-05T18:09:04.094889
2021-05-31T17:19:17
2021-05-31T17:19:17
372,529,558
0
0
null
null
null
null
UTF-8
Python
false
false
1,456
py
modal.py
from pyvi import ViTokenizer, ViPosTagger import types import re import AI.navieBayes.multinomialNavieBayes as mnb def predict(text: str, modal_code: str): modal = None if modal_code == "mnb": modal = mnb.predict if isinstance(modal, types.FunctionType): t = TextProcessing([text]) ...
0bda552769984d6cc0f29ff8356e38314e99f793
7dca53b72609196797ad8253124862480f82a1cc
/pages/sign_in_page.py
0bf9ed376eace20f4824dece6506cba512b38533
[]
no_license
jceklund1031/modento-poc
c0f6d27665438d872b8502239f39b44ae3091b6f
d85c9179635be79eebc24e46c4cc1b9f3606f0b0
refs/heads/main
2023-04-07T02:41:41.517478
2021-04-15T00:17:34
2021-04-15T00:17:34
356,392,330
0
0
null
2021-04-15T00:17:35
2021-04-09T20:35:43
null
UTF-8
Python
false
false
1,838
py
sign_in_page.py
from base.base_page import BasePage from selenium.webdriver.common.by import By import time class SignInPage(BasePage): def __init__(self, driver): super().__init__(driver) self.driver = driver # Locators _username_field = "username" _password_field = "password" _login_button = "s...
7610c64367902c6b5e7a4b25065b96402889a88c
75402b6c851a12ae41359fdd83e89d2160c308af
/zentral/contrib/mdm/commands/custom.py
dc30cea0433e87d700e4179ed19b469c581d24b6
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-commercial-license" ]
permissive
neocode12/zentral
7b05aeeb823a5a3d7d268cc2b01e0bf1a5e4be71
9ecc8d8334148627fcccaa875f100adacd7a018b
refs/heads/main
2023-04-09T12:06:45.355559
2023-03-15T14:05:05
2023-03-15T14:05:05
327,651,549
0
0
Apache-2.0
2021-01-07T15:30:00
2021-01-07T15:30:00
null
UTF-8
Python
false
false
1,887
py
custom.py
import logging import plistlib from django import forms from django.core.exceptions import ValidationError from .base import register_command, Command, CommandBaseForm logger = logging.getLogger("zentral.contrib.mdm.commands.custom") class CustomCommandForm(CommandBaseForm): command = forms.CharField( w...
79fc19fdbedeedf0382eaaf112c7577252a71267
0dbfc180d703b885a7e771483e287e2d52987d99
/contentmgr/objects.py
7ab93c221ae4d82186d4974f36fd2b16f2046f2f
[ "Unlicense" ]
permissive
sanathana-dharma/sadha
bd66188657c54ba7a808336858cb8d48539fcb22
a8e1712c700e710c51d2e6ac2981f0c6df33d17f
refs/heads/master
2020-06-19T06:32:02.244125
2019-11-10T04:15:10
2019-11-10T04:15:10
196,598,215
1
0
null
null
null
null
UTF-8
Python
false
false
4,299
py
objects.py
from contentmgr import model_datastore from search import objects as search_objects import config from contentmgr import objects as contentmgr_objects from treemgr import objects as treemgr_objects from search import objects as search_objects from utils import Error import utils from _private import keys #Elastic sear...
35a124d66c44e2faf9cf95778ee9baf6d7557162
8655ca251a952f3e371d8ea73150dbbb01fccd35
/第十章/10-5.py
80c4967ae57a8703e9eb835d8a139b433708a9d7
[]
no_license
Alexno1no2/algorithm-python
5809a94779dad1ae9ac4fbe94fe5483950690828
421a2e8a5bbf00acaa7b2fda9ed531a1b4948aab
refs/heads/master
2022-09-02T09:32:33.686272
2020-05-23T15:56:11
2020-05-23T15:56:11
265,877,782
2
0
null
null
null
null
UTF-8
Python
false
false
1,911
py
10-5.py
#数学问题:多项式乘法 from cmath import pi from cmath import exp import cmath import numpy as np #设A(x)度数为n-1,A为多项式的系数表示,例如[3,4,0,0], A的长度为二的幂次方 def FFT(A,w): #w为单位的n次本原单位根,比如,n=4时w=i length = len(A) if length==1: #如果A只有常数项,返回常数项系数 return [A[0]] else: A_even =[] #在偶数位置的系数,例如[a_0,a_2,a_4] ...
cff15f5d7a034e4d9b8c4aff68a3cdb994e539ce
3ad8446d1a7e8d3b7b55a0af75d772be7d98c147
/pinry/api/api.py
0bd14d0793f1b4e15545e9f201e13bd9ed989825
[ "BSD-2-Clause" ]
permissive
flashjames/ProjectY
fb5ba06707fd135aa66de8e4d115036088e43a7b
267a349ce45d3399ecac71d81b09db4d6943a329
refs/heads/master
2021-03-27T10:12:55.743693
2012-09-13T16:30:48
2012-09-13T16:30:48
5,576,837
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
api.py
# coding:utf-8 from tastypie.resources import ModelResource from tastypie import fields from tastypie.authentication import BasicAuthentication from tastypie.authorization import DjangoAuthorization from django.contrib.auth.models import User from pinry.pins.models import Pin from tastypie.constants import ALL, ALL_...
4de2efa275664d90a2ba9252cd948cff29a6312b
463720192eb9e9d24400d03afde1347207ad1090
/solutions/helpers/passport.py
3f90ce19c59aee6fa1e195f1fe7f0d0d4026d25b
[]
no_license
austinread/adventofcode2020
295f75f9577fe75697268d3f8432e3662e068867
b4a8ddc55ddaae8049ebe7975cada1dbab862b2f
refs/heads/master
2023-02-01T20:12:42.713820
2020-12-18T02:30:32
2020-12-18T02:30:32
319,194,289
0
0
null
null
null
null
UTF-8
Python
false
false
2,903
py
passport.py
import re class Passport: def __init__(self, raw): self.fields = self.parse_raw(raw) self.required_fields = ["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid"] def parse_raw(self, raw): raw = raw.replace("\n", " ") field_text = raw.split(" ") fields = [] for text...
57153b720d551641b51a9b1fcee4680cfdb04432
8a5f62fc771864bc304f38a45a56b53caffc8c10
/P61/Clase2/distanciaEuclidiana.py
22e783cc1231d8e109b4b35c9eb2b83b7539520b
[]
no_license
alexangupe/clasesCiclo1
c57a8af589a9dd8b34f39796e3478c0a119cca0d
fcf122753b99ce06d5892cd3282dd9b051481e15
refs/heads/master
2023-05-30T06:22:58.547726
2021-06-19T20:02:51
2021-06-19T20:02:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
distanciaEuclidiana.py
import geometricasMatematicas as gc # fórmula distancia euclidiana # valor_x1 = 4 # valor_x2 = 5 # valor_y1 = 6 # valor_y2 = 5 #resultado = gc.distEUC(valor_x1,valor_x2,valor_y1,valor_y2) #print(gc.distEUC(valor_x1,valor_x2,valor_y1,valor_y2)) print(gc.distEUC(4,5,6,5)) print(gc.distEUC(4,6,5,5)) print(gc.distEUC(0,0,1...
5a5837f1b4343677e4eddc9fe073aa59e9bd983e
cbf1adf7812758ef5ddec803a36fa18a617776de
/Scheduling/migrations/0005_taskfile_taskimage.py
ac63f8b97ab5f80dc2d1c66382c176eda1e49b84
[]
no_license
tapaloeil/ProMa
b7db7447b5fb279fb13556acc590ab30ff4d2b51
9470540273ff950e44462d6034dc1ae98e3e9a48
refs/heads/master
2022-12-06T06:41:40.669292
2017-07-08T09:27:46
2017-07-08T09:27:46
93,177,198
0
0
null
2022-11-22T01:46:59
2017-06-02T15:06:15
HTML
UTF-8
Python
false
false
1,759
py
0005_taskfile_taskimage.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-08 13:51 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import filer.fields.file import filer.fields.image class Migration(migrations.Migration): dependencies = [ ('filer', ...
ca6ec8fda407d5775139d1aaac512c56708cadcb
6a5f0f6467a55f6cd4615425dcb608e665db59d1
/LegacySite/models.py
b32a754fdd27484bdbb68ec5509710737e5f16f8
[]
no_license
dipto718/Application_Security_Assignment_2
bacd62e04427588be92fd732a8b7842d6bde1c4b
a228e401395c323a2538e8a4ace2d8e43f28108a
refs/heads/main
2023-01-02T19:27:20.009895
2020-10-31T01:20:52
2020-10-31T01:20:52
306,378,072
0
0
null
null
null
null
UTF-8
Python
false
false
2,488
py
models.py
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.backends import BaseBackend from django_cryptography.fields import encrypt from . import extras keys = ['','','',''] try: secret_keys = open('remote_keys.txt', 'r') # if you have the remote_keys file then...
ebc460d0257563b650ee425363b97373a98fc8ae
f053a4fda2375f00537582d45b939b647ba3c4e1
/FolderA/methodOrveriding.py
d1b55b14225b1a4498d437c8e9318b0da70ddaaa
[]
no_license
akhi1212/pythonpracticse
3856ff80a351d01468de359dfb54fcd2f0f714e6
ce18f6e5b2471bbc1070cbe39bb31bc83bf4a9b0
refs/heads/master
2022-12-28T06:10:38.860593
2020-10-06T08:01:16
2020-10-06T08:01:16
297,626,172
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
methodOrveriding.py
class A: """docstring for ClassName""" # def __init__(self, arg): # super(ClassName, self).__init__() # self.arg = arg def printFunctionValue(self): print("I called from the Class A")
0a7453367582d8b02ea6491c25eabe8bb3f0b2a3
c251401a04faee549a5255745dc976c2be8e24b9
/tasks/models.py
569f6af23c764664a1559e34c2acd853b271ca05
[]
no_license
fengo4142/aero-django-backend
a43a3526b570730fd9d519b8e890e550ff9f9f3c
53167b52b68b30eef6a10edea47888ba0ad71a4e
refs/heads/master
2022-11-11T10:01:50.534513
2020-06-24T15:40:11
2020-06-24T15:40:11
274,699,313
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
models.py
from django.db import models from django.utils.translation import ugettext_lazy as _ from schedule.models import Event, Occurrence class Task(Event): due_date = models.DateField(blank=True, null=True) due_time = models.TimeField(blank=True, null=True) attached = models.FileField(upload_to='tasks/', blank=...
90ffa03dee96583b6ef0018eb20f655df6e04393
00829e1ff78f73dab073a201d68139960c1d1922
/tools/beam_publish/publish/core/work_response.py
335233b30fff204f95b30cae4a5e427bfde7a784
[]
no_license
liangyongg/Beam_Tools
a021ceb4187107508536c46726da5b9629ffd1cf
21b5d06e660f058434e589ae4f672f96296b7540
refs/heads/master
2018-11-04T04:43:02.523654
2018-08-26T12:33:09
2018-08-26T12:33:09
115,005,481
0
0
null
null
null
null
UTF-8
Python
false
false
4,429
py
work_response.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import yaml import glob import inspect from publish.ui.head import * from publish.core import check_class reload(check_class) def get_check_data (data): data_group = dict () all_check_lib = {} check_group_list = [] check_groupcheck_ite...
a4e1a68863eaab347a35ef462580eea19e79c9ff
5ed6c013f35628fe0c82741eb7cd50df434a7375
/ros2_ws/src/atl_blockly_ide_py_pkg/atl_blockly_ide_py_pkg/atl_python_code_executor_node.py
89f586cb29624fdb8d8f4f4f7947d3cf00d24c47
[ "MIT" ]
permissive
AutreTechLab/ATL_Robotics_IDE
50f290c46d0cf5ac5ca9488fa701fe7aa79311a6
d99b97f4bb9f058bf7e15fdb0fbfbd69a401ea68
refs/heads/main
2023-03-07T02:04:24.513269
2021-02-19T10:49:22
2021-02-19T10:49:22
302,875,795
0
0
MIT
2021-02-07T17:23:34
2020-10-10T10:26:36
JavaScript
UTF-8
Python
false
false
6,914
py
atl_python_code_executor_node.py
#!/usr/bin/env python3 import rclpy from rclpy.node import Node from atl_ide_interfaces.msg import PYTHONCODEEXECUTORSTATUS from atl_ide_interfaces.srv import PYTHONCODEEXECUTOR from atl_ide_interfaces.msg import ATLIDESESSIONMANAGER from multiprocessing import Process from ws4py.client.threadedclient import WebSocket...
4909af33c2cf8b380f52abd359fcffa8b110f897
9c2b91feab1b74c340120ce7d47d387dcd6be803
/uuid_timestamp/timestamp/admin.py
d782577e48e3219d829f55201007470c4c8b0f0a
[]
no_license
Frost199/uuid-timestamp-task
1af3f9cac71bb88f40e7dcee2991d85fea3fe523
eaacc8960edb1e05db833b8d806e9ee85f7b4c4f
refs/heads/main
2023-05-01T14:36:41.120353
2021-05-24T22:24:51
2021-05-24T22:24:51
370,032,566
0
0
null
2021-05-24T22:24:52
2021-05-23T11:18:05
Python
UTF-8
Python
false
false
137
py
admin.py
from django.contrib import admin from timestamp.models import UniqueIdentifierTimestamp admin.site.register(UniqueIdentifierTimestamp)
ac43168218e5403e6de05267fbf5644f69e3eb88
e342abb1306e4b083f235a2992ffb863c96c9a86
/examples/searching.py
156af9911d0051c79f3b78822d52bbe977bad134
[ "MIT" ]
permissive
LorenzoCavatorta/spotify.py
102422e6588cb6c49cff026562e37f28cb0650eb
7f375f030fbac4ef3dbbd577a898b4d72f37b72b
refs/heads/master
2020-08-01T17:09:06.795264
2019-09-30T12:24:57
2019-09-30T12:24:57
211,055,943
0
0
MIT
2019-09-26T09:50:46
2019-09-26T09:50:46
null
UTF-8
Python
false
false
1,155
py
searching.py
import asyncio import spotify client = spotify.Client('someid', 'somesecret') async def main(): results = await client.search('drake') # spotify.Client.search returns a dict # the keys are the result types # the values are the items returned from the query for that type # # { # 'artis...
1fd919f259180560b6a5213cb74913b3a4bac746
a30175e7cba99717fda2eb610bdf7b8ae5f03a47
/plugins/privileged_chatter.py
760054f07559c2b03ffa100a067b97a674f2660e
[ "WTFPL" ]
permissive
davoodinator/StarryPy3k
d5da88491fbbf2b028a09b7a3442dd9ff422fa98
98eb413e3f3864f2340cb2d2e7f7856e0cac23c7
refs/heads/master
2021-01-17T18:34:18.042460
2016-07-25T07:25:24
2016-07-25T07:25:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,536
py
privileged_chatter.py
""" StarryPy Privileged Chatter Plugin Add a number of chat commands that leverage the roles system: - Mod Chatter: lets Mods,Admins and SuperAdmins talk privately in-game - Admin Announce: command for admins to make alert-style announcements to all players - Notify Mod : Lets players send a mess...
0d6ca0752bdb4eed0a6a3518d1c42eeff65eb457
8406a55dcd26a111486a99d4a7a0cd556bd8348c
/unsupervised_learning/0x00-dimensionality_reduction/8-tsne.py
c77edfbddc2b85d785e1bd986f188abfc2d0c8f5
[]
no_license
DracoMindz/holbertonschool-machine_learning
d486ad55865622d81527a31ee844c82b7d06286b
4ac942126918c7acaa9ef88d18efe299b2f726fe
refs/heads/master
2020-12-21T20:44:01.026482
2020-10-09T02:31:36
2020-10-09T02:31:36
236,553,914
2
0
null
null
null
null
UTF-8
Python
false
false
2,037
py
8-tsne.py
#!/usr/bin/env python3 """ performs a t-SNE transformation """ import numpy as np pca = __import__('1-pca').pca P_affinities = __import__('4-P_affinities').P_affinities grads = __import__('6-grads').grads cost = __import__('7-cost').cost def tsne(X, ndims=2, idims=50, perplexity=30.0, iterations=1000, lr=500): "...
c638d6b2d0122660c167fafbe6c80b12c3f92f28
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/HPN-ICF-SNMP-EXT-MIB.py
fe335ebd3cf1cbf163191085c402375f29fc16ae
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
8,994
py
HPN-ICF-SNMP-EXT-MIB.py
# # PySNMP MIB module HPN-ICF-SNMP-EXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-SNMP-EXT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:29:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
d2ba7d0e661d1f2ab6e09c20e4a24020a848f92f
0214aee5123cb6b360bbb3873af6d0d9cc6aa920
/problems/00942_d_i_string_match.py
a3994f11d4dfb20a1f9cc9d26c069b698ecebcb3
[]
no_license
laiqjafri/LeetCode
1be4115fe952f9e392137ec5e0ad2d11f1c85655
bf39c351e8f3b8d1171a1c3e17874b31408b55b4
refs/heads/master
2023-06-29T15:04:06.297648
2021-08-03T09:50:08
2021-08-03T09:50:08
363,283,468
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
00942_d_i_string_match.py
# 942. DI String Match # Easy # # 1159 # # 446 # # Add to List # # Share # A permutation perm of n + 1 integers of all the integers in the range [0, n] can be represented as a string s of length n where: # # s[i] == 'I' if perm[i] < perm[i + 1], and # s[i] == 'D' if perm[i] > perm[i + 1]. # Given a string s, reconstruc...
315b1faa2456529a8d8a2b54843fa9eb54fac379
075ce278afe99070fc4a4b1380ecf2e4120a1d96
/demo.py
06c47853948a205765a1363a25fe26caab6bfa7c
[]
no_license
skwwt88/cifar10_demo
9eb448cad21663b149491fb2b9ced68ed0c3c417
4d122dc497c78b104e437c0e433efa8ca99189de
refs/heads/master
2020-12-15T06:45:45.066025
2020-03-09T00:09:46
2020-03-09T00:09:46
235,024,809
0
0
null
null
null
null
UTF-8
Python
false
false
2,913
py
demo.py
from core import * from torch_backend import * def conv_bn(c_in, c_out): return { 'conv': nn.Conv2d(c_in, c_out, kernel_size=3, stride=1, padding=1, bias=False), 'bn': BatchNorm(c_out), 'relu': nn.ReLU(True) } def residual(c): return { 'in': Identity(), 'res1': co...
d55ad6dd105058376a249c51c90c872246f3a31d
20a9787564f76ae0fcf2332a8655b21bae0646a3
/GrokkingCodingInterview/TwoPointers/removeKeys.py
6d3406a8ffaf5e6b7918d4d2c889254d7500d230
[]
no_license
nidhiatwork/Python_Coding_Practice
3b33a40c947413c2695d3ee77728fa69430f14cd
9d5071a8ddcda19181d3db029fb801d4e3233382
refs/heads/master
2023-02-08T20:50:47.522565
2023-02-04T10:04:10
2023-02-04T10:04:10
194,607,759
5
3
null
null
null
null
UTF-8
Python
false
false
373
py
removeKeys.py
'''Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length. nums = [1,1,2] Output: 2, nums = [1,2] ''' def do(arr, key): keyP = 0 for current in range(len(arr)): if arr[current]!=key: arr[keyP]=arr[current] key...
a1e5e212f55eb551242742dd2c831ed39b458488
41974b139aeca6297fb5971c288293627e32c170
/Pi/gpio_test.py
895d3431cc2b514e5d5b7f51948be917a1d3a8f1
[]
no_license
alansaul/TimelapsePi
90f9a82d55699f80720ba9d3d30e4e36f5cdc233
8da458ff5eed46282dc90ae6786c64365b45d309
refs/heads/master
2020-04-13T03:28:20.433406
2015-04-05T20:46:16
2015-04-05T20:46:16
30,215,419
1
0
null
null
null
null
UTF-8
Python
false
false
261
py
gpio_test.py
import RPi.GPIO as GPIO from time import sleep output_gpio_pin = 23 GPIO.setmode(GPIO.BCM) GPIO.setup(output_gpio_pin, GPIO.OUT) while True: print "Low" GPIO.output(output_gpio_pin, False) sleep(2) print "High" GPIO.output(output_gpio_pin, True) sleep(2)
830dc61b1fd1d27c3e8ddb24dd701f8f36c35800
2bac1f32b98fdc3b5ba0950b0edcbf86031a83de
/494.target-sum.py
5d809a7d339939ad07a1d2e5f9d263490165c067
[]
no_license
flavorfan/MyLeetCode
4e7ebb51d2d7a982ad8c4024d18b1785d042540e
b77130a0133cd40990c4d7096db5e388de67cbf2
refs/heads/master
2020-06-26T16:20:37.119631
2020-02-06T13:14:31
2020-02-06T13:14:31
199,683,799
0
0
null
null
null
null
UTF-8
Python
false
false
1,472
py
494.target-sum.py
# # @lc app=leetcode id=494 lang=python3 # # [494] Target Sum # from typing import List import collections # @lc code=start class Solution: def findTargetSumWays_1(self, nums: List[int], S: int) -> int: def dfs(cur, i, d = {}): if i < len(nums) and (i, cur) not in d: d[(i, cur)]...
6e47832a1d0234feefed662a5ced5416bcb71dfc
88c4d5b462998a9c0411a0243ab95ee05ffee60a
/tests/language/test_print_string.py
644c6669fa5ca00a4e3099041219cfa94a98ccde
[ "MIT" ]
permissive
graphql-python/graphql-core
606f3f3d479d576a4bdcd7d7995c0fddc486282f
0c93b8452eed38d4f800c7e71cf6f3f3758cd1c6
refs/heads/main
2023-09-04T09:22:45.162575
2023-06-09T22:13:10
2023-06-09T22:13:10
143,207,933
259
101
MIT
2023-06-09T22:13:11
2018-08-01T20:57:07
Python
UTF-8
Python
false
false
2,437
py
test_print_string.py
from graphql.language.print_string import print_string def describe_print_string(): def prints_a_simple_string(): assert print_string("hello world") == '"hello world"' def escapes_quotes(): assert print_string('"hello world"') == '"\\"hello world\\""' def escapes_backslashes(): a...
18e310eab5c786de05f7c0402e6e716b496e4ab1
53948d4172c1c5bc5cdb18230f2abe3d5cd8bbe7
/nautonomous_ws5/WaternetNautonomous/src/nautonomous_serverconnection_logger_server/scripts/ConnectionRequestsHandler.py
f873a4d79d4c9182540c001baa8bdb300b9a6024
[]
no_license
waternetold/_Nautonomous_JetsonTX1_DEPRECATED
41468e9c8aecfd1d4606b5bfbec6ef09c34a442a
dfb2eedc27ced824c26bec7f6104b777e6c04fbf
refs/heads/master
2021-06-15T08:20:00.443516
2017-04-20T13:20:00
2017-04-20T13:20:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
ConnectionRequestsHandler.py
#!/usr/bin/env python import requests, time, rospy from std_msgs.msg import String isConnected = False disconnectPub = rospy.Publisher("/nautonomous/disconnect", String, queue_size=1) def doConnectionRequest(): global isConnected try: while not isConnected: r = requests.post('https://loca...
d8da3ec14922f9e5bd2064fa5709afd097d8d501
cdfbe1e28af6c9b3653b450360d3e22b6d509aa7
/3_1_andreas_hemmetter.py
d29d7d8de611fd32f52807cf92ed9cb97c080ab9
[]
no_license
Ahemmetter/comp-physics
e58e731db72e5b3cc41f2d66b503e5c734830f96
f9a570a2c536c658e8150ee06454d2ea3ff4da6c
refs/heads/master
2020-03-12T11:08:57.377346
2018-04-22T17:41:57
2018-04-22T17:41:57
130,589,970
0
0
null
null
null
null
UTF-8
Python
false
false
6,168
py
3_1_andreas_hemmetter.py
#-*- coding: utf-8 -*- u"""Durch Anwendung der Mittelpunkt-, Trapez- und Simpsonregeln wird das bestimmte Integral einer gegebenen Funktion berechnet. Integrationsgrenzen a und b werden als Parameter übergeben, während die Anzahl der Stützstellen von 1 bis 100 000 durchiteriert wird. Damit lässt sich das Skalierungsve...
34c570cdd226e864571a4537266ec3141398bf42
757940b99d14d6facf5704049c35c958e3151033
/src/grad_test.py
0c99d1f45176c6fdf0b2e5d2c2a1a47ebddf9f38
[]
no_license
afgiel/docvec
ce69208ea985a1ff02f189ab630e06c0a7e5e141
ac27b2af33a959d1a67d04bf6e12e38aa787f59e
refs/heads/master
2021-01-18T07:43:30.951989
2015-06-05T21:49:42
2015-06-05T21:49:42
35,386,800
1
1
null
null
null
null
UTF-8
Python
false
false
703
py
grad_test.py
import numpy as np from simple_drnnlm import SimpleDRNNLM wv_dummy = np.random.randn(10,50) dv_dummy = np.random.randn(1, 50)*.01 model = SimpleDRNNLM(L0 = wv_dummy, D0 = dv_dummy, U0 = wv_dummy, alpha=0.005, rseed=10, bptt=4) model.grad_check(np.array([1,2,3]), np.array([2,3,4]), [0]) model.generate_docvecs([np.arra...
a78b8b8156105d68bcdcfc86cce8f56e3201f7a5
17e3234ab01fd93233cc453f1495d50424c3bd8f
/latte/overrides/desk/search.py
99d505aa422031817af672357603f034f852bbc9
[ "MIT" ]
permissive
sunnyakaxd/latte
8943dbf70ce934e04e51b147a54e6dd02dfe43db
de74065122a1f858bd75f8e1a36fca3b23981f4c
refs/heads/master
2023-06-11T10:25:31.217047
2021-07-06T06:40:19
2021-07-06T06:40:19
383,363,137
0
0
NOASSERTION
2021-07-06T06:26:49
2021-07-06T06:26:49
null
UTF-8
Python
false
false
1,436
py
search.py
from __future__ import unicode_literals import frappe from frappe.desk.search import ( build_for_autosuggest, search_widget ) import latte from latte.latte_core.naming.auto_increment import AUTO_INCREMENT_META @frappe.whitelist() @latte.read_only(key=lambda *_,**__: 3600) def search_link(doctype, txt, query=None, fi...
06045e867de269826fc4c0eae843a8a34949dfc0
2d601a1a7954aa7fcb390266944d75c1faa59c13
/test.py
b0c65872c90310ff08df13f0a50787f007f902a9
[]
no_license
arank/cs229-project
c4f74443f1184de671386e9a6dce45832e579e7e
c25384c4636a9f86778b74afb46df9095eff02a6
refs/heads/master
2021-01-02T23:14:17.117551
2015-05-11T17:23:55
2015-05-11T17:23:55
33,950,405
0
1
null
null
null
null
UTF-8
Python
false
false
116
py
test.py
arr = [1 for i in range(10)] arr2 = [2 for i in range(10)] for i in range(100000000): x = arr[i % 6] + arr2[i % 10]
437eed05a859bac1fd835c375251ca7a159f2a00
121c6f9c3ed4baf332c620ef9799cd83ba10f4be
/tests/algorithms/refinement/test_scan_varying_prediction_parameters.py
5fbc3626a2ee8e200da21763b0e92d12d98da89a
[ "BSD-3-Clause" ]
permissive
dagewa/dials
456f3ca1e83d5d593bb367b87404524e446c2dc0
e611c7680a02b5766a8f476557834daf6361d124
refs/heads/master
2022-06-05T02:01:47.168475
2022-03-21T16:05:19
2022-03-21T16:23:08
201,907,906
1
1
BSD-3-Clause
2021-12-13T16:33:18
2019-08-12T10:22:44
Python
UTF-8
Python
false
false
8,077
py
test_scan_varying_prediction_parameters.py
from __future__ import annotations import sys from math import pi import pytest from dxtbx.model.experiment_list import Experiment, ExperimentList from scitbx.array_family import flex from dials.algorithms.refinement.parameterisation.scan_varying_beam_parameters import ( ScanVaryingBeamParameterisation, ) from ...
4ba5878869ed5b4ad1ee5891322c45833f118ee5
10f105d4484e1c73d3c3b9f44f36a87fa2c56f92
/src/domain/component.py
c5a35f7509d7bdb7cccd692066cb93fa5ace99bd
[ "MIT" ]
permissive
gmdlba/simulation
d83e70d9fe9bb785e9c7a1cdb513886f9bb243e2
d47b58417bf7380f2bbf552275f9b3e51253e1a5
refs/heads/master
2022-12-09T05:05:00.058209
2020-08-29T17:40:16
2020-08-29T17:40:16
289,055,952
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
component.py
class Component: def __init__(self, fail_ratio, repair_ratio, state): self.fail_ratio = fail_ratio self.repair_ratio = repair_ratio self.state = state
bbb09542b09cf1595fefbf0228eff960961fdda8
7eb577397b3760f9782ba628118817f2f4186754
/functionq2_1age.py
858ad6018e1b5b70317988e7e05dd26180ba6056
[]
no_license
Shweta-yadav12/Function
c84de02098bb17ccff86fb86eb10dbc48d818932
863ab71ccbedbc74cf0b80ec3817b7e9da88ee5f
refs/heads/main
2023-05-08T04:59:18.555202
2021-05-30T11:23:11
2021-05-30T11:23:11
372,194,975
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
functionq2_1age.py
# Courses # Login/Signup # Question 1 # Question 1 # eligible_for_vote name ka function likho jo ki user ko bataye ki vo (he/she) vote de sakta hai ya nahi. ( Consider # minimum age of voting to be 18. ) Example:- Agar user input me 18 se kam deta hai to “not eligible “ print kare aur agar # user 18 ya 18 se jyaada...
73009d66dd88f341290f98287261719bfdb09341
a87137d4688bb60f3cd1d071023ccac3ef8033cb
/blogProject/blogApp/admin.py
af9262fb34c2735bb17091553d502bbb7f712014
[]
no_license
cs-fullstack-2019-spring/django-authentication2-cw-cgarciapieto
3f05241562cf478ea61ffc3738cace9ca87731c8
5b7d6a6a8478d11507a4ffb8e8e01311ba874378
refs/heads/master
2020-04-26T20:44:13.386852
2019-03-11T16:18:16
2019-03-11T16:18:16
173,820,055
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
admin.py
from django.contrib import admin from .models import BlogModel admin.site.register(BlogModel)
2c1650eaa0177d9f8de8d8781ef7c039da95009a
96a0b12aeb11ab09782a8f2c6232eee39c5d7b61
/login.txt
e0d0ca15e64a2495c316c84836dda94348c41aad
[]
no_license
padoxky/Online-Banking-Solution
92234dc86d403cad94718ac3d93c0281e17fd6bf
dbd3685250dbea8ef20805131ac0baac4d9bdfdb
refs/heads/master
2021-01-17T23:15:51.110746
2011-10-08T23:00:00
2011-10-08T23:00:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,426
txt
login.txt
#!/usr/bin/python # Required header that tells the browser how to render the text. print "Content-Type: text/html\n\n" import cgi, MySQLdb import cgitb; cgitb.enable() #load up the form form=cgi.FieldStorage() #create a db connection try: conn = MySQLdb.connect (host = "bankc35320110808.db.7939020.hostedresource....
b3f2ba2263421d41f947aad534516adf7b9adb0a
4918287a021884783d5f450c241b641f9700d05c
/Version_2/Utils.py
f7ca9b866c0004f1122749263fa40b1bad26175e
[]
no_license
QXYDCR/Project_Blue
9724ef179590d78b3abff42f28769f51313de101
1242a4d8ace7a67aa4b4954aa0a4c87df662e4c8
refs/heads/master
2023-07-28T02:44:58.288420
2021-08-21T05:16:29
2021-08-21T05:16:29
384,981,568
0
0
null
null
null
null
UTF-8
Python
false
false
5,728
py
Utils.py
#PyTorch用的包 import torch import torch.nn as nn import torch.optim #from torch.autograd import Variable # 自然语言处理相关的包 import re #正则表达式的包 import jieba #结巴分词包 from collections import Counter #搜集器,可以让统计词频更简单 import numpy as np import torch import torch.nn.functional as F #绘图、计算用的程序包 import matplotlib.pyplot as plt """...
815e272d0a0846fee28ddd518b82bda2e99db394
152ee43c9299addfc2f49e83d879db791b2f3a3b
/기능개발.py
e242e77025df6ab94c209344cf697875b784ea18
[]
no_license
Lairin-pdj/coding_test_practice_programmers
303f79f4f900f8482e4233cb20d653ffe14400dc
042cd78c64b3df4e7751194d143a678449dbf800
refs/heads/main
2023-08-23T17:39:37.560005
2021-10-25T08:53:30
2021-10-25T08:53:30
397,821,029
0
0
null
null
null
null
UTF-8
Python
false
false
512
py
기능개발.py
import math def solution(progresses, speeds): answer = [] remain = [] #남은 일 수 계산 for p, s in zip(progresses, speeds): remain.append(math.ceil((100 - p) / s)) #배포 수 계산 temp = 0 count = 0 for i in remain: if temp == 0: temp = i elif i > temp: ...
30c06f6fbe344cf669e3cfcdc07363244cd7fb57
6a002fe98e3e78067941b9d488a27b105c91cd91
/Udemy/Full_Stack/python_level_two/war_project.py
7247bbab863174eec6666ffe74134253dc81bc7c
[]
no_license
te25son/Learning-Tools
4f85b10fe0c016b6043f826e3fa0ac1ec48e87fd
58b2d8e8d94ccb9a2ac5694517e78b3614c050e9
refs/heads/master
2020-03-19T20:25:42.201178
2019-07-12T08:07:10
2019-07-12T08:07:10
136,901,262
0
0
null
null
null
null
UTF-8
Python
false
false
4,074
py
war_project.py
from random import shuffle import time global SUITES, RANKS, TABLE_CARDS, TOTAL_ROUNDS, WAR_COUNT SUITES = "H D S C".split() RANKS = "2 3 4 5 6 7 8 9 10 J Q K A".split() TABLE_CARDS = [] TOTAL_ROUNDS = 0 WAR_COUNT = 0 class Deck: def __init__(self): self.deck = [(e,f) for e in SUITES for f in RANKS]...
a7eb5c5de84e1d9eb727573e156f397d6f2e579d
e55594a13bdae3f0a03661fb67def59fa8433a52
/src/practice_5.py
7b6bfd7b73493251eecb23de4163f019b60d9e9b
[ "MIT" ]
permissive
xinzheshen/tf_practice
7941a01012864573570a9225ccfbedb8be157837
56e978f4391c0bfd9db278acec93405f849b64b5
refs/heads/master
2020-04-07T19:57:06.171884
2018-12-13T05:50:11
2018-12-13T05:50:11
158,669,599
0
0
null
null
null
null
UTF-8
Python
false
false
728
py
practice_5.py
#!/usr/bin/env python3.5 # -*- coding: utf-8 -*- import tensorflow as tf import numpy as np '''占位符''' # 创建一个长度为2,数据类型为int32的占位向量(shape 参数默认为None,表示可接收任意形状的Tensor对象) a = tf.placeholder(tf.int32, shape=[2], name='my_input') # 将占位向量视为其他任意Tensor对象,加以使用 b = tf.reduce_prod(a, name='prod_b') c = tf.reduce_sum(a, name='sum_...
0cb91acb750835079981cc58409644215d0de1bf
3481b050aa24e064c4b5e333a17aa237161c09a3
/Broken_Pipe/classes/layer.py
b4638c695ea1059b25deeae1f0525635f67111d0
[]
no_license
simoncourtin/GlobalGameJam2015
eb4523771bc0f6d8c7b7925bf1cc3bba59258d0b
7c1e5d735fd1f2d83f93bdd4bdf9adfdc1c0a8a9
refs/heads/master
2016-09-11T07:00:43.306229
2015-02-10T17:45:55
2015-02-10T17:45:55
29,743,869
0
0
null
null
null
null
UTF-8
Python
false
false
3,010
py
layer.py
import pygame import tuile as _tuile class Layer(): def __init__(self,screen,fichier,image,collision=False,objet=False,x_tile=32,y_tile=32,): #fenetre ou ajouter self.screen = screen #tilset de l'image du calque self.tilset = pygame.image.load(image).convert_alpha() #def...
d279dc860ee1fb717019fabe0ed92821a0fc093e
10cf72e72a1acc58eba07a7988bbda542be17efb
/integration_tests/python/scipy_clustering_kmeans.py
dc0dae77c934c988319d9fb02d023ad78f9d07fc
[ "Apache-2.0" ]
permissive
epatters/flowgraphs
8204bd914f75fae3d024b7a5f99bc053e18fb586
cbe73d9d827bc4565fbba311abb1224b435754ed
refs/heads/master
2021-08-16T20:45:03.700771
2020-04-07T21:36:18
2020-04-07T21:36:18
153,729,457
5
1
Apache-2.0
2020-02-09T00:22:53
2018-10-19T05:09:05
Julia
UTF-8
Python
false
false
218
py
scipy_clustering_kmeans.py
import numpy as np from scipy.cluster.vq import kmeans2 iris = np.genfromtxt('../datasets/iris.csv', dtype='f8', delimiter=',', skip_header=1) iris = np.delete(iris, 4, axis=1) centroids, clusters = kmeans2(iris, 3)
12bf00ee837229d8f359280bcac668ae8a8cb26f
a421d6e2fe3f0bcdc4ca7c85cbacc7805dbd8f91
/Titanic/Titanic.py
a99fd3a9ad4d8ed95bcdef8f2f8cb9da5530cb0b
[]
no_license
HowieChang7/AliYunDataMini
f086a82868ec0bb4df4cafc1ad7ec52c179f2aa4
dd0ce7290185d53974dd7c7e21ff99681699ef86
refs/heads/master
2020-04-12T00:44:37.753758
2018-12-29T01:36:24
2018-12-29T01:36:24
162,210,496
0
0
null
null
null
null
UTF-8
Python
false
false
4,098
py
Titanic.py
# -*- coding: utf-8 -*- import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from numpy.core.umath_tests import inner1d import warnings warnings.filterwarnings('ignore') train = pd.read_csv("train.csv") test = pd.read_csv("test.csv") sns.set_style('dark') # print(train.info()) #...
9d09a4db3d41557df6e641afecb3363b7892e446
029860663a0818dfe7caf4a912266f233e6d8d99
/wordTwiceCounter.py
893bdd9746ea5934074cb00e54006ad43501b2ac
[]
no_license
Hariharasudhaan/Python_programs
5ba6085c9979e59d24311541ab384b292ec38bb3
b51a3cdc02af2e26e9a37e4d8422435ce33f68a9
refs/heads/master
2020-05-30T19:54:21.147896
2019-07-25T03:55:19
2019-07-25T03:55:19
189,934,392
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
wordTwiceCounter.py
a=[] #Inistializing Array length=0 n=int(input("Enter the size of an Array:")) #Getting size of an Array for i in range(0,n,1): z=input("Enter the word:") a.append(z) for i in range(0,n,1): count=0 for j in range(0,n,1): if(a[i]==a[j]): ...
04f0b498d4772dd7e6e15ff3359132251a4cce22
ea435dce67828bec06c9c239516cca1b12f587ec
/sc_guide/api.py
3093da99dcb4d3f4b3b9df7c35644c30aa9a1953
[]
no_license
jsandvik/berserker-science
959c518d14651b4b33d855a20313f89443134239
08330d0affef7ca89c8528ccb5ceb21168596bda
refs/heads/master
2022-10-08T09:33:50.843536
2020-05-20T09:47:08
2020-05-20T09:47:08
179,947,620
0
1
null
2022-09-16T18:00:42
2019-04-07T10:06:41
Python
UTF-8
Python
false
false
2,938
py
api.py
from flask import jsonify, request from sc_guide.create_app import create_app from sc_guide.models import Move import math app = create_app() @app.route('/') def hello_world(): return 'Hello, World!' @app.route('/categories/') def categories(session=None): character = request.args.get("character", "", str) ...
76c0c650e66372572d9eff54f29078e68e04f7d4
d71fdbd7f892afb35699a9c9a5a13e7d6e2e1a54
/C110.py
113b4fc9bba014c3a660ecd9faeb3b69a9c90613
[]
no_license
shreyashPramod/C110p
7aec3a1249206ea6bac8928c841cc3dda530ad40
8e95c63c4d54260db511c1c711f5a015cadddea4
refs/heads/main
2023-07-13T19:25:54.614792
2021-08-26T10:49:55
2021-08-26T10:49:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,771
py
C110.py
import plotly.figure_factory as ff import statistics import random import csv import pandas as pd df=pd.read_csv("data.csv") data=df["temp"].tolist() population_mean=statistics.mean(data) std_deviation=statistics.stdev(data) print("Population Mean:-",population_mean) print("Standard Deviation:-",std_deviati...
ea1dc9a784a14eef45236b7e914f4c5f59245c05
5744faf1da0fd9b520c8aa72a0608b78f0a91e7a
/packages/ldbExtraction/dnn_invariant/algorithms/mine_cnn_invariant_SG.py
5dbe98bf96519416f9f97d84407053d2c5e4ddb1
[]
no_license
RomanOort/FACTAI
8534fd09e3f1427ec87c7d5f77e3dc35f109de8b
4e3db257cdae8124ee1cef66e7c01258edd6617b
refs/heads/master
2022-05-02T13:23:32.615493
2022-02-04T16:21:56
2022-02-04T16:21:56
444,803,558
3
0
null
null
null
null
UTF-8
Python
false
false
19,426
py
mine_cnn_invariant_SG.py
from dnn_invariant.utilities.environ import * from models.models4invariant import * from queue import PriorityQueue from dnn_invariant.utilities.visualization import * from sklearn.linear_model import LogisticRegression from sklearn.svm import SVC class RuleMinerLargeCandiPool(): def __init__(self, model_, trai...
480d3e1967f7c5d32ea2a8392b45e92863758838
0ba1743e9f865a023f72a14d3a5c16b99ee7f138
/problems/test_0007_i64.py
9fb00726f9dd92255379d79fd57f484f3321ad5b
[ "Unlicense" ]
permissive
chrisxue815/leetcode_python
d0a38a4168243b0628256825581a6df1b673855c
a33eb7b833f6998972e5340d383443f3a2ee64e3
refs/heads/main
2022-06-20T15:09:27.221807
2022-06-02T21:55:35
2022-06-02T21:55:35
94,590,264
1
0
null
null
null
null
UTF-8
Python
false
false
678
py
test_0007_i64.py
import unittest class Solution: def reverse(self, x): """ :type x: int :rtype: int """ neg = x < 0 if neg: x = -x y = 0 while x > 0: x, r = divmod(x, 10) y = y * 10 + r if neg: return -y if y <=...
45387835b3814aeb4ceb81065e688441a0bbbb95
c1b8b6080f29c8037100080298b897618a826475
/gammapy/irf/tests/test_io.py
c3b02d11b130dc3628eb4f2f4290d46f22bbf031
[ "BSD-3-Clause" ]
permissive
gammapy/gammapy
a5d7acbdde848e92e124fefbce9716faa296f572
60f03adb8fc7851b9f3ca039512c03a669e3fe10
refs/heads/main
2023-08-16T21:19:06.624561
2023-08-04T12:13:08
2023-08-04T12:13:08
10,073,640
204
184
BSD-3-Clause
2023-09-14T15:26:05
2013-05-15T07:50:40
Python
UTF-8
Python
false
false
11,425
py
test_io.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest import numpy as np from numpy.testing import assert_allclose import astropy.units as u from astropy.io import fits from astropy.units import Quantity from gammapy.irf import ( Background3D, EffectiveAreaTable2D, EnergyDependentMul...
be7cacf4a7d85c097d6c5adeefac9bf6ab2a1bb5
0aee6cc2a9140fe9d5f858c3dc8dbe5e2d241ca7
/api/views/personality_views.py
1c3d6cdcb1ab3e8f5a4c8c08cf39615b29bb1002
[]
no_license
musman14/ratekar
e895fffa2994f47d98c412de1aea62fd8e5bab03
5b16f53d6aaf6d5bb5c84b0b225df1da57bb39ab
refs/heads/master
2021-01-22T16:04:47.629722
2014-10-05T15:15:10
2014-10-05T15:15:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,059
py
personality_views.py
from social.models import User, Friendslist, Friendship from personality.models import Reputation, Review, ReviewDraft, TraityQuestion, Feedback from social.serializers import UserSerializer, FriendslistSerializer, FriendshipSerializer from personality.serializers import ReputationSerializer, ReviewSerializer from rest...
4896e74af5f1212d0bb02e23f829e633d7f6aeef
c8195cacd99f6d7261c527a76fdbf62f0c4ea146
/Ing/99Test/sql_test.py
f7ada901e458684f8a2bfc97f5ad8a90aadb2da6
[]
no_license
yanqingwang/100workspace
702c74af4b59e08b02943a97eece9b75aeeeac6e
4175006694a0c2093fd2711675cb371b693d7053
refs/heads/master
2021-08-30T13:14:13.104648
2021-08-22T14:18:03
2021-08-22T14:18:03
211,754,372
0
0
null
null
null
null
UTF-8
Python
false
false
1,250
py
sql_test.py
import jaydebeapi import jpype import os,sys import ctypes os.environ["JAVA_HOME"] = "C:/Users/z659190/Documents/Run/jdk/" print ("setenv JAVA_HOME", os.environ["JAVA_HOME"]) jvmPath=r'C:/Users/z659190/Documents/Run/jdk/bin/server/jvm.dll' # print(jvmPath = jpype.getDefaultJVMPath() ) jpype.startJVM(jvmpa...
2a904fdc384a4eeb292ff973918bb1764046c8d7
b908f390a00e7c13c1c307db81f2b35318d80260
/setup.py
3001e6292e96e207af9c674f8eea5bb2bda0454b
[ "Apache-2.0" ]
permissive
knu2xs/dev-summit-2020-feature-engineering
8f5d45f0d11022f9ccb5ab1ea8d3ce5ff95ab0a3
db89a0af21fd3a44d7bd7e24ef7a14cdfd11754c
refs/heads/master
2020-12-27T19:46:29.823330
2020-02-03T18:51:31
2020-02-03T18:51:31
238,030,180
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
setup.py
from setuptools import find_packages, setup setup( name='feature_engineering', packages=find_packages(), version='0.1.0', description='Supporting documentation and examples for Feature Engineering presentation at teh 2020 Esri Developer Summit.', author='Esri Advanced Analytics Team', license='...
84f69c94d5a43f6de2948e057db9dde50c79e215
c76084f1b2f65ee38b971e128a5290be438adf97
/app/main/views.py
2b130095b4f3f00ce452e50305e15b62f466a252
[ "MIT" ]
permissive
tailorv/MpashoNews
51889dc69d9b199e0e25e12ee8abd09eb1bff922
8c26bbe0644145432d1ce47fce0a625e4c65ae7e
refs/heads/main
2023-08-14T02:07:17.578168
2021-09-19T08:15:07
2021-09-19T08:15:07
403,877,169
0
0
null
null
null
null
UTF-8
Python
false
false
1,098
py
views.py
from flask import render_template, request, redirect, url_for from . import main from ..request import get_news, get_news_articles from ..models import News,Articles #views @main.route('/') def index(): ''' function that returns the index page and its data ''' #Get popular news general_news = get...
ce74a7dea3b5241c0a175874f8de2d9261b5d323
5f9e0c226c6f99f04446d60cd21282e7e6b05d2c
/fractalarea.py
db3c077b89d55fdca28102a006e127a8b4ed39d2
[]
no_license
JONNY-ME/my-kattis-solution
867ac267dbb5faa6f7c2af35b435498a22ae269d
51c70e0fd25f1f369cdcd2ce49a54d5d0df2358e
refs/heads/main
2023-06-17T20:04:04.701038
2021-07-16T09:35:35
2021-07-16T09:35:35
386,583,581
0
1
null
null
null
null
UTF-8
Python
false
false
904
py
fractalarea.py
from math import pi l = [1, 4, 12, 36, 108, 324, 972, 2916, 8748, 26244, 78732, 236196, 708588, 2125764, 6377292, 19131876, 57395628, 172186884, 516560652, 1549681956, 4649045868, 13947137604, 41841412812, 125524238436, 376572715308, 1129718145924, 3389154437772, 10167463313316, 30502389939948, 91507169819844, 2745215...
b253325dcb5b51e03a3a14060af57ef583d91ea2
b5f38ac4a518f9bb11f3198756cc94cd53e3e427
/mars_scrape.py
f50c147c4db7d49b627190bd15ecc969075ec415
[]
no_license
coreyclip/MarScrape
30855258a4c30b3f4036d2ca14100b36cc02effd
4fff1910b2759cfff08e64c950679ed26a9c8dee
refs/heads/master
2020-03-12T03:25:30.806236
2018-09-04T00:04:59
2018-09-04T00:04:59
130,424,148
0
0
null
null
null
null
UTF-8
Python
false
false
5,575
py
mars_scrape.py
import pandas as pd import requests from bs4 import BeautifulSoup as bs import time from splinter import Browser from pprint import pprint from datetime import datetime import pymongo from bson.json_util import loads import json import pytz def scrape_nasa(): print("Initialize PyMongo to work with MongoDBs") ...
0969c1aeeef7a7f644e75a88035ac05a0a350052
05b27746ba1cd56dae9c127465f2d656c08adc5d
/fvs/vision.py
8b0849f973737b24d0d10f0b8b6d2df612296d7d
[]
no_license
rconrardy/foveated_vision_system
09b2a3a3483ba0cbd27e75922cc199ece33a56c5
58b3771a540c7d67c84fe9ed54180d3306264bce
refs/heads/master
2020-05-31T19:24:14.970252
2019-06-26T13:54:13
2019-06-26T13:54:13
190,455,347
0
0
null
null
null
null
UTF-8
Python
false
false
2,429
py
vision.py
import fvs.utils as utils import time import cv2 class Vision: def __init__(self, ratio=None, size=None): """Initialize the Device given a ratio and size.""" # Variables to hold the properties self._ratio = ratio self._size = size # Store the initial values for...
c914bcb0e701888e075771b48cf839822b0d4026
c016ed237862591c42fd00b973fced791247be37
/src/garage/np/policies/__init__.py
6923a2ff4ac0066cbc34482aea9fdb8e09b4c97a
[ "MIT" ]
permissive
thanhkaist/garage
726766a1e6fd465f776c42dc006f331a3b98cbd7
1d840df357282a675b8fce839bb0e5f72a8abba9
refs/heads/master
2022-11-05T23:40:08.057025
2020-06-21T16:59:15
2020-06-21T16:59:15
274,142,146
1
0
MIT
2020-06-22T13:18:14
2020-06-22T13:18:13
null
UTF-8
Python
false
false
312
py
__init__.py
"""Policies which use NumPy as a numerical backend.""" from garage.np.policies.fixed_policy import FixedPolicy from garage.np.policies.policy import Policy, StochasticPolicy from garage.np.policies.scripted_policy import ScriptedPolicy __all__ = ['FixedPolicy', 'Policy', 'StochasticPolicy', 'ScriptedPolicy']
1f5dfc51b02dbacaa9ea886c41d9ce170815965a
4adc7e49eaee58317015c38d11461047ad0fe569
/blender/addons/2.7/super_grouper/grouper_main.py
447899c7f8bfe3292ca651f33d1aa7139c08c63a
[ "BSD-3-Clause" ]
permissive
mifth/mifthtools
c65d960f9773c5fef6c754be5237cae1f51165f7
ff90535a90dc346c122dc53466af20975d116fc5
refs/heads/master
2023-08-04T23:15:05.723324
2023-06-14T21:45:46
2023-06-14T21:45:46
28,155,389
869
149
BSD-3-Clause
2020-05-07T02:31:50
2014-12-17T21:00:17
Python
UTF-8
Python
false
false
35,650
py
grouper_main.py
# ***** BEGIN GPL LICENSE BLOCK ***** # # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distribute...
3c42370f85082b83f4e522a2f18ca6c704f50adf
02d38d6d5f5bd2d573377a71e7729e409f5b17dd
/algos/windows_programmer.py
7462bd997ef67935780a3f54d3192537e5248e46
[]
no_license
gandaro/Algo-Bench
e78b49021e47d33e8391ee49cb4bb4fb1095c459
c550e58704925a530073f3e733fe9b05a5c87ad4
refs/heads/master
2021-01-16T02:35:10.859879
2012-03-30T09:28:02
2012-03-30T09:28:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
windows_programmer.py
NULL = None def CalculateAndPrintFactorialEx(dwNumber, hOutputDevice, lpLparam, lpWparam, lpsscSecurity, *dwReserved): if lpsscSecurity != NULL: ...
e30e2b96c885dc4802a480e8ec562610b47343c1
538cd0ff0adadee5b3eb9ffb37af31cfa63923a9
/23.py
ccca9d3c398275d72f9a5de8a04ee65d80a9c868
[]
no_license
bo-ho/minilogia2014
2abfeb0634abaed22f21077844f21a6abf6ea3c0
c84ea35f9dca2e4aa5ce6ddf1839f1bfc97e3718
refs/heads/master
2016-09-08T13:24:59.849141
2014-12-21T17:00:52
2014-12-21T17:00:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
547
py
23.py
from turtle import * def stempek(): stamp() right(90) up() forward(10) down() left(90) def doprowadzenie(wieloks): up() forward(wieloks * 20 / 2) left(90) forward(wieloks * 20 / 2) right(90) down() def musztra(): wieloks=15 left(90) ilosc=1 doprowadze...
a11d302795a023a5f924e31c6f911e9a3ef0a218
c8664723211dbec7f87bf44121d0281238940304
/tools/config/open_source_test/node_config_list.py
7d1aa8d5a2be9851dbe568312e83102e222baabe
[ "Apache-2.0" ]
permissive
ibyte2011/LaserDB
d028f0d030d4c9a725f67edb1e554125a65b5b30
326fa477c4cbee36f46706ecb3b4a48d3bdab057
refs/heads/main
2023-02-20T17:14:10.128718
2021-01-21T07:50:32
2021-01-21T07:50:32
331,535,633
0
0
Apache-2.0
2021-01-21T06:26:46
2021-01-21T06:26:45
null
UTF-8
Python
false
false
403
py
node_config_list.py
# -*- coding: UTF8 -*- # vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 foldmethod=marker: # import json def get_config() : config = { "NodeConfigList": { "default" : { "BlockCacheSizeGb" : 2, "HighPriPoolRatio" : 0.5, "StrictCapacityLimit" : True, "NumShardBits" : ...
633d31fbf4befe9d21e7f5154d116696a58eec66
f589fb479f74be4ee7b0ae6bf6c7503daca4e980
/fpass.py
e09fa03ab89930e43ecd3485da67ba87a62ac8df
[]
no_license
brwong/AI-Neural-Net
f4d5cf85965909d15d3dcb193873798240773e41
73d390c5867e3fac800c1c468bdccffd8b7d0c0c
refs/heads/master
2016-09-05T10:47:53.702147
2012-09-19T03:40:44
2012-09-19T03:42:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
fpass.py
#!/usr/bin/python def genFib(): vals = [0, 1] yield 0 yield 1 while True: vals.append(vals[-2] + vals[-1]) yield vals[-1]
baa292439c24d56fa1c29ec0d59a31f8180e1ef9
f11cd7c3a0ed525887e2affec9436f8a5fa96a30
/Chapter 15/prettifiedStopwatch.py
05f57da4eb00ee473299d5c029bd638f00a4ce79
[]
no_license
s-anusha/automatetheboringstuff
5db8a442e3eea69a943a34d68b603b1bb5879949
0bf3fc56836654d331d4a5450736cc808059865e
refs/heads/master
2020-05-21T16:05:30.944861
2019-06-29T03:17:29
2019-06-29T03:17:29
186,105,729
0
0
null
null
null
null
UTF-8
Python
false
false
1,727
py
prettifiedStopwatch.py
#! python3 # prettifiedStopwatch.py ''' Expand the stopwatch project from this chapter so that it uses the rjust() and ljust() string methods to “prettify” the output. (These methods were covered in Chapter 6.) Instead of output such as this: Lap #1: 3.56 (3.56) Lap #2: 8.63 (5.07) Lap #3: 17.68 (9.05) Lap #4: 19.11 (...
fbbff2fe7afaede60342cfa1528f89a67a3cef55
67769384e54979a058a939d067c813d6ba84e213
/alphaml/engine/components/feature_engineering/selector.py
c9796aef04c859eeb4ef7abfdd1c46c9868cd229
[ "BSD-3-Clause" ]
permissive
dingdian110/alpha-ml
f53e1c847c9d327691e77dcb3edab8ca51520d50
d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde
refs/heads/master
2020-09-14T17:08:02.229245
2019-11-21T11:32:56
2019-11-21T11:32:56
223,195,139
1
0
BSD-3-Clause
2019-11-21T14:39:39
2019-11-21T14:39:38
null
UTF-8
Python
false
false
4,937
py
selector.py
import numpy as np from sklearn.feature_selection import SelectKBest from sklearn.feature_selection import f_classif, mutual_info_classif, chi2 from sklearn.ensemble import RandomForestClassifier from sklearn.linear_model import LogisticRegression # def find_worst_feature(data, labels, clf, selected): # best_pe...
ee1235e7fc45829162da99ac06f53b97b3195eff
3ae7da1ae4e1711d82e213ff4eb6cb8ff8cfe3b7
/ts_bert/src/test.py
d94a7cb3ef8d5055a5c00c1d06be09bc92a5aa96
[ "MIT" ]
permissive
Cathyttt/ucas-text-summarization
d2a7e6426d3eaeb183765782aab6a4d9f444fb08
486167994379669253af4b589725b13bf3446c24
refs/heads/master
2023-02-01T04:19:53.957717
2020-12-18T17:28:06
2020-12-18T17:28:06
316,441,830
0
0
null
null
null
null
UTF-8
Python
false
false
1,578
py
test.py
y = "this Terry Jones had a love of the absurd that contributed much to the anarchic humour of Monty Python's Flying Circus. His style of visual comedy, leavened with a touch of the surreal, inspired many comedians who followed him. It was on Python that he honed his directing skills, notably on Life of Brian and The M...
6d11ba59db50c8363f7dc708b660f006ef937ce5
79856fd6179d798b0669ddac5d14d67c70d3e481
/0x01-python-if_else_loops_functions/0-positive_or_negative.py
29ba1f1ea3b35db261aa64aa0c2cb7e838b50861
[]
no_license
JwowSquared/holbertonschool-higher_level_programming
d1790a09bf8d673ea95a6f81a0dbe032ce2defca
de38ca2de13e0c7ca097f03de068f249af694a47
refs/heads/master
2023-03-07T03:02:40.569025
2021-02-25T23:02:42
2021-02-25T23:02:42
291,763,839
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
0-positive_or_negative.py
#!/usr/bin/python3 import random number = random.randint(-10, 10) descriptor = "is " if number > 0: descriptor += "positive" elif number < 0: descriptor += "negative" else: descriptor += "zero" print("{:d} {}".format(number, descriptor))
a80de65ba73a6b8db3894dc8edcfdba821aac9bd
31420c34d66c012b9fbc3a7744ca605eadc796c1
/db/nodes/friend.py
e7e5726383704b22a01127a8ae74fef7a1a743ef
[]
no_license
livingbio/facebook-api-reader
587ab0efa2b4fd25a67160476167f194adfc6244
0ff7804ac92f8e662ac0cd0ca4956b6e9fe5c613
refs/heads/master
2021-01-10T08:15:27.262682
2016-02-26T08:59:51
2016-02-26T08:59:51
52,591,191
0
0
null
null
null
null
UTF-8
Python
false
false
1,547
py
friend.py
from db.models import _Node from schema import Schema from db.validator import * class friend(_Node): namespace = "friend" get_validater = Schema({ Optional('from'): is_User, Optional('object'): is_Object, }) update_validater = Schema({ }) insert_validater = Schema({ Op...
eedaa7330463c84040b0bbf46b8827883cbafa9e
a65aa98614711f9e1209544bcc81f39ae92c42ca
/pembukuan/migrations/0002_auto_20160304_1642.py
0c43d76cba88a5e90ee45b387ee0c8b5d5ae85cc
[]
no_license
paklikzen/auliaedutoys
29f6233ab88370a602ad9449f454682a3f8e1d2a
164e0893e896bd7b0e9bd651991571ef937e8f94
refs/heads/master
2021-01-21T13:34:15.722671
2016-04-22T10:22:32
2016-04-22T10:22:32
53,658,140
0
0
null
null
null
null
UTF-8
Python
false
false
2,212
py
0002_auto_20160304_1642.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-04 09:42 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('pembukuan', '0001_initial'), ] operations = [ ...
f4a05feef28b4234745e3413c121a440bd35aefd
22ee2d9fe2eebd841a55328061e7aaf00be801b0
/people_and_property/urls.py
8132fd00a326c3a9032689cc91004b04fe4533bb
[]
no_license
thomascothran/practice-manager
8907ff19a6d8cdce6a9753112cc9c2c222c2e826
0fddd83eee37398c47ec185268b5d6d724919172
refs/heads/master
2021-01-12T12:22:52.221958
2016-10-31T19:05:19
2016-10-31T19:05:19
72,471,293
0
0
null
null
null
null
UTF-8
Python
false
false
1,638
py
urls.py
from django.conf.urls import url, include from django.contrib.auth import views as auth_views from django.contrib.auth import urls from . import views urlpatterns = [ # url(r'^$', views.IndexView, name='index'), url(r'^person/(?P<pk>[a-zA-Z0-9_-]+)/details/$', views.PersonDetail.as_view(), name='person-detail'...
1fba0d4f1998ea1cad2b220243faadbadb3caff5
db59f0b580392942b11f2ce3b61a7402ddd09e22
/monitor/admin.py
76798b1c3be3c40461ba81f4749e6aa9f878629e
[]
no_license
danilchang/oms_django
1c83a914e07147d731fd4c049dc1d20da77158fc
9a215624576e9f6e8d6556c3f070d438d31b20a2
refs/heads/master
2020-03-22T07:27:06.673552
2018-06-27T08:23:07
2018-06-27T08:23:07
139,701,256
1
0
null
2018-07-04T09:38:10
2018-07-04T09:38:10
null
UTF-8
Python
false
false
688
py
admin.py
from django.contrib import admin # Register your models here. from monitor.models import oraclelist from monitor.models import oraclestatus from monitor.models import oracle_buffergets from monitor.models import oracle_diskreads from monitor.models import oracle_elapsedtime from monitor.models import oracle_cputime f...
229217b892cc67d8db6ac233fde0b51cc324a26f
2b9f6de6e9c3c15bac4e6d0a138db47d23ebdba3
/life3/dashboard/views.py
57dbd65cb79fbc3d4e6b59b59c7b4d6cfb589ba8
[ "MIT" ]
permissive
BoraDowon/Life3.0
4aa74ce62d87e2cc5b1c2328046f4d0e537d58c9
13aacecbe4d15619b2f8abfa333eb2f75b02e9de
refs/heads/master
2021-05-08T02:22:42.001745
2017-11-22T00:08:40
2017-11-22T00:08:40
108,059,436
1
0
null
2017-11-22T00:08:41
2017-10-24T01:06:44
Python
UTF-8
Python
false
false
2,566
py
views.py
from django.http import JsonResponse, HttpRequest, HttpResponseRedirect from django.views.decorators.csrf import csrf_exempt from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response import json from . import services #from life3.dashboard.custom_middle...
1c90677764ec5d04d3c14bf63f7a933a323c9ca2
9de2c4bb22bddd396febbfdc5396e4c05a70b404
/Home/views.py
6d5654e063f602fc868650f8ea6501c11c387679
[]
no_license
layzgamer/HelloWorld
15f0381ac013230e46350f4435f09cec736d5230
958d4e3cfe8862cb3826a9c0e38b532c8b8dcf1c
refs/heads/master
2022-09-24T02:04:14.403277
2013-08-19T06:30:46
2013-08-19T06:30:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
121
py
views.py
from django.shortcuts import render def home(request): return render(request,'index.html', {'MEDIA_ROOT':'Templates/'})
c98c171832efaf98d94ff2a544caf949f7d82a72
31f44e503144e118e3c39c778331e19038570816
/chapter_2/lvl_2/vice_versa.py
f928c0243386fef45d9de47e1b4c5a851308d85f
[]
no_license
vera-a/zlatopolskiy
9aed10fd193899a61da68bf2cbe7d95630ac75ff
d4923751314294350487cd3d6c2d32e518dd0c40
refs/heads/master
2020-04-01T09:33:10.637280
2018-11-28T16:42:21
2018-11-28T16:42:21
153,079,714
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
vice_versa.py
def vice_versa(number): while len(str(number)) != 2: number = int(input('Please, enter a two-digit number: ')) l_number = list(str(number)) number_l = list(reversed(l_number)) gegenuber = int(''.join(number_l)) return number, gegenuber
f67998d81d1e44e1b1ddb23c5c49efda87dab31c
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/integration_tests/python_modules/dagster-k8s-test-infra/dagster_k8s_test_infra/integration_utils.py
83fb8061a50cad0809c44a892871e0ccc16ea53d
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
5,169
py
integration_utils.py
# ruff: noqa: T201 import json import os import random import subprocess from typing import Any, Mapping, Optional, Sequence import requests from dagster._utils.merger import merge_dicts IS_BUILDKITE = os.getenv("BUILDKITE") is not None def image_pull_policy(): # This is because when running local tests, we nee...
c4117eaedb135fd9b36ec483a331f135f5ac0758
779c2db71e68509ea3b2a78a80cc6c61d955ae20
/what_i_learned_so_far.py
6c2766cd9898d944eedd4b913b161c9d8e29c03d
[]
no_license
OguzHaksever/UdemyPython3.9
69e0ba3c6f392642e0b9d61fb98303fe0b196c2b
0c98d8c7dd73aec1734189e283bb0dc010a0ff53
refs/heads/master
2023-05-01T22:57:47.848182
2021-05-14T14:34:03
2021-05-14T14:34:03
305,108,011
0
0
null
null
null
null
UTF-8
Python
false
false
1,290
py
what_i_learned_so_far.py
# Section 3: print() print("SECTION 3: STARTING UP") print() print("Different data types are: \nint, float") print("One of the sequence data type is String") print() a_list = ["a", "b", "c", "d", "f", "g", "h", ] print(a_list) print("Slicing this list:") first_slice = a_list[0:3] # From 0 to 2 print("First three item...
b55c782ee699c1b8999e6f572f39f9e61bb7103c
df643e830ba597549e5f950e6590403a9534da33
/Lesson 5.py
d48a828a08ea0d083a01bd3c0890eb056000d5e1
[ "MIT" ]
permissive
Dmitrii388444/python_lesson_5
e20c6d842f266df7fed027face5f92fb6c981499
da6f9640b149ccece65ce751ea6de4bfcc186658
refs/heads/master
2021-05-18T10:16:13.147113
2020-05-03T05:13:19
2020-05-03T05:13:19
251,207,279
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
Lesson 5.py
import requests import flask print ('Hello world') print ('Hello') print('Hello', 'student')
dba9c355ce62a60777f2602b489dd3766e8e5337
0600c99628f1ed221a3bdca855c1c8596a22a3a6
/Day7/json4.py
e27e18a74a3647f11c22ea5bcd71e28a10a19420
[]
no_license
hbagaria4998/Forsk2019
fee28437ca7a9d9fc6f695bf75a7298a3b843d82
632232b37f49f5d72f983b9a15a353702bc55f1d
refs/heads/master
2020-05-24T08:53:10.426514
2019-06-15T17:32:42
2019-06-15T17:32:42
187,193,046
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
json4.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue May 14 17:36:03 2019 @author: hbagaria """ endpoint = "https://requestinspector.com/inspect/01dav68mjap7myfs67963g81xs" import json import requests Host = "http://httpbin.org/post" data = {"firstname":"dev","language":"English"} headers = {"Content...
76d87268809e7a814efbca5b8322a88f5389077c
2b1b459706bbac83dad951426927b5798e1786fc
/scripts/rust/build_toolchain.py
47cac6da04d09639a93bf9497119c86ff78c4eba
[ "BSD-2-Clause", "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
gnoliyil/fuchsia
bc205e4b77417acd4513fd35d7f83abd3f43eb8d
bc81409a0527580432923c30fbbb44aba677b57d
refs/heads/main
2022-12-12T11:53:01.714113
2022-01-08T17:01:14
2022-12-08T01:29:53
445,866,010
4
3
BSD-2-Clause
2022-10-11T05:44:30
2022-01-08T16:09:33
C++
UTF-8
Python
false
false
4,742
py
build_toolchain.py
#!/usr/bin/env fuchsia-vendored-python # Copyright 2018 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import os import subprocess import sys FUCHSIA_ROOT = os.path.dirname( # $root os.path.dirname( ...
48d39c1ddbe4bde5d498623f201b5870f84e7152
269c937514571c8cc792f129b9fc5508c53398a5
/SimulateTrade/TradeInterface.py
b5d2b7127f3de93bb71c4dc226b850207aa4f635
[]
no_license
vinceecws/Quant
edf86ca062a30ec2e75da9b6f4b7b1be69a131e9
1a10e19aa628f684c2f72c7bf7919ef01135a452
refs/heads/master
2020-12-30T01:15:42.322022
2020-02-06T23:48:34
2020-02-06T23:48:34
238,807,663
0
0
null
null
null
null
UTF-8
Python
false
false
3,484
py
TradeInterface.py
from .utils.TradeType import TradeType from .TradingEnvironments.Default.TradingEnvironment import * from .RiskStructures.Default.RiskStructure import RiskStructure import copy class TradeInterface(): def __init__(self, trading_environment, algorithm, risk=None, trade_margin=1.0): self._trading_environmen...
8a7e28511ce6bb5655e7036951cc45222f380ca6
3c9a08178222590db7ae17a4d08204e9bbc7395b
/script/test_13_order.py
fa0fd7d4edb5fe0c91e62ba460e1881c875e729a
[]
no_license
tianchuntian/0814_demo_2
1e813098a75f7048472e51a2002e5a37e086dfce
8234a38215577300c14bfe21fc7929f2329f7d93
refs/heads/master
2021-10-27T14:35:58.964723
2021-10-21T09:29:38
2021-10-21T09:29:38
224,810,064
0
0
null
null
null
null
UTF-8
Python
false
false
5,088
py
test_13_order.py
from interface.order import Order from interface.login import Login from common.op_database import OpDatabase from common.get_keyword import GetKeyword import unittest class TestOrder(unittest.TestCase): # 编写test fixture def setUp(self) -> None: # 登录数据 login_url = 'http://ecshop.itsoso.cn/ECM...
e4f85d1ce24075f9c4d298281d8fb1659e03ebfc
fd529ba6ade52cd2a3dab94da01252d7ea90398d
/zerojudge/c833.py
8913c0fa4964eaf3dc848f6f21f7131c285bf12c
[]
no_license
fjfhfjfjgishbrk/AE401-Python
4a984deb0281542c205d72695285b35c7413338f
ee80fa4588b127cff2402fd81e732ede28a66411
refs/heads/master
2022-06-13T13:49:39.875567
2022-05-28T12:40:51
2022-05-28T12:40:51
251,178,163
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
c833.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 29 11:10 2020 @author: fdbfvuie """ import sys import re n, m = map(int, input().split()) a = [] b = [] o = [] for i in range(n): s = sys.stdin.readline().strip() a.append(s) c = [j.start() for j in re.finditer("#", s)] b += c c = [...
1873f78641c8ad12c18816925e7c8104241b394c
5b15a0f7db4da567cc5acf0262bfbfd52f887f54
/design_patterns/creational_design_pattern/builder/builder_example_inter_1.py
06bbd978b0990ac201e74f031a131042796b6e9d
[]
no_license
sharmasourab93/PythonDesignPatterns
3ddb417efe93107d2c0e28babbaf66368758cbf1
dc8fe0536a5384e18ad41ab0917849f66b726542
refs/heads/master
2021-07-06T02:33:55.181067
2020-10-07T15:45:33
2020-10-07T15:45:33
190,717,483
1
0
null
2020-07-05T14:13:25
2019-06-07T09:17:37
Python
UTF-8
Python
false
false
1,138
py
builder_example_inter_1.py
""" Too Many parametes fixed Attributes are encapsulated Ordering Problem still exists """ class Computer(object): def display(self): print("Custom Computer:") print("\t{:>10}: {}".format("Case", self.case)) print("\t{:>10}: {}".format("Mainboard", self.mainboard)) print("\t{:>10...
bf72923b4f2ba37bfe2640a8b83594a08728d89a
5b257f43b710e3007ddc5e5c5b242b20cd55d221
/PITO/Exercises/Conditions_Loops/itemPrinting.py
6b40c52e342c17da35dab67d58903b9c742ca05a
[]
no_license
Jhinv/JhinB2.github.io
f28ca82894aa32d8336f6fb6bba487c729ac436a
d90ac47aa125f46fc512d8249a6d3c590b456741
refs/heads/master
2023-02-11T06:41:35.911285
2021-01-14T20:44:17
2021-01-14T20:44:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
itemPrinting.py
listx = [145,11.23,1+2j,True,'python',(0-2),[4,5],{"name":"Yan","age":17}] for item in listx: print(item, "Which is: ", type(item))
aaac0844dcf983d8606c40565ec9718299d7bee1
c600fb302338e9608a4b41af17b48602e2103690
/brtech/main/models.py
ee4318a6adc2037f0ebbc2c62d84e7774098e68f
[]
no_license
mki/brTech
eb3af140131f1234c1e1ea55e2bc97753e025240
1030d38e159d7c60d3b8b1f60bd7cb82eebbb6de
refs/heads/master
2021-07-03T17:30:04.826043
2012-12-17T12:19:26
2012-12-17T12:19:26
7,204,227
0
0
null
2021-06-10T17:44:22
2012-12-17T12:12:02
Python
UTF-8
Python
false
false
1,227
py
models.py
import mongoengine as mongo mongo.connect('brtech') class Country(mongo.Document): name_eu = mongo.StringField(max_length = 200, primary_key=True) name_ru = mongo.StringField(max_length = 200) slug = mongo.StringField(max_length = 200, unique=True) def __repr__(self): return unicode(self).enc...
8823ac9f342bed5a0f9bf84dfe738c25c76ef8e8
08f0da04829eee13691151c1c1e0b537276aca17
/bin/topdev
1c70e2d934b099606f3a8d7ea744682fa8c3ba7d
[]
no_license
hlindmark/TopCompiler
a8f168eec4b05c63e0a60bdf037010e162f1d2b6
2e8171d76f0aa63b7989a2cbb909981828689d98
refs/heads/master
2021-01-15T18:46:31.563111
2017-01-01T18:56:24
2017-01-01T18:56:24
78,851,512
1
0
null
2017-01-13T13:28:09
2017-01-13T13:28:09
null
UTF-8
Python
false
false
2,170
topdev
#!/usr/bin/env python __author__ = 'antonellacalvia' from TopCompiler import topc from TopCompiler import CodegenJS import sys import logging import os import logging log = logging.getLogger('werkzeug') log.setLevel(logging.ERROR) from flask import Flask app = Flask(__name__) file = CodegenJS.__file__ jquery = f...
b0211c4970136afb3149fd838598df56c6233056
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03860/s296066773.py
f8b942e98d739351614d1b2779d9484a6ad956ab
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
s296066773.py
# 2020/08/09 # AtCoder Beginner Contest 048 - A # Input s = input().split() # Calc ans = 'A' + s[1][0] + 'C' # Output print(ans)
b3b34d343381b3430eccd017225ab54a3f600f0d
c12f0750a53b88c869b7d2eac4cd09aa41f4f5ca
/day06/test_day06.py
b9f432cd23b2e6d4e78fe4419e47526a4daff00d
[]
no_license
mattmorganpdx/adventofcode2018
178e4846591a5759c22ff1e2e533085c763d3750
4080a9659098cd49c3dfa00ebf021e2e8f8622fc
refs/heads/master
2020-04-09T03:24:06.694934
2018-12-12T07:09:41
2018-12-12T07:09:41
159,980,499
1
0
null
null
null
null
UTF-8
Python
false
false
562
py
test_day06.py
from unittest import TestCase from shared.utils import load_input from .day06 import day06 class TestDay06(TestCase): def test_day06_example(self): test_array = load_input('day06/example') answer_1, answer_2 = day06(test_array, 32) self.assertEqual(17, answer_1) self.assertEqual(16...
10b198c1b3d7834dddb38a9289fe646113220f4f
3e252cd6fae6220fa26b0347ffb3caced95c76b3
/Task4/inferenece.py
aa8065dff268904c3fe0a0ced37334d1da9df010
[]
no_license
A-Amani/gfkTasks
5ddbe1357d4a61581b71af0b03c12e2b9d71ea7e
5d60f6662fdc24222e83567cf9af17d21ec1e88f
refs/heads/master
2023-01-30T11:40:45.529718
2020-12-15T16:31:24
2020-12-15T16:31:24
321,709,587
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
inferenece.py
import numpy as np from sklearn import linear_model def run_regressor(data: float) -> float: x = [1400, 1600, 1700, 1875, 1100, 1550, 2350, 2450, 1425, 1700]# house area in sq-feet y = [245, 312, 279, 308, 199, 219, 405, 324, 319, 255]# price in $1000s x = np.array(x).reshape(-1, 1) y = np.array(y) ...
2f6a17c9369a304cf0f7451e6516713e052f7f41
ba64b044af918a477aaf5e8abb086ae8b7eca294
/src/api/serializers.py
245f9b8fffbc431e97ed473804b17cf03b00acd3
[]
no_license
hector97i/mobilender_web
8bf033ecab2631f5bbd55881fd0cf162f8cae4e9
0e544720920eb5b66371e5ea2117bef23ef8cdcd
refs/heads/main
2023-04-07T11:30:25.184299
2021-04-13T02:29:41
2021-04-13T02:29:41
355,258,780
1
0
null
null
null
null
UTF-8
Python
false
false
1,746
py
serializers.py
from rest_framework import serializers from api.models import * class ClientSerializer(serializers.ModelSerializer): class Meta: model = Client fields = '__all__' class SupplierSerializer(serializers.ModelSerializer): class Meta: model = Supplier fields = '__all__' class Arti...
f49f46eeb0663d414acb387fe9f8f73f7f6c09fa
e9b7f94749026c0fbbdced8dc7b2a1b844062d90
/hoofdstuk 6/pe.6.2.py
52456d5ca1e9db900fcc9e9d177cd009a87cbf6f
[]
no_license
thijsishiernietgoedinaarts/prog
54aa9cf61349946e03eb3f490e8004a3a4624d3d
e42f81eb9aaa39face5513e1bb6c6035c711ecce
refs/heads/master
2020-04-01T20:47:19.847590
2018-10-23T11:16:41
2018-10-23T11:16:41
153,620,630
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
pe.6.2.py
rphonebook = {'(123)456-78-90':['Anna','Karenina'],'(901)234-56-78':['Yu', 'Tsun'],'(321)908-76-54':['Hans', 'Castorp']} def rlookup(x): num=str(input('geef een nummer')) print(x[num]) rlookup(rphonebook)
87f6eb3c2a122b11a3e382cdcb9368f6852cf44a
06dfde18ad014eaeda5089bce3a1b95c4acaf1c1
/felp/barbieri2016/readability.py
8c9ca797107c0388b27e322d3397e66901b33c52
[ "MIT" ]
permissive
shunk031/feature-extractor-for-landing-page
abfe31a6f95eb225c355d9fc5edc29cb8e2bb76a
1a9334cb1184e656b07875309b6ad393ddda71fa
refs/heads/master
2023-03-13T06:57:15.080754
2021-02-11T12:29:20
2021-02-11T12:29:20
334,177,335
3
1
MIT
2021-02-11T12:29:21
2021-01-29T15:00:33
HTML
UTF-8
Python
false
false
2,004
py
readability.py
from bs4 import BeautifulSoup from felp.barbieri2016.document_object import DocumentObjectFeature class ReadabilityFeature(object): def __init__(self, lp_url: str, soup: BeautifulSoup) -> None: self._soup = soup self._doc_feat_extractor = DocumentObjectFeature(lp_url, soup) def get_main_total...
4a4473f08c7ec4f129c775311e0d85f6e05d1954
c1fcd580bc5efbd8c48d7c3ab4a72e74a49d7139
/src/tests/records_handler_test.py
83b9a98fbfaf8f0322f2db191f351b501ae22069
[ "MIT" ]
permissive
pupunu/Rytmipeli
f18801fa5eef058de2deb2e1a8bf6b4dc21dbeba
67fe5bdcdaef4e17ecbc9df12138c79315f038e0
refs/heads/main
2023-05-01T13:20:40.015900
2021-05-16T17:08:14
2021-05-16T17:08:14
350,658,500
1
0
null
null
null
null
UTF-8
Python
false
false
2,037
py
records_handler_test.py
import unittest import records_handler from rytmipeli import load_songs import os #luo testiksi tulokset oikeaan records-kansioon, en jaksa fiksata atm että olisi erikseen testin records class TestRecordsHandler(unittest.TestCase): def setUp(self): self.song = load_songs('src/tests/catalog_test_songs/')['...
de8aa609ea92feaebc7ccb82a806cba7d2d5f629
de3681c8c9428638eac3e9cac87061cacb107f39
/setup.py
95f71cf2e708d384203d7a8f38023c5488cf2bac
[ "MIT" ]
permissive
fordindin/protocookie
d3a227f453b5bda3c9228c82790f3c4e8026cb3e
f23dc9c14df98497867ecb4c975e7ed7d4319242
refs/heads/master
2020-06-16T13:25:42.597458
2019-07-06T23:31:10
2019-07-06T23:31:10
195,591,594
0
0
null
null
null
null
UTF-8
Python
false
false
863
py
setup.py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="protocookie", version="0.0.1", author="Denis Barov", author_email="dindin@dindin.ru", description="Proof of Concept for storing data in Fernet encrypted protobuffed cookies", long_desc...
a2f01fe9e3b2bee84a562973f5e3ea25f6df5f60
833b5bcdad5188021ef7a3bb1de31c33dcdc6703
/app.py
9e1c1986af93bb69cf52724a8352bd6f8d551304
[]
no_license
jessicawoolard/2.4-github_recreation
e1c2c15fed63f0d9d0ae587b071864b6c8d98d0f
2c554fba08d06e5c58bef4bff849d8bb33686d27
refs/heads/master
2022-12-21T19:51:25.810071
2019-02-01T17:59:38
2019-02-01T17:59:38
166,284,841
1
0
null
2022-12-08T01:33:02
2019-01-17T19:34:11
HTML
UTF-8
Python
false
false
1,873
py
app.py
try: from github_key import github_api_token headers = {'Authorization': 'token {}'.format(github_api_token)} except: print('Hey i see yu dont have a github API key.') print('No worries. we will just use the public API') headers = {} from flask import Flask from flask import request from flask imp...
736a9230dca990b5392630ddbbbaad3ec92918ac
fbddd92b0eafcc79a24c05cbfe5e688174a5be27
/laraPython/day17-1/test9.py
55a09bf04e545b8848553f62d544f23b28f81345
[]
no_license
priyankakumbha/python
968902b82811c31020b6ad2d853fee8ef64ec1a5
ae428d56e4afffa2fc16a8e03e99eeb6bf560037
refs/heads/master
2022-08-26T13:31:26.874275
2020-05-22T12:47:22
2020-05-22T12:47:22
266,107,443
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
test9.py
print(1) try: print(2) print(3) except: print("some thing went wrong") i = 10 / 0 print(4)
c738fee85fb0039fe858a7766cc26bb72b40d509
8176231ad8bba6b14fd8371a37d6b6bad1e06823
/character.py
e2f1d269c6dac206cafc5e65bb2ea0ac7f3652ee
[]
no_license
RodersB/RPG
5446c3474d7ece943b91930aa4558bf3bfca1574
2dbf1d5e91523c81da2960c08d2e005c69157a85
refs/heads/master
2022-11-29T00:13:46.362621
2020-08-06T00:05:27
2020-08-06T00:05:27
284,675,993
0
0
null
null
null
null
UTF-8
Python
false
false
1,933
py
character.py
def get_base_stats(): return { "base_stats": { "hp": 100, "mp": 100, "hp_regen": 5, "mp_regen": 2, "hp_leech": 0, "mp_leech": 0, "base_attack_speed": 100, "critical_chance": 0, "dodge_chanc...
e65485936e631a6abe712e37e213c2325eb7200a
1429fa2577de839a070ebf56e17f52cfd3bb80e6
/model/rfb.py
70a782717f191c46282837a9b3abd150456885a1
[ "MIT", "Apache-2.0" ]
permissive
Chris3-24/PRANet-Polyps-Segmentation
5d1addb6a95eecfe92b281b5447280a820fa318c
6d223ab82fc9cb72fa821093d4a240bd653cf5cd
refs/heads/master
2023-08-04T03:17:47.780717
2021-09-25T06:17:02
2021-09-25T06:17:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,765
py
rfb.py
''' MIT License Copyright (c) 2020 Tauhid Khan 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 without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...