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
c989f03572d825da5cbde708015a01e13cac9237
0925cc6980a3b808a37052728150945320877037
/db_fixture/mysql_bd.py
e0efe623bb46ac04ab8d034e862f33e06ca600f4
[]
no_license
quanjq/web-interface-test-of-login
13a037d1bbbb6a6dc1da78233f5d4c56fa64662a
0bcb657739d213fab7c9e2a3abc2e89ec25e62db
refs/heads/master
2021-09-20T06:40:58.914212
2018-08-06T03:25:20
2018-08-06T03:25:20
143,671,921
0
0
null
null
null
null
UTF-8
Python
false
false
2,102
py
mysql_bd.py
# -*-encoding:utf-8 -*- from pymysql import connect,cursors from pymysql.err import OperationalError import sys sys.path.append('../db_fixture') # 需要连接的数据库的基本配置信息 host ='10.1.20.85' port =3306 user =u'root' password =u'root' db_name =u'guest' class DB: def __init__(self): '''u初始化,连接数据库''' try: ...
cd80817869804a16219e6ba3d953a234127bfeea
e39b4637e2c1291e40018d8ffd685c0ff3b66510
/PFAS-Map/rdkit_helper/mol_smiles_converter.py
fe20565844975816df635b572e0766c5ce9aecf7
[]
no_license
JuhaePark/PFAS_Map_MaDE_UB
cc71e6a4888a1e3dab254fc4b2809d1e3bdd2753
664235e99b2296b54f8273b46e1f893d678fbb7f
refs/heads/main
2023-03-17T22:25:10.798001
2021-01-18T13:13:38
2021-01-18T13:13:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
mol_smiles_converter.py
from rdkit.Chem import SaltRemover, MolToSmiles, MolFromSmiles, RemoveHs import numpy as np from .Charge_neutralizer import NeutraliseCharges from. isotope_remover import MolWithoutIsotopesToSmiles SALTS_FILE = "salts/Salts_from_epa_list.txt" def mol_from_smiles(smiles): try: mol = MolFromSmiles(smiles) ...
25a08766ef849716648c113c94579bc996e9f076
8a1477b50e12ec17cf21c4e350892b151583ffa6
/geom_impact_poly.py
c06b3154a84802162d52263b0a07e9e5fb3f4c93
[]
no_license
PyCOMPLETE/PyECLOUD
173d9153fc69f2aaffa961a563718dcc67cd0fc9
50d5de51dacb208b12eefd1dec42124f6dbdbc00
refs/heads/master
2023-08-17T15:31:50.667532
2023-04-26T09:14:50
2023-04-26T09:14:50
31,775,390
21
15
null
2023-08-10T09:39:58
2015-03-06T15:26:05
Python
UTF-8
Python
false
false
11,770
py
geom_impact_poly.py
#-Begin-preamble------------------------------------------------------- # # CERN # # European Organization for Nuclear Research # # # This file is part of the code: # # PyECLOUD Version 8.6.0 # # # Main author: Giovanni IADAROLA # ...
36f3c62c8d7a8ff4892cf43c952aecb5418e8f77
f7863c02970118d251846b896ddca4a7dff1066f
/hwt/hdl/statements/assignmentContainer.py
40461013541a9328fad0af1f351f5805663d1bf6
[ "MIT" ]
permissive
Nic30/hwt
6fea29e61422ed1c91ad924971b8f8e805d41b88
0c8e617fa7f56b261607c0acd9c977928e94276d
refs/heads/master
2023-09-04T06:44:31.103089
2023-08-23T13:05:21
2023-08-23T13:05:21
35,898,469
166
23
MIT
2020-07-30T15:16:54
2015-05-19T17:45:47
Python
UTF-8
Python
false
false
7,084
py
assignmentContainer.py
from typing import Tuple, List, Dict, Union, Optional, Generator from hwt.doc_markers import internal from hwt.hdl.operatorUtils import replace_input_in_expr from hwt.hdl.sensitivityCtx import SensitivityCtx from hwt.hdl.statements.statement import HdlStatement, SignalReplaceSpecType from hwt.hdl.statements.utils.list...
dd9e445cc1129fdb95f7de9332f699f03ce15e1f
d4a20ab5d3c6f17d81ef743c29e5dab048d918bb
/Homologator.py
447f07273f85dc8e5436ef308b628a49690e87bd
[]
no_license
lfeitosa/homologator
f6546574be5e5706bd5f72cd2f8ab0f092b7bb67
bce23f481f8019dd7bc94c1e8d95bbc8ca1b84ff
refs/heads/master
2020-09-08T02:38:40.413457
2019-11-11T13:37:12
2019-11-11T13:37:12
220,988,440
0
0
null
null
null
null
UTF-8
Python
false
false
11,528
py
Homologator.py
import json, requests, os import sys import smtplib as s from email import encoders from email.mime.text import MIMEText from email.MIMEMultipart import MIMEMultipart from dictor import dictor import requests def main(): banner() opcao_menu = int(input('QUAL OPCAO? ')) if (opcao_menu == 1): ...
4ba20a2abdecedcd48f2da8f2b03e259a11318fc
cfb5afe81701fa29c45c3fd759b0ebd46e2eb076
/onmt/tests/test_events.py
219d82a53a9495312d81e60a93ae0f3fb10576bd
[ "MIT" ]
permissive
OpenNMT/OpenNMT-py
00b533d451d6a2b907a41f531898c3d70830f16e
2b13ed1a0f50d4555d2e1d8729a2de42940be5e4
refs/heads/master
2023-09-03T17:44:52.635771
2023-08-29T13:18:14
2023-08-29T13:18:14
82,841,862
6,680
2,749
MIT
2023-09-13T14:00:30
2017-02-22T19:01:50
Python
UTF-8
Python
false
false
1,839
py
test_events.py
from tensorboard.backend.event_processing import event_accumulator from argparse import ArgumentParser import os class TestEvents: def __init__(self): stats = ["xent", "ppl", "accuracy", "tgtper", "lr"] metrics = ["BLEU", "TER"] self.scalars = {} self.scalars["train"] = [("progress...
bd041d82315f386ad788080461e24b53f4759279
3e1482e7ae1e3db73d85b2bd8a8afce044e3453b
/self_model/check_data.py
12fed7c4ab151a24ab234017b095f702799b859c
[ "Apache-2.0" ]
permissive
templeblock/ChineseASR
8e58ba0a03737fa65e0080cdc34ed8a105cf3904
2678055ca90da2178193e2153f0adbc1d8966ed6
refs/heads/master
2020-05-25T02:49:31.753763
2019-01-08T10:12:51
2019-01-08T10:12:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,833
py
check_data.py
#!user/bin/env python3 # -*- coding:utf-8 -*- from Utils import extract_feature class config(): base_dir='/data/dataset/' data_names=['aishell','st-cmds','primewords','thchs30'] data_dirs={name:'/data/dataset/'+name+'/' for name in data_names} wav2py_paths={} types=['train','test','dev'] for ty...
f496224193f4ea3d1b76b22140439cdcfafe45be
7b3746fd583a44b01c4f1b1357ee1ca07f3b76de
/server.py
78327b0e04fbf949befe1d282f6c806111d09aa8
[]
no_license
DRyan1995/dryan1995.github.com
2652b541a5da30683177a6ebeec628cee21f927e
f18ef5e4c54b95da61b2ec18658e5855df2cf424
refs/heads/master
2020-05-22T01:14:27.942872
2018-04-03T03:59:17
2018-04-03T03:59:17
53,734,367
0
0
null
null
null
null
UTF-8
Python
false
false
4,334
py
server.py
import sqlalchemy.exc, traceback, re, json from flask import Flask, request, render_template, Response, send_from_directory, session, app, redirect, url_for from flask_limiter import Limiter from flask_limiter.util import get_remote_address from flask_sqlalchemy import SQLAlchemy from datetime import datetime from func...
25c313220e8972d5a9bbb4f7ae78df3bec404402
c132d80cd80555a04d5468615d65b5628a0aeb0f
/testcase/t01_test_BespeakRelation.py
7f31995ddea1cdb90b0f62c70dbe8b2101a55ae0
[]
no_license
Zoxw/NeuronCICD
d612e1b76aabdb159508637a21df08aa0dc1d0d1
7461a28b2b0bbac55cb778c380a74b17286cd72e
refs/heads/master
2022-12-14T10:30:18.958815
2020-09-15T18:22:06
2020-09-15T18:22:06
292,877,292
1
0
null
2020-09-04T15:03:51
2020-09-04T15:03:51
null
UTF-8
Python
false
false
3,153
py
t01_test_BespeakRelation.py
''' Created on 2020年8月11日 @author: Administrator ''' import unittest, requests from common.base_info import today_start, today_end, Now_time, Now_NextHours from common.common_method import get_headers_after_login, TestResult from common.interface_url import bespeakList_INTERFACE_URL, bespeak_ADD_INTERFACE_URL login...
43417bf4568a07f825f2295ebfcb2ecc67d43609
6a03a98dabc8ef1bf301223d4e4d35c76b161bc8
/api/init.py
080e2f92a0c39aba2788f214fe2e95c64a4ac08c
[ "MIT" ]
permissive
wwcodecolorado/returnship-project-voting
4194ad0d4bf3376303f8126c9f012cd7d5c5ae8f
9931a2f60c7ec627ddb36075557802015b6e5cdc
refs/heads/master
2023-05-25T13:17:03.737396
2021-04-21T22:29:21
2021-04-21T22:29:21
252,880,655
3
1
MIT
2023-05-10T05:56:21
2020-04-04T01:21:58
Python
UTF-8
Python
false
false
48
py
init.py
from models import Project, Admin, Vote, Signup
bb67236e40754ac526866bf24aadbc63184c139b
9cf9d1e2970a541e89676fcbd1c75dfe99eadf77
/stubs/humanfriendly/__init__.pyi
f91d185104aa32c2a9955e3d28d7d82224d91a2e
[ "Apache-2.0" ]
permissive
rmayhue/sxrumble
334ea3b19b34cef165e40650283cbe5d65a3c9cb
60c96280a4936254173521f825b1229bacf20edf
refs/heads/master
2021-01-18T20:03:57.422305
2016-11-21T15:51:02
2016-11-21T15:51:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
92
pyi
__init__.pyi
class InvalidSize(Exception): ... def parse_size(size: str, binary: bool = ...) -> int: ...
e4b93a06d5b1d1138de7e5000f81bc7311269b89
490ea7fa2c7dd6fc4b556fbde34361513d74be32
/26.删除排序数组中的重复项.py
96e45757a861716486bff779df2322c1f4ce3450
[]
no_license
liured/leetcode_python
6c7e9ac2d16fec2f15d433931efc558d7b04da30
4959c43c6a60162f83f95f9f15225cc56205d18b
refs/heads/master
2020-05-05T02:00:47.485146
2020-02-08T13:18:10
2020-02-08T13:18:10
179,621,504
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
26.删除排序数组中的重复项.py
#记录前面不重复的元素个数res,,记录当前元素cur,比较数组后面的元素与当前元素是否相同,不相同则res+1,并赋值改位置,修改cur。 class Solution(object): def removeDuplicates(self, nums): """ :type nums: List[int] :rtype: int """ res = 0 if len(nums)==0: return 0 cur = nums[0] for it in nums[1:]: ...
4760eb40e108e59e7f8f4bc88f080a8432046964
3be42b83a15d022f5863c96ec26e21bac0f7c27e
/tensorflow_probability/python/vi/optimization.py
00b8c08b5b032de6fd060bba38948d73f9cc42ce
[ "Apache-2.0" ]
permissive
ogrisel/probability
846f5c13cddee5cf167b215e651b7479003f15d2
8f67456798615f9bf60ced2ce6db5d3dba3515fe
refs/heads/master
2022-11-09T10:53:23.000918
2020-07-01T23:16:03
2020-07-01T23:17:25
276,580,359
2
1
Apache-2.0
2020-07-02T07:37:58
2020-07-02T07:37:57
null
UTF-8
Python
false
false
14,299
py
optimization.py
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
5ecbe71646664ca5c77a76d8a0b6877f99671e74
d5b48163d236ca770be8e687f92192e2971397e8
/function6.py
1706003d636ebf284fe2411c0eafef507b49354f
[]
no_license
Kunal352000/python_program
191f5d9c82980eb706e11457c2b5af54b0d2ae95
7a1c645f9eab87cc45a593955dcb61b35e2ce434
refs/heads/main
2023-07-12T19:06:19.121741
2021-08-21T11:58:41
2021-08-21T11:58:41
376,606,535
0
0
null
null
null
null
UTF-8
Python
false
false
62
py
function6.py
def add(x,y): z=x+y return z a=add(5,5) print(a)
f9aa4b97e27b140c79139d63b7284ade9b18d253
4694197225d4a617bf5be7efba33a7b2b57298db
/ImageComparison/bin/Debug/algorithms/Histogram.py
6fcfa4612657b1d2a0a87d3dd00bbbdf92b56fee
[]
no_license
MarcoCestari-dev/Image-Comparison
703f6e19f84c932de2e20bf9710d9dfc9bb653c5
7f1a8942be744f640d62ec3d0518f2754bdc318a
refs/heads/main
2023-02-23T02:04:38.800133
2021-01-18T16:43:35
2021-01-18T16:43:35
330,704,559
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
Histogram.py
# import the necessary packages from imutils.paths import list_images import cv2 import pickle import os import sys from database.Database import createDb from database.Database import setUpdatedData #-----------MAIN----------- imageA = sys.argv[1] imageBDir = sys.argv[2] path = sys.argv[3] nameI...
03f52862ed7fb3419c7308cac9804004e9aed04a
e4e53aa573c1eaa1aa44df84a292d4f827725fe6
/controller/views.py
4bbcc6da5ce0d35303cbf45c40fdbad56da417b4
[ "Apache-2.0" ]
permissive
AhmedJB/Gestion
a8a25649e9abcd1509c8bb89e13388651223a7f7
c38c4d1fa229f5b0e0ef2667ff98864a28dc3241
refs/heads/main
2023-08-31T18:36:37.759101
2021-11-06T17:08:42
2021-11-06T17:08:42
401,918,274
3
0
null
null
null
null
UTF-8
Python
false
false
22,635
py
views.py
from django.shortcuts import render,HttpResponse from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status,permissions from .serializer import ClientSerializer, InvoiceSerializer, OrderDetailsSerializer, OrderSerializer, RegisterSerializer,ProviderSerializer...
8e6e857a4d96d09218325b19c06e9c312cb293b9
8bfcca6fe07c3397923339027e0926fb40fc0bea
/strings/frequency_analysis.py
fb23cc97f2e0dc9739c8a31a15d74f68b509e4d2
[]
no_license
AndreyZemskov/Algorithms
6d563514e8c423332026cc1d0390dea57b267e5e
9f4937962b4c9000a5c5e099406369b0287d14f3
refs/heads/master
2020-03-19T08:03:13.860700
2019-03-04T15:10:53
2019-03-04T15:10:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
frequency_analysis.py
N = 5 votes = {} for i in range(N): name = input() if name in votes: votes[name] += 1 else: votes[name] = 1 A = list(votes.items()) print(A)
acfa30542ee33e95c09c84fc2ac3437ed270739e
6ac7085e1dc194f4fe8bb4c3f1b259bf476c777e
/myshop/orders/urls.py
48ded5c14e26113fb74e10e96074018009ce2616
[]
no_license
goodbad3/myshop1-2-3
09472b70620883101f81f24ec8ebcd10e45f2b66
a7ac8495ed9a3979c15d7c4ee9088d44ba8ceb8b
refs/heads/master
2020-04-27T20:59:11.622088
2019-03-09T10:24:52
2019-03-09T10:24:52
174,679,078
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
urls.py
from django.urls import path, re_path from . import views app_name = "orders" urlpatterns = [ path('order-create/', views.order_create, name='order_create'), ]
c57e931960a403aaf70a10353066ff285e722e54
2a43f43d5d436bce4b17022ecacfe2a4ef6b764d
/users/migrations/0002_auto_20210713_1625.py
c27f75963bf668ecca2ed8687906e37b0b09c006
[]
no_license
BassamHatem/AutomaticEarabSystem
3feb29ce18e08d3389d93a0e0a25a9df6c41035e
469c42435cf09c7b31812f7a4233ef5b08bbe3e0
refs/heads/main
2023-06-22T20:12:50.307978
2021-07-16T14:55:03
2021-07-16T14:55:03
385,347,711
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
0002_auto_20210713_1625.py
# Generated by Django 3.1.5 on 2021-07-13 14:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='student', options={'verbose_name_plural': 'Stu...
ac50c81b0311c797fc1de503a1a352d2f5e0b8e1
eeb6ce7ce2d2b058c72d1dd05f31aa3157f692a1
/run.py
a60c3ba7234259a05a741760118ce2a4bbc2b2cc
[]
no_license
qiyang-ustc/2d-Ising-Dynamics
a894453a0421466bc42c692f4b2db8313ebae0c8
6b61dd784e6f5add6f9e7e0624b8e6bd10e3f61b
refs/heads/master
2020-09-16T19:04:55.644289
2019-12-15T08:50:31
2019-12-15T08:50:31
223,861,796
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
run.py
import os import platform import time L=8 Jnormalization = 1 dJ_set=[-0.1,-0.01,-0.001,-0.0005,-0.0002,-0.0001,0,0.0001,0.0002,0.0005,0.001,0.01,0.1] # dJ_set=[] for i in range(len(dJ_set)): dJ_set[i] = dJ_set[i]/Jnormalization steps=1600 for dJ in dJ_set: os.system("nohup julia ./main.jl {} {} {}& \n".forma...
66e74cba7750dc73c4ffa7576441f2b573bb3275
6a2b634c9503694a1c10ef7a9380f0d0d651fbca
/let771.py
f59dec178bcfd6de57b5629fc8a4971fcee66940
[]
no_license
fredfeng0326/LeetCode
10a2b77d64f46c7a30350421e8573d753ac4e4a2
f777f0224f188a787457c418fa3331c1e92d13e5
refs/heads/master
2020-03-21T02:31:44.747879
2018-09-10T03:24:59
2018-09-10T03:24:59
138,002,829
3
1
null
null
null
null
UTF-8
Python
false
false
467
py
let771.py
class Solution: def numJewelsInStones(self, J, S): """ :type J: str :type S: str :rtype: int """ i = 0 for Jitem in J: for Sitem in S: if Jitem == Sitem: i += 1 return i def numJewelsInStones2(self,J...
240a2b30775668ec7ca52d3d78aea0f344babca1
8061f95ae80ef2bb2d5586cbf2285df4bb409675
/mipt_overflow/src/manager_category/migrations/0002_auto_20180319_1703.py
6ca19b8c17605251e065448c4e4ac6e22cdb8900
[]
no_license
Highoc/technotrack-web1-spring-2018
b4379ac15e1d0da133c5d1c5c4701624f70850f9
1509ab47abeae8a5492abccdbde0ed4a25cd6a7d
refs/heads/master
2021-04-27T03:47:35.443124
2018-03-20T17:04:30
2018-03-20T17:04:30
122,719,597
0
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
0002_auto_20180319_1703.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-03-19 17:03 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('manager_category', '0001_initial'), ] operations = [ ...
a358d3da2a0f93ca8ea0b8a7755a87a1c0b4bb32
60054bd53292715890c639e904be0bd5b001ae38
/http-server-home/main.py
2c1d96e7e12b2243f5351824ae31ec6451683bd0
[ "Apache-2.0" ]
permissive
javier-ruiz-b/docker-rasppi-images
9dd00de2ff328af03e73cff0529bd564409ca7a1
4f4a992d56d49612cb6ae066af50d39db45bf20e
refs/heads/master
2021-09-10T19:53:30.541576
2021-09-06T16:32:35
2021-09-06T16:32:35
87,615,417
0
1
null
null
null
null
UTF-8
Python
false
false
1,481
py
main.py
#!/usr/bin/python3 from flask import Flask, json, request import os companies = [{"id": 1, "name": "Company One"}, {"id": 2, "name": "Company Two"}] api = Flask(__name__) lights = { "pc" : "0", "side" : "1", "tv" : "2" } lights_command = "pilight-send -p kaku_switch -i 13965290...
b8862ec2e8f11492e0c180e48f4838e3e1bae8ee
388b06251ef06bed346df530f12f8a37b649a1ce
/res/keuzemenu.py
2f8c571588c316a9382c2a78ef4d2e4213738abb
[]
no_license
BramvdnHeuvel/Spyfall
461b7528ae28589256290dca656464cda774b975
368b155d18ab2441e29281b50b4f527f926ce956
refs/heads/master
2020-04-08T04:44:42.817596
2019-07-19T19:40:52
2019-07-19T19:40:52
159,030,048
6
0
null
2018-12-23T09:36:59
2018-11-25T12:38:09
Python
UTF-8
Python
false
false
8,091
py
keuzemenu.py
events = [ { 'name': 'Lasergamen', 'desc': 'In Amersfoort een uurtje lasergamen met max. 13 personen... wie wil dat nou niet?', 'yes': ['Brom', 'Egdar', 'Mork'], 'probably': ['Meesje', 'Seneca', 'Harissa', 'Mickey'], 'maybe': ['Riineer', 'Swammy'], 'hmm': [], ...
0197bf4d2883d62670a0050f8ab63914b2defaa2
fbcdb1aae40c7296f5b5edfc2bc59a5669496df2
/leetcode/wordArrayStack.py
6c40a40fbfccc3f7c93e8da93adaead0ad7d3567
[]
no_license
Fr4nc3/code-hints
b9db1e6b4697fc6932d92e5977a8fbc8d2a8d591
931575a9bd7f843fca006c6616754b49161dcb50
refs/heads/master
2023-02-05T23:07:24.085366
2022-08-11T13:00:59
2022-08-11T13:00:59
52,673,727
5
3
null
2023-01-31T22:44:42
2016-02-27T15:37:48
HTML
UTF-8
Python
false
false
1,527
py
wordArrayStack.py
# You are given an array of strings arr. Your task is to construct a string from the words in arr, starting with the 0th character from each word (in the order they appear in arr), followed by the 1st character, then the 2nd character, etc. If one of the words doesn't have an ith character, skip that word. # Return th...
883bc59ce39adbb0552a1aa5f0af2385ffe124a4
26605e99468d7801f699cb6f4712ea0901eb3282
/P30_2.py
2e9e16677e19b35a21ae8a1760f84c1b945c45e8
[]
no_license
SoeZeng/FishC
9bfc0d276d24592690263a032df8d9a14b98d93a
0e7345556927049cabccea9c64f56f471a6f2551
refs/heads/main
2023-06-23T06:53:22.658989
2021-07-16T10:17:19
2021-07-16T10:17:19
386,594,167
0
0
null
null
null
null
UTF-8
Python
false
false
1,237
py
P30_2.py
# -*- coding: utf-8 -*- """ Created on Tue Apr 27 20:18:37 2021 @author: DELL """ import os def search_file(root_path,file_name): file_list = os.listdir(root_path) #print(root_path) for file in file_list: if file == file_name: file_path.append(root_path+'\\'+file_name) ...
0d22d9c99c3099ce0feede45c0ae6d5f8b3dfe0e
6a8eac5877ea4f782c094ad7b974d03e1dc86401
/src/brouwers/users/migrations/0006_user_customer_group.py
2ebf87ae65aa88bc2ea3739ac6bfd2b9a6c7a049
[]
permissive
modelbrouwers/modelbrouwers
cb2bbea34e70f4a1d9a7361dfe7131a20ea26b02
7713e78eeb31809e04b0b316ec8f8deed0808fc9
refs/heads/main
2023-08-06T10:49:33.804123
2023-07-30T20:28:34
2023-07-30T20:28:34
13,872,961
7
3
MIT
2023-05-29T15:33:06
2013-10-25T21:51:20
Python
UTF-8
Python
false
false
677
py
0006_user_customer_group.py
# Generated by Django 1.11.15 on 2018-12-18 16:30 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("shop", "0016_auto_20181217_2121"), ("users", "0005_datadownloadrequest_downloaded"), ] operations = [ ...
9bbf235c5abb08e433373e1a4431160acff5130c
8e88220c312c43550ca318871d3ccdfadfa4748e
/Solution/opencv.py
e941f1b68341c8a7bc0e8cb8f8b4e851aa2fc15f
[]
no_license
itsnikhil/sudoku_solver
8791d8a0fd214871697fc32afbdc59d6858265f8
3bb646849f8ca2b2b153150b103aef545abe392c
refs/heads/master
2021-01-20T07:35:37.481846
2017-09-25T09:38:44
2017-09-25T09:38:44
101,546,689
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
opencv.py
import cv2 import numpy as np from PIL import Image img = cv2.imread("/home/nikhil/nikhil/Sudoku/sudoku.png", 0) ret, thresh = cv2.threshold(img, 10, 255, cv2.THRESH_BINARY) print "Threshold selected : ", ret cv2.imwrite("./output.png", thresh)
d9aad6f209d2fa2d551180cb833bc5d47bd304a0
b24740ce58f8a970b69fa1efe56cf54f74a47612
/cogs/apod.py
ee62bf02c94d9e5332a76f8e318a1d0821faa4db
[ "Apache-2.0" ]
permissive
Itai12/Amanager
9e61a2db38172926c4ecfef469f69587e0c23f91
a470f92a645115ad51adaec4f517dd4d00b2c05e
refs/heads/main
2023-04-24T19:15:24.121092
2021-05-02T12:11:12
2021-05-02T12:11:12
363,394,764
0
0
Apache-2.0
2021-05-02T11:57:34
2021-05-01T11:35:27
Python
UTF-8
Python
false
false
1,147
py
apod.py
import discord, requests, json from discord.ext import commands from discord_slash import cog_ext, SlashContext class Slash(commands.Cog): def __init__(self, bot): self.bot = bot @cog_ext.cog_slash(name="apod", description="Afficher la photo de la NASA du jour !.") async def _apod(self, ctx): ...
ceefcba643e3eb7318b5871481c3e4782a1d45f9
6e04f50f02f265c0db42a2f0acced9c62dd1338e
/median.py
3033627202867a7323f7eb283df9f327703d6731
[]
no_license
Akashkumarsenthil/placement_practice_python
36c2f8d6a4186f2bc125c5c59fd92574952a4305
8a5425068c03f9fac13864509968018cde308033
refs/heads/master
2022-12-06T00:18:33.782794
2020-08-17T17:46:33
2020-08-17T17:46:33
262,390,224
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
median.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jul 30 22:45:37 2020 @author: akashkumar """ def median(arr): arr.sort() n = len(arr) print(float((arr[int(n/2)-1] + arr[int(n/2)]) / 2 )) if n%2 == 0 else print(arr[int(n/2)]) arr1 = [5,3,1,6,8,12] arr2 = [2, 4, 6] arr = arr1 + arr2 medi...
2936d0b3cb3a033164a210c7048a424815ed8bb1
e08e88d21e13f2d0ff25063c22c6ef2ed3088b50
/scenarios/register.py
84ca970cf7ece410973b3fb39ff7737972579af6
[]
no_license
imzengyang/selenium-ddt
0cbc6a401995709aa68706b5e3123ddc6bef4495
2d97a7dfc1466edd2b369ed009a7fa2b97431ae8
refs/heads/master
2021-05-11T14:19:06.449972
2018-03-04T09:29:20
2018-03-04T09:29:20
117,699,536
0
0
null
null
null
null
UTF-8
Python
false
false
2,247
py
register.py
import unittest import time import os from selenium import webdriver from ddt import ddt, data, unpack from library.getData import get_xls_data from library.getScreenShot import getScreenShotsPath @ddt class Register(unittest.TestCase): @classmethod def setUpClass(self): self.driver = webdriver.Ch...
7fa9a11bba064d9136820a7a87107acb4fde0412
46ce68cee50ba8ec8cf5fda1e3ecc1977a6051f8
/src/combine_weather.py
bb9f2f03f4bf0f758c10ac78764e279ced29f99d
[]
no_license
andypicke/JeffCo-OpenSpace-LotSpot-Analysis
c52ef5fc35182e5f1d1f65c84d5bbf28c7376a43
252d8e12cf85d1b73da92838bc3f618e910be5cd
refs/heads/master
2022-10-23T06:11:35.907783
2020-06-15T16:26:00
2020-06-15T16:26:00
263,195,400
0
0
null
null
null
null
UTF-8
Python
false
false
1,418
py
combine_weather.py
# Combine weather dataframes for each day (made w/ get_darksky_weather.py) into single combined dataframe import os import pandas as pd import pickle if __name__=='__main__': with open('./data/park_info.pkl', 'rb') as f: park_info = pickle.load(f) for park_name in park_info.keys(): print('C...
8c21095bc0260e5dac700d2c23fc5865dfcb64d9
7a06ffc2c3e1fe109d4321bbd62f28dc30ee5d19
/apps/booking/admin.py
b82899fef01e8df7c33f5e77782ffe0780172764
[]
no_license
adux/acrolama
1485265c9de6f163761dcba618abad241fe5574e
86dfb404e8d49d8f9da9c6084076306106034a8d
refs/heads/master
2022-12-31T20:11:28.128013
2021-06-09T21:53:12
2021-06-09T21:53:12
114,385,353
0
0
null
null
null
null
UTF-8
Python
false
false
2,556
py
admin.py
from django import forms from django.contrib import admin from booking.models import Book, Attendance, Quotation class AttendanceForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(AttendanceForm, self).__init__(*args, **kwargs) # populate the post self.fields["book"].queryset = Boo...
716748069a8a22d841a0c8effa74d400eefe66b9
a73b9c1fdb7f8f8d7f749c400078f15dbd04f7f6
/challenge/SQL注入/时间盲注bugku.py
ee68881a325b09c45269063f0d3fb4663295069a
[]
no_license
lossme/CTF
d4be8c7dd2368e8cd312b3782ccf15acca15f609
ac26cc80ca234b9608d36dbedb940b3db0bea749
refs/heads/master
2020-04-27T11:23:53.798527
2019-04-16T08:27:14
2019-04-16T08:28:33
174,294,079
1
0
null
null
null
null
UTF-8
Python
false
false
2,761
py
时间盲注bugku.py
""" https://ctf.bugku.com/challenges#INSERT%20INTO%E6%B3%A8%E5%85%A5 error_reporting(0); function getIp(){ $ip = ''; if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])){ $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; }else{ $ip = $_SERVER['REMOTE_ADDR']; } $ip_arr = explode(',', $ip); return $ip_arr[0]; } $host="localhost"; $user...
a4d3712f503c6cddda3e2186a46723757da14869
d1e217093ee70dd9f2911781ea7ac60eb923bbbd
/python/prod_HCalMIPCali_test1_Data_PromptReco2017_v1_DoubleMuon_Run2017B-PromptReco-v2_v1.py
77753a13fc5482bb6c9e83a7b93155a3112081e2
[]
no_license
nanlu06/MuonCalibrationHCalPhaseI
555375b45fbeabe849d5f2e458e723cec1a5e1b9
5c2df37fc8760cf38da0894b65a69559eb29e639
refs/heads/master
2021-01-20T21:12:49.593639
2017-08-29T12:19:33
2017-08-29T12:19:33
101,739,272
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
prod_HCalMIPCali_test1_Data_PromptReco2017_v1_DoubleMuon_Run2017B-PromptReco-v2_v1.py
from WMCore.Configuration import Configuration config = Configuration() config.section_("General") config.General.requestName = "prod_HCalMIPCali_test1_Data_PromptReco2017_v1_5f20d31dd66741a69a27f27941a283cf_v1" config.General.workArea = "crab_prod" config.section_("JobType") config.JobType.pluginName = "Analysis" co...
506b1b8193aaf3f96a0ea5e1c570c025c8fc7283
a1d3c713943baab47421edec1a8d076b53a24b3e
/sugang/urls.py
df80dbd821c1092d90270656d5fa57146f655799
[]
no_license
HyunAm0225/web-db-github
6b1085ac13e33614fabb353034f8b756394cfa8d
3e4fb6609e7ecf7432167bbf1af8f56bef7b2fb3
refs/heads/master
2023-01-06T23:54:54.881630
2020-11-11T09:15:46
2020-11-11T09:15:46
311,891,913
0
0
null
null
null
null
UTF-8
Python
false
false
1,331
py
urls.py
from django.urls import path from .models import Subject, Sugang_Student from django.views.generic import ListView, DetailView from . import views app_name = 'sugang' urlpatterns = [ path('', ListView.as_view(model=Subject), name='index'), # path('subject', ListView.as_view(model=Subject), name='subject_list')...
459de1d535289d28bdb205c2514ee64a8c8931b2
873a60119761b966d0ef8c7bf6ad104627f02736
/api/gallery/models.py
91bfb463806832f408e01582d45cba1a940fc01e
[]
no_license
dnitConcilia/concilia-api
61619c421acdef9a16aa1f0c9b76badbf5434f2a
71be300d97f125fffc43abc2e6fec51dcef929a9
refs/heads/master
2022-12-11T00:25:39.038951
2019-09-26T21:26:30
2019-09-26T21:26:30
100,710,173
1
0
null
2022-12-07T23:39:21
2017-08-18T12:33:40
JavaScript
UTF-8
Python
false
false
2,878
py
models.py
from django.db import models class Photo(models.Model): title = models.CharField("Título", max_length=200, blank=True, null=True) photo = models.ImageField("Arquivo", upload_to="gallery/photos") legend = models.CharField("Legenda", blank=True, max_length=300) credit = models.CharField("Créditos", blank=True, max_l...
f5a38bbf1c0f1c6d4097d9f75ab881abb768e397
deb3bde7840994e4fb30d7fe1727eb7d86380b5b
/depickling.py
3b15caef66433c59b2d26d80e2f49d894cfe03aa
[]
no_license
mkodekar/PythonPractice
bbb83b1f3ee1da3c7abcf55cf96f01ca05369974
ab0bff44730019ab24d6b89063dacafa946d392f
refs/heads/master
2021-01-19T04:28:30.580334
2017-04-20T16:51:01
2017-04-20T16:51:01
87,375,016
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
depickling.py
import pickle as pick pickle_in = open('dict.pickle', 'rb') example_dict = pick.load(pickle_in) print(example_dict) pickle_in.close()
7a100535db0e2dd2bc34841495a03fecf5cbc5cb
a17029a6dde22f1679fcdb2cdfcf8c304a0abf7a
/tuple.py
49dc81e0e6308104124699126d668e372b3a9426
[]
no_license
kerbinlee/Ray-Tracer-Challenge
aa86cfd27ae5c9d028895bc1c04d605b33797ce3
aa91ed6721957b2aebd3ba81d9fe488aa5048ea6
refs/heads/main
2023-04-10T06:14:01.101320
2021-04-25T23:39:03
2021-04-25T23:39:03
317,085,361
0
0
null
null
null
null
UTF-8
Python
false
false
2,450
py
tuple.py
import math from constants import Constants class Tuple: def __init__(self, x, y, z, w): self.x = x self.y = y self.z = z self.w = w def __eq__(self, other): return math.isclose(self.x, other.x, abs_tol = Constants.epsilon) and math.isclose(self.y, other.y, abs_tol = Co...
1e6192d796005b154fa890145fb1a55ac39dbeaa
d7757d2215d00307504426ccf87ceaeb1f4536ed
/1214.py
a8d9f455d09b10931548adeb088e4e03716084fe
[]
no_license
paulaandrezza/URI-Solutions
e23a69164cbdbac636db73a3ba29cabb08a32db6
7694fa27d68b2ec2dbd426505ab680fb8ea9ace7
refs/heads/master
2022-10-29T06:45:27.791115
2020-06-06T00:35:17
2020-06-06T00:35:17
265,044,304
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
1214.py
c = int(input()) p = 0 while p < c: q = 1 media = 0 cont = 0 n = input().split() while q <= int(n[0]): media += int(n[q]) q += 1 media /= int(n[0]) q = 1 while q <= int(n[0]): if int(n[q]) > media: cont += 1 q += 1 ...
d98a6b5ab0e2531d56d4ff2963b693d38cd73385
3df958f2d0197ee7df4fcde7c225be9e07fa3392
/object-detection/transformers/utils/misc.py
42f3da424fe8fc7e699e72a5cf312b95a4e425db
[]
no_license
danikkm/notebooks
1e4d6af747dc98a3e12cb48e7971862c6e20ee9c
5da5e11356ef7c5365903fc66c083e8beceda691
refs/heads/master
2023-04-23T02:00:56.780083
2021-05-06T18:21:53
2021-05-06T18:21:53
286,275,299
0
1
null
null
null
null
UTF-8
Python
false
false
2,609
py
misc.py
from argparse import ArgumentParser, Namespace from collections import defaultdict from time import time from typing import Dict, List, Any import numpy as np import torch from torch import nn, Tensor from torch.utils.tensorboard import SummaryWriter from .boxOps import boxCxcywh2Xyxy class MetricsLogger(object): ...
2dccc0ac68664bb18d9c8673e76d12fb2c318ea8
2914f8ff4ccbdd2c345daf99548bdfa983c0e864
/app.py
bf660433d452ae04ad4fab7bd3fb36c157c3e173
[]
no_license
sanju1623/stock-profit-calculator
6213ad0b7969af1e5a26f0d6a1317cbddf22f2a7
bbb137790fb749bb34ca78b5fa76838b0db1355f
refs/heads/master
2020-04-03T13:15:24.276570
2018-10-29T20:49:50
2018-10-29T20:49:50
155,279,098
0
0
null
null
null
null
UTF-8
Python
false
false
1,529
py
app.py
from flask import Flask, render_template,request app = Flask(__name__) @app.route('/') def input(): return render_template('input.html') @app.route('/post',methods=['POST']) def calculate(): ticketSymbol = (request.form['ticketSymbol']) Allotment = (request.form['Allotment']) Final_share_price = (...
19ff353b1182cf94d04bbf6b331ac7ba41865aca
ebb139c5a5433ca45c04b67cee61484491ff51ac
/python-flask-cache/swagger_server/controllers/classes_controller.py
0e477e4fb4a7ea6c60e5e0eaa254f14055ccc553
[]
no_license
phuthien007/api_swagger_talent5
b60b2e194bfe385999b1fd0d3ff5d20900fff542
0f908490ce21cb9cc82371f382f42d680d302b69
refs/heads/master
2023-04-04T21:09:31.911425
2021-04-25T17:07:10
2021-04-25T17:07:10
345,924,580
0
0
null
null
null
null
UTF-8
Python
false
false
9,166
py
classes_controller.py
import connexion import six import json from swagger_server.controllers.users_controller import * from swagger_server.models.classes import Classes # noqa: E501 from swagger_server import util from swagger_server.controllers.utils import * from swagger_server.controllers import teachers_controller, courses_controller ...
d1c0587f0daedb8c261318fe6b3b66d52dec37e8
3e12f393f1914386331f7934405c6da5f6a01f43
/main/main.py
ee8e78b818480b158eab0b3e3224c7fc2cb0fad4
[]
no_license
zmh908264302/souhu_text_match_2021
337e04d4b90cc6cc49d308e1a213564010b196e6
4ff665d486b3091168f7f81c6377996ba17ea99d
refs/heads/master
2023-04-25T11:06:00.403091
2021-05-17T14:14:19
2021-05-17T14:14:19
368,202,766
0
0
null
null
null
null
UTF-8
Python
false
false
1,015
py
main.py
from transformers import AutoConfig import config.args as args from Io.data_loader import create_batch_iter from net.longformer_classify import LongformerQA from train.train import fit from tools.porgress_util import ProgressBar from tools.model_util import set_seed import torch def start(): args.n_gpu = torch.cu...
a48b9c888766ce05fb93eacaab2de1d873273f1c
26d6175f30c7cfac5b92a58dfc96dbc5f2fcf830
/exp/dictionaries.py
08afbc576370b4a56c80f24feae11f3eee525227
[ "MIT" ]
permissive
swissunicorn/ML-covid19
776dcf6f848d68e88e466b09b6ab439c733cafb7
fc9bc02427876e23d6fd7ef5bae4ab68b1c45096
refs/heads/main
2023-05-15T02:41:42.717341
2021-06-09T23:47:14
2021-06-09T23:47:14
375,516,512
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
dictionaries.py
# in this file I will make dictionaries of frequencies for each country being another's # nearest neighbor. # then I will graph the cases of the highest ones to get a visualization for what the most common # nearest neighbors' cases actually look like, and maybe some intuition for why they are the nearest neighbors. i...
e3ecf74db076341fcc3b7de309689a725acfd0ff
f2487f69cf2a9e893eaefb2d4e9488f7526e9c61
/src/Core/Rectangle.py
aa9b718f9f6e4cb0acfff2763173e46c08869713
[ "MIT" ]
permissive
rozifus/threejs.py
09f8b3d38c0eba87cc65705ebb67af6943c319ed
7efaafb0882930d163432f5197e6c104c22d64ab
refs/heads/master
2020-04-05T03:45:12.291144
2014-05-04T14:45:40
2014-05-04T14:45:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,445
py
Rectangle.py
import math class Rectangle: def __init__( self ): self._left = 0 self._top = 0 self._right = 0 self._bottom = 0 self._width = 0 self._height = 0 self._isEmpty = true def resize( self ): self._width = self._right - self._left self._h...
f7a234fc80f1bfe313279e80dfdbd230fb638a11
026c33c05f65da96945ee7456ae05e60b9ad3e4b
/creational/builder.py
bcab25ec06ead128d4cab78fbf00c882c79e7272
[ "MIT" ]
permissive
kimgea/design_patterns
9321c088794d122d9f6e94cc0eed57202ebecbfb
def656f50c4f26e25f8a0d2920041c2f002dc2d0
refs/heads/master
2021-01-10T08:26:41.429137
2016-11-05T12:03:35
2016-11-05T12:03:35
48,045,376
0
0
null
null
null
null
UTF-8
Python
false
false
1,313
py
builder.py
class RougeCap(object): def get_armor(self): return 5 class WarriorHelmet(object): def get_armor(self): return 15 class Dagger(object): def get_attack(self): return 20 class Sword(object): def get_attack(self): return 10 class NPC(object): def __init__...
17254615628d69a6e5e984f635d3741d639494b3
9815f5f757db71094f54d0f93fde8e2053b5805c
/prime.py
b7902e54af901b3aa616e5168b6525ac116209b8
[]
no_license
Futhepr/2.1_PrimeNumbers
45a1db8fb16cbeb4b3ac0a84080e254d0367d9ba
4f55bc693fb9ee6d7f092cdad3645b2d0ad229bb
refs/heads/master
2020-09-04T22:29:55.168974
2019-11-06T09:46:57
2019-11-06T09:46:57
219,909,875
0
0
null
2019-11-06T04:11:21
2019-11-06T04:11:20
null
UTF-8
Python
false
false
290
py
prime.py
import numpy as np N = 10**7 file = open('prime.txt', 'w') arr = np.zeros(N) lim = N**0.5 j = 2 while (j <= lim): i = 2 while (j*i < len(arr)): arr[j*i] = 1 i += 1 j += 1 for i in range(2,N): if (arr[i] == 0): file.write(str(i)+' ') file.close()
206162c32455cc3c4296b9fa2260d1c6dfa74d00
47efc9273914a20b233c0cb1e7bf4a5d67727685
/machine learning/hw1-decision-trees-allpasscool/code/metrics.py
29a2fbca2d27ada42fbbd301cc683a763f55c4cc
[ "MIT" ]
permissive
allpasscool/YishanLin.github
606af5e7296efc9c50257439dd2aabdea453848b
e504e12b620464fdf189043006f868078ef6f6ab
refs/heads/master
2022-06-10T23:40:46.984659
2019-10-07T05:01:01
2019-10-07T05:01:01
110,800,882
0
0
null
2022-06-06T21:13:55
2017-11-15T07:42:03
Python
UTF-8
Python
false
false
4,351
py
metrics.py
import numpy as np def confusion_matrix(actual, predictions): """ Given predictions (an N-length numpy vector) and actual labels (an N-length numpy vector), compute the confusion matrix. The confusion matrix for a binary classifier would be a 2x2 matrix as follows: [ [true_negatives, fal...
900eedb4068ae4103fb310da3fc2e2f017af3f76
eda430749310cfda794885acac883b128eff9177
/ceshi/6-02-02.py
08339fcc907524ab7a177bbaa704ffef21095001
[]
no_license
ningjingzhiyuan1993/test
123d3bb74db72a016d67eea589534ca5088c10fa
b25bdf523aec8557e691362af88c4d2ff69986d8
refs/heads/master
2021-06-18T21:14:37.881031
2019-06-21T06:03:17
2019-06-21T06:03:17
130,627,560
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
6-02-02.py
class Student(object): def __init__(self, name, score): self.name = name self.score = score def get_grade(self): if self.score >= 90: return 'A' elif self.score >= 60: return 'B' else: return 'C' lisa = Student('Lisa', 90) baobo = Student('baobo', 59) print(lisa.name, lisa.get_grade()) print...
9efe9a0abf8e1f19c7beec0ea2f0c2dbaf87d5b6
b047437496ceeacd7d3bbee25e842c521dd3f48f
/HCP_task_fmri_cnn_tensorpack_changesize_bk4_motor_cedar_Nov.py
1f9262fcf85a0015d4050a6465a84dccba101aff
[]
no_license
laraibazadab/benchmark_cnn_fmri
4ee665892a04a99160b929eb208ff44d4ded2806
bc3a11438fbf610a6c28688df3a2cb43af31e079
refs/heads/master
2022-03-25T07:42:41.547059
2019-12-19T22:35:16
2019-12-19T22:35:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
65,753
py
HCP_task_fmri_cnn_tensorpack_changesize_bk4_motor_cedar_Nov.py
#!/home/yuzhang/tensorflow-py3.6/bin/python3.6 # Author: Yu Zhang # License: simplified BSD # coding: utf-8 ## ps | grep python; pkill python from pathlib import Path import glob import itertools import lmdb import h5py import os import sys import time import datetime import numpy as np import pandas as pd import ni...
d72cd696d28c26a1230eb68370a7e2987a0614a6
3fd7ec6431e71abb54605cd5e9fc14271d794671
/03_ThreeWayAndTkinter/main.py
139ee4bfa3f8e3c262e726c21e81be2c28b91604
[]
no_license
DeadSonger/PythonDevelopment2021
f0adcb8c787987fdf4117a49af4b92d851cc7926
7da4bd66e7c64f99eb6cf50a159ab96256468add
refs/heads/master
2023-03-27T18:13:34.323020
2021-03-28T22:21:59
2021-03-28T22:21:59
340,717,989
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
main.py
from argparse import ArgumentParser from application import Application from model import TagModel def main(width: int, height: int): game = TagModel(width, height) game.shuffle() app = Application(None, game) app.mainloop() if __name__ == '__main__': parser = ArgumentParser("Tag game") par...
00a1c1c6ded56acb53304fc42f299423527ee5c1
bf14dc99265d5cf77fdc753eb83a0ddfef7fa0ad
/constants.py
c80713f0422ba63eea5c97a580a2b52c595bbc3e
[]
no_license
go2011/pygo
b8ebd1494bc302af5ce53fb3d1cfee9b4024be6d
f5b1d24384079102d689cf2becb19f95e0ae3c3b
refs/heads/master
2021-01-06T20:42:34.631589
2014-06-19T21:36:51
2014-06-19T21:36:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
constants.py
# here I define stuff that will come in handy throughout the project # best to use names rather than values as they may change EMPTY = 0 BLACK = 1 WHITE = 2 OFFBOARD = 3 # constants to reffer to standard indexes in 3 dimensional grid (currently working only on 2d) # always use in square [] to standardize and increase...
80bda290a37ef0f38002a986978064f39149cd10
edcc41e2a8a6a550e7ab77fe8ded8d9e24527081
/nonogram/venv/lib/python3.5/site-packages/nonogram/src/core/solveurs/linear_programming.py
dac930dd1eef3f9338b646a26a26b0d2e39d1697
[]
no_license
temarales/python_labs_vsu
b59d544e7db7abd3a9f040dc795d9661a27a37f8
3db3f3c36a0a4d7843200e069dfaa0be37b4dc40
refs/heads/master
2020-06-07T00:37:32.652566
2019-06-28T05:12:01
2019-06-28T05:12:01
192,885,737
0
0
null
null
null
null
UTF-8
Python
false
false
7,903
py
linear_programming.py
# -*- coding: utf-8 -*- """ Resout un nonograme en utilisant des méthodes de programmation linéaire. Ce module contient toutes les fonctions utiles pour répondre aux questions de la seconde partie du projet. """ from __future__ import print_function import numpy as np from time import time from gurobipy import * from ...
81a1f49814f5c1498e019ef216ec994c6764415a
2e48a197be12664c54a6ff63f2245be591a430d0
/website1/page/urls.py
1b8b84354bd1566066c14e4ddb8750da7f9a4eb9
[]
no_license
ankushbanik1/django-tutorial
98f0e29abe4f7970225dbf2ba3d5f3bd823b7667
7ce258a97c1bff7c459c1e693c52a8af857af8c2
refs/heads/master
2020-04-07T00:43:03.022308
2019-07-30T17:56:27
2019-07-30T17:56:27
157,915,541
2
0
null
null
null
null
UTF-8
Python
false
false
840
py
urls.py
from django.http import HttpResponse from django.conf.urls import url from . import views from django.contrib.auth.views import LoginView,LogoutView from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth import views as auth_views urlpatterns=[ url(r'^$',views.home , name="home"), url...
1b1f2e34cff8d88e1831ff0119812ef6ba4814be
5a57635e76016a2a3583adcd8dcb828e401a1d6a
/hw3/Submission/hw3_Q3_Q5_Q6.py
b3207e2f1d668cecbb2e85eb9b5416ead5af7104
[]
no_license
jesseyli/CS189
513e9ebddee7fc0de83fd4a5928b68540482aac2
b3fe3967d3df0ab11aaacf061042f961f17e7ada
refs/heads/master
2020-04-05T19:02:59.683815
2016-05-07T03:24:25
2016-05-07T03:24:25
56,756,143
0
0
null
null
null
null
UTF-8
Python
false
false
13,519
py
hw3_Q3_Q5_Q6.py
import matplotlib.mlab as mlab import numpy as np import matplotlib.pyplot as plt import math, random import scipy.io # Problem 3 ''' X1 = np.random.normal(3,3,100) X2 = (X1/2) + np.random.normal(4,2,100) # Part (a) mu = [np.sum(X1)/100, np.sum(X2)/100] print('mean:\n', mu) # Part (b) sigma = np.cov(np.vstack((X1,...
aafb0a1a4000676b66643766196f2364ba9ab700
86b3991da6d9f65865c3d7648b520779c1c94f09
/backend/home/views.py
972e3a339ecf10407ed7d3879b2d310ffd9cbdbf
[]
no_license
ITK13201/steps-monitoring-server
a529b7fbca18fc6f19ec3daba864846018227fa9
94bd23132db281369c47cb90268aae90ef398857
refs/heads/master
2023-06-20T04:09:38.719247
2021-07-22T09:13:19
2021-07-22T09:13:19
377,789,218
0
0
null
null
null
null
UTF-8
Python
false
false
1,377
py
views.py
import logging import pprint import datetime from django.http import HttpResponse from django.views import generic from django.utils import timezone from backend.utils.generate_figures import plot_figure from backend.steps.models import Step logger = logging.getLogger(__name__) JST = datetime.timezone(datetime.timed...
4aa628e3b6e6aafaecdb6f7a99c816a5710d8e7a
a3b1175551d617a20952e961208d6f8a1f56b318
/core/kdialog.py
53d44aa8e094c3d7a9e3dcd823ee0afd66c1372e
[]
no_license
hieuliemfe/esms-desktop
59fff6afdd22f4af0e37dd3f1d777c8bb49da7cd
54627292e030f7bdabae6500f862f2ccdc7f3e4f
refs/heads/master
2023-01-02T18:38:12.121484
2020-10-30T10:12:57
2020-10-30T10:12:57
299,920,336
0
0
null
2020-10-18T19:32:24
2020-09-30T13:01:04
Python
UTF-8
Python
false
false
197
py
kdialog.py
from kivymd.uix.dialog import MDDialog from .base.kobject import KObject class KMDDialog(MDDialog, KObject): def __init__(self, **kwargs): super(KMDDialog, self).__init__(**kwargs) pass
0406c111c95234d45dc292aaafd5a16c8ce7718f
0f4c24d54845485ab9c3c05ca523df8d07045478
/VEXcode-VR/Examples/Using-Sensors-and-Loops/Using-Sensors-and-Loops.py
a15bb48b14901253932477ff2e9e179ab7df6e1a
[]
no_license
TriPham2021/VEX-Robotics
5eddde5bf2b41c519e99b999e4fb0ce6e24bc373
6bbdc9b1d5da2d46acd0a99c19f0cb171f40edfd
refs/heads/main
2023-07-15T05:49:22.926499
2021-08-29T03:46:22
2021-08-29T03:46:22
392,727,571
3
0
null
2021-08-04T14:52:55
2021-08-04T14:52:55
null
UTF-8
Python
false
false
1,230
py
Using-Sensors-and-Loops.py
# ------------------------------------------------------------- # # Project: Using Sensors and Loops # Description: This example will use the distance sensor to # determine which color line to draw based on distance # Configuration: VR Robot # #...
f49f3c8b2edbd454dedd3fe74308e3c8327abf7e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03162/s933193658.py
1744ecf9782b25da1cbb8c527ffcdba577795e11
[]
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
413
py
s933193658.py
def edu_dp_c_vacation(): n = int(input()) v = [] for _ in range(n): v.append(list(map(int, input().split()))) dp = [[0]*3 for _ in range(n)] dp[0] = v[0].copy() for i in range(1, n): for j in range(3): for k in range(3): if j == k: continue ...
b45cd7e4161423d9101d811eca274a894b3510fc
5723ed6fe85e072bd348b930b64c504e4dd63dfa
/net_aplication/src/CmdParams.py
7dadc3de677431207340ccc31412653fa27a5779
[]
no_license
Basill-ini/Specialist
199a1fd71b348bf50fb8a5b7a29042378142cd8e
c805da457038022d9bb79629debdcfa8f4dc90ca
refs/heads/master
2022-07-17T06:41:53.480957
2020-05-15T14:16:48
2020-05-15T14:16:48
240,296,431
1
0
null
null
null
null
UTF-8
Python
false
false
2,329
py
CmdParams.py
#!/usr/bin/env python 3 # -*- coding: utf-8 -*- import argparse import logging from pathlib import Path class CmdParams(object): def __init__(self): self.__args = self.__get_parser().parse_args() def __get_parser(self): parser = argparse.ArgumentParser(description='Here may be your descript...
09395a9809f6035c01c9c32c34b173a109ea36d4
16e8578115fec18cdb79d931272c8e1f639c4183
/Estruturas de Dados/Lista_duplamente_encadeada.py
78168dc56a21c32ba68cfeba364e36b422a84f64
[ "MIT" ]
permissive
GabrielCavalcanti13/Algorithms__Data-structures-IF969
81a9249cceab804d5b32eded783d2a45ff35d4aa
4573013dcad4c7c98ed9e5e504737f092e1d79e4
refs/heads/master
2020-03-24T19:35:50.435116
2018-09-10T21:12:16
2018-09-10T21:12:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,935
py
Lista_duplamente_encadeada.py
''' Universidade Federal de Pernambuco (UFPE) (http://www.ufpe.br) Centro de Informática (CIn) (http://www.cin.ufpe.br) Graduando em Sistemas de Informação IF969 - Algoritmos e estrutura de dados Autor: Gabriel Cavalcati (gcm2) Email: gcm2@cin.ufpe.br Data: 15/04/2018 Copyright(c) 2017 Gabriel Cavalcanti de...
b68834511e72af206fce1f9be09d12fecf1eaa87
aef50b14e3c1019cda3c0f0e9c292ca693cdbe35
/Ch.12 - Web Scraping/12- textInput.py
8da0c143618cc751b810cd91e605a869bbf6d691
[]
no_license
Ttibsi/AutomateTheBoringStuff
52692864767294a356b4afc62fa803e46fc68f2c
cfc1798b0ac31ea7c9b05bb1c35083b458a60b82
refs/heads/master
2023-08-11T07:26:47.256003
2021-09-17T12:59:53
2021-09-17T12:59:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
12- textInput.py
# Text input from selenium import webdriver browser = webdriver.Firefox() browser.get('https://login.metafilter.com') userElem = browser.find_element_by_id('user_name') userElem.send_keys('user name here') passwordElem = browser.find_element_by_id('user_pass') passwordElem.send_keys('password') # This is the same ...
5614033d635d934fb54cf839e627f0e39e55cc21
1ae0f4fc29aa127dd4874237e9e980447ebe61c6
/tap_itunes/utils.py
3ef249b1249edba2f8802d2e6363616e73984730
[]
no_license
jgooly/tap-itunes
66c319bf238f9a2b9693a5dd88408266628dd791
58079cd4c8f16933b448faa72c0d860674c574e7
refs/heads/master
2020-03-27T01:57:27.054002
2018-09-04T21:30:44
2018-09-04T21:30:44
145,756,610
2
0
null
2018-09-04T21:30:44
2018-08-22T19:59:48
Python
UTF-8
Python
false
false
4,633
py
utils.py
"""This module contains a small collection of helper functions.""" import json import os import re import singer import pendulum def get_abs_path(path): """Returns the absolute path.""" return os.path.join(os.path.dirname(os.path.realpath(__file__)), path) def get_json(path): """Loads a .json file.""" ...
1f9912f311e74d17d8df755ceb550ebd2b3c521e
172b175760dc1a19b3b8e7130f0b88e1f4ee63cf
/mpi_invert.py
1b6d3452b686fc6f97d7270049f1427646f9fdb7
[]
no_license
ivanzmilic/hazel_rout
a637d9ece3876a3aa2323e1aaa70478e94d0bae0
a4b7eb0f4bb94fb3e8d840069c2d20497989d4d1
refs/heads/master
2022-07-31T06:29:43.673747
2022-07-25T12:04:46
2022-07-25T12:04:46
210,447,097
3
1
null
null
null
null
UTF-8
Python
false
false
246
py
mpi_invert.py
import hazel import h5py import sys conf_file = sys.argv[1] iterator = hazel.Iterator(use_mpi=True) mod = hazel.Model(conf_file, rank=iterator.get_rank(),working_mode='inversion') iterator.use_model(model=mod) iterator.run_all_pixels()
e5c29e72620fa721effff2ec66930753dc861c06
3212463ecb4825f510e674e1e3ad817c10f672c2
/generate_scene_poses.py
ab1cd14bbcc030b1a954ede0d0c5509ddad1c718
[]
no_license
zinsmatt/Scene-Generator
e7b49b8f54e69f09724cdc76b4f773637d2f7524
8958af4dedc86dfe41a4f654a8bad78d745e892c
refs/heads/master
2023-03-08T09:42:55.351113
2021-02-22T15:33:19
2021-02-22T15:33:19
273,195,992
0
0
null
null
null
null
UTF-8
Python
false
false
7,380
py
generate_scene_poses.py
import bpy import os import numpy as np import cv2 import json import glob from bpy_utils import * clean_obj_lamp_and_mesh(bpy.context) mode = "train" # mode = "test" fp = "/home/matt/dev/Scene-Generator/output_data/" + mode table = load_mesh("/home/matt/dev/Scene-Generator/data/table/table.obj") mug = load_mes...
5869514392557e7a6bdc077d74ce2aaefdeb23c5
d3e11b4b6d05a89ad68ffc9b483aba17387a31aa
/1Dmodel.py
e3b91bd42fb1684496b10f9ae2b576c9d735d536
[]
no_license
vitorhirata/eco-evolutionary-model
3105dac87c6081ac4bc58be9e438cf94a0ced155
1a4e8bfd1ba35d500bd7d1caabc35f72c6386ab1
refs/heads/master
2022-01-20T13:15:57.723167
2019-08-21T00:46:30
2019-08-21T00:46:30
72,113,488
0
0
null
null
null
null
UTF-8
Python
false
false
1,359
py
1Dmodel.py
from numpy import * import matplotlib import matplotlib.pyplot as plt from scipy.integrate import odeint c=1.0 b=5.0799 beta = 5.831E-6 delta = 1.6369 lamb = 150.54 ni = 14000 # 7500 # 14000 r=348.145 T=0.00013 P=1 b=b*T*P c=c*T*P beta = beta*P ni = ni*T lamb=lamb*T*P r=r*P t_max = .0008/T t = arange(0,t_max, .00000...
e3cb158fc74742501bebae38c940ae93075203a3
152243a8a816f588c1a59c4fd92493c0f7736f3b
/count-servers-that-communicate/count.py
5ff00d8b03e76de73b3ac296101a1e7eb51dd4d9
[ "MIT" ]
permissive
HeftyB/code-challenge
442de7adddd00c3dbefadb919e567aa56f5dc5b6
e23d9182f1da9bbd9bf3d2d97a22652513ec1b7d
refs/heads/master
2023-05-01T17:16:24.294954
2021-05-20T02:16:34
2021-05-20T02:16:34
297,471,495
0
0
MIT
2021-01-29T04:54:26
2020-09-21T22:04:56
Python
UTF-8
Python
false
false
2,533
py
count.py
""" You are given a map of a server center, represented as a m * n integer matrix grid, where 1 means that on that cell there is a server and 0 means that it is no server. Two servers are said to communicate if they are on the same row or on the same column. Return the number of servers that communicate with any other...
4c5b242aa60cdc6069fdf6d030d152d8299655cd
287add3abe5c6cc75dccbccd06e8b2a875e87481
/cli_interface/tqdm/ex01_tqdm_basics.py
5d25c5b6567d01a67ba6146109396b53ff226755
[ "MIT" ]
permissive
it-engineer-me/pyneng-examples
23db0cba8e839fd608430d71a0983f8ae6dc7ce0
736a55dc92b3f8fdc33d07d424f9b8c07143e84d
refs/heads/main
2023-08-26T07:38:10.302257
2021-11-04T18:29:25
2021-11-04T18:29:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
ex01_tqdm_basics.py
from concurrent.futures import ThreadPoolExecutor, as_completed from pprint import pprint from scrapli import Scrapli from scrapli.exceptions import ScrapliException import tqdm import yaml def conn_ssh_threads(devices, command, limit=3, progress_bar=True): result_dict = {} with ThreadPoolExecutor(max_worker...
f6d1773a531ddb72e6277ef4b1b182297ab0c938
762d09461230f1ab603563335073304b59c43f5d
/api/tasks/tasks.py
a2115430da6312de0bada8213150fd01b2f89f84
[]
no_license
ThiagoRuis/chat-api
8a1b3bdcb9ff249d2037b5075eee7e33aeba2fbe
87c2829c825a59489469a49ab7a2c349da08bc9b
refs/heads/main
2023-07-21T14:14:28.524514
2021-09-01T19:05:18
2021-09-01T19:05:18
362,982,571
0
0
null
null
null
null
UTF-8
Python
false
false
2,186
py
tasks.py
import json import signal import socket from contextlib import contextmanager from celery import Celery, shared_task from celery.utils.log import get_task_logger from kombu.exceptions import ConnectionError, HttpError, OperationalError from mongoengine import connect from tasks.celeryconfig import Config from models ...
897697e14510ed07b7b385ba9ff39a5606665015
4da0631d5a809ebf058122a633a6436b1518b24b
/server/models/board.py
1997b409409f7141b321cf82ba2e01049af60dd4
[]
no_license
djolez/SEEDS
5483d1a07f8dd9194afc01e4c3e4792434480821
e4d8b56635420a4c8c1bbf5b3ae132d71c4fe7fb
refs/heads/master
2020-09-08T16:44:27.929475
2018-05-11T08:36:35
2018-05-11T08:36:35
94,436,343
1
0
null
null
null
null
UTF-8
Python
false
false
2,654
py
board.py
import logging import json from peewee import * from playhouse.shortcuts import model_to_dict, dict_to_model import config from datetime import datetime from .base import * import comm_implementation as comm logger = logging.getLogger(__name__) class Board(BaseModel): name = CharField() class Meta: ...
99fae4f7925e6d4a00de36c93d387da8c7334be7
a626636f537685b580662cdaba59df545443707f
/apps/address/migrations/0002_auto_20210424_0054.py
4535d5e4f7ab22d820d477fc3b9e76ba261dddcc
[]
no_license
friacode/rambutan
a26e9575cba94d2d37416a268935f6a3ad196083
cb00f850293e3ad5e1a997f4e6db409643dbeb8f
refs/heads/main
2023-04-28T13:31:20.566681
2021-05-10T12:47:55
2021-05-10T12:47:55
355,410,011
0
0
null
null
null
null
UTF-8
Python
false
false
1,168
py
0002_auto_20210424_0054.py
# Generated by Django 3.1.5 on 2021-04-23 15:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('address', '0001_initial'), ] operations = [ migrations.AddField( model_name='address', name='name', fiel...
b58558f0cdc13c5f624439b7671866db3143d767
27f2ee8c92b32a4ef2915148c4886f1da45774ee
/Chapter8/simluation_study_code/result_analysis_CL_simulation_SJC_FZ.py
b1a55e5dffaee7efe2a9d8cf6aa987025cb0c334
[]
no_license
xuanxin-L/Dissertation_Work
5589e3c4cfb363c22312e54375df85aeeb487d93
2cefebeeb04e48419c78d2a7753665c93456b65c
refs/heads/master
2022-06-14T14:34:44.522936
2020-05-03T21:58:13
2020-05-03T21:58:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,054
py
result_analysis_CL_simulation_SJC_FZ.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jan 24 10:01:11 2019 create video of identified open torque trajectories. @author: huawei """ import sys sys.path.append('../') import numpy as np import matplotlib.pyplot as plt from annimation_open import animate_pendulum from simulate import map_va...
6dafe7f4942a46e10a26cb6113b1a3a9f8d8d786
22cb6affd32cce460b51194a7e012a5a2a7fc474
/ArticlesManagement/migrations/0007_auto_20160101_2012.py
4a60263a19230bfcbf1593356def26efaa169371
[]
no_license
nnaderian/EducationalProject
f64e33173726d30af6621e1f29d740e701aff45a
f6231a97f2078be9d5b3a292bd853cfe4474d3ab
refs/heads/master
2021-01-10T05:43:32.283362
2016-01-02T11:26:26
2016-01-02T11:26:26
48,543,893
0
2
null
null
null
null
UTF-8
Python
false
false
2,312
py
0007_auto_20160101_2012.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ArticlesManagement', '0006_auto_20160101_1858'), ] operations = [ migrations.AlterField( model_name='article', ...
e7f5eb3658225904f09b27758bcba6bad41f5fbe
e3dcfb1ac50d19c33ae88b04592d94aabafa37d0
/deploy/src/classify.py
ca252a78e273ad2f566609ba10357b71865745c9
[ "MIT" ]
permissive
antonpaquin/IsItAnime
6ba875b8567c844ccf230e26a732935f65f9162d
72c2c15ae9bf3907a25b40378831ca4efd85cc5b
refs/heads/master
2020-03-19T02:36:11.091363
2018-06-13T03:33:43
2018-06-13T03:33:43
135,643,381
12
1
null
null
null
null
UTF-8
Python
false
false
297
py
classify.py
from keras.models import load_model from vectorize import vectorize import numpy as np model = load_model('is_it_anime.h5') def classify(data): vect_input = np.asarray([vectorize(data, scale_size=512)]) / 256 results = model.predict(vect_input)[0] return [float(x) for x in results]
92c061f1df0ad9372bdb842f333f47a81a4ff8a4
acf7457d3a799cb9bff12686d2d616688bcd4b5b
/packages/python/plotly/plotly/matplotlylib/renderer.py
147d50fe0a9beebbe83b22c2cf650a3bee71fd57
[ "MIT" ]
permissive
plotly/plotly.py
f4f61639f08160f16195efc95b5901dc5a937346
975a704074f01c078e0fdfa32bdf17130bf89e69
refs/heads/master
2023-09-06T06:15:08.340035
2023-08-24T12:28:14
2023-08-24T12:28:14
14,579,099
14,751
2,989
MIT
2023-09-08T19:55:32
2013-11-21T05:53:08
Python
UTF-8
Python
false
false
35,448
py
renderer.py
""" Renderer Module This module defines the PlotlyRenderer class and a single function, fig_to_plotly, which is intended to be the main way that user's will interact with the matplotlylib package. """ from __future__ import absolute_import import warnings import plotly.graph_objs as go from plotly.matplotlylib.mple...
68be4bc28fc60f86183b2de2340267a5eae49df3
ced74c5afc758c264c45237564600becdfe7b5bf
/Exercises/Chapter7/3.Pizza_toppings.py
348bf81cf6c12db3c5830b2a56157574c5603a16
[]
no_license
31337root/Python_crash_course
47d5f57fc77e23aad310d8d0ad9b8368312f79eb
f35d4fcdb048e9bd2abcc670c5edfc850487cd4c
refs/heads/master
2021-01-26T13:28:38.118727
2020-04-14T18:06:45
2020-04-14T18:06:45
243,441,784
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
3.Pizza_toppings.py
topping = "" while topping != "quit": topping = input("Give me a topping for your pizza\nOr write quit to exit: ") if topping != "quit": print("You add " + topping) else: print("Good bye.") break
146b4333d58f11b8a47e268292c6150980125a72
db8b79e3321e0c7c27cb6b18c239c5322d1460ee
/DjangoOne/lib/python3.6/_dummy_thread.py
03d23925e8447033b11458b07cbae2a1c60d4f79
[]
no_license
gitbitcoins/gitBit
3f9f3b8dbe53404299f2492a51bb6da4c9c3a4dd
2a2524095cd6807af4ecea09891c62951975c13b
refs/heads/master
2020-06-03T13:09:14.966812
2017-06-12T20:06:28
2017-06-12T20:06:28
94,130,871
0
0
null
null
null
null
UTF-8
Python
false
false
57
py
_dummy_thread.py
/Users/CyberAstro/anaconda/lib/python3.6/_dummy_thread.py
daac6f95835e15435ddea9b637957bd75417e323
640e91085c1c527c1b41f9921c290f738179415b
/ea/solve.py
ce437f6b49ec52032e7aaec821cf36bb0f239829
[ "MIT" ]
permissive
Exp-Optimization-Tools/RBN-Reservoir-Code
3deb62f3135d8a0a3f47c1d1f906805e7208f9a7
1f68598d7e9349083816c7b91e98f7b066e991dd
refs/heads/master
2021-09-02T10:29:03.381017
2018-01-01T22:03:06
2018-01-01T22:03:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,615
py
solve.py
import logging import json import arrow from ea.genotypes import SymbolVectorGenotype import os.path try: import numpypy as np except: import numpy as np logger = logging.getLogger() def do_logging(adults, generation): logger.info('Generation: %s' % generation) logger.info('Current generation best in...
f138cac68e9b286aa855836c81216ef8d73aa9a6
42b021a4eb1c96ae9839702ef397feebe40769ef
/demisauce/trunk/pavement.py
ba56065d62c4cfc6097e04f0c6e4d893f2061511
[ "MIT" ]
permissive
cccarey/demisauce
09c044a8e5706747f9186bba08db0867eb2c1869
f527f1fd5e4a3f63db4ba0d06f4ed0451f6c61f9
refs/heads/master
2020-12-25T12:47:05.796441
2009-02-20T01:23:02
2009-02-20T01:23:02
121,276
1
0
null
null
null
null
UTF-8
Python
false
false
2,764
py
pavement.py
from paver.defaults import * #from paver.release import setup_meta import paver.doctools #import paver.virtual import paver.setuputils options( setup=Bunch( name="demisauce", description='Shared Services for use within your application via rest', long_description=""" Demisauce ==========...
4f83335ce03c236a3f0a51534a225c8439e9ca81
b4ddc954a7dc0d24352de64a567c10c9e7231eee
/LeetCode/Triangle.py
20261400b817bc26a83acea2891b53c15c7ea6c2
[]
no_license
sharadbhat/Competitive-Coding
4d80c99093bf05a2213799c95467309cf3e40d07
79eec04cc6b1ac69295530bda1575ecb613a769e
refs/heads/master
2023-07-05T02:25:33.397140
2023-06-27T05:38:12
2023-06-27T05:38:12
78,031,600
1
0
null
null
null
null
UTF-8
Python
false
false
663
py
Triangle.py
# Leetcode # https://leetcode.com/problems/triangle class Solution: def minimumTotal(self, triangle: List[List[int]]) -> int: prev_level = [triangle[0][0]] for level in range(1, len(triangle)): new_level = [] for i in range(len(triangle[level])): cost = tria...
79da86033007c465acf1614915976d5790f3c685
3e59e8959ae2872cc605b3a9bcbf887010ede567
/calculateBounds.py
4401db87a7f33400fc9152fd83c63211fe087146
[ "MIT" ]
permissive
amnh-sciviz/ir-clouds
122574ab194ca7c35d96cdb8f117148288bbc183
cb526106f65e82101e0e22e1749925f08b833b09
refs/heads/master
2020-04-08T16:56:50.887035
2018-12-11T22:04:20
2018-12-11T22:04:20
159,543,303
0
0
null
null
null
null
UTF-8
Python
false
false
1,387
py
calculateBounds.py
# -*- coding: utf-8 -*- # Given an image with mercator projection, try to determine its bounds based on its aspect ratio import argparse import math import os import numpy as np from PIL import Image from pprint import pprint from projection import mercatorToEquirectangular import struct import sys # input parser = ...
d55bb04340a19632a600276361180d763ca9468b
7ac7ba42dd47c432d2aa4320a37a7410b6487bc7
/pmsb_web/relatorios/views_api.py
bedceca6c0d0e21219d86fb5962b7ecaaf357e97
[]
no_license
catalunha/pmsbweb1
e3c88367e2ad27be2ccd76badf3c23eb11fc1540
d9459df5305a16886144391c942a37b442d14e36
refs/heads/master
2023-05-25T03:22:57.947555
2019-08-03T20:27:11
2019-08-03T20:27:11
177,639,809
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
views_api.py
from rest_framework import viewsets from relatorios.serializers import ( RelatorioSerializer, BlocoSerializer, FiguraSerializer, ) from relatorios.models import ( Relatorio, Bloco, Figura, ) class RelatorioViewset(viewsets.ModelViewSet): serializer_class = RelatorioSerializer queryset ...
b1e46d837995b602ae645186285a3ce657efc2d6
926607d7e14b54f7f0f1bed731028435986831b2
/comment/serializers.py
0dfa5e90950f14e02e8ead4b9f3ce704676f165b
[]
no_license
z66980437/circle_say
5a26f9a60ea2797636b034c81f5e7dc30e2e725a
f027ade23b01317e7240d3436798a38855b242b3
refs/heads/master
2022-12-11T19:38:26.129954
2019-03-04T06:29:39
2019-03-04T06:29:39
167,508,830
0
0
null
2022-12-08T01:37:30
2019-01-25T08:00:47
Python
UTF-8
Python
false
false
926
py
serializers.py
"""__author__ = ErYang""" from comment.models import Comment, ComImg from rest_framework import serializers from user.models import User class ComImgSerializer(serializers.ModelSerializer): class Meta: model = ComImg fields = ('img_url', ) class UserSerializer(serializers.ModelSerializer): ...
28c6d2ea31f3ae1d8aae109e34154e3dd8c181d7
7af574c7c99effc8e406e8d7ca5acf0ce4011e30
/totango_touchpoint.py
a59ae25f4f8294eff9c9dd64eb6cf409c07b86c3
[]
no_license
thidelrios/totango_touchpoint_search
fc6ff6162b2f1e4292aa5a28e78d00e2388cc7ae
549c8d635415e36c409ae5f55175e63a82cd5abc
refs/heads/master
2020-04-21T10:04:39.541800
2019-02-07T14:09:15
2019-02-07T14:09:15
169,475,314
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
totango_touchpoint.py
import requests import json import time #Creating all variables API_TOKEN = "<Totango-Token>" account_id = '<Totango-account-ID>' success_flow = '<Totango-SuccessFlow>' headers = { 'app-token': API_TOKEN, } params = ( ('account_id', account_id), ) #Getting all touchpoints and tasks (from 'account_id' Time...
80d8b3912b74fe9aea1fafd2de9adda63b848b6a
4a1e1fc4c80637cb76a7b135a625945906cf3a91
/blog/views.py
b3727183c65c64c612a392eef44254a2f3c6967f
[]
no_license
lksb/Projekt
1a069373d9ab47bc211b4cef6d02436d0ea86604
ad8b7b15e78a160351e301e1bde333bc0c59405b
refs/heads/master
2020-06-07T18:09:35.156665
2019-07-27T20:24:19
2019-07-27T20:24:19
193,069,178
1
0
null
null
null
null
UTF-8
Python
false
false
3,164
py
views.py
from django.shortcuts import render from django.utils import timezone from .models import Post from django.shortcuts import render, get_object_or_404 from django.shortcuts import redirect from .forms import PostForm from django.shortcuts import render_to_response from django.views.generic.edit import CreateView # event...
373e7bc70f802abca0a4e6d46be0f1b9977e1d0f
bfca1223edb48b2f98d1a5b76419873d3e7fd9cb
/056_wrong_types_values.py
9e76e37a22231c9c796674c5f6f0e44e8f8c2524
[]
no_license
jossrodes/PYTHONFORDUMMIES
6adddb9286efea9e8395375b96672e939370930a
5a975ac6e1d061a79076b4608c1a70f309bd97a6
refs/heads/master
2021-07-20T18:35:46.704179
2017-10-31T01:53:52
2017-10-31T01:53:52
107,997,622
0
1
null
null
null
null
UTF-8
Python
false
false
40
py
056_wrong_types_values.py
x = raw_input("Enter a number: ") x * 2
155368a1107765b0829f378254e1ddee71a7a144
6443a587e16658a58b884a2e5c6dbbab1be50674
/Data Structures/DoubleLinkedList_class.py
2daa8da2c388f05ca6e1f809c35012f2587a8659
[]
no_license
xiaochenchen-PITT/CC150_Python
a6cbe213946851639a827068961934920b6c3e57
e96394265d8a41a1b4558d5d2b34aa34af99662f
refs/heads/master
2020-12-24T17:18:14.606804
2014-11-08T21:48:20
2014-11-08T21:48:20
25,654,100
0
1
null
null
null
null
UTF-8
Python
false
false
1,378
py
DoubleLinkedList_class.py
class DLLNode: """DLLNode stands for Double LinkedList Node""" def __init__(self, data = None): self.data = data self.next = None self.prev = None class DoubleLinkedList: """DoubleLinkedList class has Insert, Delete, Reverse methods""" def __init__(self): self.head = DLLNode() self.tail = DLLNode() def...
78e7f77a0af8685b826796bbdb77893b56f40d04
d955a98383c4b5cdc5e982251e8f327b63b82b89
/paddtf/ops/nn_impl.py
27d85700b6c0f57bb2b886f8147eeead1f4526b4
[]
no_license
chfhf/dmr-paddle
4fabc7636ccd5109226430de9de6fe6d8cbb478f
3f2e2658e3f35c221f5164f6a0ffb625dc8fb59a
refs/heads/master
2023-06-19T23:54:10.633846
2021-07-08T11:05:17
2021-07-08T11:05:17
384,095,526
1
0
null
null
null
null
UTF-8
Python
false
false
294
py
nn_impl.py
import paddle def sigmoid_cross_entropy_with_logits(labels=None, logits=None, name=None): return paddle.fluid.layers.sigmoid_cross_entropy_with_logits(x=logits, label=labels, ignore_index=- 100, name=name, normalize=False)
b0f6725e4d5235b6bf99f97a819afd743875478c
03626e4207e8f48bc7b365d037fb7976fb9c5bde
/poisson/results/err_plot.py
b27c323cdfdf111004b979dafe732651a92d8d8b
[]
no_license
Wirkungsfunktional/TMA4280LABS
fd8ca059104b1a687239ec87ea5b984343f5c086
6a70b477cbfd6082975d35b4e41d406ea22c0602
refs/heads/master
2021-01-17T15:59:09.231758
2017-04-18T08:00:09
2017-04-18T08:00:09
82,956,978
0
0
null
null
null
null
UTF-8
Python
false
false
1,712
py
err_plot.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division import numpy as np import matplotlib.pyplot as plt def main(args): t1 = np.loadtxt("P1/err.txt") t2 = np.loadtxt("P2/err.txt") t4 = np.loadtxt("P4/err.txt") t8 = np.loadtxt("P8/err.txt") t12 = np.loadtxt("P12/err.t...
8ee932603120f18c4c12d239e1fe6542832db999
11082b802915594c4489710869edf391e909f777
/alien_invasion/alien.py
330046ec12c11323d795c1118a6a5eff0ba4906c
[ "MIT" ]
permissive
abhidya/alien-invasion-game
472c08e845032311fdcb661490c566559b3ff650
e3dbf295b689b3f906234f6f9d72e9ea7604c435
refs/heads/master
2020-08-02T18:06:26.092908
2019-09-29T06:25:37
2019-09-29T06:25:37
211,458,782
1
3
MIT
2019-09-29T02:26:04
2019-09-28T07:01:21
Python
UTF-8
Python
false
false
3,363
py
alien.py
import os.path import pygame from pygame.sprite import Sprite import random from game_items import GameItems from game_stats import GameStats from settings import Settings class Alien(Sprite): """A class to represent a single alien in a fleet.""" def __init__(self, ai_settings: Settings, screen: pygame.Sur...
5b6a48301e11397e75e4074ae879260f024cf744
a5f8c49843fc27739627f1db7d163ebf93b91143
/kbsbot/training_tool/mongo.py
14e37666d609784f8b12d9387163ae7d6743e494
[ "MIT" ]
permissive
astandre/cb-training-tool-ms
f5487a1680a599aa6657a6233c1e85648a181707
38836adf9d21774fa71b65fdd2e0905dbbdf4cf4
refs/heads/master
2021-01-02T01:16:01.781285
2020-02-19T02:59:46
2020-02-19T02:59:46
239,428,163
0
0
null
null
null
null
UTF-8
Python
false
false
1,408
py
mongo.py
from pymongo import MongoClient from pymongo import DESCENDING from bson.objectid import ObjectId import os MONGO_HOST = os.environ.get('MONGO_HOST') client = MongoClient(MONGO_HOST) # client = MongoClient("mongodb://localhost:27017/") db = client["interactions_db"] interactions = db["interactions"] def update_entr...
5c868198d5e80b5aafe105654618dd7a2a4bb2d2
d674f1b1b47d4e526e28c23372fda453b86dc456
/HighMassAnalysis/Skimming/test/skimLeptonLeptonTau_cfg.py
27d1fc430965e02d084250a113e02f167ab06dc1
[]
no_license
amkalsi/TauPOGUpgrade
5ac29a8f1dd2fcfca922aa3ca88cca95cad5f72a
d348d2325051c783f12c79df721b415f50b89c45
refs/heads/master
2021-01-18T17:18:51.785086
2015-03-10T08:07:28
2015-03-10T08:07:28
24,678,260
0
0
null
null
null
null
UTF-8
Python
false
false
2,485
py
skimLeptonLeptonTau_cfg.py
import FWCore.ParameterSet.Config as cms process = cms.Process("leptonLeptonTauSkim") process.load("FWCore/MessageService/MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 100 process.MessageLogger.cerr.threshold = 'INFO' process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(Tr...
3ce5f6e89fc80156c5d20c3785594b3193a3c1c5
e878bb0513d1c582c7ba3f5c1f62fb2e8b85e744
/libs/leiden_algorithm/leiden_algorithm/DataBlockingAlgorithm.py
b223e515d8295f78b73f2210c6660a456502c2d7
[]
no_license
iuni-cadre/WoS-disambiguation
5109e4ef4b888f2137e7327279f63f21a7f845ab
d65cc1563da45ca9298f701f936b036646bd9a61
refs/heads/master
2023-03-28T18:05:59.369953
2021-02-16T16:42:46
2021-02-16T16:42:46
298,474,201
0
0
null
2021-02-15T22:03:12
2020-09-25T05:15:21
Jupyter Notebook
UTF-8
Python
false
false
18,173
py
DataBlockingAlgorithm.py
import itertools # import numpy as np import pandas as pd import sqlite3 # import json import os import shutil import hashlib from tqdm import tqdm from .utils import * from joblib import Parallel, delayed class DataBlockingAlgorithm: def __init__(self, CITATION_DB, n_jobs=30): #def __init__(self, ES_US...
2165ff2a29d403a0a157b807aa585718eff468e9
a6a89a3838b828e39e6641af71eeb104e4326f91
/LINCHESS.py
6dad35259843333abe52c4f3e8183deda0130df2
[ "MIT" ]
permissive
ganeshbs17/PythonAndCPP-Programs
d2d817c7cc93f2461e9906077872c5b12e3c13f2
7a00c3fad84dc2e721e29732f998e151bd122213
refs/heads/master
2023-08-13T15:33:23.025939
2021-10-16T07:04:19
2021-10-16T07:04:19
417,022,562
0
0
MIT
2021-10-16T06:57:22
2021-10-14T06:59:02
null
UTF-8
Python
false
false
335
py
LINCHESS.py
t=int(input()) l = [] while (t>0): N,K=input().split() N,K=int(N),int(K) A=input().split() A=[int(i) for i in A] lst=[] for i in A: if (K%i==0): lst.append(i) if (len(lst)==0): l.append(-1) else: l.append(max(lst)) t-=1 for i in l: ...
5825ea9f1dc01a1d479b6cc167fdd7cdf3c8f99f
0f284d354691e20f146efc95b6c8561d4ee0b8ee
/cs352/lecture/toBinary.py
07e9fa2cc5bf1a3639d36927fcce4e4bac0c0828
[]
no_license
kevindang88/edu
cc62974b63ca5b796f80d35160fc03fa0c091bc2
d62bedd6f45b2b319f5b484efe3d71fb52dec475
refs/heads/master
2020-03-22T07:09:26.739784
2018-07-23T12:22:42
2018-07-23T12:22:42
139,681,818
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
toBinary.py
def toString(n): if n == 0: return else: toString(n // 2) print(n % 2, end="") def toBinary(n): if n == 0: print(n) return else: toString(n) print() def toBinaryStr(n): if n == 0: return "" else: return toBinaryStr(n // 2)...
5952a5b88c984eac972a1c900497364ab2ed76f6
78741f298c51868456b7d35af9ff109edc119a95
/35-Search Insert Position.py
f5eb58682f2f952b65f1eceec46241e49aa472e8
[]
no_license
hustacer/algorithm
1326171bc49307d08919d47b7ebe12ea35019494
6d48cf2a4f7eab522a59348953f556f7664a7bb1
refs/heads/master
2020-03-18T19:37:32.112840
2018-06-04T13:44:48
2018-06-04T13:44:48
135,165,937
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
35-Search Insert Position.py
#Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. def searchInsert(nums, target): left=0 right=len(nums)-1 while left <=right: mid=(right-left)/2+left if nums[mid]==target: return mid elif nums[mid]>tar...
eb8d4ea223daf498170e315de7eb008a10bf29ad
fea4e59ba2fa3722e899f3f95ed1127299730412
/archive/char_level_rnn_with_attention.py
42e49ba0164fca90544845b1c3cb33b1d6eb0f04
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
gregorysharkov/pep_names
7a6a4407d5ae4357bc987763f421b685c404640f
64d60b5c8f093890e3cfaa46905ae88ffc2b7fea
refs/heads/main
2023-08-29T04:20:29.723471
2021-10-25T08:02:17
2021-10-25T08:02:17
386,404,391
0
0
Apache-2.0
2021-11-03T12:55:01
2021-07-15T19:36:24
Jupyter Notebook
UTF-8
Python
false
false
6,553
py
char_level_rnn_with_attention.py
import tensorflow as tf import pandas as pd import numpy as np from model_settings import InnerModelSettings #custom layers class Attention(tf.keras.Model): """ Attention layer for inner model """ def __init__(self,units): super().__init__() self.W1 = tf.keras.layers.Dense(units) ...
ec1fbf2fb43c6f6f6cb0fb6dc1bd44a8e7ce3a5d
daf3a9e8b75b41ba70c087b4aa6d207ff7f8576a
/main/urls.py
04b2c3a4fa3ebad9485c9ead93638827037e0285
[]
no_license
NikolskayaAA/todo_list
0105f7ff7c6276ba62a3a84b79cedc3b8b09f819
5e1a3cffd1a27fc5304861b7189c566d09288e43
refs/heads/master
2022-05-17T02:29:46.822257
2020-04-26T16:11:01
2020-04-26T16:11:01
255,723,076
0
0
null
2020-04-26T16:11:38
2020-04-14T20:50:47
CSS
UTF-8
Python
false
false
201
py
urls.py
from django.urls import path from main.views import main_view, edit_view app_name = 'main' urlpatterns = [ path('', main_view, name='main'), path('edit/<int:pk>', edit_view, name='edit'), ]
c46c0013ce854c4d894e0fb588ef8a728239588e
df6b72819050521090457421c7874db9c9fece3d
/day06/day06.py
138a6a8e434f951931a4e085aa7501b4ae5266e5
[]
no_license
arknave/advent-of-code-2020
a00adac9310af6d17ee051a157824c03dd6a0a3a
88c993bbab213ea2466e2ab91a30e1c37f16b8af
refs/heads/main
2023-02-04T18:03:45.913066
2020-12-30T17:35:24
2020-12-30T17:47:25
317,700,414
59
13
null
null
null
null
UTF-8
Python
false
false
615
py
day06.py
from collections import * from functools import lru_cache import heapq import itertools import math import random import sys def main(): fin = open("day06.in", "r") blocks = fin.read().split("\n\n") part1 = 0 for block in blocks: c = Counter(block) part1 += len(c) if '\n' in c: ...