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
28361cdb9b881f328d9e88a8c32b80457be47ca2
c57bdc1c04a4c5af7baa163ca4ff8e17b77af91d
/display.py
e6f50ff0eaba5aedea954b0af84e0cbd976825b2
[]
no_license
ABKgamer/Project_XO
cc61175eebbc89a10b5d4c78cc0f47e9c64bd484
3cc2bb8358b0eac9fcb6d2bcf4f6545a90daa057
refs/heads/master
2021-07-05T10:33:41.710382
2018-11-20T06:03:14
2018-11-20T06:03:14
158,336,291
0
0
null
null
null
null
UTF-8
Python
false
false
4,525
py
display.py
from comp import * from msgbox import * from tkinter import * from threading import * class Gui(Thread): def init(self,obj): self.mobj = obj self.lis = [[11, 12, 13], [21, 22, 23], [31, 32, 33]] self.moves = [] self.moves.clear() self.gOB = [] self.gOB....
d5bb84603646a10ee22b2b2293ed3f07a3a7ac40
da9576b4b577853b9e3a168b5968ea914c15fccf
/src/Sys/admin.py
d3824d9e78ece4441a8cd197da8ec477377857f2
[]
no_license
chk6622/SDMProject
84300a09dde0a62fc1de78f1b605f44da188f5f9
a31df57a6c8ea187c5d7e61270ec8f738f0feef1
refs/heads/master
2022-12-13T08:13:40.621092
2018-10-12T08:27:39
2018-10-12T08:27:39
147,133,245
0
0
null
2022-12-08T02:47:56
2018-09-03T00:42:01
CSS
UTF-8
Python
false
false
293
py
admin.py
#!/usr/bin/env python # coding: utf-8 ''' Created on Sep 2, 2018 @author: xingtong ''' from django.contrib import admin from django.contrib.auth.models import Permission # Register your models here. admin.site.register(Permission) admin.site.site_header = 'Team Happiness Research System'
f2aad0835c3beb1f9718006c746b95886a34d81a
5612307c98c191ea70250db5f7a49e3c48f5ea4b
/AutoMachine/AutoMachine/CaseList/search_app_old_today.py
6ee45d1a30749f5d3dcda144420fbcca5c0eafec
[]
no_license
Dys1992/AutoMechine
772b9963d916dc4bcfb9f00218185a34efe607cb
8024c8862fce60713204bcf3068a38618fdcb3fa
refs/heads/master
2021-05-02T02:38:00.750371
2018-02-09T09:26:10
2018-02-09T09:26:10
120,885,170
0
1
null
null
null
null
UTF-8
Python
false
false
2,559
py
search_app_old_today.py
#encoding:utf-8 ''' Created on 2017年12月5日 @author: fy39919 ''' import requests,time,unittest,datetime,json class Test(unittest.TestCase): def test_xcx_old_today(self): airlist=[] timelist=[] now1 = time.strftime("%Y-%m-%d_%H-%M-%S",time.localtime(time.time())) log_file = "./log/老A...
5dc67189ca1456c94b0d6a0c84b95ff89aa13877
0e9b3eae54496f1e51d2176eba2a68293d8c87db
/Q8.py
aaeffc94efbbd669df8de60de71266a839440859
[]
no_license
iamabdil/python_competition
e376656c940b5dc2e2b85754f35001f2e06bf6dd
7485c1be5e16438222a53c069acffc068f59a2aa
refs/heads/main
2023-04-21T19:51:34.017020
2021-05-16T17:07:27
2021-05-16T17:07:27
329,109,664
0
0
null
null
null
null
UTF-8
Python
false
false
897
py
Q8.py
''' # Q8: Schedule Tasks to minimise the waiting time. Given a list of service time for tasks, find the best scheduling to minimise the waiting time. For example given service time [2, 5, 1, 3], if we schedule them in the given order the waiting time = 0 + (2) + (2 +5) + (2 +5 +1) = 17, if we schedule them in order of...
7593e4dc715358a95a13bdf668e92d0713abe4d8
5f8a52effa9144c1ed1aecfafe0581ded2478a60
/Rent/migrations/0001_initial.py
d54621176640649bbed681a746a1516461d21a15
[]
no_license
rakibtalukder/TBL-House-Rent
3ce7893cba8742b3053f903060fee383211a278c
54f54bff79acd1db37d017497a132cb615b16d8c
refs/heads/master
2022-12-29T07:20:52.700885
2020-10-20T09:56:25
2020-10-20T09:56:25
296,252,120
1
0
null
null
null
null
UTF-8
Python
false
false
2,833
py
0001_initial.py
# Generated by Django 3.0.5 on 2020-10-19 05:33 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
524df54aa48104ab0317e96f71e183ed688744ef
bdf6833566e8fe74e652298d0aab4cd0c662428f
/expether_API/app.py
18ec5420233db1c7197e37d3ffa9a5cc8bb5738c
[]
no_license
alejandromontero/exp_api
0ad7a4e30f9d37ba435b1cda8e7065c4f01efe3b
612e8858f5fd3a6bcc7f9dd00a2b15c8130e0cf8
refs/heads/master
2020-03-22T09:50:20.380302
2018-09-26T13:17:36
2018-09-26T13:17:36
139,863,867
0
0
null
null
null
null
UTF-8
Python
false
false
1,377
py
app.py
import os import connexion from connexion.resolver import RestyResolver from utilities.DATParser import DATParser from flask_injector import FlaskInjector from services.mysql.mysqlDB import ( MySQLFactory, MySQL ) from services.eem.eem import ( EEMFactory, EEM ) __eemConfigFile ...
d0709c4508fd82372df5142f48661f57717783b1
97ade36f89e2e1fcf6c52b5cee2192d8252da7a3
/apps/survey/migrations/0023_auto_20180612_1454.py
0acf06d5b18b9f20f5b45b2a390530c850b68427
[]
no_license
lorne-luo/aimeipin_skin
e0ea2e675b7808de1e7d41b11ff5f0ed2c654674
b6b016541e77ef386e59f5df1761df853ed60108
refs/heads/master
2020-03-14T05:04:38.600044
2018-08-17T05:48:08
2018-08-17T05:48:08
131,456,287
0
0
null
null
null
null
UTF-8
Python
false
false
2,000
py
0023_auto_20180612_1454.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-06-12 06:54 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('survey', '0022_answerproduct_category'), ] operations = [ migrations.AlterF...
8ebd21305a04f4f17f6118fb93a2e56cfb467f41
8756b653562ee2c6f790b7ffd91c3fa21a31ee04
/mujoco/setup1/jax_rl/agents/sac/actor.py
c705e6588d98a88cac71096cf2c0ec1277119f91
[ "MIT" ]
permissive
Stanford-ILIAD/Learning-Feasibility-Different-Dynamics
70f09a2e4476be2094697456e1546dd857a9a94b
c89bfe0a0be653460fe58c9c138f11ebd8495365
refs/heads/main
2023-08-04T17:45:50.778006
2021-09-22T22:39:36
2021-09-22T22:39:36
409,374,755
2
0
null
null
null
null
UTF-8
Python
false
false
984
py
actor.py
from typing import Tuple import jax import jax.numpy as jnp from jax_rl.agents.actor_critic_temp import ActorCriticTemp from jax_rl.datasets import Batch from jax_rl.networks.common import InfoDict, Params def update(sac: ActorCriticTemp, batch: Batch) -> Tuple[ActorCriticTemp, InfoDict]: rng, key = ...
7fcea8b825c8272879ce89f1b770a2efdcb534fb
591eafc1da38fb5f5125db214b64d3f402ba929e
/elasticsearch_collectd.py
cc0a9f06ac67951dd72329f8a922c7ca811f2ef1
[]
no_license
rpv-tomsk/Collectd-Plugins
a05e4d946bfeb249353eb7f515cea6c0cf7fa82d
93a521b175e39115a10a52d0566ccf172ed975c4
refs/heads/master
2020-04-05T19:04:17.649660
2015-04-30T09:25:47
2015-04-30T09:25:47
53,474,036
1
0
null
2016-03-09T06:29:19
2016-03-09T06:29:19
null
UTF-8
Python
false
false
8,569
py
elasticsearch_collectd.py
#! /usr/bin/python import collectd import json import urllib2 import socket global URL, STAT, PREFIX, ES_HOST, ES_PORT, ES_CLUSTER PREFIX = "elasticsearch" ES_CLUSTER = "elasticsearch" ES_HOST = "localhost" ES_PORT = 9200 VERBOSE_LOGGING = False STAT=dict() # INDICES METRICS # ## CACHE STAT['indices_cache_evictions...
fed5e7e39fc20145a7d33571c145daf05288cd97
a281deaa4b4586384833413950e65cf965c84bbe
/4/imgs.py
90475b4eef0020b15502015646688a9810815f5e
[]
no_license
KeiitiAle/Metodos-Numericos
bf8a3c83080d725b08dc579b211b9dc413fa7eaf
26d97f185351042cfa03ad2062ddd0a5e3e5bcca
refs/heads/master
2020-09-15T16:19:26.420859
2018-08-07T21:07:12
2018-08-07T21:07:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,868
py
imgs.py
import numpy as np #import sympy as sp import matplotlib.pyplot as plt import interpolacao def get(algorit, number): # lambda a, b, funcoes, raiz: img1(a, b, funcoes, raiz, algorit, number) if algorit == 1: img = lambda a, b, n, f, x, y: img1(a, b, n, f, x, y, algorit, number) elif algorit == 2: img = lambda a...
6562ec5f1c16d0e3cc22badffeb2c66b8524a535
76a5abc76e5e579e433371aa4d2c0c55a9de6bf8
/pages/register.py
c2f8f9c03f0d104e4ff1a37c60b07542dded0af4
[]
no_license
IsmaelVS/automation-challenge-me
9dc0fcfc0784c61d432d9d2d491911b9cfbff532
72004ad22d1322d8277e3b559e23185cce5f4c3c
refs/heads/main
2023-02-23T20:23:58.607275
2021-01-25T03:44:46
2021-01-25T03:44:46
332,493,990
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
register.py
"""Base Page register.""" from selenium.webdriver.support.ui import Select class Register: def __init__(self, driver) -> None: self.driver = driver self.email_register = self.driver.find_element_by_id( "email_create" ) self.create = self.driver.find_element_by_id( ...
da05bbd4a31da3217dfafe8c2a5c33e833c33b05
b412ae5cf856e36a774a5aa58e3bc06a40c2e82a
/main/run_test.py
da0280525ad93bd495e24ab58f68eb62d07b4ec7
[]
no_license
qtclm/AutoInterfaceTest_Datadepend
2a5e179295cec2f667578ef266045e50769ee52d
67475002b8b90314fd74b42829c6f3f2679259ec
refs/heads/master
2022-09-10T18:04:23.772199
2020-05-26T11:15:17
2020-05-26T11:15:17
247,679,951
2
0
null
null
null
null
UTF-8
Python
false
false
5,404
py
run_test.py
import sys sys.path.append('../') from operation_data.get_data import GetData from operation_data.writeAllDependDatas import write_excle from tool.WriteTestReportToExcel import Write_testReport_excle class RunTest(GetData): # 实例化前完成所有的请求数据依赖处理 @staticmethod def write_depend_data(): options=input('是...
20a39da6c6a161e95e87d326b6f46afffd335242
a3fd4cf24ed691ad729317963585a374ae0affa0
/4Chan/fourchan/aplicaciones/thread/migrations/0001_initial.py
c2d1cf11550caf2b7e7b21b04d089aec3cf3c8c6
[]
no_license
abieru/4chan
80f03c5d63f87f2d0f3230f0a48fa3ddeb83ffb0
e55d8af8325a9f5a9654546659bcd86826eee13e
refs/heads/master
2023-04-27T15:20:01.787774
2020-01-30T07:24:35
2020-01-30T07:24:35
236,556,545
0
0
null
null
null
null
UTF-8
Python
false
false
1,806
py
0001_initial.py
# Generated by Django 3.0.2 on 2020-01-28 00:09 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField...
6f87f4a64040bda91cd24ffab1972c42400989d6
c1c3fbf78ad36d327d34d03ec700939da4193312
/beta/nncf/tensorflow/api/composite_compression.py
7d574ffc447605166b9719de02ed18f78abb0f04
[ "Apache-2.0" ]
permissive
faustpy/nncf
8a196f4d8c8b04173245350f49f8629d26dc8270
942f1ca55647b6119b650856fbac701e052909c6
refs/heads/master
2023-06-19T06:22:41.185233
2021-05-06T08:18:59
2021-05-06T08:18:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,737
py
composite_compression.py
""" Copyright (c) 2020 Intel Corporation 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 writin...
b66952cdf4162a4382c01012508ed190a48db172
939b50ff50dfb13a742ceaea7aef081c01f99b77
/from_email_company_extractor.py
3f4771a84fec491f58d008d1cb23f8dfda4c55e3
[]
no_license
Abhishek-555/Best_Roadways_Projects
b952fe196088c1805eecc13b970cf76a5d9ef46b
c9cdd65c674d1bd15e3b0680bb8ff474c62f890c
refs/heads/master
2023-01-24T16:10:00.378244
2020-11-27T18:43:42
2020-11-27T18:43:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
878
py
from_email_company_extractor.py
# -*- coding: utf-8 -*- """From_Email_Company_extractor.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1fTzyqyoVnLhl3Raq73xbc4aKMdMK3RIn """ import imaplib import email m = imaplib.IMAP4_SSL("imap.gmail.com", 993) m.login("mumbai@bestroadways.c...
d3fcf2317416410ecb788174ac8f8d4e967508fe
2379a01ee4a57a718174113682e6c1e41fdbf196
/findstudent/data/vk.py
bcddf51053fa42e906616e2a4381ce530fd061b4
[ "ISC" ]
permissive
Igordr1999/FindStudent.ru
aef363880af3d88a7ee7ae03f0484f388f53a01b
642761fadd405f2b70e854aabf74e04058eb932a
refs/heads/master
2022-02-16T12:59:33.604070
2019-08-20T12:45:14
2019-08-20T12:45:14
203,374,698
2
0
null
null
null
null
UTF-8
Python
false
false
4,673
py
vk.py
import requests from findstudent.settings import VK_URL, VK_LANG, VK_VERSION, VK_TOKEN class VK: api_url = VK_URL lang = VK_LANG api_version = VK_VERSION token = VK_TOKEN dynamic_data = { 'group_members': '/groups.getMembers', 'groups_info': '/groups.getById', 'metro_stati...
21d5b966ab297576ce6539781e7be52bea18adaa
3580c855bc357d279c771e8c0d41004e2e3ef664
/Lesson3_submissions/problem_7.py
fd7de913b85943890dc5b65ae965d6ac4912472a
[]
no_license
VimanyuAgg/dsand
50ea71e19e0a7537063df1302c0bd4aafd918923
3ea60abad2f276776a0d143d89b6559aecb42d5c
refs/heads/master
2020-05-16T21:51:02.345333
2019-07-14T02:08:46
2019-07-14T02:08:46
183,319,932
1
0
null
null
null
null
UTF-8
Python
false
false
4,770
py
problem_7.py
# A RouteTrie will store our routes and their associated handlers class RouteTrie: def __init__(self,root_handler=None, not_found_handler=None): # Initialize the trie with an root node and a handler, this is the root path or home page node self.root = RouteTrieNode(root_handler) # Not Found...
f4d83df3f4541d441e7867c2a33cfb6d2dd1bb7d
bd5c3eeb427ccc26ac88b2b67c43c2116cc75868
/pydelves/tests/examples.py
f329519cb70a65e11e9ea6b4c4c7f7d8f4709f90
[]
no_license
petersbingham/pydelves
290a14b05d3ff9a2edc017daec38b45da744336c
b690d69d5a72196bd3145cae578420def40e2892
refs/heads/master
2021-09-09T15:18:23.045897
2018-03-17T11:34:36
2018-03-17T11:34:36
108,906,968
1
0
null
2018-02-01T19:56:41
2017-10-30T20:50:20
Python
UTF-8
Python
false
false
3,541
py
examples.py
import os import sys basedir = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0,basedir+'/../..') from pydelves import * import numpy.testing as testing import numpy as np import numpy.linalg as la from scipy.integrate import ode import scipy.constants as consts import matplotlib.pyplot as plt import ti...
26c770bd9ab814a9997b36fc7ac4ae53798526b9
86daaa64c579c4500d67b83eb0d711a3bfb4385a
/setup.py
fa720855c3af33ac3f8ca5c06e3a85ef49dcee5b
[ "MIT" ]
permissive
Cloudzero/aws-tools
d75f26bf48ce2ccfe5ae895d0d1906c610797986
27efbb1089b2cdb0964872c4be78afe434feb6ac
refs/heads/master
2021-05-04T08:43:39.115152
2020-10-24T21:47:54
2020-10-24T21:47:54
70,416,779
0
0
null
null
null
null
UTF-8
Python
false
false
1,146
py
setup.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) CloudZero, Inc. All rights reserved. # Licensed under the MIT License. See LICENSE file in the project root for full license information. from setuptools import setup, find_packages from awstools import __VERSION__ setup(name='awstools', version=__V...
96459baac3884b9f382803e259b850ce96f70937
b2765a1f4e0c0194e79ad206907c5004971f87af
/CivEnums/EWonder.py
7f0e393c540200ae52c5bdaefa1d20553afcf855
[]
no_license
Krebsnebel/CiBrSp
f49b8fee6064b33024973a8bb690d22c4463f16c
4b895fef15e3f57548b58019c0edc8d60a066f4e
refs/heads/main
2023-02-09T01:07:48.660822
2020-12-13T13:02:28
2020-12-13T13:02:28
320,811,384
0
0
null
null
null
null
UTF-8
Python
false
false
2,506
py
EWonder.py
from enum import Enum from CivEnums.EEra import EEra from CivEnums.EResearch import EResearch from CivEnums.EVisibility import EVisibility class EWonder(Enum): def __init__(self, cp, c, ca, rred, era, s, n, img): self.culturePoints = cp self.costs = c self.costsAlternative = ...
41654fb492e3cfeaf081b2b87b4f9e257e41a607
6ab9a3229719f457e4883f8b9c5f1d4c7b349362
/cf/191B.py
da0b18a7e73415bc13e50524afa3608cde65eb92
[]
no_license
ajmarin/coding
77c91ee760b3af34db7c45c64f90b23f6f5def16
8af901372ade9d3d913f69b1532df36fc9461603
refs/heads/master
2022-01-26T09:54:38.068385
2022-01-09T11:26:30
2022-01-09T11:26:30
2,166,262
33
15
null
null
null
null
UTF-8
Python
false
false
163
py
191B.py
R=lambda:map(int,raw_input().split()) n,k=R() m=R()[0] c=R() z=sorted(c[:-1]) s=sum(z[-k:]) print n if s <= m else 1+min(i for i,j in enumerate(c) if s-z[-k]+j>m)
50858a7f7e434c88e372c9b47c3ca64376a8b377
59c0b427d43e96aa63a8a6b55237ca8ceef22243
/icp 3/source/a.py
266ed28be97e9dc1ff245711da498eb09f461e52
[]
no_license
Niteesha97/CS5590PythonDeepLearning
8ac3ecfae3f194bb293064dff5d2adc759ccc3ea
95c5baf3daeac196ef26025fba33cf47fdd910d6
refs/heads/master
2020-04-18T16:11:41.299698
2019-05-03T22:26:34
2019-05-03T22:26:34
167,628,938
1
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
a.py
class Employee: empCount = 0 tsal = 0 avgsal = 0 def __init__(self, name, family, salary, department): self.name = name self.family = family self.salary = salary self.department = department Employee.empCount += 1 Employee.tsal += int(salary) def ave...
bc6d3b9f29d5cb19ef886d5f642491e9fc6bdd88
5e299254a3f4b11b6d8a7475019349f74a44b42a
/Lesson 1 Use Functions/rename_files.py
3af56cd31ffa32bf7a6e5eb38160658046a2a28e
[]
no_license
yuraratu/Udacity.ProgrammingFundamentalsWithPython
f6dbda6a87eabc161bdf51b2b9021574b7c055f6
8d67c1d76af190af10595d18489ad88fe618ddd5
refs/heads/master
2021-01-13T10:01:59.658472
2016-10-28T16:40:10
2016-10-28T16:40:10
72,156,616
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
rename_files.py
import os path = r"d:\Files\Study\Udacity\Udacity. Programming Fundamentals with Python\prank\\" def rename_files(): files = os.listdir(path) # get files # rename files os.chdir(path) for file_name in files: old_name, new_name = file_name, file_name for i in range(0, 10): ...
2dbe8475be76c0610d428c1eb4614ab2db5718f8
60648c7350fc1f77ee99039e2b26a5ce0d69fa5f
/Faiss/faiss_configuration.py
5d12c5a3ed0c1dbbb09d26d9a0ff1b72d1121943
[]
no_license
Yujian-Fu/Similarity-Search-for-Vectors
5bdd34256e2aa2f2b5906aec03985a1fa2f55cbe
629095ca0f238f044fe406c91c107ff371ab8828
refs/heads/master
2022-07-11T02:45:58.737010
2022-06-29T00:10:25
2022-06-29T00:10:25
232,243,944
0
0
null
null
null
null
UTF-8
Python
false
false
3,210
py
faiss_configuration.py
from easydict import EasyDict as edict CONFIG = edict() #the training points seems not enough for several datasets #directory for evaluation datasets CONFIG.DATASET_PATH_LIST = [ '/home/y/yujianfu/similarity_search/datasets/ANN_GIST1M/gist_base.fvecs', '/home/y/yujianfu/similarity_search/datasets/ANN_SIFT1M/s...
665ef1edac034c29f64243b3e55f7ebbd1a68105
dac1924f3f45aa8a52cc564d303c66660695fbba
/13p6022_KareemAhmedHassan_4.py
20da8ebc7d7821cbb8a5a11b718eaf9288625ac5
[]
no_license
kimz95/Bioinformatics
08b96a053ba7c0e606d0cb74d55aed8c65c8f010
baf5ae820075e20bf9312c3ee8bf1d059cbe8478
refs/heads/master
2021-01-19T17:27:56.843260
2017-08-22T12:39:01
2017-08-22T12:39:01
101,060,616
0
0
null
null
null
null
UTF-8
Python
false
false
2,664
py
13p6022_KareemAhmedHassan_4.py
## The comment on the variable 'I' can be removed for user input ## This progam is a solution to the cyclopeptides sequencing problem using branch and bound import time from collections import Counter dictionary = { "G" : 57, "A" : 71, "S" : 87, "P" : 97, "V" : 99, "T" : 101,...
615d9bed3001803b6d43b0317855e039dd66f9e7
66c6e36b3cbaaa459107555d3081798b9cf7a2f7
/tests/lib/test_add.py
b70e1dd3e795b0f35ebfc9d8081cc6c6ea6c23b8
[ "MIT" ]
permissive
QDevil/pygears
6a68fc0cc52899573432082aaf5b9c0853f0b6f6
a0b21d445e1d5c89ad66751447b8253536b835ee
refs/heads/master
2023-08-25T18:41:44.583627
2021-03-25T14:37:06
2021-03-25T14:37:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,545
py
test_add.py
from pygears import Intf from pygears.lib import add, directed, drv, verif from pygears.sim import sim from pygears.typing import Int, Tuple, Uint, Ufixp, Fixp from pygears.util.test_utils import synth_check from pygears.sim.extens.randomization import randomize, rand_seq # def test_unsigned_overflow_cosim(cosim_cls=N...
ef5592685b72f61be26432fdabe05bc25bc9c798
df89044fd849c6c6768d36f23360def86a13023c
/database/db_access.py
660330bf6727dfeb7724d3a059bac7da343a237b
[]
no_license
mukundsood1996/QuizUp
578fddfc3d54b50ef1e27bef625e362865e95e46
d3b028618c9ed3fdc2230f40baea50660b7e6482
refs/heads/master
2022-12-21T06:37:05.969006
2022-12-10T16:34:44
2022-12-10T16:34:44
158,494,446
0
0
null
null
null
null
UTF-8
Python
false
false
7,815
py
db_access.py
""" This file contains the code that connects the backend to database Run this file to check if the connection to database works If it doesn't throw an error, it works! postgres configuration - \conninfo Connect from cmd: psql -h localhost -p 5432 -U postgres quizup """ import logging import re import string from ran...
ab7ab081f8e0331dd34397dae15ef5d6002d0fb6
0dcf78e319956f2cb2327c5cb47bd6d65e59a51b
/Python3/LinkedList/ReorderList/Naive143.py
18d30fcb50305ffc20d0fb345f588b8186e82b25
[]
no_license
daviddwlee84/LeetCode
70edd09a64a6f61492aa06d927e1ec3ab6a8fbc6
da1774fd07b7326e66d9478b3d2619e0499ac2b7
refs/heads/master
2023-05-11T03:16:32.568625
2023-05-08T05:11:57
2023-05-09T05:11:57
134,676,851
14
4
null
2018-05-29T14:50:22
2018-05-24T07:18:31
Python
UTF-8
Python
false
false
1,056
py
Naive143.py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None from ..ListNodeModule import ListNode from collections import deque class Solution: def reorderList(self, head: ListNode) -> None: """ Do not return anything, modi...
4ba93fea1d54eb892c1dd6d0c1b9fa69adb9c546
3b90c82e964308d51ad84a189ab74809b08b054c
/source/02_building_your_first_applications/11_creating_a_navigation_bar/navbar.py
d6f5448f3cde959875a6e4d29cfc7bc040f3edcd
[ "BSD-3-Clause" ]
permissive
gauravkalyan/web2py-recipes-source
2f0cad22bd0be9d33d108499c46f5a39d7c12703
6c80b674015f23caa99f64d851f8711d02a562e7
refs/heads/master
2020-07-09T22:54:01.695410
2012-02-29T14:28:31
2012-02-29T14:28:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,062
py
navbar.py
# coding: utf8 db.define_table('navbar', Field("title", "string"), Field("url", "string", requires=IS_EMPTY_OR(IS_URL())), Field("c", label="Controller"), Field("f", label="Function"), Field("args", label="Arguments"), Field("sortable", "integer"), Field("parent_id", "reference navbar"),...
4794832cb001f12fb4dd145caa07b56eafbc2511
c61374ad25ed432b14f11d4a49dbb3dd7b84d630
/chemprop/features/utils.py
ca7228bf6d9503b7665512442acbb774e379737c
[ "MIT" ]
permissive
David-A-Buchanan/chemprop
4b0247cf70ce455bd819bfdeb164e20268df69b7
dde55a8c286fac864fec3a887bd90a19976d3d76
refs/heads/master
2022-12-27T06:08:43.086794
2020-10-06T20:58:30
2020-10-06T20:58:30
275,656,826
0
0
MIT
2020-10-06T20:58:32
2020-06-28T19:46:22
Python
UTF-8
Python
false
false
2,551
py
utils.py
import csv import os import pickle from typing import List import numpy as np import pandas as pd def save_features(path: str, features: List[np.ndarray]) -> None: """ Saves features to a compressed :code:`.npz` file with array name "features". :param path: Path to a :code:`.npz` file where the features...
3db70d017bd8af0f801f6f512afd663b2c11c675
7af0ff378525ef6132f74bac0b1eb54ce4c40c08
/indico/modules/events/surveys/fields/choices.py
d931b0d99116d0ea5ac440587aa27efaf1cb1541
[ "MIT" ]
permissive
indico/indico
1126ee0ac3e9d36510a64989ce71be9c02680831
463951511d3a8409f944f98f29875c4323f3e897
refs/heads/master
2023-08-31T11:15:00.092526
2023-08-30T11:07:25
2023-08-30T11:07:25
2,113,067
1,549
429
MIT
2023-09-13T20:09:56
2011-07-27T13:56:30
Python
UTF-8
Python
false
false
2,131
py
choices.py
# This file is part of Indico. # Copyright (C) 2002 - 2023 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import uuid from collections import Counter from copy import deepcopy from indico.modules.events.surveys....
1aa7874a581b2c16affc49196440a0333f0350e0
daf362ed23dd0d57ac8a2c8384297169da3531e2
/backend/src/crawling/models/crawl_data_model.py
68b622b52addcdbffa3fc5ae244f75b213c9fa2e
[ "MIT" ]
permissive
nokia-wroclaw/innovativeproject-noticrawl
d2d05cc0a08bc78d481557dda367d97f81aa9e2b
2569dfe39492695cc33d0bbcbc675465b14756c0
refs/heads/master
2021-08-07T07:05:40.829514
2020-06-16T17:32:58
2020-06-16T17:32:58
244,608,235
5
2
MIT
2021-02-27T15:28:38
2020-03-03T10:35:03
JavaScript
UTF-8
Python
false
false
543
py
crawl_data_model.py
from pydantic import BaseModel, validator # from src.helpers.validation.validation import validate_url class CrawlDataBase(BaseModel): name: str = None url: str = None period: int = None email: str = None class CrawlDataCreate(CrawlDataBase): xpath: str = None class Config: orm_mod...
8ad108544cf55cd7a17b77c0ba6af0a4efa3761a
4e90b18240f15e50fae5fdb6e36ff3855c709967
/com/oak/test/WordClound.py
c1fe10d373c2ecb6e7e80b42c7a183ff35ac465c
[]
no_license
jiyudonggithub/-Machine-Learning
f3495c38bf86497d862c3f9497fc65d534fdcb48
a0f14522033660ba96f66d4bf8283332ff3e9e4a
refs/heads/master
2023-01-07T14:17:23.332119
2020-11-09T03:37:06
2020-11-09T03:37:06
293,032,102
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
WordClound.py
# -*- coding: utf-8 -*- # @Time : 2019/7/19 15:05 # @Author : Jiyudong # @FileName: WordClound.py # @Software: PyCharm import jieba import wordcloud f = open("F:/Desktop/123.txt", "r") line = f.read() f.close() word = jieba.lcut(line) c = wordcloud.WordCloud(font_path="F:/Desktop/china.ttf", width=600, height=400) ss =...
cac843d2618d135f4a3d7eb57d610a2a99843697
610683ddefb2b123e636604818803b61ddca99be
/Race_Classification/utils/data_setup.py
8ee4035363ef27f4f819be319d6a404b90650b66
[]
no_license
wtmlon/race_classification
93a734544a3100ba8ca955954a0a8feae92c7af4
06bcfd51bdc2b6acb1814f939720a23a71a27384
refs/heads/main
2023-08-17T08:26:26.355693
2021-04-30T10:11:31
2021-04-30T10:11:31
351,299,707
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
data_setup.py
import torch import os from torchvision.datasets import * from torch.utils.data import * from torchvision import * def get_Folder(local, transform=None): # Folder = ImageFolder(local, transform) return Folder if __name__ == "__main__": transform = transforms.Compose([ #transforms.CenterCrop(256), transforms.To...
46145e0173c2834086e4077ee5fe4d8cbefea456
fcbb9da73752589d9ff3b9d9835f84e2a537f9a9
/dcplib/media_types/__init__.py
3ea70010c7d4fe436713b484ab7b325e09b8b181
[ "MIT" ]
permissive
HumanCellAtlas/dcplib
d1866524632ae236059717f1ad3d39eeb66f31af
5d1bd939393640b9623b040f13db1c97d83bcabd
refs/heads/master
2022-03-26T23:37:40.015051
2019-11-27T21:03:55
2019-11-27T21:03:55
110,180,819
3
3
MIT
2021-04-08T17:07:05
2017-11-10T00:13:23
Python
UTF-8
Python
false
false
75
py
__init__.py
from .media_type import MediaType from .dcp_media_type import DcpMediaType
1164d54a6ec6cc8b25543516c93d68f5fcb4a764
e380de497345170e0af6bd25d12f809ff447db57
/stockyconfig/urls.py
f120f43681f1a302b1da20782e517df20a77fe57
[]
no_license
benjagilardini/BE_Stoky
8531ce1a9a4038c78cf0525d72c314153daafab6
a1d5aa0a5dd17f6a66346a2f557a781b63981e1c
refs/heads/master
2021-06-23T19:05:24.511244
2019-11-24T21:12:18
2019-11-24T21:12:18
223,810,520
0
0
null
2021-06-10T22:18:32
2019-11-24T21:09:42
Python
UTF-8
Python
false
false
359
py
urls.py
from django.conf.urls import url, include from django.contrib import admin from rest_framework.authtoken import views from rest_framework.routers import SimpleRouter from stocky.views import * router = SimpleRouter() router.register(r'stock', StockViewSet) urlpatterns = [ url(r'^admin/', admin.site.urls), url...
b5327be576d9a639ed144f30e87f8f5ce1f90e80
1c4f0ca59940046e6e211ea867f4c7a2ed92052f
/tg_bot/server.py
e988bf9ec1c5a245188baa23bfee35f2320bb44c
[]
no_license
Aspect13/survey_bot
6c118a011fa9259d69cc4c59757c1631ec58920d
51f3aceae009397e658ad278e864c5220a8a171a
refs/heads/master
2020-07-25T02:18:06.036190
2019-09-26T21:22:31
2019-09-26T21:22:31
208,130,147
0
0
null
null
null
null
UTF-8
Python
false
false
1,894
py
server.py
import logging import ssl import sys from aiohttp import web import telebot from settings import API_TOKEN, WEBHOOK_URL_BASE, WEBHOOK_URL_PATH, WEBHOOK_SSL_CERT, WEBHOOK_SSL_PRIV, \ WEBHOOK_LISTEN, WEBHOOK_PORT, PROXY logger = telebot.logger handler = logging.StreamHandler(sys.stdout) telebot.logger.addHandler(han...
3eb2ce1b3efb22df4500c63ece6ab63195870c67
c162773d23d3a8f7580d66d23ee564ce8d402d3f
/gitinput.py
e57b4577fb47f04479076ae5880e9a08a5caf6e4
[]
no_license
xinyang1812/eye_pupil_and_spot_marking
e12de0c078eee9083eecf1982b0f021224e7743b
c28c1e70b2bd5e135d3cd6b8a122f489d9361517
refs/heads/master
2020-05-31T15:13:20.059157
2019-06-05T08:06:18
2019-06-05T08:06:18
190,351,774
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
gitinput.py
from PIL import Image from pylab import * im = array(Image.open('test.jpg')) imshow(im) print 'Please click 3 points' x = ginput(3) print 'you clicked:', x show()
8c2da603c1183c6e91bb061e7e01b65209fe07f0
2c091eb82c0826ad4c1387119bc912b48efd742b
/app/admin/forms.py
717831f2d40ed6e1eb4d34151549bcb2fc3c765b
[]
no_license
cyj763097998/movieProject
ca0d95be2c2b22bb82a54a75f694619fe5596e26
0bdd8a32891ea1e2cab5a7e544a064edcb7ba77a
refs/heads/master
2020-04-08T16:30:47.612325
2019-03-07T08:55:31
2019-03-07T08:55:31
159,521,456
1
0
null
null
null
null
UTF-8
Python
false
false
4,967
py
forms.py
# coding:utf8 from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField,FileField,TextAreaField,SelectField from wtforms.validators import DataRequired, ValidationError from app.models import Admin,Tag class LoginForm(FlaskForm): """管理员登录表单""" account = StringField( ...
7815af9dd19278c17c8ad8fc5c88ef763487ea4c
4428399fcac06a410beced72f0e25e534ba8fdd9
/perf-scripts/rgb.py
dec9b36bc010706897ff461bf62d146461c679d1
[]
no_license
Emceelamb/nime
62654495391f3d4d1734e11b4c93e5b42275591a
526e9039023a2a9f663f56c4c4cadfb066c11e43
refs/heads/master
2020-08-03T12:25:39.672942
2019-12-13T21:39:03
2019-12-13T21:39:03
211,752,578
0
0
null
null
null
null
UTF-8
Python
false
false
527
py
rgb.py
from gpiozero import RGBLED from signal import pause import time led = RGBLED(red=22, green=10, blue=9) led.red = 1 start_time = time.time() step_time = 0.1 def timer(x): previous_time = start_time - 0.1 current_time = time.time() if current_time > previous_time: previous_time = previous_time + ...
1c694cc0dbee4a0b83e0848c8a5af7ecdc50d56f
5ae8fc789fa2e718eb7606cd9ab78c6c704d9cdf
/app/physics.py
39443bac93f473de0aeffc0b1b96509f04189f10
[ "MIT" ]
permissive
pankdm/icfpc-2020
dbdf206b0818a0a3aefebe950647eb283945e3e7
6cac8e1b2dfaa65d80db90cb82bdb642738fb423
refs/heads/master
2022-12-04T00:50:33.299566
2020-08-16T02:50:12
2020-08-16T02:50:12
280,202,042
0
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
physics.py
def sign(x): if x > 0: return 1 elif x < 0: return -1 else: return 0 def get_g_force(x, y): if abs(y) > abs(x): return (0, -sign(y)) if abs(x) > abs(y): return (-sign(x), 0) else: return (-sign(x), -sign(y)) def linf_norm(vec): return ma...
a75d71d5e293aae0a55f390e6c1e79e9e6e47764
1f28a1651dc3d008b75aa5a9e4ab26288149ecfd
/python/fig/trkmtm.py
b767f9e7da9504c03f8a973c7333a9c1fe2616d5
[]
no_license
volcanolei/dhad
56bee2039b1a3da50bfb67248a0ee2fd44f10ac7
82e448e7c3c712bb189559d3e787b52ec8dfb61e
refs/heads/master
2020-05-31T06:35:26.489475
2016-10-14T06:45:22
2016-10-14T06:45:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,750
py
trkmtm.py
""" Module for plotting track momentum """ import os import sys import attr import tools from yld import parse_args from tools import canvas_output, get_modekey, set_file from sel.trkmtm import get_selfile from ROOT import TFile, TCanvas import shelve __author__ = "Xin Shi <xs32@cornell.edu>" __date__ = "$Date$" _...
ed6b6bf87c0c228b7e1edf6c45b19c3f39722b18
5714ed822fae15fcea44f9bc9554078227b16467
/maze.py
2871d08fbf936fd9ce30d98580d24587f25fdf18
[]
no_license
pmewbourne20/cs550
c31bf2353d4abbdf3a443e7d313984c83b978d39
6a72cbb2105d33d0220ba8cc4d96120f6b80ab1f
refs/heads/master
2020-03-28T06:16:57.461987
2019-01-11T01:46:27
2019-01-11T01:46:27
147,824,782
0
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
maze.py
from PIL import Image import random as random import math as m imgx = int(input("Enter the dimensions of the square maze.\n\n>>")) imgy = imgx def startmove(x,y,num_iters = 0): pixels = [] for i in range(imgy): k = ["*"] * (imgx) pixels.append(k) print("**In start move!",x,y) up, right, left, down = 0,0,0,0 ...
78b170b9fd636bb0a61f797876298318a02026eb
4960e3e005ba04ec0a8b0defc6642dff5e71f5ae
/knowledge/cron/manage_neo4j/put_in_heterogeneous_node.py
6c8529c25bcff29d4f3053b057ca502dc460fa40
[]
no_license
jianjian0dandan/knowledge_revised
aa7d772ba9efcaa579907b0418e145d6b440a9c9
ffc80dcca932c977755128c80c17dca603ee8a8b
refs/heads/master
2021-01-24T18:27:41.117166
2017-04-25T14:55:42
2017-04-25T14:55:42
84,448,466
1
0
null
2017-06-15T07:32:31
2017-03-09T14:02:46
HTML
UTF-8
Python
false
false
8,275
py
put_in_heterogeneous_node.py
# -*-coding:utf-8-*- import time import json import redis import sys from py2neo import Graph from py2neo import Node, Relationship from py2neo.ogm import GraphObject, Property from py2neo.packages.httpstream import http from py2neo.ext.batman import ManualIndexManager from py2neo.ext.batman import ManualIndexWriteBat...
59db0c8ed35433d60f382937b29f889a9c614f4b
47fe75ba38b1d998b16feff971370dbfdd2083a4
/structured_data_vis.py
5257281603cc50757566ac8206dc5a17cd00ff4d
[]
no_license
maniraniyal/DeepLearning-helper
ff1e7ff2a4b34599c7476232d627497d9866183e
962ae4cd248b78529966b2135b31f814d4ead78e
refs/heads/master
2021-01-20T03:46:20.095300
2018-08-29T16:44:00
2018-08-29T16:44:00
101,366,955
1
0
null
null
null
null
UTF-8
Python
false
false
608
py
structured_data_vis.py
import pandas as pd def find_col_distinct_values(df, include=None, exclude=['O']): dict_frequency = {} for col in df.select_dtypes(include=include, exclude=exclude): dict_frequency[col] = {'UQL': len(list(set(df[col]))), 'UQV': list(set(df[col])), ...
debcba5ba5f311156e9c8eb9294075bdfe707493
61d03b29778df041318bb43758d98186f70a5319
/py/valid_sudoku.py
c37482a12b2464081da49d3f1a63ff4988270e7b
[]
no_license
hwang033/job_algorithm
9829f33eb5c9d5f7bb0083676bad95550b79f06a
199557a34c1b3820757e68bf031c2c44223fa9bb
refs/heads/master
2016-09-05T19:32:32.903991
2015-08-14T01:23:47
2015-08-14T01:23:47
38,217,155
1
0
null
2016-02-21T23:45:37
2015-06-28T22:49:39
Python
UTF-8
Python
false
false
1,308
py
valid_sudoku.py
class Solution: # @param board, a 9x9 2D array # @return a boolean def isValidSudoku(self, board): board = [[board[i][j] for j in range(9)] for i in range(9)] for i in range(9): if not self.is_valid_list(board[i]): return False ...
6e49d3a41d56d6de6839ba0cb948f1c3e0d96e1f
86e5102b39f160ce458e18bbc7fb0ba659c5da49
/eulersmethod.py
1246e9ab76876d1abd164d3f7c8c4a56a2844e48
[]
no_license
Nico31415/Eulers-Method-Python
2ce91555f1f692585abc22d115f85f544bc7ffe6
e71958cb440b372d471172fbb7548f65043584e8
refs/heads/master
2021-01-12T04:16:40.938547
2016-12-31T03:45:13
2016-12-31T03:45:13
77,563,395
3
0
null
null
null
null
UTF-8
Python
false
false
563
py
eulersmethod.py
import numpy as np import math from matplotlib import pyplot as plt x0 = input("Initial x: ") y0 = input("Initial y: ") xf = input("To what value of x do you want me to approximate y? ") h = input("h: ") n = int((xf-x0)/h) x = np.linspace(x0,xf,n+1) y = np.zeros([n+1]) y[0] = y0 def Slope(x,y): return math.cos(x) f...
10b198d111d4914758cd2a2c2fa40a1e80de0a3d
937beb08832051748e5c6512a328df4f99dccd67
/Schelling’s Model of Housing Segregation/schelling.py
3e00345e56c22ef35a5fba2b6aac7c5a344c78f5
[]
no_license
MayarakQuintero/Computer-Science-I
de4e039118c8d98eb8f83d28c27693b945c580ef
3eb3177615f18502aae296b162417cf7c2db2328
refs/heads/main
2022-12-27T06:00:29.357899
2020-10-03T06:28:48
2020-10-03T06:28:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,156
py
schelling.py
''' Mayarak Quintero Macarena Guzman Schelling Model of Housing Segregation Program for simulating a variant of Schelling's model of housing segregation. This program takes five parameters: filename -- name of a file containing a sample city grid R - The radius of the neighborhood: home at Location (i, j) ...
5411886708df65fc2ecb7a457370f64e9fa77a66
1b94c7cfd66804fe8d40b5def35e4b9b18d69ba2
/src/backend/tasks_cpu/handlers/typeahead.py
68dd58dab753fd81451654ecc88441df13b4913e
[ "MIT" ]
permissive
the-blue-alliance/the-blue-alliance
3dc210a9611ce9b240907ffd420f78040318dcdc
6d42f3cdb2f785d192f2871419e58aaae3445029
refs/heads/py3
2023-08-22T21:02:36.398100
2023-08-22T19:14:01
2023-08-22T19:14:01
888,427
344
263
MIT
2023-09-14T18:35:20
2010-09-04T20:34:11
HTML
UTF-8
Python
false
false
4,763
py
typeahead.py
import json import logging from flask import Blueprint, make_response, render_template, request, url_for from google.appengine.api import taskqueue from google.appengine.ext import ndb from werkzeug.wrappers import Response from backend.common.models.district import District from backend.common.models.event import Ev...
4be906e57ddac0bbca56ea5aedbb81fb30a0786c
c342a0bedd0692813ec90e471a11a510fb5a2873
/models/category.py
a1244a7a700fdb9255686898f01124612ffc0898
[]
no_license
amymhaddad/upcase_booklist_app
2b2c1196036a597e0c3c0b3089d0d15c57b5b842
36b48d928da43e87c9c7eeb1ba8c747ba7ec9e75
refs/heads/master
2022-04-03T21:26:40.078827
2019-12-21T15:39:36
2019-12-22T23:28:30
198,229,336
1
0
null
2019-12-21T15:05:49
2019-07-22T13:31:11
Python
UTF-8
Python
false
false
366
py
category.py
from sqlalchemy import Column, Integer, Numeric, String, ForeignKey from sqlalchemy.orm import relationship from upcase_booklist_app.database import Base class Category(Base): __tablename__ = "categories" id = Column(Integer, primary_key=True) category_name = Column(String, nullable=True) books = re...
c1bdc48369a1a55d39511d3bacf9ae4702518c95
4a933c926a7743b68deb0f4734eb6368861081de
/backend/api/turf/migrations/0005_remove_turf_turf_ground.py
b24f709b1370730f93f745ab7fa2e7776d16f972
[]
no_license
nitishpatel/turf
2119762362d5f456c0aa6d83d6218700ab74f287
4ebd13e25cfb83bb2e223cbf7e9e3c0a81337d13
refs/heads/master
2023-08-01T10:04:38.375618
2021-09-19T13:53:55
2021-09-19T13:53:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
0005_remove_turf_turf_ground.py
# Generated by Django 3.1.1 on 2021-06-20 08:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('turf', '0004_auto_20210620_1415'), ] operations = [ migrations.RemoveField( model_name='turf', name='turf_grou...
552e5fc22b94814bc3dc736084986eb8801bcb7b
7cbfa5824b40ae668f424e39804c89eb82bef41e
/mlpfsel2.py
830d909ed4edfd61361b6063ce6c85495f80b3d0
[]
no_license
Alexis211/transpose_features
4c22e960075b3cfc3fc5a61d91577b48dd83cf59
240d83be68c01b33fbb63c0eb84d80eb801c56d9
refs/heads/master
2021-01-01T19:55:29.314616
2015-06-29T15:25:37
2015-06-29T15:26:15
38,248,465
0
0
null
null
null
null
UTF-8
Python
false
false
7,264
py
mlpfsel2.py
from theano import tensor import theano import numpy from blocks.algorithms import Momentum, AdaDelta, RMSProp from blocks.bricks import Rectifier, MLP, Softmax, Tanh, Bias, Activation, application from blocks.initialization import IsotropicGaussian, Constant from blocks.filter import VariableFilter from blocks.roles...
75029e7a67179b264227e047f997b3035f9d102f
c0c4e68c5b629fefd4da295c12079fa0d660f2d8
/PythonTesting/PySeleniumDemo/jsDEmo.py
854016a903fd77212d465013fc27db9f82990eec
[]
no_license
sanpry/GitDemo
09c73958b0c8896f9c6a27ae1069cd95f6dfaa39
7aef9878ed6491228946fc685a2a02aa27807fa7
refs/heads/master
2022-07-29T04:15:38.160118
2020-05-15T13:27:43
2020-05-15T13:27:43
263,691,764
0
0
null
null
null
null
UTF-8
Python
false
false
791
py
jsDEmo.py
import time from _ast import arguments import document from selenium import webdriver chrome_options = webdriver.ChromeOptions() #chrome_options.add_argument("headless") chrome_options.add_argument("--start-maximized") driver = webdriver.Chrome(executable_path="C:\\chromedriver.exe",options=chrome_options) driver.get...
9c39d50635299a88fdcd1e36697ef379e9c07b6d
b5c0d06ad4256aff912b952995f4d62304074a85
/week-05/day-1/anna_torok_test.py
63ef23977744e9dfc9ca5a361324546298c7f97e
[]
no_license
greenfox-velox/annatorok
68ad65c0c87b4c68f66bf4e261b319ae8ca2cc70
44eab2cf2b5355422aa878998dc1fff75484ea3f
refs/heads/master
2020-02-26T16:41:52.065164
2016-07-19T13:32:07
2016-07-19T13:32:07
58,053,206
4
9
null
null
null
null
UTF-8
Python
false
false
1,607
py
anna_torok_test.py
import unittest from anna_torok_work import anagramm, count_letters class TestTwoAnagrams(unittest.TestCase): def test_two_string_anagrams_true(self): self.assertTrue(anagramm('mary', 'yram')) def test_two_string_anagrams_false(self): self.assertFalse(anagramm('albert', 'rokalb')) def te...
a6b9a0328938e7f299c0fcdcce5ee1bf99abc9f8
bc28c8d355be102e57a82d5c1d3db86afacd956c
/Examples/Workshop/Cars.py
4df73a50f5a23a0f9877b2235a406baa2c34d2c1
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pathumego/PageBot
3d194f7b68d928e69bc8e7c0e26e1e49fae517d2
88023d21392f41a5c53ca0b8051a917fb592cf7b
refs/heads/master
2021-07-20T15:32:45.723589
2017-10-24T03:02:12
2017-10-24T03:02:12
109,038,879
1
0
null
2017-10-31T18:47:33
2017-10-31T18:47:33
null
UTF-8
Python
false
false
1,230
py
Cars.py
# Factory class Car(): MaxSpeed = 180 # Class variable Colors = [] def __init__(self, color): assert color in self.Colors, 'Please select another color, e.g. %s' % self.Colors self.color = color self._capacity = 20 def drive(self, speed): print str(self...
32b153a20bdb24c8dfc2ee5db5e84b011c452a90
e1797378d005c33126edf6fdd2d6a45985cbe8dd
/music4you/api/migrations/0005_auto_20181017_0814.py
0dc5ed49fda7114f8be3422c9387d2139051abfb
[]
no_license
etiiiR/Modul152_Project
35b25773ec4c8fbabdb85938058cc68496865618
d9ed384c506da52f531a0908194305bbbade715b
refs/heads/master
2020-03-26T22:21:05.535947
2018-10-22T06:54:51
2018-10-22T06:54:51
145,451,215
1
0
null
null
null
null
UTF-8
Python
false
false
605
py
0005_auto_20181017_0814.py
# Generated by Django 2.0.7 on 2018-10-17 08:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0004_auto_20181017_0807'), ] operations = [ migrations.AlterField( model_name='music', name='upload_128', ...
34c6c23aa2c063f009be4e6ed977d254e0981db9
5d2efd407f8b6b05a6297c843c33e3f12d0557af
/source/swish/urls.py
c4660e00d758142460b7172b5855b9a49507fb85
[]
no_license
careercoder/swishcms
859281aa6a548552d265602861eb944724ff0a6c
2016225e912b876471dfa7b0b55f3bc5ab833dec
refs/heads/master
2021-01-21T06:42:36.156695
2017-02-24T03:42:37
2017-02-24T03:42:37
82,870,570
0
1
null
null
null
null
UTF-8
Python
false
false
325
py
urls.py
from django.conf.urls import url from django.contrib import admin from swish.application.start import start from django.conf.urls import include, url urlpatterns = [ url(r'^grappelli/', include('grappelli.urls')), url(r'^admin/', admin.site.urls), url(r'^$', start), url(r'^(?P<params>.+)/', start...
0da84571f16c8128c08ac605a6a8bc80094b7b24
3ac3633bd165a91a294d786e45c1a4374e3e1d6e
/sosbankservice/shpd/models.py
cf504ce98717a8eca8a8622cfe4d4745321bfd64
[]
no_license
privateprojects/sosproject
3503c96b51463580aeb49b4da5b936fe46b8674d
b2aa1dbdc684fe6c523d899e76c1b9adc955bf0c
refs/heads/master
2020-03-27T23:14:37.371417
2012-09-16T10:05:05
2012-09-16T10:05:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,347
py
models.py
# -*- coding: utf-8 -*- from django.db import models # Create your models here. class Customer(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=120) # 姓名 customer_no = models.CharField(max_length=60) #客户号 branch_name = models.CharField(max_length=120) #...
c708b8174005b9c8959874e54d4f6214a891d21c
03a6e90bcf2803e7b188752c4ad44a29ea272671
/Software/PCSoftware/SerialCommunication/SoftwareDrivers/ConfigFiles/settings.py
ebca38480c453eb0c6211ec609ab0fde1638da18
[]
no_license
k-davidson/SemiAutomatedMicropipetteAspirationSoftwarePackage
707aac90a127557f1b264a3ddbeb99803177d78c
c8f364ace696cdb9cb7da4955e251771896ba8c5
refs/heads/master
2023-01-05T20:00:16.824670
2020-11-08T23:14:12
2020-11-08T23:14:12
298,549,401
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
settings.py
SERIAL_EMULATOR = True SERIAL_PORT = "/dev/cu.Bluetooth-Incoming-Port" BAUDRATE = 57600 START_END_SEQ = "%" RECV_ATTEMPTS = 1 TRANSMIT_ATTEMPTS = 1
5cd8099af36d2beb7bacf825bab762d1f57cf622
9ffb1ce539c3bb596cdae1c6849fe806a3600805
/output/solver1.py
87495fdbfc755d5f46b15338a8ef55644b8e7f7f
[]
no_license
caojilin/cs170-Project
bfc0f8574a63d5c146e3a04c9ce75a99ad7752ca
542f8f649d1775f0bb0bb56a5ec47f7e151bf011
refs/heads/master
2020-04-15T03:17:18.856855
2019-01-06T20:35:05
2019-01-06T20:35:05
164,343,196
0
0
null
null
null
null
UTF-8
Python
false
false
13,522
py
solver1.py
import networkx as nx import glob import random import numpy as np import copy import sys import time from proj_utils import score, parse_input, get_assignment def sublist(sub, l): for e in sub: if e not in l: return False return True def intersect(a, b): return list(set(a) & set(b)) ...
d61edc96db89b97773398fd370eecd73435e8845
53a1e00175aad8bb9bc9d93c47a3e12eeffb7c67
/account/migrations/0007_extendeduser_name.py
9f49cec40eaa16b841219d610bd55a01d303bf42
[]
no_license
mirsisir/flash
c363d748725ebf4c5bbce9f03cbaafe32f768e9e
42d73be32fd29ab4592ccaca3c03b786223fc902
refs/heads/master
2022-12-26T08:02:54.927235
2020-10-03T08:32:24
2020-10-03T08:32:24
300,835,641
1
0
null
null
null
null
UTF-8
Python
false
false
395
py
0007_extendeduser_name.py
# Generated by Django 3.0.8 on 2020-08-28 18:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0006_order_receive'), ] operations = [ migrations.AddField( model_name='extendeduser', name='name', ...
2c2df872bf2355cc6f372297366b329fd2df28c6
6cecb9825b4e9a2256940f4c03572702d2459987
/event/utils/security.py
395b03ed80e6ae25edeae4621e56d6661c22529e
[]
no_license
yashpokar/bookmyevent-backend
7100f86b9d0a143ca30fe13bd81c0233d95be817
16796cd0973c8e08433938e6977ea90aa2e653f5
refs/heads/master
2020-05-31T21:55:05.319597
2019-06-06T03:51:45
2019-06-06T03:51:45
190,509,259
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
security.py
from flask import Markup def escape(string): return str(Markup.escape(string)).strip()
770ce3866a857d7bf2bdc36dd0a8c4317c631fa8
a02c5c783f1716a63a841c8d137626a5055ffa59
/app.py
432f952e4fdd5dea3f4005b572180acedf5cc5c4
[]
no_license
penlow99/surfs_up
44b58a33ff9df9602d0cd4d2d4f48f7ecbc6ce66
a5edbeef14d600345b6d7a743d59fe5b72c86968
refs/heads/main
2023-01-11T20:41:29.879380
2020-11-09T20:19:58
2020-11-09T20:19:58
309,822,713
0
0
null
null
null
null
UTF-8
Python
false
false
2,933
py
app.py
from flask import Flask, jsonify import datetime as dt import numpy as np import pandas as pd import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func # initialize flask app app = Flask(__name__) # # create flask route # @app....
9c7fd8232dd53785ca6aa8fab841e3981ef9c760
ae8df9ab3b49f88ad0437efcf56e186da3e35e8d
/test.py
3ca56a8dda1a1ab62d704320ce2b41ceecdd23f4
[]
no_license
lzontar/Partitioning-of-urban-networks-to-optimize-postal-delivery-routes
032dc58947e9bf0d9057ffc1b6ecc886fe5fecde
017446f90e138e962189bd82da2eeb47674bc59c
refs/heads/master
2023-05-23T17:23:59.142688
2021-06-21T08:35:41
2021-06-21T08:35:41
366,455,946
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
test.py
# import networkx as nx # import util.lib.helper as help # # if __name__ == '__main__': # graph = nx.read_pajek(f'data/graphs/temp/pungert.net') # # distanceMatrix = help.distance_matrix(graph) # print(help.optimalTraversal(graph, graph.nodes, distanceMatrix, verbose=True))
f1986a59beadf48119d4e5579eb2c3d27640c43c
1f5f8f95530003c6c66419519d78cb52d21f65c0
/projects/golem_api/pages/test_.py
f5e45368f39dcd1caae67cd1666591464b709f1a
[]
no_license
golemhq/golem-tests
c5d3ab04b1ea3755d8b812229feb60f513d039ac
dff8fd3a606c3d1ef8667aece6fddef8ac441230
refs/heads/master
2023-08-17T23:05:26.286718
2021-10-04T20:34:17
2021-10-04T20:34:17
105,579,436
4
1
null
2018-11-19T00:14:24
2017-10-02T20:05:55
Python
UTF-8
Python
false
false
3,718
py
test_.py
import requests from projects.golem_api.pages.utils import url, headers TEST_COMPONENTS_ENDPOINT = '/test/components' DELETE_TEST_ENDPOINT = '/test/delete' DUPLICATE_TEST_ENDPOINT = '/test/duplicate' RENAME_TEST_ENDPOINT = '/test/rename' RUN_TEST_ENDPOINT = '/test/run' SAVE_TEST_ENDPOINT = '/test/save' SAVE_TEST_COD...
5a080a871c7224d2a4168a9ab6e99f99e5ea556e
6b3d42f4aa1c6cf3f64b98d82992b2f1de7c1a4c
/regression_emma.py
9ea3ff2da139df228ce61ab580f1c6a997ace84f
[]
no_license
mr-juice/SingleRegressionLine
e23041b32631dbe062023a984d50cfbf9be3c4e2
5ed6edde5d74eb0327d62514fbfccd34dc155e27
refs/heads/master
2021-01-09T02:35:54.601914
2020-02-25T17:18:48
2020-02-25T17:18:48
242,218,289
0
0
null
null
null
null
UTF-8
Python
false
false
1,755
py
regression_emma.py
''' This is a program that charts the average of the Southern California population growth from the years 2010-2018, made by Emma Ruccio. The population is presented in thousands, while the years are presented as just the last two numbers (i.e. 10 instead of 2010). Source: https://wolfstreet.com/2019/04/19/los-angeles-...
11d34ea3cc0268943a8cf1b64f3aef5b5c70ecfc
8f9a670fa4a2cc3f269e9cc90ab93b71bd478a56
/code/statistics.py
f34a7129f161dfec665bbf01820d6f50b77fcead
[]
no_license
SJHBXShub/Are-you-happy
77582d8e81fd81edc8b0886bfd07b0a52c2d9b6a
3b3c2732d55c61ba6570054c22846da832e64589
refs/heads/master
2021-06-01T17:49:01.712738
2020-07-10T02:02:39
2020-07-10T02:02:39
138,879,391
7
2
null
2018-07-22T02:46:12
2018-06-27T12:36:59
Python
UTF-8
Python
false
false
47,076
py
statistics.py
#! /usr/bin/python # -*- coding: utf-8 -*- # @Time : 2017/6/20 14:28 # @Author : HouJP # @Email : houjp1992@gmail.com import sys from imp import reload import math import chardet import nltk import numpy as np import pandas as pd from nltk.corpus import stopwords from nltk.stem import SnowballStemmer from sklear...
7b8694e9e201ee71eb42c6795a362c468fc76699
6fafc429f41fac7c59c6a026e37f1d70c71688f9
/img_proc/overlap_canny_deeplearning.py
f7f726b31142890a4cf0035a5abfee7c2a9c0ecb
[ "MIT" ]
permissive
kleelab-bch/MARS-Net
aeadfabd72cde2bc8d59beef4461ed7f2c5ceda6
d826cb9f43158abbfa186b318a2a78c10d7a7803
refs/heads/master
2023-04-14T07:31:11.479778
2022-08-15T12:54:35
2022-08-15T12:54:35
356,401,230
6
3
MIT
2022-03-28T01:44:03
2021-04-09T21:22:38
Jupyter Notebook
UTF-8
Python
false
false
5,421
py
overlap_canny_deeplearning.py
''' Author Junbong Jang 8/18/2020 1. extract edge from deep learning segmentation 2. overlap canny edge from raw image and result from 1. 3. fill the edge 4. overlay edge with raw image ''' import matplotlib matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab! import cv2 impor...
89d6f3ab33d50293a681b425c8455d0481793346
a9de9d56306df7d9bb8b9ef9cde0e6429f1b3834
/Problem1.py
021665282786faf5a52e4dba893a943d7df00717
[]
no_license
SaiHoYip/AlgoDaily
70d0747ebccaaf277e929ca01546a016f388660b
09fd817ffb92e0314ce3e79f228066b34ca90e8a
refs/heads/main
2023-08-12T04:57:04.488188
2021-10-14T21:56:24
2021-10-14T21:56:24
416,975,235
1
0
null
null
null
null
UTF-8
Python
false
false
243
py
Problem1.py
#LIFO (Last in first out is possible here) def reverse_string(str1): stack = '' for a in str1: stack = a + stack # stack = a + '' # stack = b + 'a' # stack = c + 'ab' str1 = stack return str1 print(reverse_string('abc'))
5f7b306fd6603fe06f5131df3d82a086d536b3fa
819daa4d295d21cfab7cf36a773b0379b3e5c096
/1-Programing/Python/100_days_of_code/Exercises/0_to_25/22_pong/ball.py
f9b9221ffffbdc43d1b6c11adf4e45aff885caf1
[]
no_license
jsc0/repos
c6233612fd6f348d65b8773a186a5ff2db01afb2
4880330b230e1ccb57e2f509d33beb0e61f218dc
refs/heads/master
2023-09-02T12:18:42.742121
2023-08-17T13:50:34
2023-08-17T13:50:34
152,607,969
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
ball.py
from turtle import Turtle class Ball(Turtle): # Create the class Ball and inherit all methods and attributes from class Turtle def __init__(self): # Declare the init method and create the ball (turtle) shape, color, position, etc super().__init__() self.shape("circle") self.color("white")...
931349bd798325148297ba83f2a6149b2597ce39
cd64e9076ab81f4b2b42215289b1791c8cc3a1dd
/LogHadoopJob/py/MR/MR_ACT_MC_PLAY_INFO.py
439372c5dab973623a03e72cbf943523b00f9288
[]
no_license
tonygodspeed/py
a8396c31fa31cfeb47ebc98dc86e3298e76d5dfa
eb38514c540b92903d53434bddc26d35bf67148d
refs/heads/master
2020-04-02T13:26:27.029232
2018-10-24T10:28:35
2018-10-24T10:28:35
154,481,142
0
0
null
null
null
null
UTF-8
Python
false
false
1,451
py
MR_ACT_MC_PLAY_INFO.py
#!/usr/bin/env python #coding=utf8 from MR_BASE import * reload(sys) sys.setdefaultencoding("utf-8") str_act = "ACT_MC_PLAY_INFO" class MR_ACT_MC_PLAY_INFO(mr_base): def __init__(self): mt_type = [ {'key':'DISVER', 'type':'s', 'mt':r'.*DISVER:'+ common_def.MT_VALUE_INVALID_POSTFIX}, ...
aa7300a28e1a4fbd9a202edbdebbba3cd361fdc5
bf813d2b877fb8ba62feb4263484db3d0f26d5cd
/fornax-figures/numbercounts.py
f06fd148baa6d236618aad013377650026221186
[]
no_license
9217392354A/astro-scripts
1e8e8c827097a877518d1f3e10870a5c2609417c
cd7a175bd504b4e291020b551db3077b067bc632
refs/heads/master
2021-01-13T00:40:57.481755
2016-03-25T17:04:28
2016-03-25T17:04:28
54,730,096
0
0
null
null
null
null
UTF-8
Python
false
false
3,590
py
numbercounts.py
# making number counts function with the aim of showing no excess galaxies not found with the optical # catalogue # Chris Fuller, May 2013 import numpy as np from atpy import Table import matplotlib.pyplot as plt from os.path import join as pj import pylab as pl folder = '/Users/chrisfuller/Dropbox/phd/plots/SoureCo...
eb46c64838c1d85b593584fb0692b90449048e93
d9d59dd20e37e33b1bb0d44cef0d7145ea12be92
/main.py
37234095d8256844d91b13d660cb6fe8e8c4aadb
[]
no_license
CindyTham/MotorBike
a5acee9477740540c6aa6910a600d099c8ea330a
0aa0c8db73d2566e03095168d8d26fcb3700aee3
refs/heads/master
2022-12-25T18:35:28.114086
2020-09-28T16:15:38
2020-09-28T16:15:38
299,364,465
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
main.py
print ('Motor Bike Costs £2000') bike = 2000 print ('Every year it loses 10% of its bike value') value = 2000 while value > 1000: print('£',value) value = value * 0.9 else: print('Value will now go below £1000')
abd61312e484a8b969e5f62eaa869f9639c16283
641dae711520a7890720a49fe21e693403d8b543
/core/serializers.py
4226f29d8a218415bb895e01a4a7092a59e284a1
[]
no_license
GeovaneBarros/Share-Services
d0a036d7e79dbbcc2f0c18f1af7d5d01311a5094
287cadef27ba26ae778a530146dcd6cefd3ecf1d
refs/heads/master
2023-07-03T06:36:17.812810
2021-08-10T16:37:39
2021-08-10T16:37:39
384,172,557
0
0
null
null
null
null
UTF-8
Python
false
false
1,651
py
serializers.py
from rest_framework import serializers from .models import * from django.contrib.auth.models import User class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('username', 'email', 'password') extra_kwargs = {'password': {'write_only': True}} def create(...
7f72e664d10e39fd77361d9369cf280ae4dce4cd
6b905c13551be1a5b4e3f7ad04404fa19640b273
/PythonMachineLearning/Library/EarlyStopping.py
1c468f2f1ef567901c8247af9cd65a5b5731ce3b
[]
no_license
Alvtron/ImbalancedMachineLearning
903be1803b30ffa5c6aa784152a406908a2d2436
901960fd3063f4a3e7bf7910053cabc44249e510
refs/heads/master
2020-04-21T13:07:33.436654
2019-10-03T13:43:32
2019-10-03T13:43:32
169,588,027
5
1
null
null
null
null
UTF-8
Python
false
false
3,945
py
EarlyStopping.py
from sklearn.base import ClassifierMixin, clone from collections import defaultdict import numpy as np import time from sklearn.linear_model import SGDClassifier class EarlyStopping(ClassifierMixin): def __init__(self, estimator, max_n_estimators, scorer, monitor_score = "gmean", patience=10, tolerance=0.001, high...
b32e1e22c0e50d450173f9fb880d4a54df4646f5
a1281ff9d61c2ea688d2e06ff6168f48a979479b
/apps/account/tests/test_tasks.py
24164a9c969c7b5e356dfe051623d3f98d1007f5
[]
no_license
AnthonyBRoberts/NNS
0ace38f11d17780b6ff6c5aa696b27b6bb115ac8
2e6adab4f319a0fa1e3114a18f909e122471dd82
refs/heads/master
2021-01-19T09:38:14.889282
2014-04-14T13:49:23
2014-04-14T13:49:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
test_tasks.py
from django.conf import settings from django.test.utils import override_settings from django.test import TestCase from account.models import UserProfile from account.tasks import new_client_alert class AccountTasksTests(TestCase): fixtures = ['../../functional_tests/fixtures/testdata.json'] @override_settings(CELER...
68caaa42737ca2c4e52028ad0eb98c09973e864b
414e520ac2e043ff6a80766c02e7c135ee64d757
/week_5/9_4.py
3a6cf4a16342be0f0ee627620b2d24473e149b34
[]
no_license
dalanmiller/uw_py-hw
1d0c8e03e3fdc288119af3a96dcf1cd4ceac3fb9
e7a5582280bcb8abee6dd506c222b71b1a164ecf
refs/heads/master
2020-05-07T14:42:37.875531
2012-11-11T05:43:58
2012-11-11T05:43:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,165
py
9_4.py
def uses_only(root_string, query): "Evaluates as True if each query letter is found in root string" letter_matches = 0 for qletter in query: # index_matches = False # for rletter in root_string: # if rletter == qletter: # index_matches = True # if index_matches: # letter_matches += 1 # String .fin...
b75dfd01026708fbd84277d20b8858a5eeaebc46
ac63ba1bfba40bfedfe9a1cc3601c3c0236e758d
/2_Pattern.py
274d37df13a81c6838f678d5d25eb9b11729c6af
[]
no_license
S1nEat3r/OSCP_BoF_Suite
9c1a79d9a44e0773a504dba3b30b26f90a239b12
e5af1c3943b2feb25fdb82da1996f7f497d8572e
refs/heads/main
2023-06-26T20:11:53.853493
2021-08-04T19:03:58
2021-08-04T19:03:58
392,798,072
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
2_Pattern.py
import socket, time, sys ip = "XXX.XXX.XX.X" #CHANGE THIS port = XXXX #CHANGE THIS timeout = 5 #CHANGE THE PATTERN #/usr/share/metasploit-framework/tools/exploit/pattern_create.rb -l 2000 pattern = "" s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.settimeout(timeout) connect = s.connect((ip, port)) ...
0dcc61390ed771fab6ead6047178e37dd6236d29
0f688f4a7953e4f99f1ed122d128d313cbe453d2
/07exercise.py
dbd25fdb5ef2e31f0d58a13a51581887e9208d1a
[]
no_license
sjain93/02---Programming-Fundamentals-Collections-and-Iteration-Part-1
433437ab026c0bdd711626c9524fd80a48bc6c82
a1e5b89cc2e1dcde0c9a7f4b0be2af8c96a8d17b
refs/heads/master
2020-04-22T17:50:37.319118
2019-02-19T00:42:30
2019-02-19T00:42:30
170,555,868
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
07exercise.py
from exercise import * from exercise6 import * # #1 counter = 0 while counter <=20: print("I will not skateboard in the halls") counter += 1 # # #2 lesson = [] counter = 0 while counter <=20: lesson.append("I will not skateboard in the halls") counter += 1 print(lesson) # # # #3 num_list = list(range(1,...
025f7cfdd5b2e66a0275dd45e03c48bc6de58f3a
e2fd5514dc7aa3983026c0cc394ce33f15d354eb
/hw1/util/plot.py
41a62ebcd161d6e39af9dd8fd593af43551904e0
[]
no_license
ChexterWang/dsp
f77ebb6310adb3cf3fb2c4c613b626e255aaeea1
bd0d35ca5403daef44f31e50dc6dd926b95f7791
refs/heads/master
2020-08-25T08:01:39.325855
2020-01-02T20:01:43
2020-01-02T20:01:43
216,986,134
0
1
null
null
null
null
UTF-8
Python
false
false
525
py
plot.py
import pandas as pd import plotly.graph_objects as go df = pd.read_csv('../out/out.csv') data = go.Scatter(x = df['0'], y = df['1'], name='Accuracy', line = go.scatter.Line(color="#0077a7")) fig = go.Figure(data) fig.update_layout(title='Accuracy-# of Iteration of Trained Discrete HMM', plot_bgcolor='rgb(2...
5567fa6545ac85dfe03261b88985ac37b06a186c
f94549de4c9a03d1e8d039a9a883cd4223c0f5a6
/supervised_learning/svm/svm_dual.py
46979c7b7ba4e228028a3d686f1beee1b1e4cc03
[ "Apache-2.0" ]
permissive
cesar0205/machine_learning_algorithms
1793eabca2370a0593f7791cf40b1628fc504523
7cd7c7295e2fb7357123cd81cb3e43c485930d74
refs/heads/master
2020-04-09T20:06:26.001637
2018-12-19T21:12:21
2018-12-19T21:12:21
160,562,423
0
0
null
null
null
null
UTF-8
Python
false
false
2,526
py
svm_dual.py
import numpy as np import cvxopt.solvers class LinearKernel(): def __init__(self): pass; def dot(self, x1, x2): return x1.dot(x2); #Radial Basis Function class RBFKernel(): def __init__(self, gamma): self.gamma = gamma; def dot(self, x1, x2): diff = x1 - x2; r...
c404644e5343e37d07f274d175ede117e4ffcf50
12a1f76ec4cd176dfa2cf601d0ffd393affcd0a2
/SeedScripts/seed_messageroom.py
88de53001693c8f4b74ce59045d0908a88730a9b
[]
no_license
Magni0/Datasets
6eef9817e77e84dbee1196140ca7b1a34144c84c
acec8828bafdc40ad897adc0c396a170de798057
refs/heads/main
2023-06-20T04:58:33.875896
2021-07-05T23:15:11
2021-07-05T23:15:11
373,037,239
0
1
null
null
null
null
UTF-8
Python
false
false
713
py
seed_messageroom.py
import json import random dataset = [] with open("Datasets/user.json", "r") as file: users = json.loads(file.read()) for i in range(1, 201): send_user = random.randint(1, len(users)) reciver_user = random.randint(1, len(users)) # if send_user same as reciver_user; keep changing reciver_user until it...
1997a4e767ef5ae6ccc50e8a18fa89cec326c6b5
baeebadd5786ee0e96626741da650d5c2e277b52
/lib/bes/system/execute_result.py
dda32ca415bbac4ea464178991f5fd3278ff39ed
[ "Apache-2.0" ]
permissive
reconstruir/bes
e75b25868d0a97a1a167d92b62e11996cb6c4774
b9dd35b518848cea82e43d5016e425cc7dac32e5
refs/heads/master
2023-08-31T21:11:45.482193
2023-08-19T20:07:04
2023-08-19T20:07:04
421,598,217
0
1
NOASSERTION
2022-12-21T11:50:29
2021-10-26T22:08:30
Python
UTF-8
Python
false
false
3,283
py
execute_result.py
# -*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- import os import locale import sys from collections import namedtuple from ..system.check import check from .log import log class execute_result(namedtuple('execute_result', 'stdout_bytes, stderr_bytes, exit_code, command'))...
bfb60d8f071778680fa27d5bece1d64e3feff294
7ad443897599285b1d61bebc46901c83c946253a
/DroneProjectONE/Part_ONE.py
5e6e1b61971ea53d6017378fb81de0af1dd0711f
[]
no_license
betisb/DroneProject
b00f47368882e274da31a5e191b63c1b46fb4849
c3a8539db3723b6535a3decb8268483c079259e9
refs/heads/master
2020-03-07T02:28:04.218299
2018-03-28T23:26:39
2018-03-28T23:26:39
127,209,483
1
0
null
null
null
null
UTF-8
Python
false
false
3,963
py
Part_ONE.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import time from dronekit import connect, VehicleMode, LocationGlobalRelative , Command , LocationGlobal from pymavlink import mavutil import math import subprocess # Set up option parsing to get connection string import argparse pars...
5b5e3ef31e503f61e612561b759590486ec7dc35
aebf643d9c0a4bc46f1cfad83b615bf83610c0e2
/dlive/__init__.py
537578b650d0e24e2da91bb44381d0e6dcff190f
[ "MIT" ]
permissive
Aareon/dlive.py
1479b15c003e4fe7cbc1f018ce2606b3b4d3c1b0
ebf4b6bc9ab8280920a1150cab50a28cad1318df
refs/heads/master
2020-05-09T19:12:34.893247
2019-04-14T21:38:54
2019-04-14T21:38:54
181,371,036
1
0
null
null
null
null
UTF-8
Python
false
false
65
py
__init__.py
"""A Python wrapper for the DLive API.""" __version__ = "1.0.0"
6c80494ded5be4864c345129c442a19310fcfc92
1c90c48fce20db2f1dec8679927566b33b80b7e3
/cholebh.py
c8af04c590376024e31c8150d7141af7ced25918
[]
no_license
kirti167/FOOD-RECIPE-APP-in-python-using-tkinter-
77c0dee1492691a9b49797611f7b6bc847e79b4a
0485e37291c728d69e0bc9a3352bfa95d58809df
refs/heads/master
2022-12-25T22:54:23.634280
2020-09-22T12:34:32
2020-09-22T12:34:32
297,642,620
0
0
null
null
null
null
UTF-8
Python
false
false
3,539
py
cholebh.py
import tkinter as tk from tkinter import * from PIL import ImageTk, Image root=tk.Toplevel() root.geometry("1400x700+0+0") root.config(bg='white') canvas = Canvas(root, width =500, height=500) canvas.place(x=0,y=0,relheight=1,relwidth=1) img = ImageTk.PhotoImage(file="bhature1.jpg") canvas.create_image(1400,37,anchor=...
854ba059afd787482827aca78f3955921b7afec2
7fbaee790316d5da05c56bd16bf06b3129feef90
/assignment_2/filter_long_words/filter_long_words.py
56b2984ead75bf7adcb007069924d779d6bf52c6
[]
no_license
kolarganesha/Assignment2
4f6a5e10706059eaa9054f9c9a5c0aa5a3b39c2b
9a85ed55a717d87eefb8047d7d37b03220639fa0
refs/heads/master
2022-06-10T12:01:35.177117
2020-05-10T12:12:12
2020-05-10T12:12:12
262,779,122
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
filter_long_words.py
'''1.2 Write a function filter_long_words() that takes a list of words and an integer n and returns the list of words that are longer than n.''' def filter_long_words(lis,n): lis1=[] for i in lis: if len(i) > n: lis1.append(i) return lis1 l = ['abc','abcd','ab','python','...
8dc405d779a369c438d76a991b023dcbda519d31
590af8e0addd77fdef4ffeb22e58a1fe0bd504c3
/misc/py/connect-asg-host/prepare-asg-host-connection.py
5fc440ab07ad0684fcfcd34a2174c638b6b39695
[]
no_license
LogicDaemon/PersonalUseScripts
c87e2fee834b332d8efda32cd1de295e7b37479b
6a74779fc2e17de4c1829b3c0e80268d31caa849
refs/heads/master
2023-08-18T04:44:23.243357
2023-08-10T06:26:27
2023-08-10T06:26:27
22,054,004
7
1
null
null
null
null
UTF-8
Python
false
false
6,204
py
prepare-asg-host-connection.py
#!/usr/bin/env python3 ''' находит публичный IP'шник живого хоста в автоскейл группе прописывает его в ~/.ssh/config убирает предыдущую запись из ~/.ssh/known_hosts и пытается добавить новую и пытается то же самое сделать для putty ''' # stdlib import sys import os import logging import subprocess from typing import I...
48fbb0483f3ef361f31bfa8546b153010157f17f
6709f009f02724ebf165160767768df7cb6bf4e6
/word_vecs.py
b9afffdc0003cc7a1c21ad8460462642da8175f9
[ "Apache-2.0" ]
permissive
gucorpling/compdisc
cffa78175632cae53d0ddf45cca588437950165b
e28bb7906533ce11fbbeb0b43f86573414a059e5
refs/heads/master
2021-06-16T15:32:15.101171
2017-05-04T19:24:22
2017-05-04T19:24:22
67,615,799
1
0
null
null
null
null
UTF-8
Python
false
false
2,888
py
word_vecs.py
import numpy import os from scipy.spatial.distance import cosine from vectors import Vectors from scoring import find_boundaries, smoothing, depth_scoring, boundarize, window_diff from tile_reader import TileReader options = {'vocab_tags': ["NOUN", "PROPN"], 'block_length': 3, 'smoothing_window'...
b74b6e315ffff6ce0d2244a9f6091dae74442f4b
ed21d615611f765c55fec6ee220afef260efce67
/refine_grabcut.py
d56186bd133d8a3f722fb0aa146bc072a89136bd
[]
no_license
jrainey12/grabcut_refine
a74f8c29bc87b4fad3f3b51ac1946e37b174e085
22e82aa170bdeeda137f37bb98d8e6c3d20519e2
refs/heads/master
2022-01-26T12:26:06.898684
2019-03-12T14:58:53
2019-03-12T14:58:53
172,906,089
0
0
null
null
null
null
UTF-8
Python
false
false
4,411
py
refine_grabcut.py
import numpy as np import cv2 as cv from matplotlib import pyplot as plt from glob import glob from os.path import join, basename, exists import argparse import os from itertools import product def main(base_dir,sil_dir, out_dir): """ Main function handles the data inputs and output of the final silhouette. base_di...
3c1481461617c6175a8ca2a39ebf45f31da35bcb
d429677836700f63ea7ad958caadb5d0e698459f
/beast/workouts/management/commands/notify.py
fbfafacbbd0d21f625126fab768c4efa23b2e984
[]
no_license
bschmeck/beast
f77e1d0a3588211b526d49df8ff68629b8c4197e
01b92d0beeee5ec11e19cde825dbedb9d072ee96
refs/heads/master
2021-01-22T05:16:08.377351
2017-08-08T03:21:34
2017-08-08T03:21:34
15,543,596
0
0
null
2015-05-13T03:12:26
2013-12-31T05:22:04
Python
UTF-8
Python
false
false
1,668
py
notify.py
from django.core import mail from django.core.management.base import BaseCommand, CommandError from django.template import Context from django.template.loader import get_template from datetime import date, datetime import email from beast.workouts.models import Workout def dateStr(d): if d: return date.s...
30caba8515a57b0c8bd4e03ae7bfa3ff75e434f0
4d6975caece0acdc793a41e8bc6d700d8c2fec9a
/hackerrank/search/iceCreamParlor.py
e509ea6ee16136c235c5120e59c1c5ede4f6cba2
[]
no_license
guiconti/workout
36a3923f2381d6e7023e127100409b3a2e7e4ccb
5162d14cd64b720351eb30161283e8727cfcf376
refs/heads/master
2021-08-03T10:32:02.108714
2021-07-26T04:38:14
2021-07-26T04:38:14
221,025,113
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
iceCreamParlor.py
#!/bin/python3 import math import os import random import re import sys # Complete the whatFlavors function below. def whatFlavors(cost, money): pricesDictionary = {} pricesDictionary[cost[0]] = 1 for i in range(1, len(cost)): if (cost[0] + cost[i]) == money: print(1, i + 1) ...
c32209ee084233bc0d9efa467e752c86a38219e7
cdd3e909effe306f3533bb0e883c40345460d59f
/apps/BookReview/views.py
ca5126fe24454879cf9329eda8ed8276618ff14d
[]
no_license
Richiecool/Django_BookReview
46fd3d255d64d8964ce9ac504dbbfc8c7af28cf6
7d1c631c9f58ebeb706d4489ce01273821ebfd3e
refs/heads/master
2023-01-01T06:20:59.268410
2020-10-29T00:32:25
2020-10-29T00:32:25
307,584,643
0
0
null
null
null
null
UTF-8
Python
false
false
4,937
py
views.py
from django.shortcuts import render, HttpResponse, redirect # from django.core.urlresolvers import reverse from django.contrib import messages from django.views import generic from .models import * import bcrypt def index(request): return render(request, "BookReview/index.html") def successregistration(req...
afe502db9a840bef1ccb672a3107276574429dac
533f86815dcded10183f623b6ddd552fadd9e38c
/Lesson_01/_4_input_print.py
24484a1aaea3f439454d1810e58783d0c3cf2998
[]
no_license
DoctorSad/_Course
8ab81db218cd9a0bfefb118094912c53b11256d4
da5ba4d6904910be033241e3b68c846e883a24fa
refs/heads/main
2023-04-15T10:26:27.294706
2021-05-06T08:59:38
2021-05-06T08:59:38
351,796,720
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
_4_input_print.py
""" Функции ввода и вывода Python input() print() """ # записывает в переменную строку, введенную с клавиатуры name = input("Enter your name: ") # print() принимает неограниченное количество неименованных аргументов print("Hello,", name, "!") # так же принимает необязательные именованные аргументы, напри...
036aa1073586eaff1dc22c203d4a9199399a18a4
f5456ebba3176e16a03be1a61d1ad10d67c644f1
/Stabilizer/stabilizer.py
a5d4c310393586a3e651c7783945076873b7079d
[]
no_license
timmb/Ensemble
6c52db6458d21a7636049e86e72e0275a940c09f
acf5743cb0b19ccace936833d4bd924410a415b2
refs/heads/master
2021-01-23T07:34:08.319464
2014-09-19T22:58:08
2014-09-19T22:58:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,442
py
stabilizer.py
# -*- coding: utf-8 -*- import sys import Queue from PySide import QtCore, QtGui, QtXml from PySide.QtCore import * from txosc import osc from txosc import dispatch from txosc import async import time from time import gmtime, strftime from datetime import datetime from datetime import timedelta from collections im...
37b226c3a76e383383793e81e73bbf9e69ae9c72
6961061d381a25cdaded3b5a6a5629d0f4061adc
/model_runwalk_SL_multitask_full_20Hz.py
29bfcc4bbf97c28fe5659d0d159dc337c5b0d2cd
[]
no_license
yachen0707/2020_ARC_
6720823be049e63f841a430cb6084bc0e0003e2d
e03a88e11d6a003eb1f4d6215d8f67beba29b1fa
refs/heads/master
2022-11-14T20:31:02.080395
2020-07-10T08:47:28
2020-07-10T08:47:28
271,704,761
0
0
null
null
null
null
UTF-8
Python
false
false
3,016
py
model_runwalk_SL_multitask_full_20Hz.py
import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F import torch.utils.data as Data import torchvision import matplotlib.pyplot as plt import csv import numpy as np import os import sys import random import time import xlrd class Multitask_cnn(nn.Module): def __ini...
01a6eec35608a4fa916868b842c91de92f988512
d132731950881cde0f00186f6bf2b2709dca99f1
/vo2mft/environment.py
1ae0369735effacacdfbc98fb99513c7c1dfe78f
[ "MIT" ]
permissive
tflovorn/vo2mft
e4ad38592b5c56cf311fcb0dd9467e2afb337efa
734f691ba2dd245601bf3835be481e2f061723bc
refs/heads/master
2021-01-15T08:11:07.535335
2016-12-07T16:40:59
2016-12-07T16:40:59
66,291,007
0
1
null
null
null
null
UTF-8
Python
false
false
498
py
environment.py
# Functions that operate on environments and final environments. # Those that take 'env' operate on either; # those that that 'fenv' operate only on final environments. def QJ(fenv): return QJ_ion(fenv) + QJ_el(fenv) def QJ_ion(env): return 4.0*env["Ja"] + 2.0*env["Jc"] def QJ_el(fenv): return 4.0*fenv["T...
b72f0af4f1b7e6d5b8b058e3c995cab05ccac181
8e8a6309e6f334d69925fb60e22d51196ac65a04
/project_runaway_robot_no_noise.py
8fab9c591ea2d906711968f81e755462f5bb4f7f
[]
no_license
JohnnyRisk/intro_to_robotics
396a5e05d6f5a0702eeb52e70fe36fc41bc5d90a
bde952ba0a7e8f26144c11dbfe134e280565018e
refs/heads/master
2021-08-20T05:39:46.149826
2017-11-28T08:44:47
2017-11-28T08:44:47
111,981,011
0
0
null
null
null
null
UTF-8
Python
false
false
7,689
py
project_runaway_robot_no_noise.py
# ---------- # Background # # A robotics company named Trax has created a line of small self-driving robots # designed to autonomously traverse desert environments in search of undiscovered # water deposits. # # A Traxbot looks like a small tank. Each one is about half a meter long and drives # on two continuous metal ...
65860792e6900d3154e8b434f3c1714b26ee0a9e
e02f76d870634086a7dff5c43bb12649e85f0f52
/users/views/account_activation_views.py
b71e8a0003756f7ab70a8a68fb3f1f9e75d0b1fe
[]
no_license
alhabibhasan/Telet
d572b68ff9a80080aeeb0854b4e89a0448238bf9
ca47d0e0048a772ca2554e01aca5a8716dd6f518
refs/heads/master
2020-03-30T07:43:05.300202
2018-12-14T23:40:53
2018-12-14T23:40:53
150,961,516
0
0
null
null
null
null
UTF-8
Python
false
false
1,682
py
account_activation_views.py
from rest_framework import status, serializers from rest_framework.generics import GenericAPIView from rest_framework.response import Response from users.models import CustomUser from users.serializers.activation_serializers import UserActivationSerializer, SendUserActivationEmailSerializer class TelerUserActivation...
229ac8150d7f9ca129ab678e96c51e66ba800ae4
8ce656578e04369cea75c81b529b977fb1d58d94
/bank_guarantee/bank_integrations/east/bank_api.py
fb1b25345c74c10ce79ab897e80ec5183732c30e
[]
no_license
JJvzd/django_exp
f9a08c40a6a7535777a8b5005daafe581d8fe1dc
b1df4681e67aad49a1ce6426682df66b81465cb6
refs/heads/master
2023-05-31T13:21:24.178394
2021-06-22T10:19:43
2021-06-22T10:19:43
379,227,324
0
0
null
null
null
null
UTF-8
Python
false
false
29,677
py
bank_api.py
import datetime import json from dateutil import parser from django.conf import settings from bank_guarantee.models import ( ExternalRequest, ContractType, DocumentLinkToPerson, Offer ) from base_request.helpers import BeforeSendToBankResult from bank_guarantee.bank_integrations.api.farzoom.base import FarzoomSen...