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
4f14ffe789b8ba6d7ec6d8b5f00f110cfbcb8c0d
f36d88ca086c528c0415f824094dd4a9270cb5ae
/baseline/scscore/model.py
a10e16203bdf9d906222db9bd0bbefaf841d8115
[ "MIT" ]
permissive
rnaimehaom/Retrosynthesis-pathway-ranking
78f511446ef175af9580d598a6f8d0e8341e944f
380f31189d09395d0de911759b8bcea436b559b2
refs/heads/master
2023-03-19T10:58:04.689029
2020-11-10T17:36:29
2020-11-10T17:36:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,286
py
model.py
import torch import numpy import torch.nn.functional as F def loss_marginranking(score, num_trees, device=torch.device('cpu')): score_split = torch.split(score, num_trees) loss_split = [F.margin_ranking_loss(s[0] * torch.ones(s.shape[0] - 1, device=device), s[1:], ...
f7231d5e559c4b78cc4ba0ad9c8eacdef320d267
bd0a3e5ff986176eddd9d41e9af3fad951c88c24
/setup.py
c0f2bfd1ffce21bc2786a6ed2ba5bd7b89e504a5
[ "Apache-2.0" ]
permissive
bernardoVale/synth_tools
665e094aa59036ddc00e7478b8a13f6dc764ed57
e9dca82c92d282787f979c6908a6da230eea7eea
refs/heads/master
2023-08-16T15:27:53.520138
2021-10-22T19:22:06
2021-10-22T19:22:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,120
py
setup.py
import distutils.log import os import subprocess from pathlib import Path from tempfile import TemporaryDirectory # noinspection Mypy from setuptools import Command, setup # The directory containing this file HERE = Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() PACKAG...
dcc51a906d3ebc629e3241b9272e50763fd83be2
dcccf0006cf984115dd45603460e46793d562716
/python/hello_world.py
fe082d28b032327788d8e3b6a1d72dbfdb36a4de
[]
no_license
Mark-Hansen/snipets
976fece2627063a01245d3b6657f0ba51dfab784
777869f9debd8ea9fcf4a925884cd3c95926b30b
refs/heads/master
2020-03-24T17:22:23.085771
2019-09-05T06:15:37
2019-09-05T06:15:37
142,857,421
0
0
null
2019-06-16T13:49:22
2018-07-30T09:54:52
Ruby
UTF-8
Python
false
false
4,662
py
hello_world.py
from decimal import * # Resources for More Basic Practice # Before you begin your assessment, I wanted to point out some helpful links for practice (don't worry about being able to do these exercises, I just want you to be aware of the links so you can visit them later, since we still haven't discussed functions, you ...
d037bca076a521ba9c3af1618c64367c24bb87d4
18621226b71532032a5647c0e9b0f77adf3a62bb
/trace/real/paint2.py
7791ed14180edff31278ed99cb936ca0b6c5c704
[]
no_license
zhanghan1990/IAOA
7948acf2d68da18a6ecdcf7e769646a5324e1532
4354dd1594c58feb3b51a4a61c2b25bcb2fc693b
refs/heads/master
2021-09-29T09:28:56.764646
2018-11-24T03:17:51
2018-11-24T03:17:51
86,478,585
6
1
null
null
null
null
UTF-8
Python
false
false
7,121
py
paint2.py
# encoding: utf-8 import numpy as np import matplotlib.pyplot as plt import sys from scipy import stats from matplotlib import rcParams rcParams.update({'font.size': 10,'font.weight':'bold'}) patterns = ('/','//','-', '+', 'x', '\\', '\\\\', '*', 'o', 'O', '.') ##first read from file pFabric="pFabric" Varys="Varys" ...
19c93129866b328ee64fc36121bfae55c8b6f181
57ee6a9dc2275e402c8f926d8e0caf17d57935a6
/selenium-twitch.py
3eefcc8e1523d00176e8038a05fbfb085b1d6670
[]
no_license
kk/twitch-scraper
0605e91cec722821e1e4c153b7be104110630333
1aca8b87e6b106c0a044ce290461b709ecd1db5f
refs/heads/master
2020-06-10T15:05:34.530875
2019-06-25T07:55:32
2019-06-25T07:55:32
193,660,640
0
0
null
null
null
null
UTF-8
Python
false
false
2,537
py
selenium-twitch.py
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time available = [] textfile = open("textfiles/4-letter-words.txt...
f9e1f246baccc7711426e37d77affc0dde860be3
250b997d715c168315a927e28124cf24c77048c0
/python3基础/8.Python修炼第八层/网络编程-例子/1 简单的套接字/服务端.py
107af67e7fe1f140abb5b6f9578919787dc17848
[]
no_license
cuitianfeng/Python
c78077e5dcad01ee5fe44c0aa8b61bbc2fa388cf
9c9f10f13311116ce0bc60ec128f765ff2ca3078
refs/heads/master
2023-01-10T23:25:57.158141
2020-11-17T15:39:36
2020-11-17T15:39:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
服务端.py
import socket #买手机 phone=socket.socket(socket.AF_INET,socket.SOCK_STREAM) #插卡 phone.bind(('127.0.0.1',8080)) #开机 phone.listen(5) #等电话链接 print('server start...') conn,client_addr=phone.accept() #(tcp链接,client_addr) print('链接',conn) print(client_addr) #基于建立的链接,收发消息 client_data=conn.recv(1024) print('客户端的消...
c58ee61618e3ccac74c71f4f9a3aab9ddc023f2e
f778433d35bdbeeb21b14b27ce22b1c7ee86812c
/package_caller.py
51f6dd67625f0be9e029367f04a0f50039b99cba
[]
no_license
Henry0524/StockAnalysis
3118ca82f7864863c119cd4ead207da484e5ac1b
714c9d7d798f3597851d471f331d3a27eb9e1d7e
refs/heads/master
2021-01-19T06:40:10.671174
2016-07-03T05:56:26
2016-07-03T05:56:26
61,047,326
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
package_caller.py
# -*- coding: utf-8 -*- """ Created on Thu Jun 09 20:39:28 2016 @author: HOME """ # importing the user build package import Test_Package import os name1 = read_user_input.read_from_user("Enter your name:" ) name2 = 'Python' print string_concat.string_concat(name1, name2)
98abc2d65b51b306d45e52442ff4db5b934099e4
d2dda11e125068512c5c0db0f24b80bc53c94ce3
/LeetCode/Ex0/Ex73.py
2ec6871f44d330dc0d817eebfa13295936c8c2e2
[]
no_license
JasonVann/CrackingCodingInterview
f90163bcd37e08f6a41525f9f95663d5f42dd8e6
8f9327a1879949f61b462cc6c82e00e7c27b8b07
refs/heads/master
2021-09-02T09:28:34.553704
2018-01-01T12:05:12
2018-01-01T12:05:12
110,519,907
0
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
Ex73.py
class Ex73(object): def setZeroes(self, matrix): """ :type matrix: List[List[int]] :rtype: void Do not return anything, modify matrix in-place instead. """ for i in range(len(matrix)): row = matrix[i] for j in range(len(row)): if matrix...
4d4d77dcec2fb62c40cf6db9d6987069fbed77ab
683507bc29347c105e868409e1c6910e40bbebd4
/osscla/services/gh.py
1b4a9049932efaeb8c8474b14430a2071ea85c64
[ "Apache-2.0" ]
permissive
lyft/osscla
3da0f375d0bc8ad84c4175168a1fd58312ff8cf2
ba3bfd5710dc8a28cc84847b37dd8f318179a509
refs/heads/master
2023-08-31T06:00:15.236801
2023-02-15T22:57:02
2023-02-15T22:57:02
99,288,833
7
7
Apache-2.0
2023-09-06T18:58:11
2017-08-04T01:13:31
Python
UTF-8
Python
false
false
7,929
py
gh.py
from __future__ import absolute_import import json import re from pynamodb.exceptions import PutError from github import Github import osscla.services.sqs from osscla import logger from osscla.app import app from osscla.models.signatures import Signature from osscla.models.gh import PullRequest import six SUPPORTED_...
845f7d117791a75d92aad888e7c47ced1456e32f
4bb1f74cfc7e8ab86f257f4c29d265b9f023d6e3
/logapp/models.py
c980f0046bfbba3c56727b6d2a5527f4f50c40b3
[]
no_license
Reham-coding/logandreg
99c46e662fa8b28f994a460a2f3e74a80ff878b3
85cde24ac154536ed5156fe61bc91e78d3091971
refs/heads/master
2023-01-13T21:33:34.105659
2020-11-24T08:38:48
2020-11-24T08:38:48
315,901,381
0
0
null
null
null
null
UTF-8
Python
false
false
1,959
py
models.py
from django.db import models import re import bcrypt class logandregManager(models.Manager): def basic_validator(self, postData): errors = {} if len(postData['firstname']) < 2: errors["firstname"] = "please fill the firstname field at least 2 char" if len(postData['lastname']) ...
e9d04ea46a6fd6ef2a0856dc2b4e6d36398cede2
670f75b57a6411a4809bd7d017c961cf66ee2005
/test/servertest.py
d399c64be3036e75dd11f98f396f24a474ed3ffd
[]
no_license
Ishakik/flask-apis
07ccd7d35d54bd4824689c233dd78dcf8439cf32
6fb34a41c60ce4eabe71232fd39582729c59569e
refs/heads/master
2023-01-06T18:59:25.427448
2020-10-30T08:03:02
2020-10-30T08:03:02
308,561,704
0
0
null
null
null
null
UTF-8
Python
false
false
2,645
py
servertest.py
import unittest import json from server import app class AppTest(unittest.TestCase): def setUp(self): self.app = app.test_client() def test_server_health(self): response = self.app.get('/api/health') self.assertEqual('GREEN', response.json['server health']) self.assertEqual(20...
170e297934b9e5fcfe45f11133a41511f1e7db18
1d67234708e6f3b20873b7239758c1c002c1a68e
/trabajo 1/ejercicio2.1/2b_reglaFalsa.py
1e2136418d6be1d5b45e9b86268c8fd7acb7150f
[]
no_license
topassky/metodos-numericos
c8e5f3fd60722e7b0ee636ae0c433b27eceebb02
8c0a297443834e75bac55cd4871dc13bfbb970a2
refs/heads/master
2021-05-22T16:55:19.747542
2020-05-11T16:44:27
2020-05-11T16:44:27
253,011,824
0
0
null
null
null
null
UTF-8
Python
false
false
836
py
2b_reglaFalsa.py
import numpy as np import matplotlib.pyplot as plt def ModFalsePos(xl,xu, f, tol): i = 0 xr = (xl+xu)/2 fl = f(xl) fu = f(xu) error = 99999 while (error > tol): xold = xr xr = xu - fu * (xl - xu) / (fl - fu) test = f(xl)*f(xr) if (test<0): xu = xr ...
6b9aa84d20ff34921bc2b920fb1deb46fed19211
ab40c4af90055b2387a4bf0fe2863941debfa7f1
/pq/pq.py
8bf963258933945460972246ca6c50371b647bbe
[]
no_license
Granitosaurus/pq
a30ccad8db4044239beb2eb08502eb34b233c635
cb716ca8df59583c2d8e448d14f84a65a00b782a
refs/heads/master
2021-05-04T05:21:54.008379
2017-09-29T04:32:52
2017-09-29T04:32:52
70,983,383
3
0
null
null
null
null
UTF-8
Python
false
false
5,530
py
pq.py
import re import json from json.decoder import JSONDecodeError from collections import OrderedDict from lxml import etree from parsel import Selector from dicttoxml import dicttoxml RE_CLEAN = re.compile('\s{2,}') RE_HAS_TEXT = re.compile('text\(\)$|::text$') RE_IS_HTML = re.compile('<.+?>') def clean_text(text): ...
154e93a2b19ef2c4856b1826fa2bb42b22da9b36
8dd187e10a425fef9828eba225a6a064b00b7293
/frappe/patches/v7_0/setup_list_settings.py
80bcd958106de506786c5dbe330784c5fddb7eef
[ "MIT" ]
permissive
indautgrp/frappe
4a24eea72eb13873f899e4493a0f557e16a5e652
7b60fa0cb728f1ac0c8589aa760105289cbf7f52
refs/heads/develop
2020-05-23T11:23:18.758065
2019-05-14T05:41:40
2019-05-14T05:41:40
27,582,888
0
5
MIT
2019-02-11T05:59:07
2014-12-05T08:53:54
Python
UTF-8
Python
false
false
576
py
setup_list_settings.py
from frappe.installer import create_list_settings_table from frappe.model.utils.list_settings import update_list_settings import frappe, json def execute(): create_list_settings_table() for user in frappe.db.get_all('User', {'user_type': 'System User'}): defaults = frappe.defaults.get_defaults_for(user.name) fo...
f65dc1c65ad8e224efc2df48721d4acc1af3f239
6192f1459a39ad0cdeefb618663c4fae43ba0106
/common/IR/converter.py
fda8bdb32a2cdb2321ceacfa5be0d38766f49c7d
[ "MIT" ]
permissive
nikkkkhil/model-exchange
7d74f46bc443962c38c5cfa5b413af853bf89e77
c017a8f76a8dbd81e5df9305ace257c6f823dbce
refs/heads/master
2023-03-29T23:30:58.187787
2019-12-04T08:35:01
2019-12-04T08:35:01
225,818,131
1
0
MIT
2023-03-24T21:58:50
2019-12-04T08:35:18
Python
UTF-8
Python
false
false
3,246
py
converter.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import sys sys.path.append('./../') from common.IR.model_pb2 import Model, Graph class Converter(object): def __init__(self): self.IR_model = Model() ...
b74f6ab72642ad4992171d66ee3d7351bace8588
aa706383322ed41c87469b0eb33ff134c06110a2
/Assignment 5/kmeans.py
54cc33a85babd06c8fff7912b81192e2ccf57f55
[]
no_license
AnamIslam/PatternRecognitionLab
5dacd285add28e6e15a270e105aa4a65d256c7bc
460c206c185e3542030ef3aa397f3fe28ebe3ede
refs/heads/main
2023-01-24T04:05:27.403858
2020-11-29T11:53:18
2020-11-29T11:53:18
316,938,824
0
0
null
null
null
null
UTF-8
Python
false
false
3,323
py
kmeans.py
import numpy as np print("Enter Number of sample") numS = int(input()) print("Enter number of features") numF = int(input()) print("Enter K") k = int(input()) sampleList = [] for i in range(0,numS): sampleList.append([int(0) for j in range(0,numF)]) print("Enter sample") for i in range(0,numS...
9e477fb325df1c252e1a0d1ac649173dfd74e971
a1aeaca331ca84c2f215a5c14c31d9be9acb0acf
/bioportainer/containers/rgi_v3_2_1.py
7a5d405ecd8e2f1d2082eddf144daaacd5f9ea2f
[]
no_license
josmos/bioportainer
31637658d9db90bd6c0f6a0fa09e677ea4a78d86
bb2f980af8ac8872f7d8840e1ee2f9bfcaada659
refs/heads/master
2020-03-15T05:05:08.133259
2018-03-21T14:40:19
2018-03-21T14:40:19
131,981,221
0
0
null
null
null
null
UTF-8
Python
false
false
5,155
py
rgi_v3_2_1.py
import os from bioportainer.MultiCmdContainer import MultiCmdContainer class Rgi_v3_2_1(MultiCmdContainer): def __init__(self, image, image_directory, sub_commands, input_allowed): super().__init__(image, image_directory, sub_commands, input_allowed) self.set_main_params() ...
9ac2578c4e0ad0aedba2c514df1c109ca4dc92a9
5c4f0b7136ff061d4a2f43030ec8936607b9d111
/leetcode/704_二分查找.py
2295788a9e19232d65f16f6f19f8e1486704570d
[ "MIT" ]
permissive
hpf0532/algorithms_demo
b5d831fa5abf0f0e94d97b06de03abb10c82a041
4f02444ee634295e5cbf8e5624d4e5b65931897d
refs/heads/master
2023-02-21T18:31:42.047459
2021-01-19T13:26:54
2021-01-19T13:26:54
279,312,032
0
0
null
null
null
null
UTF-8
Python
false
false
1,496
py
704_二分查找.py
# -*- coding:utf-8 -*- # author: hpf # create time: 2020/10/23 23:38 # file: 704_二分查找.py # IDE: PyCharm # 题目描述 # 给定一个 n 个元素有序的(升序)整型数组 nums 和一个目标值 target  ,写一个函数搜索 nums 中的 target,如果目标值存在返回下标,否则返回 -1。 # # # 示例 1: # # 输入: nums = [-1,0,3,5,9,12], target = 9 # 输出: 4 # 解释: 9 出现在 nums 中并且下标为 4 # 示例 2: # # 输入: nums = [-1,0,3...
4f1f564b33ce47bed0cd70518bd713abba51e605
c145ec326a531fb3d83cc4fb814b9ff97c9e7448
/spiral_script.py
4d891b0a10f746c254ebcc21134be6dd0360cae5
[]
no_license
eigenbrot/snakes
ca16cc18cfc2230087baeec60a50a0a509381d1c
2681812ff8d25c9f0f4b7cbedac158cfca93e015
refs/heads/master
2021-04-12T05:24:57.230850
2018-05-08T21:58:51
2018-05-08T21:58:51
7,961,046
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
spiral_script.py
import numpy as np import Salty2 as salty '''This file creates a bunch of simulation files with varying degrees of spirality ''' def do(): h_r = 8.3 vc_list = [216.78]*4#,203.7565,200.516,242.0] zlist = [0,0.43,0.86,1.72] w = 0.8 N = 6 view_ang = 0. pitch_list = [0.17] #np.arange(0.1...
00f0c2d1838a04cfb00c015a66596709437500c9
a90cf72013192614419fda10d6d35fcfe9fd430a
/ansiblemetrics/ansible_metric.py
b31c797b8e5593649b43a382f4447bbad87c9469
[ "Apache-2.0" ]
permissive
SODALITE-EU/iac-quality-framework
cc08310286c3c8f709e9eb92468cece4aea75e37
cc5fc52857b30c33be8870548a22e0f8bea98fa5
refs/heads/master
2021-12-19T23:52:25.121993
2021-12-09T10:10:25
2021-12-09T10:10:25
225,428,765
0
0
Apache-2.0
2021-12-06T11:35:39
2019-12-02T17:14:24
Python
UTF-8
Python
false
false
848
py
ansible_metric.py
import yaml from io import StringIO from ansiblemetrics.exceptions import NotPlaybookError, NotStringIOError class AnsibleMetric(): def __init__(self, script): """ Initialize a new Ansible AnsibleMetric. script -- a StringIO object representing the script or the tasks file to parse ...
f1ebb1df3de7eb29a447d1cd9f859f4b410ad5d2
62cd011865952c95ed6180818f4e0cb5fe8e3bd3
/instructores/migrations/0001_initial.py
8f9a443a274ec257f3b670afa88cf073c004d74a
[ "MIT" ]
permissive
JimmyDuoc/duoc_2020_django
b56a4f6fc37e98b49b2f48948b57853bf4214f30
39328207c770d921384012b83de9f988976d2804
refs/heads/main
2023-01-29T15:18:14.757673
2020-12-12T03:15:41
2020-12-12T03:15:41
313,470,910
0
0
MIT
2020-12-12T03:15:42
2020-11-17T01:14:30
JavaScript
UTF-8
Python
false
false
1,239
py
0001_initial.py
# Generated by Django 3.1.3 on 2020-12-10 15:49 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Instructor', fields=[ ('id', models.AutoFie...
c7bf48183c254cbe92ea82eda2dd60a5a68cc928
6a0b8d12ff723a7ddf40a587f99c809b62245357
/djangopj/futbol/views.py
4576526a9edcb20d98dd34f8c9ea05f12fa0542b
[]
no_license
leo22lh/django
044a8eac277c591e7c27d69ff7270b0c39d4a7fe
dc6d17043e28395c27c482b5dda695af0d739280
refs/heads/master
2021-06-21T07:29:45.892820
2017-08-01T19:23:45
2017-08-01T19:23:45
97,965,801
0
0
null
null
null
null
UTF-8
Python
false
false
828
py
views.py
from django.shortcuts import render, redirect from futbol.form import EquipoForm, JugadorForm from futbol.models import Jugador, Torneo def index(request): return render(request, 'futbol/index.html') def crear_equipo(request): if request.method == "POST": form = EquipoForm(request.POST) if for...
7f6df4e0cc83b50f31d4f69c28d86a105fc52e54
356b5455a4fb86c49c800a6181323b7fabef2b08
/test/lang/c/test_synthesis.py
daee5af5fe86e0b6ad1db0cfcb549559816ab418
[ "BSD-2-Clause" ]
permissive
obround/ppci
be7d1ce7832513629ee1301e7b67c0ceda38d668
ba0840bc5f4ffd889f882a814fb26f88cd854379
refs/heads/master
2023-02-11T13:47:35.439871
2021-01-05T22:33:08
2021-01-05T22:33:08
327,131,704
0
0
BSD-2-Clause
2021-01-05T22:08:23
2021-01-05T22:08:23
null
UTF-8
Python
false
false
862
py
test_synthesis.py
import unittest import io from ppci import ir from ppci.irutils import verify_module from ppci.lang.c import CBuilder from ppci.lang.c.options import COptions from ppci.arch.example import ExampleArch from ppci.lang.c import CSynthesizer class CSynthesizerTestCase(unittest.TestCase): def test_hello(self): ...
f3e9632611bafa853fa6dda0e3bf411e57f85816
fcafa8c952e164330e59b48671cf85e67c9ba812
/optimizer_for_engineer/back_test/portfolio_optimize.py
1603c7935821414102ff625e68671121377ba760
[]
no_license
JesseLiang2020/RicequantPtfOpt
fbfbd977bdaac802d4dc46238cd2049de3607c3d
1fc4aa2e6f0e0931763825b741a74a905d1bbf62
refs/heads/master
2022-02-14T18:02:01.936062
2017-08-11T15:04:02
2017-08-11T15:04:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,882
py
portfolio_optimize.py
import rqdatac from rqdatac import * rqdatac.init('ricequant', '8ricequant8') from optimizer_for_engineer.back_test.input_validation import * from optimizer_for_engineer.back_test.ptfopt import * from optimizer_for_engineer.back_test.get_industry_matching import * def portfolio_optimize(order_book_ids, rebalan...
f79c43a00e5111278ccfb3f3c57d9a88ae5d7483
5508ebcf077443975dd9beaafb1cd83b6a46dbcb
/hello.py
2a3826f76b963f331ecf4433750d501f1a12512a
[]
no_license
a8907117/HomeStudy
d3be65dcc34b2c4753bdd4940201034ad5509cf0
159c1eac09e4f1a840d000cebf2194f7085019a9
refs/heads/master
2022-02-05T19:25:51.736412
2022-01-08T10:25:49
2022-01-08T10:25:49
140,498,144
0
0
null
null
null
null
UTF-8
Python
false
false
32
py
hello.py
print("Hello Worold!! python!!")
ebc2934246f4f3cffdb62c797a2c581593e4dcb5
56fb360f2d6645d18a86b8fd0e46bfd1459db39c
/tests/common.py
a92d70e52639a65e47f86d2ab05b6400e98519dd
[ "MIT" ]
permissive
thehesiod/rate-limiter
ecf277d0c8a3fc614f9a3aeac2ab9a5548d7173b
59f23d87c29f67cc34a28949b83032f249050bb2
refs/heads/master
2020-03-16T16:52:45.064416
2018-05-09T23:15:11
2018-05-09T23:15:11
132,807,664
0
0
MIT
2018-05-09T23:15:12
2018-05-09T20:10:26
Python
UTF-8
Python
false
false
2,101
py
common.py
import asynctest import unittest _none_type = type(None) def _assertRecursiveAlmostEqual(self, first, second, places=None, msg=None, delta=None): """Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero,...
3e5fc51a2396a6af10d366e7e945058c9f7c506d
7d602d3ff12d1251a6fc13a57af23fcf85d2563f
/_____MAIN__GAME_____.py
15fed0370685a79266e873e1679f370961f4025f
[]
no_license
debraj1207/Alien_Invasion
913fe08d1f4098f552adb73bd8fcc014755425f1
b0c3231f32aace489c62f0073b38f8c1bc64f043
refs/heads/master
2022-11-29T15:17:08.800771
2020-08-11T13:57:17
2020-08-11T13:57:17
285,739,926
0
0
null
null
null
null
UTF-8
Python
false
false
3,178
py
_____MAIN__GAME_____.py
import pygame import sys from settings import Settings from ship import Ship from alien import Alien from game_stats import GameStats import menu_functions as mf from pygame.sprite import Group from scoreboard import Scoreboard from button import Button from screens import Info_Screen from screens2 import Info_Screen2 ...
9baabab047057c6a84e444f8c80e70d792ea3bca
952abfc855d0fca89200f1e428aac9a87f1d3295
/keras2/keras70_sigmoid.py
4320754491bb30fd5ff21780aa1ade5cf726a229
[]
no_license
TaeYeon-kim-ai/STUDY_1.py
7570b4510bf8d9791447efe3a97a9668a1cabe06
e14392c706b7e51e40f1ac68555e26558e25b38f
refs/heads/master
2023-06-03T09:04:13.498591
2021-06-21T17:10:47
2021-06-21T17:10:47
329,834,933
1
0
null
null
null
null
UTF-8
Python
false
false
413
py
keras70_sigmoid.py
#sigmoid 0 ~ 1 import numpy as np import matplotlib.pyplot as plt def sigmoid(x) : return 1 / (1 + np.exp(-x)) #activation sigmoid일 때 #레이어의 마지막 값에 return 1 / (1 + np.exp(-x))수식이 추가 됨 x = np.arange(-5, 5, 0.1) #x = -5 ~ 5 까지 0.1 간격으로 표기 y = sigmoid(x) print(x) print(y...
048ce43f2fb7424f9d7584075030d1d946615bfc
0d4656e8443782cf71eedcf43ce396e7132ddd15
/code/07_final/solution/sonar.py
5af96a25d39f1d4952cf8be7956dca350cbfd006
[]
no_license
varunmuriyanat/programming_machinelearning
0c32d8d59949a053b00118329baf594045bbae47
887dcd31108f59f0ce8285d9dddb0b8a1a63f80d
refs/heads/main
2023-01-05T05:31:07.236243
2020-11-02T00:55:10
2020-11-02T00:55:10
309,221,031
0
0
null
null
null
null
UTF-8
Python
false
false
1,995
py
sonar.py
# Load and prepare Sonar data. For a detailed description of the Sonar # dataset, see: https://archive.ics.uci.edu/ml/datasets/Connectionist+Bench+(Sonar,+Mines+vs.+Rocks) # Load the entire dataset into a large (208, 61) NumPy array: import csv import numpy as np data_as_python_list = list(csv.reader(open("sonar.all-d...
d5c4f7d308ac54b84d867ca64f5172a106baa271
f5344aced996da50233f588098694ae6c0073049
/Library/urls.py
6eeb4fda80a1540a8c6d382acd92ba367aa71501
[]
no_license
mehulkansal/digital-library
c0126aa0443b1683e1c6af54ace24266301ee67d
63a8bce6c36906980a00f8a4a58e835d5fa7dded
refs/heads/master
2023-02-25T21:51:06.301066
2021-01-27T17:31:47
2021-01-27T17:31:47
333,502,444
3
0
null
null
null
null
UTF-8
Python
false
false
1,533
py
urls.py
"""Library URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
3401d61bb58a532d5b5817696e94f48acdc29e01
d4ac24179b56f9c24d50da9899ac6a4d5a1adeb9
/izzat_survey/models.py
a307912d3c5caee763565628a05b1584285eb397
[]
no_license
trolleyistheproblem2/izzat-otree
0378a30420fa592f94e974e8f4c6b05ecb52bb23
42a52018d173e4b0ad82b5c29397b9e46c63372c
refs/heads/main
2023-04-10T18:00:06.152229
2021-04-28T17:11:02
2021-04-28T17:11:02
362,548,706
0
0
null
null
null
null
UTF-8
Python
false
false
1,954
py
models.py
from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'izzat_survey' players_per_group = None num_rounds = 1 clas...
43c020a7b77d5e9311d8aa0c5a3d110d033f8d0c
5e47de7497e7c06798bf1880b6d0a6be4ac69906
/TablesDataUpdater777.py
649927d36f3a8ce914f33df9ca74d065b82894ab
[]
no_license
aydar0894/rhprs
9a43387fc3633392f2647378f4360b127d870926
19dd78722105258b8cb648d1563f858b7c9c7ba1
refs/heads/master
2020-03-26T19:05:42.784024
2018-10-23T07:17:15
2018-10-23T07:17:15
145,248,683
1
0
null
null
null
null
UTF-8
Python
false
false
13,476
py
TablesDataUpdater777.py
import datetime import pandas as pd import time import matplotlib.pyplot as plt import time from pymongo import MongoClient import datetime import sys import json import os from xml.etree import ElementTree import re from queue import Queue from threading import Thread import websocket # In[ ]: def on_message(ws, me...
96998170df824fb8ee9e5009c509487beeb62e44
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_348/ch23_2020_03_19_14_05_43_875484.py
b3833817e582702921c7f0cf0fa8f58c842f27d0
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
ch23_2020_03_19_14_05_43_875484.py
velocidade = float(input('Qual a velocidade:')) preço = velocidade*5.00 if velocidade > 80: print('"A multa é {0:.2f}"' .format(preço)) else: print('"Não foi multado"')
a9c9b28588befdf2cc8224f21643bb3e0928bdb6
9ed4d22cfa195570ffb8586fabe5805aa6b81437
/mlprograms/commons/writers/toObject.py
d0ff701cf48f8c0c1ea768c7a1041b78cd072c7c
[ "MIT" ]
permissive
Wiceradon/Lodz_University_of_Technology-Mathematical_Linguistics
ea1b03b60cab16d52e6eba9eb2ee4a0621c20dde
a8eda28b20c26a4601b68ecb2bacbe492bffa81f
refs/heads/master
2020-05-20T15:18:28.744395
2013-12-20T17:18:20
2013-12-20T17:18:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
toObject.py
# This Python file uses the following encoding: utf-8 ''' Created on 17-12-2013 @author: Jakub Jeleński ''' import basic class ObjectTextWriter(basic.SimpleWriter): ''' Writer writing to object text state not loosing it (appending to existing text) ''' def __init__(self, writable): ''' ...
c8b956279170119d9adb91085e533b37f2dcfd80
b7e52fa16942ab6dd9c794a06775615789f82b6b
/EP4/HW_05/velocityselector.py
d6d279e188fb5821ce62318bd63fe4f9fb59a03f
[]
no_license
fusionby2030/Uni_Work_SS20
7e89c1ce77bd5494acf8d8219c9665ea38763136
deddf380105d960bd7c1843631a64de98b4a1aaf
refs/heads/master
2022-12-31T12:30:50.026845
2020-10-27T15:58:26
2020-10-27T15:58:26
256,388,468
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
velocityselector.py
""" Particles Shooting Axis Various velocities/wavelengths Rotating discs parallel to axis same """ #plt.show()
72e2c2a3b744601d3356e7b0c2dd408fb515c26c
f2e82e1b364b6672c227ac88c0338dab9e166132
/teamchooser.py
7591fe7c04c01f12f5f878499d8b071fdd38b47b
[]
no_license
Usielgoncalvesweb/TeamChooser-Python
a9907776e6fb29369410f153f593bd90aafadb40
ae34bb6215a65908140601abd88711757848f8da
refs/heads/master
2020-08-16T18:25:49.240886
2019-10-16T12:04:10
2019-10-16T12:04:10
215,537,521
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
teamchooser.py
from random import choice players = ['Henry','Bechkam','Zidane','Gerrard'] teamA = [] teamB = [] while len (players) > 0: playerA = choice(players) print(playerA) teamA.append(playerA) players.remove(playerA) print('Players Left:', players) playerB = choice(players) print(playerB) teamB.ap...
c3a557eb1a544a34df9a33dd51448f1697424747
037d31bfad9c9da19f6fa8046fa575b59bdfd97b
/app/home/urls.py
a5c4f7c5f4ce50e15ecc7dfd9f5da8e89dbd0530
[]
no_license
luoyun/homepress
d8cfa58ea8de81bc559da9da3e2eb44d537e5df6
8c97579bd7b523dbbcc4a11f378bc4b56407de7c
refs/heads/master
2020-12-30T10:23:09.672711
2013-08-05T10:24:02
2013-08-05T10:24:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
urls.py
from tornado.web import url from . import views from . import admin_views handlers = [ url( r'/', views.Index, name='home:index'), ( r'/no_permission', views.NoPermission ), ( r'/setlocale', views.SetLocale ), # admin handlers url( r'/admin', admin_views.Index, name='admin:index'), ]
b556493c44bdd197b21733435b8be93491e2876e
2e70da5c574b83d1b1b630a05c8b8e3a8a2fa1eb
/2016data.py
65908ca015bd0e43f0468e72829ed53ae3ef512e
[]
no_license
hdubin/Taxi
ef473cee0db63742d1ff853bbdbec5d78ef27242
e68f6e9e6a9f57f5027a67d094a3edc3f4727693
refs/heads/master
2021-09-02T12:31:11.817804
2018-01-02T17:06:35
2018-01-02T17:06:35
113,497,712
0
0
null
null
null
null
UTF-8
Python
false
false
3,805
py
2016data.py
#!/usr/bin/env python3 import re import urllib.request import subprocess import gzip import sys startMSG = open("./startMSG2.txt", "w") endMSG = open("./endMSG2.txt", "w") startBarclays = open("./startBarclays2.txt", "w") endBarclays = open("./endBarclays2.txt", "w") def opener(fileNames): for name in fileNames...
c315ba8dd836256a24212bfb9d4acfe97dc0d015
a27cde0fa2415f2cb296369dd9bfab65f655164c
/5/5-08.py
e64200ed88166a8664c4d94aff94a946daa952e2
[]
no_license
paalso/hse_python_course
c47ea010ba4173fefbcbb6b97fc3c74a84a9fd12
9e9d2001143afbd873152833dafb9682b5bae824
refs/heads/master
2021-06-25T05:12:37.368806
2020-12-21T09:48:37
2020-12-21T09:48:37
187,812,620
1
0
null
null
null
null
UTF-8
Python
false
false
738
py
5-08.py
# https://www.coursera.org/learn/python-osnovy-programmirovaniya/programming/7PClq/zamiechatiel-nyie-chisla-1/submission # Замечательные числа - 1 # Найдите и выведите все двузначные числа, которые равны удвоенному # произведению своих цифр. def digits_product(n: int) -> int: """ Сalculates product of...
2d81313faf61eeddd0a9ed60b29985b974eb0f5d
0e55f4d261c7873fe9dc4b613c612c824843f459
/graph_splitter_directed.py
0a5a24a2a2d5c134afe62f7388fb22016796aab9
[]
no_license
gaurav324/PageRank-MPI
ed163012c6a782eb43215c2a01eb8d4d3ea2c66f
0ba8c5309fbae19cd51b2a8d69a11267a273a8cf
refs/heads/master
2020-05-21T11:39:33.230424
2015-05-13T23:50:35
2015-05-13T23:50:35
34,239,362
4
4
null
null
null
null
UTF-8
Python
false
false
4,330
py
graph_splitter_directed.py
# # GraphSplitter.py # # python graph_splitter_directed.py --graph_file ./metis-5.1.0/graphs/4elt.graph --metis_bin ../metis_install/bin/gpmetis --core 4 --output . from optparse import OptionParser import os def main(opts, args): """ Main function of the script. """ # Execute the command to run the...
9305b677ba71f176e4cc81759287e3e16c4f05ee
7520113f7059e8a0df716a4ea790db4675974ab5
/clustering-analysis/trajclassifier.py
ded69a48fa89cdb1b1e43a0851834e2b9936a515
[ "MIT" ]
permissive
delemottelab/gpcr-string-method-2019
ad8df88e342e222d7af001dbc955160f2cf19620
b50786a4a8747d56ad04ede525592eb31f1890fd
refs/heads/master
2021-08-18T14:01:14.376604
2021-02-02T22:10:27
2021-02-02T22:10:27
184,228,230
0
3
null
null
null
null
UTF-8
Python
false
false
9,215
py
trajclassifier.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import sys logging.basicConfig( stream=sys.stdout, level=logging.DEBUG, format='%(asctime)s %(name)s-%(levelname)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S') import mdtraj as md ...
82848b0dabdac88d0314aa1975c1b428a17b9236
b4434801ffdbdd000cbd9fc6ba20cac63d8bc089
/yq022.py
50429860e1621260bf23420b55f54654f23b5bd2
[ "BSD-3-Clause" ]
permissive
yq342/Aptamer-predictor
1145a982bd680bfef3f3ce46b9b3c32a1103a91b
29ff3788c9a3ccfa2c017295d1c8b09b2a89e43e
refs/heads/master
2020-04-08T22:40:31.093356
2018-11-30T11:38:34
2018-11-30T11:38:34
159,796,465
0
0
null
null
null
null
UTF-8
Python
false
false
1,761
py
yq022.py
#!/usr/bin/python # -*- coding: UTF-8 -*- # from mlab.releases import latest_release as matlab # from mlab.releases import latest_release as matlab # from collections import OrderedDict # # path = matlab.uigetfile('.txt') # # matlab.path(matlab.path(),r'E:\Bioinformation\yq_aptamer\yq_aptamer_web\Pse-in-One-2.0...
2ee4b555fc2c4ba68086ade0f02116d956274ed3
ec39196e2688365a2f9ce0ac359e0b989cf67358
/继承.py
6c3b32f67e288a6c93c50536be59704798a1cb99
[]
no_license
gzy0718/vip10test
6470df1524c1cc13d8ea80f92e4492b69b43f018
e3fc924205e0dd462e9403cf21c96d2872453d0f
refs/heads/main
2023-06-14T20:48:48.277079
2021-05-17T16:59:34
2021-05-17T16:59:34
358,773,180
0
0
null
null
null
null
UTF-8
Python
false
false
2,871
py
继承.py
# # # 单继承 # class shifu(): # def __init__(self): # self.peifang="五香味配方" # def jishu(self): # print(f"通过{self.peifang}制作煎饼果子") # # #多继承 # class school(): # def __init__(self): # self.peifang="香辣味煎饼果子配方" # def jishu(self): # print(f"通过{self.peifang}制作煎饼果子") # # class tudi(s...
8951e72eec9ee6ccca2984120a31f7a977190fd3
33d437087f14549b4d00192d063f2211d9d07102
/model_arch.py
6c86bc6024f6f940a841289c23bff03552bbfcec
[ "MIT" ]
permissive
Muntasir13/Face-Spoofing-Detection-using-Depth-Wise-Convolution
3dc0912c1558be0e4213cc5f61efbb3eadda69c8
f5b1b5d2ad2f29286afbc14e98075534b572c555
refs/heads/main
2023-02-20T08:49:59.442794
2021-01-24T07:34:42
2021-01-24T07:34:42
332,373,813
1
3
null
null
null
null
UTF-8
Python
false
false
5,710
py
model_arch.py
import torch import torch.nn as nn def conv3x3(inplanes, planes): return nn.Conv2d(inplanes, planes, kernel_size=3, stride=1, padding=1) class ConvolutionCreationLayer(nn.Module): ''' This class is for creating a network layer of convolutions. Each convolution will take place using 3x3 conv filter....
7fb5b2596a8a2ec8d947e87ec6cc6db2ac378fd2
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2868/60678/265495.py
4afdc552caa91c7102db35e1226a6f26be630ac0
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
217
py
265495.py
n = int(input()) position = input().split() odd = 0 even = 0 for i in range(0, n): position[i] = int(position[i]) if position[i] % 2 == 0: even += 1 continue odd += 1 print(min(odd , even))
9f400af192a3be119991c41721c2c81439e84b20
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa3/sample/len_invalid_2-21.py
b780c78831438cecfec433ff91def496fcdd871b
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
25
py
len_invalid_2-21.py
x:int = 1 print($ID(x))
2845693da21fac249070cdd21b06225163491c86
5633d5748adcfed97e51cf935ef07971700909e9
/pktool/utils/__init__.py
15acac99cb44b43c08396687bbe6d8e91506247f
[]
no_license
PauliKarl/pktool
d6304722e72b0d17da50fad15c393880f7605ac0
0fa96a91829da0b683fc80411cac4ed92b57784f
refs/heads/main
2023-04-07T17:41:13.315016
2021-04-21T07:18:26
2021-04-21T07:18:26
309,997,466
1
1
null
null
null
null
UTF-8
Python
false
false
110
py
__init__.py
from ._utils import mkdir_or_exist, get_files, get_key __all__ = ['mkdir_or_exist', 'get_files', 'get_key']
6ca6afede801bbb4abb20a5b87e02860ebd03d2a
35b5520cafcfd10514304a36b6014e152225c2d9
/pulls/settings.py
88486b3278f22a643d6682e70173ea2183ac85bc
[]
no_license
rtobart/gosite
d26217780d028bed7da04ceb9a529345192766f6
324874380f10b7f579f97042612c34f91e16105f
refs/heads/master
2023-08-20T21:39:03.482979
2021-10-29T02:37:07
2021-10-29T02:37:07
418,620,230
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
settings.py
import os from django.contrib.messages import constants as messages MESSAGE_TAGS = { messages.DEBUG: 'alert-secondary', messages.INFO: 'alert-info', messages.SUCCESS: 'alert-success', messages.WARNING: 'alert-warning', messages.ERROR: 'alert-danger', }
a9d7ed0aa418173db3b5a0329980fe12db864f75
32817aea173bc000ade9db16b3e15e0877025c89
/projects/urls.py
3ba028bfaf7cf6e61f70248b8def91f0fa2f67df
[]
no_license
tbaguilana/pilot
70053977670b7685ad5eef6999ea67d91dceffad
663e6bae797fa9e77fb00f27c3d6af88199e4dd8
refs/heads/master
2023-02-25T23:01:09.939337
2021-02-03T13:49:39
2021-02-03T13:49:39
335,559,451
0
0
null
null
null
null
UTF-8
Python
false
false
118
py
urls.py
from django.urls import path from projects import views urlpatterns=[ path('', views.projects, name='projects'), ]
85532006c20fb97a133016fe9d6d342f472af32b
7e31b89f3904e7a8181bcbb268a6cd1e7c13f9d5
/tests/test_cli_public_ip.py
43999cb8701ae4618e7fc330fd8155b1ee990081
[ "UPL-1.0" ]
permissive
oracle/oci-utils
d0d73ece10dc09aef8e111403950ea0c24e4ad5f
87b26c97a1a2fbb7e10cbb77cd14e13de69ed24c
refs/heads/master
2023-09-04T11:57:24.864400
2022-11-16T13:50:01
2022-11-16T13:50:01
176,812,636
45
25
UPL-1.0
2022-11-16T13:50:02
2019-03-20T20:34:01
Python
UTF-8
Python
false
false
2,706
py
test_cli_public_ip.py
# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved. # Licensed under the Universal Permissive License v 1.0 as shown # at http://oss.oracle.com/licenses/upl. import os import subprocess import unittest from tools.oci_test_case import OciTestCase os.environ['LC_ALL'] = 'en_US.UTF8' os.environ...
e4b1a3b53f19e69cbf7e18152da9c74b90826e6b
4416fe5f93cb9ddd54ffbf719d072b3499833423
/falcon_multiqc/commands/remove.py
efb4248c838301decc1e588ec9aa0b62d4409311
[ "MIT" ]
permissive
lwratten/project-falcon
102e876739d466389035ca6089085dfb4f964a7b
ee7953de04b03ec339cfc09b955933eb9d7b4ac7
refs/heads/main
2023-01-25T04:48:02.036584
2020-11-20T03:34:02
2020-11-20T03:34:02
300,447,804
0
0
MIT
2020-11-20T03:34:03
2020-10-01T23:10:54
Python
UTF-8
Python
false
false
3,735
py
remove.py
import click from database.crud import session_scope from sqlalchemy.orm import Query from .query import print_overview from database.models import Base, Batch, Cohort """ Command for removing entries from database. --overview Prints an overview of the number of samples in each batch/cohort. --cohort <cohortID> - re...
e9e633d7b016442fa5f4e807a54afb964a1e5cf1
bb7a39807bfdf6b317b431c9828283420692abc4
/lesson12/m12t1.py
477059b7baaa68b6b559840df52a922faec7cd73
[]
no_license
Del-virta/goit-python
7ab83835b86a916a52ab5137ca4053f17f343ecc
4ac7a1e504cfe682287431fbe28d6452d93853c0
refs/heads/main
2023-05-22T02:32:42.185951
2021-06-12T22:40:20
2021-06-12T22:40:20
346,376,358
1
0
null
null
null
null
UTF-8
Python
false
false
468
py
m12t1.py
import pickle class Customer: def __init__(self, surname, id): self.surname = surname self.id = id def __eq__(self, other): if self.surname == other.surname and self.id == other.id: return True return False def write_object(customer): byte_string = pickle.dum...
c4f0f30625184f9b1567e0f2a52122e75d7b68f0
7889f7f0532db6a7f81e6f8630e399c90438b2b9
/pyplots/make.py
ac374476e4d1135bcdacb7b97504985b556318cf
[]
no_license
matplotlib/matplotlib.github.com
ef5d23a5bf77cb5af675f1a8273d641e410b2560
2a60d39490941a524e5385670d488c86083a032c
refs/heads/main
2023-08-16T18:46:58.934777
2023-08-10T05:07:57
2023-08-10T05:08:30
1,385,150
25
59
null
2023-08-30T15:59:50
2011-02-19T03:27:35
null
UTF-8
Python
false
false
24
py
make.py
../1.3.1/pyplots/make.py
7722f248984501140f97afa5c7dc8417ce37df0f
6f732dfcc7e65be8232a9a838149f6ecba1c378a
/Day24/Day24.py
2461e68c79ef470f22404689120571727482aeb4
[]
no_license
tyday/AdventOfCode2020
ba7d0cb1e30d2d9ff3c2faf97a9668747971488b
680c9ba43b3d1828855a8305a41ae094725fdab9
refs/heads/main
2023-02-13T10:39:41.100900
2020-12-28T23:43:13
2020-12-28T23:43:13
319,418,991
0
0
null
null
null
null
UTF-8
Python
false
false
7,158
py
Day24.py
antiDirections = {'nw':'se','ne':'sw','e':'w','se':'nw','sw':'ne','w':'e'} cardinal_directions = ['nw','ne','e','se','sw','w'] def get_location(cl, direction): # https://www.redblobgames.com/grids/hexagons/ # Doubled coordinates if direction == 'nw': return (cl[0]-1, cl[1]-1) elif direction == ...
fd7e202660a9eaaf3ca07090d32fd50b93992d50
a8fb5d37de019221e5897a98bd176c566037f813
/Playground/Web/TCP/TCP_.py
a1e73370bfd02004f9e2822bc4b1a55c62a5196e
[]
no_license
tdworowy/PythonPlayground
b743dc2b870d1681b24e654e2af3fe5957710265
ff090fb44046c9c37501f5dbbcb08d56552540d4
refs/heads/master
2023-01-05T00:28:55.725894
2022-12-27T10:06:40
2022-12-27T10:06:40
72,983,029
0
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
TCP_.py
import _thread import socket from Playground.my_utils.staff import random_string class TCP: def __init__(self, host, port): self.host = host self.port = port def start_TCP_server(self, socket_count): sockets = [] for i in range(socket_count): socket_ = socket.sock...
afe2396c0bddc816ba3b76fb45316a5685538630
c27bc025ea6b593cd3998e6a8796d60b14a2c2f6
/week4/comboSum.py
f4337bb763f39a4dde7e8fef6f7044633b05bdff
[]
no_license
closcruz/wallbreakers-code
b6e3ae06ef38c0999d4542ac9c7feb822262dd76
184b7d5d74a59757f2f878d876d3585456386b51
refs/heads/master
2020-06-08T01:34:33.545631
2019-08-04T23:52:05
2019-08-04T23:52:05
193,134,406
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
comboSum.py
class Solution: def comboSum(self, candidates, target): def search(n, t, prev, res): for i in range(len(n)): if n[i] > t: return if n[i] == t: temp = [n[i]] + prev temp.sort() if temp...
2dbd43b5da5fb891352846e309b1f891f9f13054
deba84bc2fc984bcab099e37b17de147574616ed
/p017.py
197b336dcb6557acc537cf7e9afd06d23c62e085
[]
no_license
previsualconsent/projecteuler
010531916926fae1c6735393b97e354a256c443b
d13edccd8f0547d08b8bb35f92022a60761f92c8
refs/heads/master
2021-01-21T21:54:46.011753
2019-01-03T17:54:27
2019-01-03T17:54:27
22,241,291
0
0
null
null
null
null
UTF-8
Python
false
false
1,383
py
p017.py
names = { 1:"one", 2:"two", 3:"three", 4:"four", 5:"five", 6:"six", 7:"seven", 8:"eight", 9:"nine", 10:"ten", 11:"eleven", 12:"twelve", 13:"thirteen", 14:"fourteen", 15:"fifteen", 16:"sixteen", 17:"seventeen", ...
bf38126b9a2c072fc174b589a818718f79c6940a
f848497a8b5e417cc55cd67a100c36cd3302fe4b
/photo.py
8a87ef250b7642ea69f05c4395426b5795924bd6
[ "MIT" ]
permissive
AllanElleuch/hashcode-2019-Qualification-Round
e2147432fb13dd5cc8f69ca2c7e3ae861b154e5e
35860f0e857955c9fa14699156518570c5e03a6b
refs/heads/master
2020-04-25T23:46:27.199766
2019-03-01T21:45:01
2019-03-01T21:45:01
173,156,467
0
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
photo.py
class Photo: def __init__(self, identifier, is_vertical, nb_tags, tags): self.id = identifier self.is_vertical = is_vertical self.tags = tags self.nb_tags = len(tags) def __repr__(self): return " ID : " + str(self.id) + " is vertical : " + str(self.is_vertical) +" nbtags : " + str(self.nb_t...
decfdbd8955082e1ed3e9d96509bbc79ed9ca278
c06b75208cbf4a12bc84db318d302c53d9d2fae7
/ces_tweets.py
43778fea1d327116ed2d0c9066f7cbb44d0d8928
[]
no_license
arun73/Twitter-Analytics
5acd47bd8b158338bbdd8c1fc9799b3397796095
e1f77942eef7cffd972a5a8593ede0fc7f2d679f
refs/heads/master
2016-09-09T23:54:20.757826
2015-02-16T16:17:07
2015-02-16T16:17:07
29,975,401
0
0
null
2015-02-02T15:21:44
2015-01-28T16:01:04
Python
UTF-8
Python
false
false
289
py
ces_tweets.py
import sqlite3 def get_tweets(): conn = sqlite3.connect("tweets.db") c = conn.cursor() conn.text_factory = str c.execute("SELECT tweet FROM ces_tweets") _tweets = [r[0] for r in c.fetchall()] conn.close() return _tweets tweets = get_tweets() print tweets[0]
edda0249195071ed589c68a8abbda9a9d9de65f5
11ce378fab474d9ef6413e8a74301cea14ba2656
/2020-5-15/12.py
3c23620ceede108748e566cd40f0163808d1cdf0
[]
no_license
ppx9527/Deep-Learning-Course
e67c2ba549a479cd2b472618d86f2c2c1a095271
5c32ed7e87e6059bce43ee9e3d6a108b0a28a338
refs/heads/master
2021-02-15T14:03:33.942559
2020-06-27T16:43:06
2020-06-27T16:43:06
244,905,615
2
0
null
null
null
null
UTF-8
Python
false
false
5,219
py
12.py
from __future__ import print_function import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' from keras.preprocessing.image import load_img, img_to_array import numpy as np import scipy from keras.applications import inception_v3 from keras import backend as K from matplotlib import pyplot as plt import keras base_ima...
f575963f89ca0d10a9f86b779aa2fc69680944e0
d1ad901e1e926d9c92ce4dc7a7ba3c6ee91a65e2
/tests/common/fixtures/duthost_utils.py
79350f1fe73497f08559efa1f99108c0d8caf364
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
SubhajitPalKeysight/sonic-mgmt
ff59c2c5baf53cc2575aea2d541278fc9cf56977
e4b308a82572996b531cc09cbc6ba98b9bd283ea
refs/heads/master
2022-12-31T01:03:47.757864
2020-10-15T11:04:37
2020-10-15T11:04:37
286,815,154
1
1
NOASSERTION
2020-08-11T18:08:34
2020-08-11T18:08:33
null
UTF-8
Python
false
false
1,399
py
duthost_utils.py
import pytest import logging logger = logging.getLogger(__name__) def _backup_and_restore_config_db(duthost): """Back up the existing config_db.json file and restore it once the test ends. Some cases will update the running config during the test and save the config to be recovered aftet reboot. In such...
f788d9f90426ccfcbe51da9e784b825d6615723c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03472/s361409456.py
e2504e16b6361263512bc2e0cfb9b04ef1491597
[]
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
251
py
s361409456.py
n,h=map(int,input().split()) a,b=[],[] for _ in range(n): A,B=map(int,input().split()) a+=[A] b+=[B] c=max(a) b.sort() ans=0 for i in b[::-1]: if i>c and h>0: h-=i ans+=1 else: break print(ans-(-h//c)*(h>0))
a2ce7d0bfe4fce87dbc11bb1841b84c05225c726
6be2822676cda9d0415209059e02cd9691862af4
/server.py
0a95a6d9622257d163457f8a35b69b67515d34ea
[]
no_license
oconnor663/peru-server
eade179394e09483148ca250cb1f3f61579ab0d1
af7a940db180e5134ccd5a97377d15566701d871
refs/heads/master
2020-04-04T17:42:00.922297
2015-04-13T01:45:29
2015-04-13T01:45:29
33,392,597
0
1
null
null
null
null
UTF-8
Python
false
false
2,153
py
server.py
#! /usr/bin/env python import collections import contextlib import os import sqlite3 import flask import peru.parser app = flask.Flask(__name__) DB_PATH = './peru-server.sqlite3' @contextlib.contextmanager def db_connection(): if not os.path.exists(DB_PATH): with sqlite3.connect(DB_PATH) as conn: ...
39bb3995e396daf9a577916dc81f3d4a9dd4dcf6
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_2_neat/16_0_2_ps1ke_test.py
c81ea56920bb74872810fd3522cfbcf768e10a98
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
934
py
16_0_2_ps1ke_test.py
def importFileFromGoogle(fileHere): finalDict = {} newFile = open(fileHere, "r") return newFile.readlines() def exportFileFromGoogle(listOfResults): newFile = open("final.out", "w+") i = 1 for result in listOfResults: newFile.write("Case #" + str(i) + ": " + str(result) + "\n") i += 1 listIn =...
67f0f407c02ed6a600d887c4e946413b9dfb52b5
dacc544088406d5c8f2b77e2c51a797094dd5b82
/datasets/datafeeder_npy.py
8afdc225185f13f8eb2600dfd4f7d8b26b677380
[ "MIT", "CC-BY-3.0", "CC-BY-4.0", "LicenseRef-scancode-public-domain" ]
permissive
Jim-Song/tacotron_multispeaker
4edab891b56708696694df9a79736dee627e9e90
fb159e162c3fcfaf4156bd8579655c590d0b6617
refs/heads/master
2020-03-25T23:26:49.052698
2018-08-27T10:54:06
2018-08-27T10:54:06
144,275,196
4
1
null
null
null
null
UTF-8
Python
false
false
8,323
py
datafeeder_npy.py
import numpy as np import os, json import random import tensorflow as tf import threading import time import traceback from text import cmudict, text_to_sequence, text_to_sequence2 from util.infolog import log _batches_per_group = 20 _pad = 0 class DataFeeder(threading.Thread): '''Feeds batches of data into a q...
3cc1979a31f0c12194f3323f34bc649463405d2e
baed068f253651b4f52454b9dff93ee15a292706
/tf_test.py
cbd1d9c7e9418c43a291f0dc67175b13f6432bb0
[]
no_license
ll5/tf-learning
cbf685b45a598ce489e5b880a474ffd6b4856975
e59900661504d9439b1985f36e0a285a6f4a9ba8
refs/heads/master
2020-03-17T18:47:20.623369
2018-05-23T10:24:08
2018-05-23T10:24:08
133,833,552
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
tf_test.py
# -*- coding: utf-8 -*- import tensorflow as tf import numpy as np import pandas as pd import matplotlib.pyplot as plt import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # var1 = tf.constant([[1,2],[2,1]]) # var2 = tf.constant([[3,4],[4,3]]) # # # sess = tf.Session() # # sess.run(var) # # sess.close() # with tf.Sessio...
ccca1c14702c4425a5b57570dd8b2ea305c86640
c809713ade907d7c0f76d8903848b87bd573e441
/client.py
d5c7ae51e069d0e89e569780f4d2d89cc0fa1bad
[]
no_license
amalassemdora/Concurrent-Chat
c04847c42d84d89f92f766d99f7fdc50550f2fdf
e284b497dde66444c0985f03b5e252e4c236264c
refs/heads/master
2021-05-16T20:12:21.757363
2020-03-27T06:00:27
2020-03-27T06:00:27
250,453,111
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
client.py
""" @author: Amal Assem Dora """ # Import socket module from socket import * from _thread import * import threading def thread_receive(s): while True: x=s.recv(500) print(x.decode('UTF-8')) s = socket(AF_INET,SOCK_STREAM) # local host IP '127.0.0.1' host = "127.0.0.1" # Defi...
c294cb6c4be2a28b339ab8de37db229626deb75b
7447b20453c759c07fec3aff5f40feac6f764af2
/django_project/genom/urls.py
bf706dc72a68199514de9a4f7d4bf73e375ccda1
[]
no_license
prearar/Django_Python
b363a4b3fc2d0b7dca3007b85f86efc8ff086c74
61e667c40dc4a0272fffaf192acae203ea5da41e
refs/heads/master
2020-04-24T21:45:29.608404
2019-02-24T04:00:20
2019-02-24T04:00:20
172,289,115
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
urls.py
from django.contrib import admin from django.urls import path from . import views urlpatterns = [ path('',views.home, name='genom-home'), path('judge/',views.judge, name='genom-judge') ]
4fb66d811b1d47d6ea908da50c80066f659a4c18
923152fe6e962fa422e6af7a6a3d5a5b75c2be5f
/data_processing/create_dataset_csv.py
58f2f3c5cf693d3a259bfd1d6e174a6d123942d1
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
XinpeiWangMRI/sigmanet
ed5930d65f1c897c788d2008ab2059674b31f2fe
6eb8dbd1ee350bb9baee60eb254080f7d660bbc5
refs/heads/master
2022-03-17T19:08:07.120443
2019-12-20T15:07:28
2019-12-20T15:07:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,676
py
create_dataset_csv.py
""" Creation of dataset *.csv files for the fastmri dataset. Copyright (c) 2019 Kerstin Hammernik <k.hammernik at imperial dot ac dot uk> Department of Computing, Imperial College London, London, United Kingdom This source code is licensed under the MIT license found in the LICENSE file in the root directory of this ...
3acd97cceae50256d887bfb8943b4d3424c8bf49
eca238b988cdee0640cea7dfe8cb8b7e71163a4e
/downloadApi.py
55936ff184c76cca62b56774a22835518a493a9a
[]
no_license
shawn-hateley/Scripts
2c4a19ccf621b88c621e388b48c6ca682ac93d88
b65d40ac0476863e7dd4bab34f53cf9f0da55e0a
refs/heads/master
2023-08-05T07:14:13.779230
2023-07-26T17:46:11
2023-07-26T17:46:11
54,222,198
0
0
null
null
null
null
UTF-8
Python
false
false
2,465
py
downloadApi.py
# Example using hakai_api_client_python library from hakai_api import Client import sys, getopt argv = sys.argv[1:] station = '' begin = '' end = '' variable = '' all = '' outputFile = '' #parse arguments and assign to variables try: opts, args = getopt.getopt(argv,"hs:b:e:v:a:f:",["station=","begi...
4f7baee3b28a19a6e1e053644563da44d7a320b8
e3197b5edafceeca67310be61627609287be677a
/day3.py
6e56baea6ad1a6df540c2657d127f1f7a785738d
[]
no_license
tburmeister/aoc2018
dae356afd3aae88dea1c918fc0657a9d9685a2fd
802c3da821b819654941c16a08227727c0936f12
refs/heads/master
2020-04-09T09:14:18.832727
2018-12-17T11:39:53
2018-12-17T11:39:53
160,225,838
0
0
null
null
null
null
UTF-8
Python
false
false
1,395
py
day3.py
import re from collections import Counter regex = re.compile(r'#\d+ @ (\d+),(\d+): (\d+)x(\d+)') with open('day3.txt') as fp: rows = fp.readlines() def part1(): covered = Counter() out = 0 for row in rows: m = regex.match(row) assert m is not None x0 = int(m.group(1)) ...
742a0be953ed29e42194c70e7a6ab90be2780b27
8fea4483e5a633657928bdd77a0a2609563c8f6e
/py_avataaars/__init__.py
48ccfc86073ec96c5d78d7ef8a2efdbd00b5735a
[ "MIT" ]
permissive
SaeedDehshiri/py-avataaars
818e9f1543939511de2d561378f0d04a30be23a3
d2a589f2c796779731180ba9a0dc525d6e7e6bee
refs/heads/master
2022-11-25T03:53:13.959173
2020-07-28T09:10:42
2020-07-28T09:10:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,658
py
__init__.py
import enum import pathlib import uuid from cairosvg import svg2png from jinja2 import Environment, PackageLoader class AvatarEnum(enum.Enum): def __str__(self): return self.name.lower().title() class AvatarStyle(AvatarEnum): CIRCLE = 1 TRANSPARENT = 2 class SkinColor(AvatarEnum): TANNED ...
17c253978e73ddad5f7a60ce899f5b95455927ce
56634a5dce8c241216a9edc5e4310305b3e112e3
/baekjoon/level6_basicmath/beehouse.py
a3cb310e5d7cd1f5222d6b53c0a85e4eabfba4ab
[]
no_license
HyunSeokJeon/algorithm
aba3c7c6e981d7405884bbaa8786196093e16aa3
ce7ac47a78c1254c566964b8beb98d6226289820
refs/heads/main
2023-04-09T14:35:43.457851
2021-04-13T07:01:56
2021-04-13T07:01:56
355,069,537
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
beehouse.py
cnt = 1 det = 1 N = input() N = int(N) while True: if N <= det: break else: det += 6 * cnt cnt += 1 print(cnt)
5e96cf39deaa4f36b1a55895ed8af95f8e48d21d
a0801d0e7325b31f0383fc68517e208680bb36d6
/Kattis/isithalloween.py
fc7c91f2e07e4bd1e959a590664ed69caeae123a
[]
no_license
conormccauley1999/CompetitiveProgramming
bd649bf04438817c7fa4755df2c2c7727273b073
a7e188767364be40f625612af3d16182f2d8d4de
refs/heads/master
2023-05-14T13:19:32.678134
2023-05-11T16:07:33
2023-05-11T16:07:33
179,089,010
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
isithalloween.py
i = raw_input() if i == "OCT 31" or i == "DEC 25": print "yup" else: print "nope"
753d3bf132cc6cba8d841bd5f75916d1d9439b03
1bcac0264d15513cb7e7731cf51fd5d4a564c806
/setup.py
f199c353857f183b7678d8b9de45ed9ec3ab158b
[]
no_license
Psycojoker/wargod
33dd4b593ae721593e637117f8ad99d4eec7a244
091db2506ec8eb52ae1758470cfd38b0f15ff69c
refs/heads/master
2021-01-10T18:59:56.765639
2013-08-21T13:18:27
2013-08-21T13:18:27
2,855,946
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
setup.py
# -*- coding:Utf-8 -*- from setuptools import setup from wargod import __version__ setup(name='wargod', version=__version__, description='river flow type minimaliste rss reader that generate static html pages ', author='Laurent Peuch', long_description=open("README").read(), author_emai...
17ea751d5486262239f8d30b9645ba01a6897bd6
e3170ade8bacd412e3f5db26fe913653c5d1ce6c
/basic/chapter5-2.py
960f8e3ddb6fdadb1dcb9946ea1de22030d206ec
[]
no_license
azusa1115/study-python
906b27c9f44b2afdc9f2c4267afa16ff5e1eff54
242351ef41f1e9f6edabba5078d66a75f4ba70dc
refs/heads/main
2023-01-22T07:44:07.604306
2020-12-01T14:24:38
2020-12-01T14:24:38
310,960,358
0
0
null
null
null
null
UTF-8
Python
false
false
1,362
py
chapter5-2.py
# coding;utf-8 import random isok = False while isok == False: b = input("数を入れてね>") if len(b) != 4: print("4桁の数字を入力してください") else: if (b[0] < "0") or (b[0] > "9"): print("数字ではありません") elif (b[1] < "0") or (b[1] > "9"): print("数字ではありません") elif (b[2] < "0") or (b[2] > "9"): ...
d4cc16c8c455dfe321db82f80556d3d33229c330
e6ea3608066eacb3a31cf6a8ae29dfe0a6fae5f6
/wondertao.py
bf3579134279756bdf263ca3f6fe4db7c90820d5
[ "MIT" ]
permissive
fogonwater/wondertao
bc5f4f7cdab9ac94649560f6997fce5edc12f7d0
0543a1b19ac1408ab81623ffb910add720ac2355
refs/heads/master
2020-12-24T13:16:38.547883
2013-09-01T08:59:51
2013-09-01T08:59:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,710
py
wondertao.py
import random TEXT1, TEXT2 = "alice.txt", "tao.txt" def is_number(s): try: int(s) return True except ValueError: return False def write_text(s, fname): f = open(fname, 'w') f.write(s) print fname, "written" f.close() def create_chain(file_paths): markov_chain = {}...
8dd17db33fb890f37edda0d253aecd3a79fe3f3f
e243b1e12e28af1c7ecb38612c60f470a533d8f6
/network_vmd.py
d1724225dc9a7d08cacd72ccdd29ddba11546c20
[]
no_license
agheeraert/PerturbationNetworkAnalysis
4d0fbe97131fdd51449a473dd9b578b2117475a8
02fcadc2968fc41c40d730ea148e247ececdafc9
refs/heads/master
2022-12-11T00:40:08.917286
2020-08-31T08:40:21
2020-08-31T08:40:21
154,105,900
0
0
null
null
null
null
UTF-8
Python
false
false
5,038
py
network_vmd.py
import networkx as nx import numpy as np from Bio.PDB.Polypeptide import aa1, aa3 from Bio.PDB import PDBParser from tqdm import tqdm import warnings from Bio.PDB.PDBExceptions import PDBConstructionWarning warnings.simplefilter('ignore', PDBConstructionWarning) import argparse from CreateNetwork import three2one par...
2b3b88b671a7e4fae22b0955d9c95ebefe5e3c64
24a63ea2b359543f353dd33f67eaff08555373b1
/program/bmp2hex.py
2e47d6675cf59415febd557c02a3079c661ba2e9
[ "Apache-2.0" ]
permissive
zincentimeter/longan-nano-oTTo
bb04953ae5d5dfb1adb5bbd7720cff99ad408e04
adbcc96d7d395aaa77f5505dd7105377db93e18a
refs/heads/master
2023-02-05T10:36:15.826914
2020-12-27T18:20:43
2020-12-27T18:20:43
276,095,710
0
1
null
null
null
null
UTF-8
Python
false
false
12,815
py
bmp2hex.py
#!/usr/bin/env python ##@file bmp2hex.py # @ingroup util # A script for converting a 1-bit bitmap to HEX for use in an Arduino sketch. # # The BMP format is well publicized. The byte order of the actual bitmap is a # little unusual. The image is stored bottom to top, left to right. In addition, # The pixe...
b8b882f4e6b45ee1ecbc400a2459ca37fe863992
284982f9e8e228664ba2d8e6a4b0c938ae21a624
/produto/managers.py
bc745daef2c50609f309d0df1ddf3ef3a7faf048
[]
no_license
leonsaja/e-commerce
a684e10d44f93cde3f05ae437f27d376a52f881d
cf106cef66eafa7c8f3a97dacb3a8e1623e7c574
refs/heads/master
2023-08-22T17:32:36.914258
2021-10-15T16:32:51
2021-10-15T16:32:51
417,185,422
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
managers.py
from django.db import models class DisponivelProdutoManager(models.Manager): def get_queryset(self): return super().get_queryset().filter(is_disponivel=True)
6d56d8b6601572651947d7c541f0c438d96ce932
828466cdbd4e6a626ef580bea2f8d20a54de417b
/utils/seg_dataloader.py
b113d3201343f7c5cefaad2048a1dd8f1d52860b
[]
no_license
hardjet/segmentation
56a8d5432cfd340eb5d4f93b188f682f768bea79
b546ed8f4412d188ddfa6ea9a496538f34bfac52
refs/heads/master
2020-05-17T13:19:44.078240
2019-05-06T02:05:46
2019-05-06T02:05:46
183,732,302
0
0
null
null
null
null
UTF-8
Python
false
false
4,042
py
seg_dataloader.py
# import pdb import numpy as np import tensorflow as tf # import random from tensorflow.python.framework import dtypes from tensorflow.python.framework.ops import convert_to_tensor class SegDataLoader(object): def __init__(self, main_dir, batch_size, resize_shape, paths_file, buffer_size=100, split='train'): ...
0127a588c65bc74ff76c2c7892090dffb6a927cd
e2f7dda9a5c6392749cd699c26ccec4a3831f3d9
/IF_statement.py
de7083dd400438436c5523b7fa8f16da988586a4
[]
no_license
snehG0205/Python_Refresher_Practice
4616b32942c531d361fcc7e82a318c170c79336b
e4d33e6cd62919d8154bcf81bd210fc24d435209
refs/heads/master
2020-07-09T01:28:39.990799
2019-09-01T18:59:33
2019-09-01T18:59:33
203,835,791
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
IF_statement.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Aug 22 21:43:45 2019 @author: snehgajiwala """ a=5 b=7 c=3 if a>b & a>c: print (str(a)+" is greatest") elif b>a & b>c: print (str(b)+" is greatest") elif c>a & c>b: print (str(c)+" is greatest") else: print ("There seems to be s...
0f0c257e60c3fce1c355f6bd8146bd6f45ae587a
19e8ef8b1d386a5c8bd5c701fa7f8e8f42dea052
/combine_txt.py
f694819e47a29578519e6b50301d77219d04db78
[]
no_license
CaiYingFeng/Some_script
73166851f0ab659ca8ac34d16274bba3bb099a34
4b310b8b0898ae69432e47a8d7229ab212a72645
refs/heads/master
2023-04-03T08:58:38.389538
2021-03-29T08:06:53
2021-03-29T08:06:53
286,692,797
0
0
null
null
null
null
UTF-8
Python
false
false
2,689
py
combine_txt.py
# ************* # 合并txt文件 # ************ import os str='front_right' for i in range(0,29): with open('/media/autolab/disk_3T/caiyingfeng/huawei/0808/B1/name_pose/'+i.__str__()+'_'+str+'.txt') as f: for line in f.readlines(): with open('/media/autolab/disk_3T/caiyingfeng/huawei/0808/B1/name_pose...
58e3194bc57117507e58a41bf8aa55a753d058b7
9c4828f1caf252c49c16ee7c5d73353f7b820785
/MySpeech/GUI.py
4a7f04a635e5428b89f914673413de762c78cf0c
[]
no_license
pronob1010/Data_Science_Project_with_Edu_data
44459dd3d27f5fcba4f7a810671fe0e2e481b6c1
a4c6d1ac430f332eff5435318c86e82e70e7d765
refs/heads/master
2022-12-26T12:08:59.221010
2020-10-08T15:14:43
2020-10-08T15:14:43
298,825,261
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
GUI.py
# n = int(input()) # x = 5674 # y = 352 # for i in range(n): # print(" %d / %d = ? | %d * %d = ? | %d - %d = ? | %d + %d = ? "%(x, y, y, x, x, y, y, x)) # x += 31 # y += 22 a = [2,4,5,6,7,5] s =0 s = s+ map(int,a) print(s)
57946dbf88511fbeb2b2df84f257c22b0d34c66b
bc51aea057e72cc943f89ef4494a9a50273895cd
/lesson9.py
e48beede4949427fb1ea8d1968c2ff2e35101e7b
[]
no_license
nigellak/python-basics
52344a5d19fb21ad9bfac39e9ba1f7a93fc01d50
8b72bba90e846b5a77932b00eaeea731b5365416
refs/heads/master
2020-06-01T10:12:12.133556
2019-06-14T11:37:32
2019-06-14T11:37:32
190,744,249
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
lesson9.py
from math import sqrt # functions def add(x, y): print(x + y) add(4,5) add(6,88) def sayHi(): print("Hey") sayHi() sayHi() def area(b): x=(sqrt(3)/4)*b**2 # print(x) return x z=area(10) print(z, 'is my area') def volume(r, h, PI=3.14): v = PI*r**2*h return v print(volume(7,7)) print(...
7b4d88034d239cbfae58d2964f0d99171b6315f8
cab78db9e34d0307baaaa34e2763ed90d0a5b418
/view/video.py
ff28cdf02f3edf9ad7bc1b223a32d5c72c3b559f
[]
no_license
chuanjiabao1981/Classify
a78b4a7c627ade28d5e30e3e8bedc9d830f3b616
174711be73cb38367d71ca2c0d2e844e8b698ad2
refs/heads/master
2021-01-23T10:00:27.729957
2011-09-19T23:37:53
2011-09-19T23:37:53
1,742,305
1
1
null
null
null
null
UTF-8
Python
false
false
2,612
py
video.py
# coding=utf-8 import web import os from model.model import * from model.member import * from model.node import * from model.video import * from mako.template import Template from mako.lookup import TemplateLookup from mako import exceptions from template import template_desktop from util.member_tools import * from...
7641a8ffb0b49d35f837a23d4a9a99be33e616d1
5044f776fc06e407fe56e339dfeca11ffc27c32d
/serverHelpers/versions.py
597e00a49278ac7d3795213d3d0a39db0c97b6ef
[]
no_license
Bettedaniel/ProsodyAdapters
ad5fceb63e573b8dfdde98630faa20922db8cda9
d88a336d26f54a8d9f7818696608853644882aa2
refs/heads/master
2021-01-17T07:11:07.329905
2016-10-23T17:47:52
2016-10-23T17:47:52
54,026,745
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
versions.py
class Ubuntu(object): def update(self): return ["sudo", "apt-get", "update", "-yy"] def upgrade(self): return ["sudo", "apt-get", "upgrade", "-yy"] def install(self, install): standard = ["sudo", "apt-get", "install"] standard.extend([install]) standard.extend(["-yy"]) return standard class OSX(obje...
720a83afa7fc4d248e55e373369f41677efcdf29
8838639898f242c44b735c2c3041a02973eb6702
/api/__init__.py
85d9c304fea243acd6d406617a35b4629c9e2563
[]
no_license
Scra3/dca
78e880fbc6e248da8b462b610a7338c90c7493b0
2948179355787dc61743857a7ae93b186492165c
refs/heads/main
2023-06-01T18:14:25.787971
2021-06-13T19:40:22
2021-06-13T19:40:22
332,866,071
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
__init__.py
from .kraken_api import KrakenApi from .telegram_api import TelegramApi
6c8d43636fafa313e285ef81cc1517e8020ee5b0
b555c7e9de74ce93f3cd48daa31a83ff1c7f6142
/calculadora_v1.py
22bbc854d2e50cb670b865b2bfe25bc51b273128
[]
no_license
cristianlinhares/Python_Aprendizado
709b87c8c4a3615df45cfc82a1f4702776774693
02139083c603f902b3de06b38dc7f4c623767ec9
refs/heads/master
2022-06-22T19:10:38.082564
2020-05-14T01:36:23
2020-05-14T01:36:23
261,616,119
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
calculadora_v1.py
operacao = str(input("Qual operação matemática deseja realizar?")) primeiro_numero = float(input('Informe o primeiro número: ')) segundo_numero = float(input('Informe o segundo número: ')) if operacao == 'soma': print('O resultado é',primeiro_numero + segundo_numero) elif operacao == 'multiplicação': ...
0177accd13b412c7f6b3bcf2738b90e86cbd446f
ac16a937f32602cf16114463f8e875a972f64c27
/docs/dolfin/1.0.beta/python/source/demo/undocumented/sym-dirichlet-bc/python/speed-up-test.py
fb2da62f33d48ed4b866ba84b529d77ddd64d32c
[]
no_license
mparno/fenics-web
2073248da6f9918ffedbe9be8a3433bc1cbb7ffb
7202752da876b1f9ab02c1d5a5f28ff5da526528
refs/heads/master
2021-05-05T04:45:46.436236
2016-12-06T20:25:44
2016-12-06T20:25:44
118,628,385
2
0
null
2018-01-23T15:21:47
2018-01-23T15:21:46
null
UTF-8
Python
false
false
2,021
py
speed-up-test.py
"""This demo demonstrate speed-up for the standard Poisson problem (without Python callbacks) """ # Copyright (C) 2008 Kent-Andre Mardal # # This file is part of DOLFIN. # # DOLFIN is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by #...
36fc3c71ad6c418cae3b04d6affed81e3d58d315
4e7c8dab73d6bba16f96a7df661ce758a155f47b
/Example_12_Matrix.py
5302aac78e73064637c780592f77bb732eda088b
[]
no_license
nongrataa/Example
88df12bb02a74bbd6dac4c0dc8278faa571775f5
7da6ece8991fd5cfc914aff06199b24e1bcf6e7c
refs/heads/master
2022-11-01T19:35:08.329544
2020-06-08T11:30:16
2020-06-08T11:30:16
269,202,050
0
0
null
null
null
null
UTF-8
Python
false
false
1,438
py
Example_12_Matrix.py
""" Составить программу, позволяющую с помощью датчика случайных чисел сформировать матрицу размерностью N. Вывести элементы находящиеся ниже побочной диагонали. Определить: сумму элементов, лежащих ниже побочной диагонали; минимальный элемент, лежащий ниже побочной диагонали; произведение ненулевых элементов последней...
26623f1f2441bbad0a8b28db08672ff4ca0aac81
ec07da63392c069b11df7f25a0a0735838a10574
/Test/MetaData/TestMetaDataBase.py
c55ff7ed03139bcec1323e71cee1b75598e66dd7
[]
no_license
raingsei/kubsweeps
0e9494d4767f182dddb1d4c9f371e75acb85eb52
9b901bc87ef9f8ae444ef9f5b05cb6a200eacfe3
refs/heads/master
2021-05-30T18:07:32.875035
2016-02-10T21:47:42
2016-02-10T21:47:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
TestMetaDataBase.py
# 2016.02.08 RHS Original # # --------------------------------------------------- from MetaData.MetaDataBase import MetaDataBase if __name__ == "__main__": print ("Hello") mdb = MetaDataBase() mdb.Add("Test","Damn") mdb.Set("Test","dhl") mdb.Options()
5461cf201a04957099948b910762959c9bcb547c
573fa4524ea8be37d0bcc2e3195d9529235f577b
/uvicore/auth/user_providers/__init__.py
c4bee1be943505749f37b000d07530066d16c686
[ "MIT" ]
permissive
webclinic017/framework
72753f541f3c7f2cb13ae314785f23fb56ae5908
9c21b85e9e470c6d789899340332a9abd0b26ab1
refs/heads/master
2023-09-04T07:37:57.966539
2021-10-15T19:36:42
2021-10-15T19:36:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
57
py
__init__.py
# type: ignore from .jwt import Jwt from .orm import Orm
0c99a227ef58a0a20a8ef0b813f42c2a21e49150
adc0f9978c74a85d579378a6195f06d69c2aee10
/core/_settings/dev.py
3b19d2de295b0079b53f17de7539a755154836a0
[]
no_license
richardhills/housing
cc72e91bb9017d1504cbe16f1dd0da49e0735e7a
63b0da0df04a2fd4fffb58efa213e5c7f9dd72f7
refs/heads/master
2021-01-01T16:40:41.001734
2015-05-03T11:07:51
2015-05-03T11:07:51
30,505,896
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
dev.py
from core._settings.common import * # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.7/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT = "static/"
99b2b0d3ca3e8fc7e46d393f394f7f7dc07257e4
dcd772f567ef8a8a1173a9f437cd68f211fb9362
/ravenframework/SupervisedLearning/GaussPolynomialRom.py
7141c0b0e6aaf90b4f7b3e189caa027b9a7c69f2
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause", "BSD-3-Clause" ]
permissive
idaholab/raven
39cdce98ad916c638399232cdc01a9be00e200a2
2b16e7aa3325fe84cab2477947a951414c635381
refs/heads/devel
2023-08-31T08:40:16.653099
2023-08-29T16:21:51
2023-08-29T16:21:51
85,989,537
201
126
Apache-2.0
2023-09-13T21:55:43
2017-03-23T19:29:27
C++
UTF-8
Python
false
false
31,873
py
GaussPolynomialRom.py
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
9358b1e9a0c01db2192367dd1abe5968de95b8c5
f9dd82b591cc7be1304725e0a340507fe9261c2e
/ttoolly/management/commands/set_all_password.py
d91d0bf1ecb3b15409b607859b8496a458ec94b8
[]
no_license
kindlycat/ttoolly
9fcf89cb6ee10789f87f6e405d90a194537ec726
786d067dea5e5c161f970dad9e3cf88cb79cae4d
refs/heads/master
2020-12-25T10:59:48.814553
2016-08-18T09:08:32
2016-08-18T09:08:32
44,672,564
0
0
null
2015-10-21T11:47:39
2015-10-21T11:47:39
null
UTF-8
Python
false
false
571
py
set_all_password.py
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand try: from django.contrib.auth import get_user_model except: from django.contrib.auth.models import User def get_user_model(): return User class Command(BaseCommand): help = "Changes all users passwords to specified (q...
6b530849e6c01a33b6f88a7f7a6f905fde3689b5
c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce
/flask/flaskenv/Lib/site-packages/tensorflow/python/distribute/model_collection/simple_models.py
0d3991119745ae495e0ea6685398dd008d262f61
[]
no_license
AhsonAslam/webapi
54cf7466aac4685da1105f9fb84c686e38f92121
1b2bfa4614e7afdc57c9210b0674506ea70b20b5
refs/heads/master
2020-07-27T06:05:36.057953
2019-09-17T06:35:33
2019-09-17T06:35:33
208,895,450
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
simple_models.py
version https://git-lfs.github.com/spec/v1 oid sha256:1571887989d70cc4f094ec3645b611b14c38ef38790c995b225e07bcc316075a size 3559
95904dc2b6ac2f23025f9ff36676fed66925a6d0
321f7f9507c08ef2f3211d6d742ad68bf2468fb6
/20200622/阶段案例--半自动爬虫开发/baidutieba.py
b732c4cf77351ecf3daa6d16690469cff2a29fc6
[]
no_license
Aimee888/python-20200613
678bb10fb736d54d84fdd058bf771ea5c5d9e263
452e2ca6b49c596595345e96a09ca08db8079c60
refs/heads/master
2022-11-16T15:13:01.990359
2020-07-14T00:15:52
2020-07-14T00:15:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,491
py
baidutieba.py
#!/usr/bin/env python # _*_ coding: UTF-8 _*_ """================================================= @Project -> File : 20200613 -> baidutieba.py @IDE : PyCharm @Author : Aimee @Date : 2020/6/22 11:17 @Desc :爬取百度贴吧刺客信条其中一个帖子的用户名,帖子内容, 发帖时间 用正则匹配分别抓取用户名,内容,时间,在写入CSV文件 弊端:如果不是一一对应关系,会产...
4becec931e058ff43ab8a481b81dc5dff9ec3b6b
24032d5909ad9b245e0f9f5684bf8cbac0e86724
/Exercicios/Mundo 02 - Estruturas de Controle/Aula 12 - Condições aninhadas/ex037.py
d51586cc8277320c78a9c039f60bf046d00ba12a
[]
no_license
fhmurakami/Python-CursoemVideo
35420493e1956c568473e67258cc263735f58708
90ead29fb3e0f8d3f8c94715c5270c9e1cdb2ffe
refs/heads/master
2021-03-30T21:42:11.215812
2018-03-13T18:23:30
2018-03-13T18:23:30
125,082,274
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
ex037.py
# Escreva um programa que leia um número inteiro qualquer e peça para o usuário escolher qual será a base de conversão: # 1 para binário # 2 para octal # 3 para hexadecimal num = int(input('Digite um número inteiro: ')) print('Escolha uma das bases de conversão:') option = int( input('[ 1 ] converter par...
cfee097ab662edd416c3593aa8073a9c273a3547
709c85bc2d747f6d3866b197e8aa7dd853edb18e
/test.py
d3dcc35453d7f4fb4b53cfc635fc7e1f4c9f1b71
[]
no_license
uclhenry/frequecy-of-words-used
31b3e5e8e759293291a00e036d8bd2dc3d53615b
5f487392f19b1a0a33fc8fd4bf7f6f54402eb189
refs/heads/master
2021-01-20T14:16:06.787439
2017-02-22T01:57:38
2017-02-22T01:57:38
82,748,118
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
test.py
# f=open("short.txt","r") #f.readline() data = [] for line in f: dec = line.decode("gbk",'ignore') data.append(dec) i=0 j=0 words = [] f.close() for line in data: line=line.strip() parts = line.split(' ') for part in parts: j+=1 print j,part if part!='\n' : ...