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
403b46b8ee5baa025c4d5ac704b2ebd2c300bdab
6ec91b363b077bffd33f15300a0935124e9fb915
/Cracking_the_Code_Interview/Leetcode/6.Binary_Tree/Traversal/99.Recover_Binary_Search_Tree.py
b5002d2035be4d772acd9cba45f5bc5026a8fa48
[]
no_license
lzxyzq/Cracking_the_Coding_Interview
03232515ae8eb50394d46322d36b230d1a626fcf
79dee7dab41830c4ff9e38858dad229815c719a0
refs/heads/master
2023-06-05T19:52:15.595289
2021-06-23T22:46:02
2021-06-23T22:46:02
238,068,000
0
1
null
null
null
null
UTF-8
Python
false
false
352
py
99.Recover_Binary_Search_Tree.py
# Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure. ''' Example 1: Input: [1,3,null,null,2] 1 / 3 \ 2 Output: [3,1,null,null,2] 3 / 1 \ 2 Example 2: Input: [3,1,4,null,null,2] 3 / \ 1 4 / 2 Output: [2,1,4,null,null,...
feff7d5c255b234ecff7b267ea37c9ca926977d1
e620695cb534fa36b9f5652f9d4b935500c7b9fb
/admin/admin.py
d7205aab2e1baf5784cb1ef371e9dfbeb18531e0
[ "MIT" ]
permissive
YC/Primes
d89f1021a4fd89cdb18b37a8b7acb5e51b290a4e
62cb53b76aed17bb111bf62abfb6a74b608a1cb4
refs/heads/master
2021-06-29T20:56:50.685786
2020-12-10T05:52:16
2020-12-10T05:52:16
75,997,719
0
0
null
null
null
null
UTF-8
Python
false
false
2,760
py
admin.py
from google.appengine.api import taskqueue import webapp2 from calculate import CalculatePrime from main.state import get_state from appengine_config import JINJA_ENVIRONMENT from math import floor class AddTask(webapp2.RequestHandler): """Add a calculation task to the queue.""" def __writeline(self, header, ...
ea0d62fea88c1c531370832941ff62137eebfc99
d7d487987cb4e4cbd65192fddcaa1252b3971080
/train.py
45a07e53a10e8e717c793c8171149c20dea34f4a
[ "MIT" ]
permissive
codetiger/MachineLearning-DrawImage
7bc8837fa4fc262f6a4124223b38632d49726530
8ff20c01f5bdc2ec2f37dfef4dacf1a1777ae8c9
refs/heads/master
2020-06-25T10:19:34.882590
2017-07-14T13:42:15
2017-07-14T13:42:15
96,974,470
2
0
null
null
null
null
UTF-8
Python
false
false
2,596
py
train.py
import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras import backend import numpy as np import os from PIL import Image imgWidth, imgHeight = 28, 28 def getFiles(folderPath): files =...
25e0ef3f6161343dad757ac8191c702a18bf0fff
cc1718ead09eeb55a6d9a8d868ee334b3aa706cb
/netztp/eos/static/actions/send_email
4cdb043c1ed35403f97a7362de850dc1a15154eb
[]
no_license
yzguy/netztp
fd859dcdb9a1feb6a55002ed476e0785783410fa
7c301a1f189c362e1648db6989d046d644642357
refs/heads/master
2023-07-09T23:59:23.723664
2023-06-22T16:38:07
2023-06-22T16:38:07
216,727,221
1
0
null
2023-05-01T22:49:27
2019-10-22T05:04:45
Python
UTF-8
Python
false
false
6,113
send_email
#!/usr/bin/env python # # Copyright (c) 2015, Arista Networks, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright notice, #...
228bd433de74ad4089f1a5180cbaf0fdc08f7193
64fc2208dd2002ec6e737cbf765e0cd42695beda
/ficklehttpserver.py
04c89befb27a7dc1144cd459960b9fa120d0d11d
[]
no_license
recap/ficklepage
1b91a394a22af8315dfd9830a0b9a5dbd32cf1b8
25d22efd9defbdc01dc2d187a4c0fd414c9ce22e
refs/heads/master
2021-01-25T06:36:57.786012
2014-05-20T11:23:25
2014-05-20T11:23:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,257
py
ficklehttpserver.py
__author__ = 'reggie' import re, json from socket import * import time import datetime import base64 import threading import http.server from threading import * from ficklepageindex import * CONTEXT = None HTTP_TCP_PORT = 9998 class Head(object): def __init__(self, header): self.params_hash = {} ...
c66954ca358fbbee0dce9123faeaad0f5b032729
8aff171bbe3d03d3e8343829ac992deefe2738c9
/project/core/algorithms/mem.py
27bc9da6358dc6d42244e16bc70075a96fe4660d
[]
no_license
JX25/TransportationProblem
34b4f4db98787315145cff6c1432c797adff2959
5f9c8624107dfc03752e0c5156f7d42186a1f665
refs/heads/master
2020-06-03T02:23:41.599013
2019-09-10T18:00:32
2019-09-10T18:00:32
191,394,646
1
0
null
2019-06-11T14:59:17
2019-06-11T14:59:16
null
UTF-8
Python
false
false
3,271
py
mem.py
from project.core.algorithms.tpa import TransportationProblemType from project.core.data.ps import ProblemStatement class MinimalElementMethod: @staticmethod def get_basic_plan(ps: ProblemStatement, costs: list, tpt: int or TransportationProblemType) -> list: alpha = ps.productivity[:-1] if tpt == Tra...
18ec8fe622c5e98be5ff8cdcf963360340691716
9cc34d50820aac787122e1028b77eed72e24ecff
/server/graph.py
195f4f9d14c3a8085bb205bcc2eb386c1c60ccdb
[]
no_license
f2prateek/CMPUT-275-Project
9d370f5b7b1976e7ba6e2832a39f229b55cd32b3
84642c5ba3822300697d0317f4771b339dd1f39d
refs/heads/master
2020-06-07T10:48:18.453278
2014-04-11T03:58:33
2014-04-11T03:58:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,284
py
graph.py
""" Graph module for directed graph. Includes the functions implemented in the Jan 21/22 lectures with one key difference. The way the nodes and edges are stored has already been converted to the "adjacency list" representation we will discuss next lecture. More specifically, _alist is a dictionary that maps a node ...
1495680d8dfbe7b76fdffd50bf3fd77b408f518a
35c2495ecd3739ac93be4e630c25eb509896bec6
/vpmbench/extractor.py
1a247dfbf89aac734d8b64b5a7b134976d324dc7
[ "MIT" ]
permissive
IDEA-PRIO/VPMBench
0f537f518808dbfc72d2a6137a58cbf9b73a8dbf
6d7498d5f2189f6180e369982baadc63597efb54
refs/heads/master
2023-08-20T18:00:51.826412
2021-10-15T11:07:47
2021-10-15T11:07:47
344,768,639
2
2
MIT
2021-10-18T09:45:25
2021-03-05T10:03:26
Python
UTF-8
Python
false
false
7,969
py
extractor.py
import csv import gzip from abc import abstractmethod, ABC from pathlib import Path from typing import Union from vcfpy import Reader from vpmbench import log from vpmbench.data import EvaluationDataEntry, EvaluationData from vpmbench.enums import VariationType, ReferenceGenome class Extractor(ABC): """ Extract...
3a90766018cf4d6b2f6190b2030dd5d3ef5599fe
a89ac827d83ca362e101519e4ebf94c8257453d0
/GenesisProgram/Scripts/test_Graph.py
71df81691802829298a0dfd49a5d62c3c931a811
[]
no_license
FruitSenpai/Genesis
a07f8ba8f21f50cc7710317a7a58f58a2b04055b
c3b505f5c1d439d428d13a659bcbcb0160efe7d4
refs/heads/master
2021-04-06T07:31:07.851077
2018-05-14T03:16:50
2018-05-14T03:16:50
125,215,425
0
1
null
2018-05-14T03:18:32
2018-03-14T13:19:04
Roff
UTF-8
Python
false
false
2,290
py
test_Graph.py
import unittest from Graph import GraphCreate from Graph.PcaGraphing.PcaGraph import PcaGraph from Graph.PcaGraphing import PcaDataExtractor as PcaEx class test_Graph(unittest.TestCase): #pass when given correct input def test_CompleteWithPhen(self): PcaData = GetFileData('..\\Data\\comm-SYMCL.pca.eve...
1756a8a305223fd386f011c88925635e90e05fb4
fd919257ed346b5f195149ee2232a9fb6c8d799f
/django_test/dynamic_models/views.py
7adac88ea07976facca4bedbfe6d281192b97704
[ "BSD-3-Clause" ]
permissive
potar/django_test
29d10efab8e12b2ae467a7e6cf9e10119aad93e0
83ff51177dd02d827268a5bc38a793ef10182060
refs/heads/master
2016-09-05T14:21:39.708491
2014-06-26T09:11:01
2014-06-27T14:04:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,135
py
views.py
from django.views.generic import TemplateView, ListView, View, CreateView from django.shortcuts import render from braces import views from .models import dynamic_models # Create your views here. class UsersListView(views.JsonRequestResponseMixin, views.AjaxResponseMixin, View): def get_ajax(self, request, *ar...
26e7a20f64b057b07cee482800f7f81593126e4d
700d7788992c6a8feeefaa52374438d7afc525ac
/IIITH/Sem1/SSD/Lab/LabActivity5/q1.py
2039e90c6d2928d3afd07b76cfaf518ca64147cb
[]
no_license
ramirocruz/IIITH_Assignments
90a7c12dd4c543b4306a90e2ae88a015137ed8bf
a79ec05aed2a523a3d9cdcb039e3fdb6627cf00d
refs/heads/master
2023-04-12T23:38:39.183054
2023-03-31T23:10:45
2023-03-31T23:10:45
294,367,717
1
0
null
null
null
null
UTF-8
Python
false
false
94
py
q1.py
num1,num2=input().split() if float(num1) < float(num2) : m=num2 else: m=num1 print(m)
e617d2b415b4e8118fc5bd31c6b9b8ce403301d3
d625e8349ecffef04e08ea31c253051c7519af2f
/TP1/2.b.py
3fd7515504a1a774e47b387c2d489d2ff1003653
[ "MIT" ]
permissive
NicolasFerragamo/pdstestbench
cf419f15d797cce72fe934335ff75baeed971ee4
e87f1a0000f7a0b9593dccd4b0f6fa256ca67438
refs/heads/master
2020-07-05T09:05:43.977694
2020-04-07T18:48:47
2020-04-07T18:48:47
202,601,136
0
0
null
null
null
null
UTF-8
Python
false
false
1,820
py
2.b.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Sep 4 15:59:32 2019 @author: nico """ import os import matplotlib.pyplot as plt import numpy as np from time import time import sys sys.path.append('/home/nico/Documentos/facultad/6to_nivel/pds/git/pdstestbench') from pdsmodulos.signals import signals...
6be37cc0ac42477690b61af9c479b69f340ab7b4
97a2a0c901d82ebd79c7d77d4264de33718d1a1b
/users/migrations/0002_auto_20181127_0228.py
c7dd09481c573645f5566c29d8b0c32b14b7bedc
[]
no_license
gaojiaxuan1998/mysite-master
5fd9fff8967fa3aa171cb838372aca25e4e82215
d1e6b87cc07250a64ca5749ee71f2c7f19d52613
refs/heads/master
2020-04-11T08:37:02.854166
2018-12-13T14:41:32
2018-12-13T14:41:32
161,649,740
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
0002_auto_20181127_0228.py
# Generated by Django 2.1.2 on 2018-11-27 02:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='userprofile', name='password', ...
8602d706cbb64891b951ecf338686e2beeb92277
8a184e677f5d21f085b12242977049ea95f739bc
/problem1/python/problem1_reducer.py
85611053c26f8262d2f247b4438f94891073452c
[ "MIT" ]
permissive
xiaosanmeng/BUAA_BigDataCourse
d9f7b6a83fc2a02ac360b327dd9d5bc38cc41825
a05371b1fe1c0658db64d0d8650701bc10d7910f
refs/heads/master
2023-08-10T14:47:37.060243
2021-04-22T04:03:44
2021-04-22T04:03:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
problem1_reducer.py
#!/usr/bin/python import sys word2count = {} for line in sys.stdin: line = line.strip() word, fileName = line.split('\t', 1) try: fileList=word2count.get(word, []) if fileName not in fileList: fileList.append(fileName) word2count[word] = fileList except ...
29e8f299338acf1b8eb24b5a1e3a5507fa7df8ed
c0c5f27d3c0a11ba0896beb3b78a4f21a6d602c5
/django/nada/models/serializers.py
2421d94045c77d967fb0768ad35667154ff505f2
[ "Apache-2.0" ]
permissive
readcoor/MIDAS-MICrONS
732280d942322d07de96f0c60b3ec2987cff9d0c
1bcd553ed7a6aaadc3dc2988ca2e333a6eac5b0b
refs/heads/master
2021-01-23T13:10:04.719418
2017-03-16T04:40:04
2017-03-16T04:40:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,372
py
serializers.py
# Copyright 2016 Wyss Institute # portions Copyright 2016 The Johns Hopkins University Applied Physics Laboratory # # 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/...
1c4d7eb8c7041450f9316570cef4d99c93259ba1
5620de305059195513a71bf2ad3051967c0ff46c
/gaetk2/handlers/mixins/__init__.py
6e090320af9a894977a17e74906651c86e4324ce
[ "MIT" ]
permissive
mdornseif/appengine-toolkit2
96210e6e8418518c514608869a50aafdb8e2e430
47ee6bf99b8e461ee64eae75bf24fb462d99b0ab
refs/heads/master
2022-09-01T23:05:50.302136
2021-04-14T14:11:47
2021-04-14T14:11:47
95,495,723
1
1
MIT
2022-07-06T19:58:34
2017-06-26T22:44:27
Python
UTF-8
Python
false
false
217
py
__init__.py
#!/usr/bin/env python # encoding: utf-8 """ gaetk2.handlers.mixins - misc functionality to be added to gaetk handlers. Created by Maximillian Dornseif on 2010-10-03. Copyright (c) 2010-2017 HUDORA. MIT licensed. """
4e417cfe506640eeecb05fc5c88b0b1a16eb8be6
9bb5e1dc6c0b26cfe6c857df626823c07a265809
/map.py
6fd7a2b7ae29779f38d6030a3984fe36ac9fc786
[]
no_license
sragss/AltairMap-Phil
9581af6c9402e5405e156f3b4d2d383b6a554665
67693a912bfb015aa8527d621af4531c43283df9
refs/heads/main
2023-04-26T13:22:40.566644
2021-05-27T22:27:39
2021-05-27T22:27:39
371,512,561
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
map.py
import pandas as pd import altair as alt from vega_datasets import data countries = alt.topo_feature(data.world_110m.url, 'countries') data_df = pd.read_excel('data.xlsx') print(data_df.head()) chart = alt.layer( alt.Chart(countries) .mark_geoshape(fill='lightgray', stroke='white'), alt.Chart(data_df) .m...
e88ddf6199197ef2f73d747a153de82a94896591
1d1e7a33c08c4c39eab8e652324aa14ff475f1c9
/src/test_sass_es6_compiler_integration.py
75e3c41e11e9cc30d95e3b3c6bea94dcc6cb9517
[]
no_license
CCLab/mhp
e51228497d1196d594ec4014213b78adef335f5f
539d95ace15dd71ae4ae07bc8bc10d671aa8b1a4
refs/heads/master
2021-09-05T22:28:28.920907
2018-01-18T11:06:30
2018-01-18T11:06:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
test_sass_es6_compiler_integration.py
from django.test import TestCase from compressor_toolkit.precompilers import SCSSCompiler, ES6Compiler class SASSES6IntegratinTestCase(TestCase): def test_sass_integration(self): # This test verifies, if the compiler paths and node packages for # SCSS compilation are correctly set up self...
0b82cf33d1c0d9478bfed29868f336028684cfee
1790c90f25cd4f9d8cd0251b8bc8e47123e2c23b
/objects/chatsettingswindow.py
33277ad11ee1108f06cf205fc2aeea083d37403a
[]
no_license
PierceLBrooks/concordancer
9eed49058d9217e8aaff806786d4099503643187
e477748937af99e98b9489c6ff5fb967d78130e1
refs/heads/master
2023-07-31T10:44:37.921048
2020-01-27T06:53:49
2020-01-27T06:53:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,491
py
chatsettingswindow.py
import tkinter as tk from objects.fancyentry import FancyEntry from objects.fancybutton import FancyButton import formatting as fm class ChatSettingsWindow(tk.Toplevel): def __init__(self, parent, settings, *args, **kwargs): tk.Toplevel.__init__(self, parent, *args, **kwargs) self.geometry('340x1...
ff63685a35054ba46407c415297acdc6cb035550
7a729f34ee99f989476131ba2384e9c7346b6cf8
/treinamento-algoritmo.py
0863e74b6e579a6982f103e480105403f71dc015
[ "Apache-2.0" ]
permissive
ritthikrai60/binance-bot
014786e52a612f65151a5a01d333a9a75e620a62
6f06c1d3ada5ca8abd23985e18ad9112031d2905
refs/heads/master
2022-12-30T06:39:01.321773
2020-10-18T14:22:55
2020-10-18T14:22:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,225
py
treinamento-algoritmo.py
# -*- coding: utf-8 -*- """ Use esta classe para treinar um modelo básico de aprendizado de máquina. Ou modifique-o para incorporar seus próprios modelos de aprendizado de máquina ou pipelines usando outras bibliotecas como XGBoost, Keras ou estratégias como Spiking Neural Networks! """ import numpy as np from numpy...
66444047f9e5eea845c8ac2dbaaf16fc2914d6ec
22422a290667526cdc01ac8a5d35492a85c746a4
/plugins/default/date.py
7ee492e22685fe74e370af1583d81ec274ad82f2
[]
no_license
Cha14ka/kb_python
f524e627c0e21afd38cbf842a38e5b72f10049b8
b2e252ecfa8799fcd8af42b1343b80e7cd183938
refs/heads/master
2020-03-13T20:50:44.363840
2018-05-30T05:08:03
2018-05-30T05:08:03
131,282,988
1
0
null
null
null
null
UTF-8
Python
false
false
67
py
date.py
if answ[1] == 'дата': apisay(datetime.date.today(),toho,torep)
d2f6d7c779d3d6e61d9da7af01a2931fdabec828
4c43adfc29da672ec74f13e27ce6c214ea0bb099
/tic-tac-toe.py
0ddf942e93e68f87c333fc7b9bbf9562f35f5b02
[]
no_license
sushanth10/tic-tac-toe-python
a4ff3de74c35ac7c3356b98cb3a84a213755a429
6f70a0bfbf80c0d22ed9040a217cd4242158115e
refs/heads/master
2023-09-04T11:07:05.381555
2021-09-22T10:24:59
2021-09-22T10:24:59
409,073,577
0
0
null
null
null
null
UTF-8
Python
false
false
3,296
py
tic-tac-toe.py
import random choices = ['X', 'O'] try: # Choice of X-O given to the player player_sym = input("Choose 'X' or 'O' : ") # raising an exception if the variable is not X or O if player_sym!='X' and player_sym!='O': raise Exception("Symbol not found") except Exception as e: print(e.args) else: ...
b4c6075aabe833f6fe23471f608d928edd25ef63
98263e994ff1ad96f7d76876ac9d93bd7e3325a3
/paw/tests/test_warnings.py
88df658854b15b9e99771d735c1e3dbe5aa9be6a
[ "MIT" ]
permissive
tehw0lf/paw
5d8198604881e1dc802befa0f21a3964fd1f9c51
adc2b11d102b8ff9acf7763a7f2e65c21b38283d
refs/heads/master
2021-06-02T05:38:55.711205
2019-01-16T13:46:26
2019-01-16T13:46:26
106,861,390
9
6
MIT
2019-01-16T13:46:27
2017-10-13T18:46:51
Python
UTF-8
Python
false
false
191
py
test_warnings.py
from .base import paw_test class warning_test(paw_test): def test_warning_badchars(self): self.paw.cset_lookup(self.badchar) self.assertEqual(1, self.paw.wcount)
24c9b562411a63f0d3f2ee509bb60dafe7fbecd1
ac384bbe522fb04a213fcceb565de2b24803ebb5
/app/__init__.py
008061182ef62f3639a96dede64727cee537c9cf
[]
no_license
Richardo21/info3180-project2
f0080cc3ea38b857b21120ce7e3cb377e6900f25
cb0a2e2f2f7dec37120ea99779bf5bb2f94be634
refs/heads/master
2020-05-17T13:38:44.761411
2019-04-27T07:39:07
2019-04-27T07:39:07
183,735,809
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
__init__.py
import os from flask import Flask # from flask_login import LoginManager from flask_sqlalchemy import SQLAlchemy # from flask_bcrypt import Bcrypt from flask_wtf.csrf import CSRFProtect app = Flask(__name__) csrf = CSRFProtect(app) # bcrypt = Bcrypt(app) app.config['SECRET_KEY'] = 'v\xf9\xf7\x11\x13\x18\xfaMYp\xed_\x...
14a357f3dfb3d59f1d8cfd566edeaf8b0e5bb56d
383c6a97374a523b332a051c6f767e5ab7ff36a6
/test/ros_joystick.py
e13b67c1bee09a8a4c38ae5cf4d3d54587b7c8f6
[]
no_license
rbccps-iisc/CAV_RECON
b8198dae1d455fdcc9172017101a2f852690c20a
13c78cc8ebade13b7b257feb6c3199af951a5ba9
refs/heads/master
2023-05-23T09:21:42.882357
2021-04-16T11:55:23
2021-04-16T11:55:23
279,536,671
0
0
null
null
null
null
UTF-8
Python
false
false
3,229
py
ros_joystick.py
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist from sensor_msgs.msg import Joy import serial from sys import platform if platform == "linux" or platform == "linux2": ser = serial.Serial('/dev/ttyACM0') elif platform == "darwin": pass elif platform == "win32": # Windows... ser = ...
1ef9df43725196904ec6c0c881f4a1204174b176
983f52e516a3dbed3282c9f97f54a25cf71812c0
/app/pandas_module/practice2.py
2f0ecd9b4f2776ea471aaee22028b7900ad9c63e
[]
no_license
SovanCSE/practice_python_packages
3891acf6ef7cde5c028f5bc87cedfe1a2556a097
414e2b03ab848bf566c1d0771b75e0efff4ae667
refs/heads/master
2022-07-22T12:23:00.905770
2020-01-01T07:20:19
2020-01-01T07:20:19
207,143,967
0
0
null
null
null
null
UTF-8
Python
false
false
2,382
py
practice2.py
import requests, shutil, os, glob from zipfile import ZipFile import pandas as pd from xlrd import open_workbook import csv # zipfilename = 'desiya_hotels' # try: # # downloading zip file # r = requests.get('http://staticstore.travelguru.com/testdump/1300001176/Excel.zip', auth=('testdump', 'testdump'), veri...
7a59c8c883a9aaa723175783e01aa62e23503fde
62b8fb78e20072ec6ba1c764130a2efa82795e13
/taller1.py
8c48896d42e660ac3b978058d8141e332d827e3e
[]
no_license
omary456789/libbeautifulsoup
0bb362244333136481dfd41468f2eba855b73c86
59ea87255688f932e4f24e7ce1ece82dc92af808
refs/heads/master
2021-01-22T17:40:06.383430
2017-03-15T04:50:01
2017-03-15T04:50:01
85,031,375
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
taller1.py
#!/C:\Program Files (x86)\Python35-32 #importar librarias necesarias from urllib.request import urlopen from bs4 import BeautifulSoup
48d0bfdc607a4605ef82f5c7dc7fd6fc85c4255f
b02e6088bd3fcdda96906c3883b15892fed2d260
/11.17.py
43211b4bd42986200cb92eaa3572d62cf65ec722
[]
no_license
Nicolagl/python-
34e5ee20c27dca96db336881f5ceeefaabe82a5f
700b4e4b828aeccef600acf4b4ad5aabb6334c6f
refs/heads/master
2020-09-06T13:17:28.916122
2019-12-20T06:16:29
2019-12-20T06:16:29
220,434,869
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
11.17.py
''' BMI=weight*0.45259227/(hei*0.0254)** ''' wht=2 if wht==0: print("wht is",wht) else: print("whtsdsb") #今天也完成了100波比跳 wei=float(input("wei=")) hei=float(input("hei=")) bmi=(wei*0.45259227)/((hei*0.0254)**2) print("BMI=",bmi) if bmi<18.5: print("too light") elif bmi<25: print("normal") elif bmi<30: ...
05e4bcc7323b908a7b45d766ada463ce172e25c4
210b144ff6edf757f57bca2adb61f9e24471a1ce
/back-end/f1hub/f1hub/schema.py
acdd2d0d8c51f9ad086f5dc67eeba3cef19e01f0
[ "MIT" ]
permissive
mmzboys/F1Hub
8096afe7344b775044d505a7e75c931a77398b72
5045c4c62dea738812a6856353d48e5b70d577e2
refs/heads/master
2023-01-22T05:09:45.040141
2019-09-09T12:36:53
2019-09-09T12:36:53
205,153,611
0
0
MIT
2023-01-04T08:26:48
2019-08-29T11:58:48
JavaScript
UTF-8
Python
false
false
920
py
schema.py
import graphene import f1hub.drivers.schema import f1hub.results.schema import f1hub.constructors.schema import f1hub.races.schema import f1hub.status.schema import f1hub.circuits.schema import f1hub.constructorresults.schema import f1hub.constructorstandings.schema import f1hub.driverstandings.schema import f1hub.lap...
7530c2c85f83d1714840ba97c1ec702f063658c5
66ec587b4863db4d4b6602793990db19a0869040
/pxng/vertex_array_object.py
8a0612a416ab307604fc06aaf8c31287daa86f59
[ "BSD-2-Clause" ]
permissive
jepebe/pixelengine
f1d49032336cedb01518d2cfbcf29e8760a096c1
57015822e030290a6daefb0eeccd2f8f19061384
refs/heads/master
2023-08-21T16:21:27.459910
2020-11-29T15:27:27
2020-11-29T15:27:27
302,473,146
6
1
BSD-2-Clause
2020-10-21T11:14:18
2020-10-08T22:11:59
Python
UTF-8
Python
false
false
3,219
py
vertex_array_object.py
from typing import List import glm import pxng import OpenGL.GL as gl class VertexArrayObject: def __init__(self, primitive): self._primitive = primitive self._buffers: List[pxng.BufferObject] = [] self._indices = pxng.BufferObject(data_type=self.index_data_type, ...
84eee5c3d0a3e3358727856f0ca0ef4a64c9fa41
0e2063a87a35598f686355248f7e5e831657f01e
/ARIMAYEAR.py
4dc942e6ba69ba627ca1a36428309dfd880281b0
[]
no_license
tangrong258/NNwork
ae189538a35835dd05f1579d135971a4212f06d0
490e91a2c77a8f64080a7cada607a768ded5426c
refs/heads/master
2022-09-08T01:46:36.070398
2020-06-01T05:55:43
2020-06-01T05:55:43
261,732,513
0
0
null
null
null
null
UTF-8
Python
false
false
3,488
py
ARIMAYEAR.py
import pandas as pd import numpy as np import os import matplotlib.pyplot as plt import pickle import statsmodels.formula.api as smf from scipy import stats import statsmodels.api as sm from sklearn.preprocessing import MinMaxScaler from statsmodels.graphics.api import qqplot from datetime import * howlong = "30min" sp...
83e53abe152aff7fff455dfe921e802be85048c9
5f134f6dcd4731da4ba855feb44797a31e5f4941
/work/migrations/0003_auto_20201023_0659.py
e02cf801914539fc5287507e675da11d9d8104a9
[]
no_license
kirandev01/Stepic_4_week
a53cbe0b9028cce185d5db3dca38e7de66eab33d
4fdd9b5b2dd5cb823494eaa656c518235d230695
refs/heads/master
2023-02-26T13:27:22.055022
2021-01-31T14:57:17
2021-01-31T14:57:17
306,188,453
0
0
null
null
null
null
UTF-8
Python
false
false
1,338
py
0003_auto_20201023_0659.py
# Generated by Django 3.1.2 on 2020-10-23 01:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('work', '0002_auto_202010...
0eca6e5d337d2048429f088f046a6d419c49b033
d7f4bfdcf765c27de7ff4eeaa7f61ba63082521c
/NN.py
50d0511b954fc43d9db8cb52293714dffb2278e8
[]
no_license
XiaoTailong/Deep-Q-learning-applied-to-quantum-error-correction
1c2a42910b4ff203f7948afcccbc631956df788d
0ffa0c56ca5e8dc30919078b50a0be31373ea865
refs/heads/master
2021-10-22T18:28:51.992904
2019-03-12T14:36:36
2019-03-12T14:36:36
282,566,749
2
1
null
2020-07-26T03:18:22
2020-07-26T03:18:21
null
UTF-8
Python
false
false
6,048
py
NN.py
import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torchvision.transforms as T def conv_to_fully_connected(input_size, filter_size, padding, stride): return (input_size - filter_size + 2 * padding)/ stride + 1 class NN_0(nn.Module): def ...
b8048c3dbd4a6c6c7737d63ae9f2b8eb7d029463
21b1a9442962f2f0832134c598ebb8250a1bb093
/app/client/src/couchers/client.py
7f293b92778f9899747f179ecf34a15968c65df6
[ "MIT" ]
permissive
pawlean/couchers
301d51303357630710839615d4d9b01b4953c48f
28d08a0137fcadb73cb2e770c4fc97b38917d179
refs/heads/develop
2023-07-07T00:26:42.092623
2021-08-01T10:44:59
2021-08-01T10:44:59
391,667,661
0
0
MIT
2021-08-01T15:39:24
2021-08-01T15:39:23
null
UTF-8
Python
false
false
859
py
client.py
import grpc from couchers.services import get_all_stubs DEFAULT_SERVER_ADDRESS = "api.couchers.org:8443" def get_client(api_key, server_address=DEFAULT_SERVER_ADDRESS, disable_tls=False): """ Given an API key returns a client object. `disable_tls` connects to the server insecurely. This only works on l...
125cebf9162cfbea26ea789bc4c411df3d708c3b
9e9143351a4a99369e1c55a5ff17c0a304072bcd
/爬高清图片/spywall.py
269b206a78a017331692aa2a0a79fe23387c4306
[]
no_license
hengyufxh1/python
af63dfb86a3850ba04e85d19d385354a06547374
28a69af675bd0157a1d51f6cfab865c2029015df
refs/heads/master
2020-05-26T09:00:08.098175
2019-05-28T09:30:34
2019-05-28T09:30:34
188,175,398
0
0
null
null
null
null
UTF-8
Python
false
false
7,324
py
spywall.py
# -*- coding: utf-8 -*- """ Created on Wed May 22 17:48:32 2019 @author: YZLC004 """ # 爬虫:爬虫是模拟浏览器向服务器发送一个请求。服务器接收到请求后返回一个数据给爬虫。 # 抓包:API它这个东西有点想python里面的字典 # https://service.paper.meiyuan.in/api/v2/columns/flow/5c68ffb9463b7fbfe72b0db0?page=1&per_page= # https://service.paper.meiyuan.in/api/v2/columns/flow/5c69251c9b...
0c252982b294bd99e32d5efa0abf3dc9e7309cde
a57c905787f34f430918da9d637503b028e203b2
/data_util.py
cab84d2ede96f19eae53885c0022c23d6239a4e9
[]
no_license
MelleVessies/ECG_VAE
bd55f3e5453e5b57aecd9dda7d592d6f31a2bf69
eee2269733930ce543050ad20e9f95ecc8e437af
refs/heads/main
2023-01-22T02:51:27.495313
2020-12-03T11:48:47
2020-12-03T11:48:47
315,665,854
0
0
null
null
null
null
UTF-8
Python
false
false
5,517
py
data_util.py
import os import numpy as np from tqdm import tqdm import wfdb import pandas as pd import ast import torch from torch.utils.data import Dataset, DataLoader import pytorch_lightning as pl from sklearn.model_selection import train_test_split def load_PTB_XL_meta(path: str): """ Load PTB_XL meta data :param...
e69d2c508d19a592118e1f3af48816cce5f6c72d
8160911c89c9d1204f27492a43c0c2215a01f7e4
/classes.py
682e8a2b0146dcb76dc3649156cc7dbb1fc3c994
[ "MIT" ]
permissive
cylindricalcow/CatanAnn
51dedb6b8b233ae7d550a7d99a638ee5eb6daac7
c3fa6182832f19cdb6c9a3c1b91fd07d3bad0755
refs/heads/master
2020-03-18T16:26:28.227663
2018-05-26T18:50:06
2018-05-26T18:50:06
134,965,422
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
classes.py
class Board: ''' ''' def __init__(self): pass def build_board(self, random=True): pass def add_settlement(self, player, vertex): pass def add_city(self, player, vertex): pass def add_road(self, player, vertex): pass class Tile: ...
a9d96f0b3b72b074cd0c4910656ce473359228ea
de11ed4ce2989f2c8b5b70490506a532e0c3853e
/system/db.py
6976d2a9a21fdbcc5870d14b56060c749e867a56
[]
no_license
inuitwallet/inuit
9a58c23da457a5727a8206f5099166aff4d3b677
702aff34483bc198f371b9e46949ed18856132b0
refs/heads/master
2021-01-01T16:30:15.852338
2014-07-03T17:07:33
2014-07-03T17:07:33
18,553,369
1
0
null
null
null
null
UTF-8
Python
false
false
616
py
db.py
import os.path import sqlite3 def open(): """ open the database connection """ return sqlite3.connect('igloo.dat') def close(conn): """ close the given connection """ conn.commit() conn.close() return True def testDec(): """ test the encryption state of the database file """ if os.path.isfile('igloo...
66c6e5ba0979f21f1562764b2d78ded18d02813c
7e32484521b7a21d8bc28a1888e0a5fe766a9f5b
/scores.py
961f0ce1fd86e6ba8aefb5ee9ed026974f618173
[]
no_license
MerajBighamain/python_projects-1
583dc5e5c0719f14cc0ff9074cb7cd8aec210794
63507d916ddb5ba58616f16354a8b686ab4c6d42
refs/heads/master
2022-11-10T19:22:03.590818
2020-06-23T14:25:18
2020-06-23T14:25:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
scores.py
#calculate scores scores = [["hasan",18,12,13],["mahdi",20,19,18],["meraj",17,18,10]] for person in scores: total=0 for value in range(1,len(person)): total+=person[value] avg=total/(len(person)-1) print(person[0],avg)
b75e132efd5cdeda8193ecdb20345a1df17b73ec
c2213928a990de60100241fa5b5b253dc10f4c3f
/batch0/problem49.py
56b5aec24b80d29cea835fd2b2d78eef3da97157
[ "Apache-2.0" ]
permissive
4rund3v/dailyCode
b00b38808cbb81135320ce33b7f2ad583ecb9a06
a2242aa46cb14909bd16bc5ca5001e0e230be232
refs/heads/master
2021-06-24T03:07:33.454727
2020-12-23T16:38:33
2020-12-23T16:38:33
163,998,459
1
0
null
2019-04-13T09:11:24
2019-01-03T16:41:34
Python
UTF-8
Python
false
false
1,375
py
problem49.py
#!/usr/bin/python """ Given an array of numbers, find the maximum sum of any contiguous subarray of the array. For example, given the array [34, -50, 42, 14, -5, 86], the maximum sum would be 137, since we would take elements 42, 14, -5, and 86. Given the array [-5, -1, -8, -9], the maximum sum would be 0, since we...
3c2abca3121926c7236ad86c03ca83b7195f9aa1
9aaa0c3709565336630936167c76e23da0b0657a
/mainApp/migrations/0010_auto_20200917_1910.py
5089137ab390e8c74be368305d094eab0f20fda9
[]
no_license
xyj228/axf-
dcd1eeb30b6550a56e6679123c45c1ad157d6b76
07963457fc4c6977273bc4fad8607e49cb2c32d9
refs/heads/master
2022-12-17T22:58:45.617178
2020-09-21T06:04:18
2020-09-21T06:04:18
294,422,833
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
0010_auto_20200917_1910.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2020-09-17 11:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainApp', '0009_cart'), ] operations = [ migrations.AlterField( ...
d856630dae7e23be8d0c0368d37c0201aa9836b2
b39d84d19b47d398c4fcbd35519fe652ec22ea95
/main.py
9935bdf2a8d7a3f10fc90d6383021c13a0ccb1e1
[]
no_license
SwieciloM/Projekt-BO2
dd3da68e48d9c65cb413101ff69c55047a31737e
00e109707c1a15546c81cc32396dd00c0a45808c
refs/heads/master
2023-05-13T01:22:37.848766
2021-06-07T11:43:15
2021-06-07T11:43:15
372,762,746
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
main.py
#!/usr/bin/python # -*- coding: utf-8 -*- from math import inf from copy import deepcopy import numpy as np ### KROK 1 - redukcja macierzy ### def reduce_matrix(matrix): new_matrix = deepcopy(matrix) rows, cols = new_matrix.shape LB = 0 # reduce rows for r in range(rows): min_el = min(new...
60d8cb8fa18e11d21d4bc4a28eff830e9ec03a82
251a890cf0fea2f1417ba05e00b0db30984087a8
/1.0/bot/__main__.py
337e5cd77e3bda2af47807890bf1710ea2bdd58e
[ "Apache-2.0" ]
permissive
jonchampagne/dusty-9-bot
f9b3ae1c66bc7f4e2b1efb6f495eb52577edf16f
c63fe49d8390dede0e1c17893eb684cbc6174c39
refs/heads/master
2021-06-09T11:07:40.321637
2021-05-30T18:52:14
2021-05-30T18:52:14
157,477,064
0
0
Apache-2.0
2019-08-13T20:12:36
2018-11-14T02:17:40
Python
UTF-8
Python
false
false
2,519
py
__main__.py
#!/usr/bin/env python3 import os import os.path from os.path import dirname, basename, isfile import glob import discord from discord.ext import commands import json import importlib import traceback import config # Files used by the bot BOTS_FILE = config.CONFIG_DIR + 'bot_credentials.json' # Test b...
753a0085f913293a7d0a9effe1acfc5f18797bbe
90ade6e2097c27133da5c499923e7eddb547ea43
/daily_scraping.py
ffdaa175747974c9ddb8c5e9ac9c9471cf93390b
[]
no_license
DiegoRamirezL/PPRuNe-analysis
523f28bdec658fa1807097ae8041c8fad94fa5be
7b6ddc61c536be56da4f3d8666f4e7db739a41ba
refs/heads/master
2020-06-10T14:29:42.354469
2019-06-25T05:39:51
2019-06-25T05:39:51
193,656,814
0
0
null
2019-06-25T07:25:42
2019-06-25T07:25:42
null
UTF-8
Python
false
false
6,707
py
daily_scraping.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 29 09:35:26 2019 @author: maxence.faldor """ # Import import sys import requests from bs4 import BeautifulSoup import pandas as pd from sqlalchemy import create_engine, MetaData, select, func, Table, text import time import datetime import datepars...
eb14d655598666bad3368f5565159471064ed99d
1a152aaeff231ef35d701c8f69b4a6251df88285
/Control/track.py
9b9ba77837b90a498f1f2ad561f8335985d4219b
[]
no_license
hvzzzz/Soccer_Robot_Using_stm32f1
255fc9f893a0164fc14e1114bc616e57e5176255
cd58489d7acbd034b52381e0be91dbd665d28e2a
refs/heads/master
2020-04-27T05:50:43.270761
2019-10-11T19:19:07
2019-10-11T19:19:07
174,091,955
0
0
null
null
null
null
UTF-8
Python
false
false
1,981
py
track.py
import numpy as np import cv2 cap=cv2.VideoCapture(0) #trackbars def nothing(x): pass cv2.namedWindow("Trackbars") cv2.createTrackbar("L-H","Trackbars",0,179,nothing) cv2.createTrackbar("L-S","Trackbars",0,255,nothing) cv2.createTrackbar("L-V","Trackbars",0,255,nothing) cv2.createTrackbar("U-H","Trackbars",179,179,...
09dde5502d27344b94aca6807e83ea52115fa7b3
486bb954883ee90e44c387057c97f78b5eed7dfc
/damage.py
ffd90d923cf4af0f67d7f8e422d33bb5c2478731
[]
no_license
valates/damageCalculator
b8abc5533c4721e96b6e7bc710fdcc78c3e73ea1
62246273fc22ee248c57c4640c4efce3bf0b1e50
refs/heads/master
2020-04-21T05:11:37.966126
2019-05-16T10:28:11
2019-05-16T10:28:11
169,333,566
1
0
null
null
null
null
UTF-8
Python
false
false
283
py
damage.py
from abc import ABC, abstractmethod class Damage(ABC): @abstractmethod def __init__(self, damage_amount): assert isinstance(damage_amount, int) or isinstance(damage_amount, float) self.damage_amount = damage_amount def get_damage_quantity(self): return self.damage_amount
f079c24a59c38783209080af924547d067fd911b
2706162831ad5cfca9ba5dfbb9a0d196d1775562
/app/main.py
f7a01d9aaf9a37df39d61c34eaeb16dfbcdec4b9
[]
no_license
vmarunov/covid19-factor
e2d2deae7c5a3059f45ba26087d98766d38167de
e5401c6a3371c80ef6870c9d5a16538e472b1d95
refs/heads/master
2023-03-14T21:15:46.135273
2020-10-03T04:50:23
2020-10-03T04:50:23
282,690,340
0
0
null
2021-03-20T04:44:24
2020-07-26T16:35:42
JavaScript
UTF-8
Python
false
false
1,690
py
main.py
import os from datetime import datetime from flask import Flask, render_template, request, send_file from dateutil.relativedelta import relativedelta from app.data import get_countries, get_population, calc_factor, to_str app = Flask( __name__, template_folder=os.path.join( os.path.dirname(os.path.a...
fe6a56aa39b2a77843d11da168f5514d230441a5
b23d0a2b80c91472ac0726f59c76c24239141733
/search/migrations/0002_auto_20180327_1939.py
b83fd95138e2a938eca309cd66da4360c1ddf790
[]
no_license
yangricardo/reditus
d8df08e7f07f0483bcda6aea6fb6040f294e037e
13ca98b8dcf968c37d5b88f7fe92cbff0614084a
refs/heads/master
2021-05-09T09:33:58.743292
2018-04-17T23:18:06
2018-04-17T23:18:06
119,446,344
0
0
null
2020-06-05T16:44:12
2018-01-29T21:49:21
JavaScript
UTF-8
Python
false
false
468
py
0002_auto_20180327_1939.py
# Generated by Django 2.0.3 on 2018-03-27 22:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('search', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='processfile', name='process', ), ...
f9ea1eb4a773d5d2cb0212b77f25e645468f3029
28cb00d3350aa45cb3ff6fe1dacad21a38b4d70d
/launcher/launcher/impl/process_tasks.py
42849023a50afad790d32581cfc2054201405210
[ "GPL-3.0-only", "BSD-3-Clause" ]
permissive
informatics-isi-edu/synspy
7721eecfe15c11cd4d4c51f4b11a8b815087c72c
14994f8205ff00195b4b8c81592e33f9278bdf0f
refs/heads/master
2022-06-25T19:24:28.179238
2021-07-06T23:56:58
2021-07-06T23:56:58
30,096,963
4
1
BSD-3-Clause
2020-10-02T19:56:27
2015-01-31T00:26:01
Python
UTF-8
Python
false
false
1,975
py
process_tasks.py
import os import subprocess from deriva.core import format_exception from launcher.impl import LauncherTask, Task class SubprocessTask(LauncherTask): def __init__(self, parent=None): super(SubprocessTask, self).__init__(parent) class ViewerTask(SubprocessTask): def __init__(self, executable, is_owne...
c4734f3e28d7227eba9a250de1cdbbfb017e8071
fd2517378e5252a1bc7b3bcee4ef37f969a1cc1b
/wondrous/views/__init__.py
e6b5995e1f532dd6414bafbe405175bc7c493e87
[]
no_license
Wondrous/web
0ed3e93f5c44e97dd9138d7b0ca1d946125f1918
84525890fac813ad75584550412a0616a76465a7
refs/heads/master
2020-02-26T15:36:39.732007
2015-05-13T20:14:03
2015-05-13T20:14:03
29,031,865
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Company: WONDROUS # Created by: John Zimmerman # # VIEWS/__INIT__.PY # import os from pyramid.response import Response from pyramid.view import notfound_view_config from pyramid.view import view_config @notfound_view_config(append_slash=False) def page_not_found(re...
b09dba154c5517beaee9774d11e4914f54b3e620
b0790646f10c9683f4a9927578ed63160853c5ec
/20LogicalOperators.py
39f0a558fe1160ea2db408fefe4baf392d545079
[ "MIT" ]
permissive
Dorga/PythonTutorial
b057de8f0270bd567fd843a68e6ddc2d76b4a97a
77be89ecca1639f60677bb95d4a1c47905d1ef74
refs/heads/master
2020-04-09T05:24:11.589701
2015-08-20T19:55:15
2015-08-20T19:55:15
41,115,836
3
0
null
2015-08-20T19:50:54
2015-08-20T19:50:54
null
UTF-8
Python
false
false
88
py
20LogicalOperators.py
__author__ = 'jbowman' # https://pythonspot.com/binary-numbers-and-logical-operators/
022e938df3ed84b61aad20348dfeb202f8b1b412
5b50e15e21e93a879b01200bf22bff73d463752f
/GeneticAlgorithm/TSelNovelty.py
439cde4c5db9f69f8927ffc7ce8f3f6b47368a64
[]
no_license
ste93/naoMove
0ef4c182748bd92d3dd221cd7e3d1b2a2075c4fa
50c127b46a4d88989b5ca25408a32e9d4ed38347
refs/heads/master
2021-01-08T20:16:24.178804
2020-10-19T15:28:20
2020-10-19T15:28:20
242,130,124
0
0
null
2020-09-16T09:05:11
2020-02-21T12:05:51
Python
UTF-8
Python
false
false
1,670
py
TSelNovelty.py
import bcolors from deap import creator, tools from GeneticAlgorithm.StringOperations import string_similarity def create_individuals(population, individual_to_compute_novelty, is_archive): new_population = [] first = True for individual_in_population in population: # the individual is ex...
087ca922e6d5bf2fc7c3163ec8c2d14e219b6cbc
2e6f69aafb92b3dc80c8bad6e1e5a9507341d241
/src/model/Meta_c.py
8305a07172fef5473818f16efab9938b5b236c1b
[ "MIT" ]
permissive
laowng/GISR
32b794b2fe24c4a178456b310ca50af2571d5e52
d95b9e6eafb719f17c7ce46cba57e3eecbdadbaf
refs/heads/main
2023-01-27T17:00:31.302819
2020-12-11T04:05:06
2020-12-11T04:05:06
315,920,833
3
0
null
null
null
null
UTF-8
Python
false
false
11,514
py
Meta_c.py
import math import torch import torch.nn as nn import time # from memory_profiler import profile import torch.utils.checkpoint as cp from model.feature_e import GLCM class Fea2Weight(nn.Module): def __init__(self,feature_num,inC, kernel_size=3, outC=3): super(Fea2Weight,self).__init__() ...
e3396996a6ccd331bb8fd222ec74c617327a4ed0
fce6b58db3e566207f8b1090d59a60448267101f
/Week_03/GroupAnagrams.py
a8f18db0b09c5acdc2d4d0e8d3391cc6af0db08e
[]
no_license
xiasyu/algorithm014-algorithm014
31b5dc71b06a0ece8a10c43075fc85f994539c98
fd196dde61d71c0363d0dfd7dafb6be59550876c
refs/heads/master
2023-01-04T01:36:14.398786
2020-11-01T14:56:06
2020-11-01T14:56:06
286,254,792
0
0
null
2020-08-09T14:36:54
2020-08-09T14:36:53
null
UTF-8
Python
false
false
610
py
GroupAnagrams.py
from typing import List import collections class Solution: def groupAnagrams(self, strs: List[str]) -> List[List[str]]: ans = collections.defaultdict(list) for s in strs: key = "".join(sorted(s)) ans[key].append(s) return ans.values() # ans = collections.de...
0227d4d204f9e39df79a649f2c7cc1d37c3759c6
a980a73a8704d564bd072b77d988402779169c6a
/ShopMall/goods/migrations/0013_auto_20180728_2033.py
28be46c69734f471e08c146fd8cf9b6ce59f39fe
[]
no_license
bo1051767482/django_shopmall
e61884cb2a13a74c11a7d908a060f2d903037d62
d1956cdebb70558801208524f0fb438b6633ba65
refs/heads/master
2020-03-25T07:01:32.794388
2018-09-07T06:56:16
2018-09-07T06:56:16
143,537,468
0
0
null
null
null
null
UTF-8
Python
false
false
1,466
py
0013_auto_20180728_2033.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-07-28 20:33 from __future__ import unicode_literals import DjangoUeditor.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('goods', '0012_goods_tj'), ] operations = [ migr...
46a9c298868227d7954667e3302926c0dd29d8d3
2fa0840c8dfb08f076a11b2900922646a071d6e7
/pm4pygpu/cases_df.py
915abe42de9efb483f766e00bbc4c868f9f5d469
[ "Apache-2.0" ]
permissive
mnghiap/pm4pygpu
25303a5b11ebc4c03885e3640cc902ba9c042bc7
3cd0dbcbf01377c3a9af5f748ef993c095de6b41
refs/heads/main
2023-07-15T20:14:30.024149
2021-08-16T13:55:30
2021-08-16T13:55:30
379,935,837
0
0
Apache-2.0
2021-06-24T13:34:12
2021-06-24T13:34:12
null
UTF-8
Python
false
false
3,291
py
cases_df.py
from pm4pygpu.constants import Constants import sys def get_first_df(df): group_df_min = df.groupby(Constants.TARGET_CASE_IDX).agg({Constants.TARGET_EV_CASE_MULT_ID: "min"}) idxs = group_df_min[Constants.TARGET_EV_CASE_MULT_ID].unique().to_arrow() first_df = df[df[Constants.TARGET_EV_CASE_MULT_ID].isin(idxs)]...
7233249ea21f32cfced06435075ca4fa40a5c343
7934a5962755ec1dcda3fa4479266319e71410e9
/timesheet/admin_class/tareas.py
3fd3adf6b7feda9b86e447f188ddfdb95801d240
[]
no_license
l2radamanthys/timesheet
055a75f80c630cf27ddb50eca30ea52e46e83bb0
08137bb2ebb1c3f170680875ad42caac37b72c92
refs/heads/master
2022-12-27T20:20:16.453307
2020-10-19T14:32:46
2020-10-19T14:32:46
286,139,073
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
tareas.py
from django.contrib import admin from timesheet.models.tareas import Tarea class TareaAdmin(admin.ModelAdmin): model = Tarea list_display = ( 'codigo', 'nombre', 'clasificacion', ) search_fields = ('nombre', 'codigo', )
42bc622c80af28ab53b845aacf39ec8b16cf6623
c46c0fdb76a0ef410987c565b5dd0ddd4b1e5789
/Twitter_Analysis/sentimental_analysis.py
244294b6f5814f4389891891a4ad39a98295a508
[]
no_license
prafullkatiyar/unimelb-cloud-setup
73e35e0f281260225eca609a864e374089c1bd67
bb32b02768a7b5d41b02af56a46a9d43c5f687ca
refs/heads/master
2020-12-29T10:18:39.423075
2020-02-06T00:35:46
2020-02-06T00:35:46
238,570,730
0
0
null
null
null
null
UTF-8
Python
false
false
2,768
py
sentimental_analysis.py
#!/usr/bin/env python3 import time import json from textblob import TextBlob import re import shapely from shapely.geometry import Point, Polygon def sentiment_geocodes(fname1,fname2): result = [] with open(fname1, 'r+', encoding = "utf-8") as geo_tweets: data = json.load(geo_tweets) for item ...
561d86d4921d9c48b5cdf7b424880c78d4f0b5b4
b72b6edbc53fe48d2364da89698faa7d1554365d
/PyDSS/node_voltage_metrics.py
36a52bb7815bf9a9d3d77f719dee5d9953a7748e
[ "BSD-3-Clause" ]
permissive
TimberJ99/PyDSS
9a06bb183ebf3190bfdd62f8ff2e3144933958a9
def06b01195a152292a7182b9002d3a950f1fa40
refs/heads/master
2023-09-01T23:52:01.167430
2021-10-26T19:27:03
2021-10-26T19:27:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,080
py
node_voltage_metrics.py
import logging from datetime import datetime, timedelta from pathlib import Path from typing import Dict, List, Union from pydantic import BaseModel, Field from PyDSS.utils.simulation_utils import CircularBufferHelper logger = logging.getLogger(__name__) class VoltageMetricsBaseModel(BaseModel): class Config:...
fc1c3dd6e133ef5358dce8698f36366fa9722573
f0700c41795365c07a42b5d1c63cd019dc32aa4a
/employeedetail/main.py
f84f447fd33a98cdd08237b78ab7a6688a7a5420
[]
no_license
priyankitshukla/pythonmicroservice
e85a615a786c79803395e5410b27c753299e448f
2e701373a0c5847277bf0fe9f7f73c95be4aa955
refs/heads/master
2023-05-13T05:26:33.094907
2019-12-03T10:30:25
2019-12-03T10:30:25
224,821,190
0
0
null
2023-05-01T21:18:09
2019-11-29T09:28:13
HTML
UTF-8
Python
false
false
363
py
main.py
from flask import Flask, render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') employee = { 'id' : 'NAN', 'organization' : 'HCL' } @app.route('/detail/<int:id>') def employeedetail(id): employee.update({'id':id}) return employee if __...
22ec4c3a5d6ccf8c43e6cb9591396c521a891cb3
5683e2605b72b3735aa9db100fda52aadcda1a58
/최종발표/dist/search.py
8a22e21f54a2f062c3312b5a37f2fa38f49628aa
[]
no_license
HongHyeRyeong/python_Seoul-Culture
e45a1fdd02d7aa94cf402c70e48f2ac7d7c083eb
ceb9cdbc3d57065db89048ba5a15b961bdb51f9c
refs/heads/master
2022-08-04T03:49:47.628480
2020-05-26T03:01:24
2020-05-26T03:01:24
91,669,895
0
0
null
null
null
null
UTF-8
Python
false
false
4,773
py
search.py
from tkinter import* from tkinter import ttk import smtplib from email.mime.text import MIMEText import xml.etree.ElementTree as ET import data class main: def __init__(self): self.myData = data.GetDataSearch() self.tree = ET.parse("dataSearch.xml") self.root = self.tree.getroot() ...
575b38b96099957c906220467408b2b656662f9d
31c91b68c2ae2da57a953d663699e38557c1b422
/MD_exp3/exp3_collisioncounts.py
d5d1fad62bfa5cab80d31d5b094fd418aa876175
[]
no_license
wpower12/DroneExp3_CountCollisions
a5943bb3e9b36213c5e2aa0a65c9bf1464dff33b
d42cec9b77538bb96b0f009265bb18a83853fec5
refs/heads/master
2021-04-02T11:29:33.416491
2020-03-18T15:33:20
2020-03-18T15:33:20
248,270,393
0
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
exp3_collisioncounts.py
from SwarmSim.MultiSwarmSim import * from SwarmSim.ExpHelper import * import numpy as np import random import warnings warnings.filterwarnings("ignore") NUM_RUNS = 100 NUM_TRAINING_STEPS = 100 NUM_INFERENCE_STEPS = 50 ANIMATE = False swarm1 = [4, 'planar', ['b', 'r'], [0, 0, 0], [13, 13, 13]] swarm2 = [4, 'planar', ...
8548b8ab17488d92f08e26dea99b79606b8c47e4
ab1b1dc3673c655d16e3605a52a4627eedd05565
/src/bin/server.py
4cc2059442e637a84c921b139a49856f789b5b6c
[ "MIT" ]
permissive
marcos-hotmart/dotfiles
0236d8f1ad753145177fb30dbbb48966904e0fab
b19e5cfaea54ea7580cf2c3cf230f1d8b788c65e
refs/heads/master
2021-04-29T23:45:39.778353
2018-01-18T22:33:47
2018-01-18T22:33:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
server.py
#!/usr/bin/python import sys try: import SimpleHTTPServer as server import SocketServer as socketserver except ImportError: # python3 import http.server as server import socketserver handler = server.SimpleHTTPRequestHandler map = handler.extensions_map port = int(sys.argv[1]) # set default con...
7ad684fe292fbfdc608b08831dd20be592ac2c5c
ef907fd4beae51ebf267d8a416bd8afa89f607fb
/pattern.py
8085772f7bbba3aa41e38ea789c6aa5d20b1791d
[]
no_license
tanmayee2000/python_practice
2728f608322c032cc8cd36a4e8974ed9682baba3
d13db82b54db5afd3a9259eae73895ac01caf745
refs/heads/master
2023-01-27T17:05:09.958455
2020-11-28T13:44:43
2020-11-28T13:44:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
pattern.py
n = int(input('Enter an integer: ')) #Pattern 1 for i in range(1,n+1): print(end='\n') for j in range(0,i): print((1+j), end=' ') print('\n') #Pattern 2 for i in range(1,n+1): print(end='\n') for j in range(0,i): print( (1+j)**2, end=' ')
7402ef0dd56c3372042bbf1ec66d65ab1cf966b4
928bdf3dc8040c749c8a04272f4493290e29c917
/NeuralNetwork/ConstNode.py
cbf5449e9cc28b1be9ac8926337b81fb2fdf3c00
[]
no_license
Yasic/DemonRules
5d2d6b5c8f8f18c11ca5a9d29914994d92ed991d
373fdf2972d28b32cf4e27d35e4d4d4c677dd7dc
refs/heads/master
2021-01-19T13:12:52.542968
2017-04-15T02:45:41
2017-04-15T02:45:41
88,072,824
1
0
null
null
null
null
UTF-8
Python
false
false
799
py
ConstNode.py
class ConstNode(object): def __init__(self, layer_index, node_index): self.layer_index = layer_index self.node_index = node_index self.delta = 0 self.output = 1 self.upstream = [] self.downstream = [] def calculate_hidden_layer_delta(self): self.delta = s...
5f00a7c7793b8c3346644ec5be0ab2576e501c25
3d7002d0cd9f930e31ab616c3c8212fc10f36132
/Basics/4.Conditional Statements/ternary_operator.py
30a1185125bca4682606194492a26bb499f6f1d0
[]
no_license
gnsalok/Python-Basic-to-Advance
63c35ae46a88e008eba7e063b09379b2ba94b192
c64536ce8efd6322ad0da94632f07a8e92b3959e
refs/heads/master
2023-01-04T05:48:23.965131
2022-12-28T13:19:10
2022-12-28T13:19:10
102,243,639
2
0
null
null
null
null
UTF-8
Python
false
false
179
py
ternary_operator.py
#Working with ternary operator.. #It used to assiging the value to a variable value=int(input('Enter you value?')) EvenOrOdd = "Even" if value%2==0 else "Odd" print(EvenOrOdd)
645f7881f29d8404a81f8987ff81f07b4232ccfd
06886c27ed23be63f2115b47542524134d7f5184
/clip_editor/editor.py
911164a82fe209417605ca8bf21f5703c5b2a66d
[]
no_license
vincentgires/clip_editor
19b0efc03304cca02b33dd63c7ef9a18fd99ebc1
47936e7e6ac0e23a9f4854e226ac61f9de6904c8
refs/heads/master
2020-03-15T22:44:20.590997
2019-04-07T20:50:00
2019-04-07T20:50:00
132,379,157
2
0
null
null
null
null
UTF-8
Python
false
false
5,419
py
editor.py
import os import sys import json import subprocess from . import utils from .config import ( BLENDER_BIN, TEMPLATE_PATH, PROCESS_SCRIPT_PATH) def check_filters(collection, attribute, value): filters = collection.filters if attribute in filters: if value in filters[attribute]: return Tr...
0fed518b5963b746741e764c0b26dad170df3c5c
dfb328f640ebccac77d2887ba7ddf61438f24fc1
/decorator-base.py
3c0fd79fd94b1c086ff192f71b71edc90da4a689
[]
no_license
Alex-GCX/python_advanced
a7f80e04936f770f8795e465cd74821a4bac8649
7ade56e4cb49f5386a3860600561e739d8cc76b6
refs/heads/master
2022-08-29T00:19:25.836178
2020-05-28T09:27:50
2020-05-28T09:27:50
267,547,622
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
decorator-base.py
def set_func(func): def cal_func(): print('--------进行数据验证-------') print('此时变量func指向:', func) func() return cal_func def test1(): print('-------调用了test1--------') @set_func def test2(): print('-------调用了test2--------') print('装饰前,test1指向:', test1) print('手动实现装饰器:') print('1...
fecaa2fb08da75c042d142e29386bffc8cece590
5d5412af91c10ea7089e3cef254b051ad97710fb
/myuser/chatUrls.py
a6078fc8abf15eb699bb01a01dd1ff4d98804948
[ "MIT" ]
permissive
YuanfangLiao/Echange
127b20badc8437ac602b63f73cbb7b60987ef384
b068814e57a7a1255471d9fe3de5e629199acb39
refs/heads/master
2020-05-15T20:55:24.258365
2019-05-17T16:01:07
2019-05-17T16:01:07
182,489,691
8
1
null
null
null
null
UTF-8
Python
false
false
182
py
chatUrls.py
from django.urls import path from myuser import chatView as views urlpatterns = [ path('getlist', views.ChatListView.as_view()), path('msg', views.ChatMsgView.as_view()) ]
b9d7aba92e0e912fd4f7338086990883ddfb3386
00df814bea30397f1381b24bde87cf3890fa5493
/goAnnotation.py
6d7e0fb8089207532b4db288043c96816deb2830
[]
no_license
wangchengww/my-tools
896d5301d9b2b9f59b5aff16c1afac369e07c7c8
101eb12747b8f750a1a46acd74b938361f922449
refs/heads/master
2022-01-18T14:00:47.598946
2019-03-20T11:19:21
2019-03-20T11:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,200
py
goAnnotation.py
#!/usr/bin/env python #-*-coding:utf8-*- #Function: Parsing gene ontology obo file then then get the input go's all parents(Version 1.0) #Todzhu 2018.1.1 import re class oboParse(): def __init__(self,obofile): self.obofile = obofile self.go2name = {} self.go2namespace = {} ...
be8c0401e02e18b2d4551dc42effde01eaaa0c9c
31233566e40aeb7ebcf34f81e1f620a104be6101
/check.py
90dca7c64a1be7a142cdd9a5e5ab32a8fe580d3b
[]
no_license
yash-makadia/Library-Managment-System
d0c0aa435a09fe87b724f9f769d48f547f7a638a
5684e3ddb5809071d9445c9b1b35c71cf7e85fb4
refs/heads/master
2020-07-27T07:45:33.612117
2020-02-29T14:15:54
2020-02-29T14:15:54
209,019,592
0
1
null
null
null
null
UTF-8
Python
false
false
655
py
check.py
import serial import time z1baudrate = 9600 z1port = 'COM3' # set the correct port before run it z1serial = serial.Serial(port=z1port, baudrate=z1baudrate) z1serial.timeout = 2 if z1serial.is_open: while True: size = z1serial.inWaiting() if size: data = z1serial.read(siz...
f17a0ac8460b3019b439861a08680878d557e161
a65da90e71a4eda8f661903333d7dcbabec4737f
/module 9/Functions and Objects Exercise-1/functions_and_objects_1.py
86574e4f4c14347eb4c81c433c2b9975f08533d2
[]
no_license
akshitha111/CSPP-1-assignments
33c42e8217c1ae6d6772f3969d4815c98af4f338
0adbe56afeeadd193f831a3537a1d227af836b77
refs/heads/master
2020-03-25T01:57:01.850708
2018-08-27T03:51:51
2018-08-27T03:51:51
143,266,301
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
functions_and_objects_1.py
""" abs """ def apply_to_each(L, f): return list(map(abs, L)) def main(): """ abs """ data = input() data = data.split(" ") list1 = [] for j in data: list1.append(int(j)) var = apply_to_each(list1, abs) print(var) if __name__ == "__main__": main()
5d4b667cf5888f632947061f27c5e4f33b8e4024
ff4a076fd364ae16840f4a2bb4a6c7c484560f2e
/marssite/tada/migrations/0021_auto_20171006_0617.py
1a517c5c2b77aa3e9484217d6b56022763517d95
[]
no_license
pothiers/mars
0afb3f33abd7524617e93ab09e9ccb90d1f5ffb5
508fc374ef65be61fa58f9fb26cd0d627786e516
refs/heads/master
2022-02-18T03:22:57.433044
2022-01-31T16:57:51
2022-01-31T17:02:22
37,951,308
0
3
null
2017-06-20T15:45:32
2015-06-23T23:49:04
Python
UTF-8
Python
false
false
983
py
0021_auto_20171006_0617.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-10-06 13:17 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('natica', '0002_auto_20170502_1328'), ('tada', '0020...
533abefd5bde3c8feffd2ffeeb9aca3f2419ddeb
dba7a384a0808ec9c4b7681e88158355b0a3e606
/section1/lesson1_6_step11_registration.py
0a0de353e6c16cf18125599dd2f875c559265bf8
[]
no_license
4ster/stepik_py_selenium
33fe18f0e881bcc31606e255ad81c8598832dc40
a0b624aa797287857234244e700bbf8b5cd3b77a
refs/heads/master
2022-08-25T21:38:35.376071
2019-10-31T14:00:05
2019-10-31T14:00:05
218,745,233
0
0
null
2022-08-23T17:55:54
2019-10-31T10:55:56
Jupyter Notebook
UTF-8
Python
false
false
1,899
py
lesson1_6_step11_registration.py
from selenium import webdriver import time # Проверка одной страницы регистрации def check_reg(link): print("Проверяем страницу: ", link) browser = webdriver.Chrome() browser.get(link) # Ваш код, который заполняет обязательные поля input1 = browser.find_element_by_tag_name("input[placeholder='Inp...
448e0be1aedec3aca8a5b0f71f42076a94cc7cb4
33b4ea7bbde4bb21e7f0e68e84978ac57eaf450d
/examples/pub.py
1f254bf998ffd9ce55bd40220799fe2aa0df4339
[ "MIT" ]
permissive
yyljlyy/zbus-python
a0749d657c5b894c44f6146182901ddafdfdf91e
39dc6add990b8334eacb775fc100260006cbdc70
refs/heads/master
2022-02-17T18:15:36.188254
2018-07-06T05:04:25
2018-07-06T05:04:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
pub.py
#encoding=utf8 from __future__ import print_function import sys sys.path.append("../") from zbus import MqClient, Message def onopen(client): msg = Message() msg.headers.cmd = 'pub' msg.headers.mq = 'MyMQ' #msg.headers.tag = 'abc' msg.body = 'pub from python' for _ in range(100): ...
cd6705d97360db5ea7accf5a7f13028d332e1e68
97582b7130a965ad062ceb5a8afdac611cc981b9
/network/layers.py
13d87b1e51e79d5505aee874be03173203c9397e
[]
no_license
cvl-umass/attribute-phrases
c3fdc5d44814ad10c14f8b2816e6eaaf548f0065
5cbb7a31d68b68d1ad83b7a534aacea4531d5e10
refs/heads/master
2023-03-16T14:01:08.146950
2017-12-20T06:07:17
2017-12-20T06:07:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,203
py
layers.py
import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np import os def embedding_lookup(text, V, K, word_embed_type='one-hot', word_count_thresh=5, models_folder='models'): """ Given the text, create a embedding lookup Args: text: (tf.placeholder) the input tokens sequence...
359d7b1a82e7712339b5bae59eb577730fed6813
73f51f2f39dbfcaa588e8e8bc3618e798d0ad589
/example_data.py
62a5badb8687003ba97f14cf9231489adadf5288
[ "MIT" ]
permissive
TobyBoyne/flood-warning-system
7b81e776203a96d028ab54b7c4352920d820c0e2
13ba8e8b2a16820df38e4c49da58eac4ebe320ad
refs/heads/master
2021-02-28T00:09:44.017877
2020-03-20T23:57:27
2020-03-20T23:57:27
245,646,505
0
0
null
null
null
null
UTF-8
Python
false
false
1,289
py
example_data.py
from floodsystem.station import MonitoringStation from floodsystem.stationdata import build_station_list def gen_stations(): stations = [ MonitoringStation('id0', 'm_id0', 'Bourton Dickler', (51.874767, -1.740083), (0.068, 0.42), 'River Glen', 'Little Rissington'), Moni...
00d4b18f2b752d31f4545fa4792d8e7aaaddf114
ec6e703f55f4fbdca59acb72b4715c81599788ae
/ciersoin/reportes/FachadaReporte.py
9537ba06f99267ba6adde4779e3eba784ead5045
[]
no_license
danielcb29/CIER-SOIN
e439a56baafd6c46af529ee457c5b6d611a2b528
74fc333731ab3dd16b2ebbcedf435664f6cd1fda
refs/heads/master
2020-12-25T18:19:41.192221
2015-06-03T15:52:07
2015-06-03T15:52:07
31,600,496
0
0
null
2015-05-23T20:05:39
2015-03-03T13:47:33
JavaScript
UTF-8
Python
false
false
4,521
py
FachadaReporte.py
__author__ = 'alvaromartinez' from teacher.models import LeaderTeacher from cursosCohortesActividades.models import Curso,Actividad,Cohorte,Actividad_Cohorte,Aspirante from calificacionesCertificados.models import Calificacion,Certificado import os,datetime from django.db.models import Count class FachadaReporte(): #...
f6888faf9fcb32c21fc189a68a845a1d7441d2d0
544fe02a27cc4d987724b1bf45c2ba2994676521
/Q012_LCM_Variant.py
8ef8360c1d179f0fa647ad68098261cbc9b6ad8b
[ "Unlicense" ]
permissive
latika18/learning
1e7a6dbdea399b845970317dc62089911a13df1c
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
refs/heads/master
2021-06-16T19:20:28.146547
2019-09-03T06:43:28
2019-09-03T06:43:28
115,537,386
0
0
null
null
null
null
UTF-8
Python
false
false
756
py
Q012_LCM_Variant.py
#Find LCM (Lowest Common Multiple) of two numbers a, b #Example Inputs >>> 9, 3 o/p 9 # >>> 10, 75 o/p 150 # >>> 190, 51 o/p 9690 #Using the LCM formula LCM = a*b / gcd(a,b) def LCM(x , y): """ define a function LCM which takes two integer inputs and return their LCM using the for...
1e33c63581832b4d9d357d0adc75ac7518e7ed98
2772ea29c9ebbc7e4dfd4a2e5fe0075cb8358660
/test/test_avl_tree.py
9fe2d0dccb2cc7021a845d5bb992b98c95fc4375
[ "MIT" ]
permissive
s-ball/bin_tree
c6df6976b8616c75028fef83e5793c9f078e8b19
10e9a49ec81e3b9d4fbbbb952154f21f788913cf
refs/heads/master
2023-04-14T13:15:33.701771
2021-04-23T15:14:51
2021-04-23T15:14:51
356,353,962
0
0
null
null
null
null
UTF-8
Python
false
false
6,307
py
test_avl_tree.py
# Copyright (c) 2021 SBA - MIT License import unittest from bin_tree.avl_tree import AVLNode, TreeSet # , TreeDict import itertools class RotateLeft(unittest.TestCase): def test_simple(self): node = AVLNode(1) node.weight = 2 node.right = AVLNode(2) node.right.weight = 1 ...
39fdb9c586c3cf92d493269ceac419e0058a763a
32bb58a2bdd0ab2247d41d4a9ad322b6b917e4b4
/pyten/UI/scalable.py
00c181cc9709322242bfc8ba2d96dacfff17f3c8
[]
no_license
yangjichen/PublicOpinionAnalysis-TrendPrediction-TensorCompletion
a0a5d1aea44dc963313374c0b5150b9a1c33b4b5
f3dd34f221e29b519799970786b0be01e41f0449
refs/heads/master
2021-02-06T17:49:25.325990
2020-03-15T12:42:34
2020-03-15T12:42:34
243,936,548
2
0
null
null
null
null
UTF-8
Python
false
false
5,287
py
scalable.py
import pandas as pd import numpy as np import pyten.tenclass import pyten.method import pyten.tools def scalable(file_name=None, function_name=None, recover=None, omega=None, r=2, tol=1e-8, maxiter=100, init='random', printitn=0): """ Helios1 API returns CP_ALS, TUCKER_ALS, or NNCP decomposition or...
1f7d770106ea8e7d1c0bb90e1fc576b7ee2f0220
52b04de94e5a4222797e2f62ac0acf9a49655901
/shop/migrations/0004_auto_20200828_1937.py
c14b9f049946747ab61da56c14ad401b8121cee4
[]
no_license
Olhahalaholha/Shop
199fc614df7c2a637e289dacdc8908edf7d4aa15
120309b041c2f1d0dba7ce200a600cfb64a788fc
refs/heads/main
2023-01-06T18:48:07.739983
2020-10-28T18:59:16
2020-10-28T18:59:16
308,115,028
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
0004_auto_20200828_1937.py
# Generated by Django 3.0.8 on 2020-08-28 17:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0003_auto_20200828_1836'), ] operations = [ migrations.AddField( model_name='order', name='total', ...
01847c9e601eae6775cd4324483740c30e344557
ec422eaf4dba670fbe813ff9df20482c8277bbe2
/cf_core/apps.py
7b37d1205320dd49b63b1352fed1984e63fcbf54
[]
no_license
11000001/CF
f8a84932b896477425dbc88967c26c3adefbb8b4
4cf8213417c5374496bf34f6e8ebdbccbb1404a6
refs/heads/main
2023-03-20T00:22:59.917344
2021-03-16T21:48:52
2021-03-16T21:48:52
330,026,533
3
0
null
null
null
null
UTF-8
Python
false
false
88
py
apps.py
from django.apps import AppConfig class CfCoreConfig(AppConfig): name = 'cf_core'
ac2d4372f8913ea9ae1066833cca09985e521f99
fa73f136ac6989bd7574f911c095d7ab17f428d0
/system/motion.py
239d9cebb1bf0a7c7f58eb31ed7e0c18345d7797
[]
no_license
datasith/Wall2.0
c0f67345d094bb169f08a2797bc5e0670e2375b6
ccc1cd67bffc8f257aba5516f93ef8761da8c589
refs/heads/master
2021-06-25T17:01:37.544412
2016-03-15T01:42:13
2016-03-15T01:42:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,901
py
motion.py
#!/usr/bin/env python """\ Simple g-code streaming script for grbl """ import serial import time import csv import json import RPi.GPIO as GPIO from multiprocessing import Process, Queue class motion(): def __init__(self): # Open grbl serial port #self.s = serial.Serial("/dev/ttyUSB0",baudrate=115...
ca11e9cf0bcfcbd714c45b5c95bd2c2044b65909
850e4fc3e16fa64969fbc915441bf522efcf0c9e
/woma/http.py
5def2fadb052ddf1e7ba33184ba7ef0950ceef23
[ "MIT" ]
permissive
blaix/woma
aff256abfaa7e2634722b2c2b230e20618422215
5de2eb148bf785a5b29bfc2c3c9b99c5d688630b
refs/heads/master
2021-08-10T11:39:33.874881
2020-04-21T11:09:20
2020-04-21T11:09:20
47,718,419
6
0
MIT
2018-05-25T09:19:05
2015-12-09T20:55:57
Python
UTF-8
Python
false
false
2,101
py
http.py
"""Woma objects for dealing with HTTP. Request and Response inherit from webob's Request and Response objects, so see http://docs.webob.org/en/latest/ for full documentation. The only things documented here are the customizations. """ from webob import Request as BaseRequest from webob import Response as BaseResponse...
2c22f891f30825bcb97987c78a98988ad2a92210
f89d6ed3624c47270b90d7f3d138b662e137e1c5
/crawler/src/pricewatcher/scripts/run_parsers.py
466f91137811a25999f2a20a2596448a8555e925
[]
no_license
umkevinc/priceWatcher-Server
58f5f4372dc7f8fa41cc93f3b4ec465ea9b9e8e6
7c58182a48d27a437d7813666a16a2287d808f1a
refs/heads/master
2021-03-27T11:49:52.658115
2015-02-12T07:36:52
2015-02-12T07:36:52
27,659,009
0
0
null
null
null
null
UTF-8
Python
false
false
3,388
py
run_parsers.py
import os import sys import json import logging import argparse from glob import glob from pricewatcher.tools import ensure_mkdir from pricewatcher.parser.f21 import ForeverParser from pricewatcher.parser.jcrew import JcrewParser from pricewatcher.utils.load_es import bulk_load_es BRAND_PARSERS={ 'forever21': Forever...
3cd7abf9659fe1db0ef3aa58df8dd7fd959e10a6
506a20eeaa96c46a696ed34423a3d1c44de236bb
/Unit_3_Python_Challenge/PyParagraph/main.py
1ed51c3916c238b4a5d733c186395183c9469896
[]
no_license
AQR8HZ/UCI-Coding-Bootcamp-Data
21b6259f4a89888cb9d81c004225dd447130e59f
d3df458a1a90062cbad14e8945569ed7c2278413
refs/heads/master
2022-12-23T19:31:47.419574
2019-08-02T23:51:42
2019-08-02T23:51:42
171,177,842
0
0
null
2022-12-08T02:33:30
2019-02-17T22:05:06
Python
UTF-8
Python
false
false
1,598
py
main.py
import os import csv import re totWords = 0 wordLen = 0 totSentWithPunctuation = 0 sourceFile = os.path.join('Resources', 'paragraph_2.txt') with open(sourceFile, 'r') as paragraph: paragraph = paragraph.read().split("\n\n") for sentence in paragraph: # Remove punctuation from sentences sentWithPunctua...
b95619f3f52ff3747e38ecc153123962d0122a4d
9d1ecbe43ce68d6c72c4c1bdeda0d32f4768e916
/ldap_user/__manifest__.py
9af13b4f35556c925afcae10db79a13c0e8d537a
[ "MIT" ]
permissive
LeiQiao/Parasite-Plugins
da03d72589caf1f3483119c6a693cebd642690ca
96a20819f2cf625f22e06be9dc03a997291e1fc6
refs/heads/master
2023-09-04T00:29:28.592596
2021-10-18T09:51:31
2021-10-18T09:51:31
153,253,611
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
__manifest__.py
# noinspection PyStatementEffect { 'name': 'ldap_user', 'summary': '', 'description': '域账号用户管理,登录及查询用户信息', 'author': '', 'website': '', 'source': {'git': 'https://github.com/LeiQiao/Parasite-Plugins.git', 'branch': 'master'}, 'category': '', 'version': '0.1', 'api': { '/use...
c3527363cfc29ab7d598fe232d784b05ec2ef069
1013636bee535d33e3ca1f1c1f264747def8dd8f
/webserver/opentrain/analysis/logic.py
684bec50bb9e9d49bbd8b69a1c3e50a8a3f4fc41
[ "BSD-3-Clause" ]
permissive
nonZero/OpenTrains
15c825e234f4f686e3f30b3271d6cb107e2cbe92
53a5a9240c0ea122d63636fc5e4515fbf96a5aa4
refs/heads/master
2021-01-14T08:35:02.397535
2014-01-13T21:38:22
2014-01-13T21:38:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,571
py
logic.py
import models import json import reports.models import common.ot_utils def analyze_raw_reports(clean=True): if clean: delete_all_reports() COUNT = 100 offset = 0 while True: cont = analyze_raw_reports_subset(offset,COUNT) offset += COUNT if not cont: return ...
484d104a8481a707a187d0bcb30898c3459a88be
91251d319630814e35b89a4a38467d74096f239c
/apps/virt/urls.py
3f70333a6d41e88c9d61be7377c7ca4bd01df65c
[]
no_license
thiagosm/virttool
a37b085269b6fadf91f94ce6387edc0182a83206
bf7b27e3f5a2f0c2b209ae7e21c3ee9f83bd71f7
refs/heads/master
2021-01-19T11:20:54.757942
2015-02-18T19:15:53
2015-02-18T19:15:53
11,241,700
0
1
null
null
null
null
UTF-8
Python
false
false
2,981
py
urls.py
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from apps.virt.views import node, domain,device,cluster,home urlpatterns = patterns('', # Home url(r'^$', home.HomeView.as_view(), name='home'), # Cluster url(r'^cluster/status/$', cluster.ClusterStatusView.as_view(), name...
1706b69b0cb153f873fa7bb8e715e809648c8745
232fc2c14942d3e7e28877b502841e6f88696c1a
/dizoo/classic_control/cartpole/config/__init__.py
262771aea1489354cb326ac0231c45ed06b3b16d
[ "Apache-2.0" ]
permissive
shengxuesun/DI-engine
ebf84221b115b38b4b3fdf3079c66fe81d42d0f7
eb483fa6e46602d58c8e7d2ca1e566adca28e703
refs/heads/main
2023-06-14T23:27:06.606334
2021-07-12T12:36:18
2021-07-12T12:36:18
385,454,483
1
0
Apache-2.0
2021-07-13T02:56:27
2021-07-13T02:56:27
null
UTF-8
Python
false
false
992
py
__init__.py
from .cartpole_dqn_config import cartpole_dqn_config, cartpole_dqn_create_config from .cartpole_a2c_config import cartpole_a2c_config, cartpole_a2c_create_config from .cartpole_impala_config import cartpole_impala_config, cartpole_impala_create_config from .cartpole_ppo_config import cartpole_ppo_config, cartpole_ppo_c...
cfb0f53f1a397a68735f892be8f417ce77599767
e60ad36c8e9572815a59aaf1298e7ae159e2bc74
/pyconjpbot/plugins/calc.py
52d910cc34c38c6c480c1b5d0e56497b4dc2a4ff
[ "MIT" ]
permissive
pyconjp/pyconjpbot
f94037fb14da34d5fbca617d66de1ed4aaa34702
3ccb973452d065690f072f5d21473040dbcf9a4c
refs/heads/master
2023-08-31T09:39:07.476402
2023-08-28T14:53:25
2023-08-28T14:53:25
59,729,433
31
9
MIT
2023-05-23T04:54:11
2016-05-26T07:28:10
Python
UTF-8
Python
false
false
1,168
py
calc.py
import re from slackbot.bot import listen_to from slackbot.dispatcher import Message from sympy import SympifyError, sympify from ..botmessage import botsend # 単一の数字っぽい文字列を表すパターン NUM_PATTERN = re.compile(r"^\s*[-+]?[\d.,]+\s*$") @listen_to(r"^(([-+*/^%!(),.\d\s]|pi|e|sqrt|sin|cos|tan)+)$") def calc(message: Messag...
520e2a77249cd34ceb72c24f5504460eb5b403b8
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4445/codes/1670_2975.py
a73187417ff1a83fe2f08db11a677e388713c764
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
183
py
1670_2975.py
x=round(input("quantidade de suco:") x=(2*3) print("quantidade de salgado") y=(2*3.5) y=round(input("valor que temos disponivel") disponivel=20 total=round(20,2)
c4a4602449f07dac6df31c60cdac08b0730cd768
107d6a3ca0e296728ed8c51e55fe61d572d6d6d6
/setup.py
ee6fcc2d7d3385c40abede534cc98edcc29bff5e
[ "MIT" ]
permissive
hvnsweeting/clista
4f23d2b33fe4563e5058d5f722254dd1f69983c9
10957528293b2f7d1a50d691ef84e7f0a2e687d8
refs/heads/main
2023-08-17T09:27:01.099686
2021-10-11T16:50:03
2021-10-11T16:50:03
415,954,740
1
0
null
null
null
null
UTF-8
Python
false
false
136
py
setup.py
from setuptools import setup setup( install_requires=["streamlit"], entry_points={"console_scripts": ["clista=clista:main"]}, )
7a390ada3c4c82f1c18dfbe05917c25a03ceeda9
1283e1881a3b18c089903294ffb4ca7449d7b73b
/Pytorch/generate.py
b0c3287ea843cc48930f8a8389730e790a2d4e1b
[]
no_license
honeius/diaGAN
ee5d7d1f3571598d8886740b225fe08a30930128
99fe1423460a4281c171026d6e0032b06ebc824a
refs/heads/master
2023-03-21T03:28:57.618848
2020-09-16T15:47:33
2020-09-16T15:47:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,561
py
generate.py
#! /usr/bin/env python3 # coding: utf-8 import argparse import os from gan import * import torch import torch.optim as optim import torch.nn as nn import torch.nn.functional as F from imageio import imread, imsave from dataloaders import * from mpstool.img import Image import numpy as np import random import tqdm d...
76e0327994c09d981785aef4958d19ce0a9733f8
c9d9e9c80346e080d31f5febb33ec681976b4e71
/rtm_hist/MEB_mile.py
cb6d39c35fcdd0ac7eb62e8e661ecc8838616fc4
[]
no_license
Zlqq123/rtm
e66da605c27907fc4371b0347c99ec3c8fa8a634
6dbc3beb7889578659528b66aa6a810e02df934b
refs/heads/master
2023-06-09T20:17:10.899382
2021-07-08T08:53:48
2021-07-08T08:53:48
262,567,464
4
0
null
null
null
null
UTF-8
Python
false
false
14,676
py
MEB_mile.py
import sys sys.path.append(".") sys.path.append("..")#sys.path.append("..")的意思是增加搜索的路径,..代表上一个目录层级 import xlsxwriter import time from datetime import datetime import numpy as np import pandas as pd from rtm_hist import hist_func_np from en_client import en_client client=en_client() def create_vin_table(): #MEBl...
e615602057d2a9a0514ba03f1bad03dda2b81f1e
29f2c40392489fc1656010f2c9b384fd0b090847
/test/opsem2/lit.cfg
cd1677d593b491ce4ad2c9baffc0bf41c8977fe9
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
seahorn/seahorn
6498777c0d12716379035c0bc102b9baec6f28f9
2bab7831960766a0a16f149adcdce55f0651eb8f
refs/heads/main
2023-08-25T13:51:48.354660
2023-08-11T00:48:27
2023-08-14T16:43:13
31,487,486
423
126
NOASSERTION
2023-09-08T21:30:09
2015-03-01T05:08:17
C
UTF-8
Python
false
false
2,468
cfg
lit.cfg
# -*- Python -*- import os import sys import re import platform import lit.util import lit.formats config.name = 'Seahorn' config.test_format = lit.formats.ShTest(execute_external=False) config.suffixes = ['.ll', '.cpp', '.c'] config.excludes = [ # These are no tests ] config.test_source_root = os....
1f742342678f5e66df56bc08440bfaa7f3eb620d
b3f125b5a3039fdda872365d5ddeed2947a0a0aa
/data_process/log_auth.py
981d0dda645693a81dcffc1f6f1bffccdf979ab9
[ "MIT" ]
permissive
dxcv/vnpyStockEngine
f7faa77aebfc813f7a82fecddd4822dadcd0e112
7543c7ed5bae70b5b87342d9317517a12444b673
refs/heads/master
2020-06-21T21:26:31.405461
2019-03-06T07:16:00
2019-03-06T07:16:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,165
py
log_auth.py
from JZpyapi.JZpyapi.client import SyncSocketClient from JZpyapi.JZpyapi.const import AUTH_TYPE_SERVER import pymysql.cursors def connection(database_key): mysql = {'host': '', 'port': None, 'user': '', 'password': '', 'db': '', 'charset': '', ...
1742f6af923aa509d899cd39fef181af3ea33c6d
3a6674572258c54631014103cbf21f2c3dea5eb3
/Python/Beta/test_get_pi.py
f46971c82ea20eeb2974e9246c624ad570535783
[]
no_license
herndev/Good-old-mini-projects
6836c7512613e96bdcc4007778bc65818a2e59a5
4422fc9a501bff271c7624465cc9af657744baf2
refs/heads/master
2023-02-01T14:45:51.421768
2020-12-17T01:11:00
2020-12-17T01:11:00
322,137,929
2
0
null
null
null
null
UTF-8
Python
false
false
355
py
test_get_pi.py
import random def estimate_pi(n): num_point_circle = 0 num_point_total = 0 for _ in range(n): x = random.uniform(0,1) y = random.uniform(0,1) distance = x**2 + y**2 print(x**2, y**2) print(distance) if distance <= 1: num_point_circle += 1 num_point_total += 1 return 4 * num_point_circle / num_po...
debad0a7d125317daae81229fd203f3eaf0b9259
5622cfad280bb6700e940000039de9a59f924460
/sonarqube/community/favorites.py
4a4dd325d42b27aa98dc0ea4ee4a51e19f089846
[ "MIT", "Python-2.0" ]
permissive
rage28/python-sonarqube-api
b9f6d3fc0e3a47483ccc90ac3740f9fe6f59b863
ac57689b871b6852b2d48253b0798f31c0eb5663
refs/heads/master
2023-09-02T14:21:28.630321
2021-10-25T10:46:34
2021-10-25T10:46:34
268,452,589
0
0
MIT
2020-06-01T07:21:33
2020-06-01T07:21:32
null
UTF-8
Python
false
false
1,404
py
favorites.py
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Author: Jialiang Shi from sonarqube.utils.rest_client import RestClient from sonarqube.utils.config import ( API_FAVORITES_ADD_ENDPOINT, API_FAVORITES_REMOVE_ENDPOINT, API_FAVORITES_SEARCH_ENDPOINT, ) from sonarqube.utils.common import POST, PAGE_GET class S...