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
c4096cfae7182875a79ba7837187cd94b4379922
ba9cd4ba52c482d401530c6d28c35fd52310611c
/app/main/views.py
c2e996ae90bcb59fb840f10ba02946f536a77570
[]
no_license
Porter97/LinkPreviewDB
e83734bff035d3b7773421d6510d28ee031c4c11
6987ebad22a1bbd6fc22deaa8837726369265fa9
refs/heads/master
2023-02-01T09:06:04.357886
2020-12-05T15:21:16
2020-12-05T15:21:16
318,640,466
0
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
views.py
from flask import render_template, request, current_app from . import main from .. import db, cache from ..models import Content from ..utils import make_cache_key import requests @main.route('/') def index(): return render_template("templates/index.html") @main.route('/link') @cache.cached(key_prefix=make_cach...
5a59108084d943f6faa07ffea1467dc19c3dd790
c4ab2d771f3fd47e95dfca9cf8441dd686199b80
/SchemaCollaboration/management/forms.py
797e27ed1614aa84259fffb3867c02f9cd509b10
[ "MIT" ]
permissive
Swiss-Polar-Institute/schema-collaboration-arctic-century
0302cdf2e70a9f460eb397d77bf9f6010e5a0482
e02b598c7b11b26815be6e9811ff355757263995
refs/heads/main
2023-06-26T02:07:12.717899
2021-07-24T21:03:08
2021-07-24T21:03:08
385,194,488
0
0
null
null
null
null
UTF-8
Python
false
false
2,562
py
forms.py
from crispy_forms.bootstrap import FormActions from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Submit from django import forms from django.forms import RadioSelect from django.urls import reverse from core.models import Person, Datapackage from core.utils import cancel_button ...
8bf330dc7bee65ac9478722233477ebe5d0286c2
e6c464731650f9f49a774415c9ad0d377bb62b7e
/MarcosTV.py
e00930c5f4c2c487ea0c748c34e88286e6cf7bee
[]
no_license
MarkGaming1234/TheMarcosTVProject
52fb1483005cd1f3c17515d33c18f71f7ad46d85
b951c7bcb5e14f851733839b16f860a262263109
refs/heads/main
2023-06-28T05:02:47.980828
2021-07-25T11:49:14
2021-07-25T11:49:14
384,927,192
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
MarcosTV.py
import tkinter import webbrowser ventana = tkinter.Tk() ventana.geometry("1920x1080") def test(): webbrowser.open_new_tab('Test.html') boton1 = tkinter.Button(ventana,text ="WEB", width = 10, height=5, command = test ); boton2 = tkinter.Button(ventana,text ="boton2", width = 10, height=5); boton3 = tkint...
c6055c6b67ac28d304ed34ddc2f81e59da8e7f1b
d1d26989c9f22fabbea1a50e958b648e97b816d5
/hsch_operations/hsch_operations/doctype/goal_category/goal_category.py
92d4cb16f256062efbb30de0d643846160fb96a5
[ "MIT" ]
permissive
Olawale1/hsch_operations
4f2f52cd8e1cce9cd637fbe76da487dd1aa1a1fe
24c76190259845b1ab183146d67b6d4ae5adb502
refs/heads/master
2020-04-09T23:31:40.929879
2018-12-06T10:56:42
2018-12-06T10:56:42
160,659,343
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
goal_category.py
# -*- coding: utf-8 -*- # Copyright (c) 2018, HSCH and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils.nestedset import NestedSet class GoalCategory(NestedSet): nsm_parent_field = 'parent_goal_category'; de...
84476e1793242bf3bae51263c2db28ff555c25d7
78a39815d4295a2feb35d7962266317c62b3c21c
/main.py
c05581708b4af85cabec5f1b6370af4a4cfad44b
[]
no_license
joseph-neeraj/baby-heat-map
325ff4c2ec4aa066546fa2d0648a4f9b778687ac
f666715e5d8f6c52ced26847419e445727b8e9b2
refs/heads/master
2023-01-14T10:15:08.443150
2020-10-28T20:49:07
2020-10-28T20:49:07
308,108,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,345
py
main.py
import numpy from PIL import Image, ImageDraw def start(): # ---------------------------- # Set values # ---------------------------- image_file = 'sample.png' # Coordinates, where [0,0] is top left corner top_left_corner = [100, 100] # [x, y] bottom_right_corner = [200, 200] # [x, y] ...
a35e86e474883d892a6ce8eb191a3a5f8a9558c8
59e9cadc1d725a3d5bc69f1288ac92b80e5112fe
/csbi/urls.py
fead1499083457a9b841148d10ad98b2cdfd2323
[]
no_license
springkjw/csbi
6dcaa0efc69f30d068f45680f62b9a729a29dfb3
fb548ccac2d7f17a9637f367d3de1eb72a5e9ebc
refs/heads/master
2021-06-13T22:31:14.223871
2017-02-23T08:53:45
2017-02-23T08:53:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,247
py
urls.py
from django.conf import settings from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin from .views import home, profile from member.views import member from publication.views import publication, pub_detail from notice.views import list, notice_detail from...
ac178d4e009a40bde5d76e854edc6f6ae8422610
f4d6c3e5fb704dcc070782aab51e3f2e2dccf9a9
/cherry_picker/RandomSelect.py
1697b45701f8398368d1fdcd812eb6167c6d2ef3
[ "MIT" ]
permissive
peasant98/NBA-Stats-Cherry-Picker
b1a1c6e107b66991b51586a4c7f20d7c9e68b1d1
7f2a400c89c180db1e92379078736482f2c96024
refs/heads/master
2020-07-31T20:48:40.866834
2020-04-25T02:12:58
2020-04-25T02:12:58
210,749,228
1
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
RandomSelect.py
# file with function to randomly select user from all of the data, all of the games import ast import csv import numpy as np import pandas as pd import sys from nba_api.stats.static import players # some fun little work to get a random player def get_random_player(file_name): def need_s(num): return 's' i...
91f83adbe01e2d8070f9286031b77eae71beb83e
48d4b44c7659588551658f8942c4d43a072dac1a
/buzzfizz.py
8b37aeac023fb23eb0a06c115137e358df16ffff
[]
no_license
viresh241196/simple1
246428f04364e7f727fae55277f3a8033fca0b01
d797a8687697c5766c0a957fea9a9a2f5e04abb0
refs/heads/main
2023-02-27T22:13:08.702415
2021-02-02T07:11:41
2021-02-02T07:11:41
335,198,084
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
buzzfizz.py
def maths(num): int(num) if num % 5 == 0 and num % 3 == 0: print("bizzfizz") elif num % 3 == 0: print("fizz") elif num % 5 == 0: print("bizz") else: print(num) value=input("enter the value ") maths(int(value))
b874bfe9590a3eaff4298d6f9cc72be92000dc30
84feab3cd5a73a0afa5d53529103f32ad01ad489
/tests/test_google_play_app.py
b3a1657eca947d60963477b29472290e56e020a4
[]
no_license
JustinFightOn/Google_Play_App
6c7154440d5d074af5021b95a0b6f3ad6edafe1d
908d78bc463e8a299040be11774e290407e34ae3
refs/heads/master
2020-05-02T02:51:47.741701
2019-03-26T04:21:30
2019-03-26T04:21:30
177,713,967
0
0
null
null
null
null
UTF-8
Python
false
false
1,054
py
test_google_play_app.py
"""Unit test for int install """ import math import pytest ROUND_OFF_ERROR = 0.001 def int_installs(x): try: return int(x.replace(',', '').replace('+', '')) except: raise ValueError("Cannot transform to int.") def test_int_install_1(): """Unit test to showcase functionality of int...
54a705de2597140a72e47f5afe86614b619461b7
ebfe1e233995c6b0ea21d39a1afbb8e2b408d10e
/shops/urls.py
e0d03b3f96abbb245aca278452f6cf406c74d800
[]
no_license
andrewkinsa/coffeeshops
4deddc22f35e346251b1d02794db8a836b7249c7
045ab3a35dc9e56d7f05479a2e0c07c0888b5247
refs/heads/master
2020-03-28T04:59:58.164351
2018-09-07T00:55:12
2018-09-07T00:55:12
147,750,257
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
urls.py
from django.conf.urls import url from . import views from .views import ShopView, ShopListView urlpatterns = [ url(r'^coffeeshops/(\d+)$', ShopView.as_view()), url(r'^coffeeshops$', ShopListView.as_view()), ]
c92fcf4362b47591d6d213fe01d1730b13072baf
201335e99ac66a1e404bda38c3ca0fe1006835ce
/model_merger/pytorch/proc/shiamese_loss.py
71d927169e296cf613cc09562b7d9045e1513949
[ "MIT" ]
permissive
yuga-n/ModelLearner
507c701cb5beea30e096a51c2ae1296cdc699f8b
3193efd5eb15172ba8231a34829942040fcb0fc5
refs/heads/main
2023-08-14T04:03:23.338993
2021-09-10T14:15:30
2021-09-10T14:15:30
406,409,911
0
0
MIT
2021-09-14T14:52:28
2021-09-14T14:52:27
null
UTF-8
Python
false
false
1,770
py
shiamese_loss.py
import torch from model_merger.pytorch.proc.distance.abs_calculator import AbstractDistanceCaluclator from model_merger.pytorch.proc.distance.calculator import L1Norm from model_merger.pytorch.proc.loss.abstract_calculator import AbstractLossCalculator from model_merger.pytorch.proc.loss.calculator import AAEUMLoss c...
1b875425bec5766c2818b7a61656cb9033b853f4
0f99b29c75ab4df16542800043cbc9e1dce651a2
/Tut1/dateNTime.py
ea682575f0b6266abb88a872db2ec759c7faf0ab
[]
no_license
anna-marie-vos/Python-introduction
9418f07e7336ac718716e76a226e58ef27767d2b
958dc1546f8af31a7f2458e37f0f3ac5fe18e531
refs/heads/master
2021-01-17T08:05:14.131341
2017-11-14T08:24:01
2017-11-14T08:24:01
83,842,030
0
0
null
2017-03-27T08:50:57
2017-03-03T21:16:38
HTML
UTF-8
Python
false
false
322
py
dateNTime.py
import datetime import time now = datetime.datetime.now() formatted = now.strftime("%Y-%M-%D-%H-%M") # yesterday = datetime.datetime(2017-04,15,10,15,0) # difference = now - yesterday print(formatted) lst = [] for i in range(5): lst.append(datetime.datetime.now()) time.sleep(1) #creates a time delay print(lst...
1a1332eaeaf658690ace7a8b0695c3e596da1249
e177d7cffdebb8887c8ac5aa76d8f99988907ec1
/competencia.py
0bf54894aea6e3fa6ad72c9dbe3d04e887b6db5a
[]
no_license
johan530/Challenge-Juego-de-carros-por-consola
f392e3e2c18e81e1fa3d0f2e8d940e0499604f56
57dfbf48630ebb88e7644d3837d532d3c6af060e
refs/heads/main
2023-06-29T04:22:04.813198
2021-08-01T05:02:23
2021-08-01T05:02:23
391,530,524
0
0
null
null
null
null
UTF-8
Python
false
false
5,558
py
competencia.py
# -*- coding: utf-8 -*- """ CHALLENGE - JUEGO DE CARROS POR CONSOLA ----------CONSIDERACIONES------------- 1. Cada carrera finalizada se almacena en su respectivo csv con el podio de ganadores de dicha carrera. 2. Las victorias de cada jugador se acumulan mientras el programa continue en ejecución. 3. No se per...
b74aab9c282fb3f0e5d327a07d1e8364f5de002f
308e8a76f8f3842fdccfbbd98433c84fe3a09deb
/planetsim.py
74618c61a9f71a9c60f4f8a3043a8f9c9c3c7b97
[ "MIT" ]
permissive
russlbrown/planetsim
95caee4885bf5cdfe1af72d216b96fdfd6be0000
05b73bfc201e3720daf22524104b4f056d07ff81
refs/heads/master
2021-04-06T11:30:18.329713
2018-03-08T21:36:26
2018-03-08T21:36:26
124,450,657
0
0
null
null
null
null
UTF-8
Python
false
false
9,854
py
planetsim.py
from graphics import * import random, time, sys def main(planets, massMax): maxDesiredAccel = 10**10 #maximum acceleration allowed before calculation accuracy is ramped up. try 1 dt=0.001 #desired time per iteration in seconds G=300000.3 #Force calibration constant. try 0.03 rr=1 #Rebo...
55553ac69cd4a1f7c0d30092d6269988f26d6177
d3c9a67858afbfb0e6b43c0f58199f03ef65dc65
/lab5/lab5_solution/sales/salesapi/migrations/0003_auto_20201127_1719.py
49435ecf8529fa67089ea2153520bc17c2f080d9
[]
no_license
kwarc-agat/currency-rates
b93b80926979ae781df379a24707550efc67e9a7
9ecf9fc3033438d1583f754058bc51ad612e1d5f
refs/heads/master
2023-07-18T16:08:41.617074
2021-09-22T19:21:10
2021-09-22T19:21:10
372,300,052
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
0003_auto_20201127_1719.py
# Generated by Django 3.1.3 on 2020-11-27 16:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('salesapi', '0002_delete_salesrecord'), ] operations = [ migrations.AlterModelOptions( name='currencyrecord', options={'manag...
d3c81560472d13ca9375e043c19efd9b3cb818f4
36bbcc3f1b9453a59c73c48a287e857ac412a574
/modules/clean_access_logs/job.py
a95d4f3ee50ac640a9410865ff6ad136cbc7bfca
[]
no_license
HungDo1291/emr-hadoop-spark-zeppelin-etl
8c89bf1dd7e23cdf7d5fe877bece86c16f84a021
1df691a504047d78d9985f425602fcccc593daeb
refs/heads/main
2023-03-20T20:23:53.733185
2021-03-14T13:02:29
2021-03-14T13:02:29
347,600,450
0
0
null
null
null
null
UTF-8
Python
false
false
556
py
job.py
#1. Read the script file #2. Generate temp s3 path with uuid generator #3. save the script file on s3 path #4. ssh and execute hive script #5. delete hive script from s3 import os import datetime from common.emr_utils import run_on_hive from config import key_path, ip if __name__ == '__main__' : dir_path = os.ge...
fff694ba82339738be426f993e4866916b6f3037
c38c4f484c0ae504d5dee4d97dea8ed3dfba23fc
/mh-z19.py
d0080ba9849a7b5241f4ada426faafa40f73d66a
[]
no_license
saito253/MicroPython
95fd44de9f39da594b500241c68797e06849105c
11da56f024be49d738342e2b7cc2e20eb79185d3
refs/heads/master
2023-05-09T02:28:36.669869
2021-05-28T07:31:33
2021-05-28T07:31:33
371,619,621
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
mh-z19.py
import machine import utime mhz19c=machine.UART(1,baudrate=9600) while True: data=bytearray([0xff, 0x01, 0x86, 0x00, 0x00, 0x00, 0x00, 0x00, 0x79]) mhz19c.write(data) mhz19c.readinto(data,len(data)) co2=data[2]*256+data[3] print(str(co2)+' ppm') utime.sleep(1)
e27228fc2e47887e0c60eea0f69c4ea4eb424102
319ea6929d57419cd9e4e428d5027f075ab52088
/_plugins/experimental.py
a0118693ef0260b9dcfcfab776134dd37c0b8e90
[]
no_license
tomflannaghan/website
359512302c4eca4efe5f6580a31d710c3b94f1d7
edc8d0dd653da4991a7bcf6a49e3236509f75a4e
refs/heads/master
2023-03-27T09:46:48.719763
2023-03-12T11:01:29
2023-03-12T11:01:29
34,478,210
0
0
null
2021-06-23T14:23:34
2015-04-23T19:54:50
HTML
UTF-8
Python
false
false
1,681
py
experimental.py
## some experiments with height gain. import sys import gpxpy import os import pylab import numpy import json import scipy.interpolate ## file names supplied by Ruby. gpx_file = "../cycling/gpx/20-mi-loop.gpx" ###### read GPX gpx = gpxpy.parse(open(gpx_file, 'r')) track = gpx.tracks[0] track_data = [] for segment i...
f0e3350fa4805eb59dc388398a2f5efb5b3180a3
a2ef70d1e94af64c95ca91fe232acff66633db4f
/xls_data/Pugna.py
92610bc7c1003e64c05404cf6ed7d13c5dd8f7f2
[]
no_license
BeedleEiEi/DotoAnalysis
01f09af0a8eb627b89fc0a36074c650287e3afa7
6aca84c83f83988e3dd26e2c41dd93187b00cd28
refs/heads/master
2021-06-13T00:44:49.398289
2016-12-05T16:11:55
2016-12-05T16:11:55
73,267,871
0
0
null
null
null
null
UTF-8
Python
false
false
4,254
py
Pugna.py
data = \ """ Abaddon 0.10% 40.23% 57,441 Alchemist -1.47% 45.75% 101,891 Ancient Apparition 1.70% 47.93% 55,345 Anti-Mage -3.17% 45.90% 174,000 Arc Warden 1.10% 55.46% 22,880 Axe 2.08% 45.83% 188,252 Bane -0.73% 50.13% 46,705 Batrider 0.49% 52.50% 31,573 Beastmaster -1.65% 47.57% 22,441 Bl...
3fcbd60dc16c565586f06fc31a3a62063b2ff210
86484fa92f958c04adfeeb23c15dfd28ac2c1a56
/hw.py
24b7f72c4d9653f0064bb1ea324ec51064439c89
[]
no_license
gcbe12/bhcapital
a37fbd9362f0b5ca1ff8bcd812b78c7a87f909a6
c88b897b477584bf2e5a695d11eea27d7b8aac02
refs/heads/master
2020-07-31T11:32:16.423693
2019-10-02T20:04:10
2019-10-02T20:04:10
210,589,746
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
hw.py
# example for git print("hello world") print("boioioioing")
7121220fbb6ece1475c6524d1c0942dfcf3a99ff
8b4e0dce32c5ef32bd8f3230f67128f5ce3e29ed
/Entry.py
91fcf149a7aa5a30fa3dd2ccde5f38f27dd822ea
[]
no_license
picklu13/Text_Search_Algorithms
444388b0ecae329f9432f23f142bdcdbc3bf2a85
1148c0e4fcbc7c3bae43ae80a53b12ca3693f949
refs/heads/master
2020-04-06T03:53:58.925675
2014-09-13T00:56:02
2014-09-13T00:56:02
23,981,562
1
0
null
null
null
null
UTF-8
Python
false
false
6,760
py
Entry.py
from VectorSpaceRetrieval import VectorSpaceRetrieval from Integrated import Integrated from PageRank import PageRank from TaggedPageRank import TaggedPageRank import sys import os.path from time import time ,clock from time import gmtime, strftime from collections import OrderedDict from curses.ascii import SO try: ...
a0e4020df33802b016f4290a5a9dd8a65b20fe89
ffb55f2c2a3c2a2fbad624099164f84e14615c8a
/scratch13/ex04.py
3db2592240c98a8127dcc3563d12f876277ee6d8
[]
no_license
hyelim-kim1028/lab-python
974a3ea4e30f78452b55797f41f22ec625851308
1f6faf424360ba8ccc06aff2f738082689084a19
refs/heads/master
2022-11-07T14:19:19.236655
2019-12-19T11:45:43
2019-12-19T11:45:43
221,369,458
0
1
null
2022-10-01T10:44:28
2019-11-13T04:03:01
Python
UTF-8
Python
false
false
3,427
py
ex04.py
""" y = b + a * x : Linear Regression y = b + a1 * x + a2 * x^2 : non-linear regression -> 선형 회귀로 b, a1, a2를 결정할 수 있다 비선형회귀: 다항식이 포함되어 있다!!! y = b + a1 * x1 + a2 * x2 + ... : 성형 회귀 y = b + (a1 * x1) + (a2 * x2) + (a3 * x1^2) + (a4 * x1 * x2) + (a5 * x2^2) ... """ import numpy as np import matplotlib.pyplot as plt fro...
79a20872b5a2b64c818cb8e1a6b6f28620f822a0
6c10c6e229014dc3bf14efaec2ea8bf07c406752
/AILearning/MordernCNN/ConvolutionKernel.py
c9e5c6b44cc8fefe85fe4e1f6bcc56a180d40e6c
[]
no_license
GuyRobot/AIPythonExamples
e59c6edb355d9cadee2b3f19a087b1b656956262
4acdd0d4966e31a616910554bc075b641aa152df
refs/heads/master
2021-05-21T13:05:49.615593
2021-02-28T06:41:04
2021-02-28T06:41:04
252,662,467
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
ConvolutionKernel.py
from mxnet import autograd, nd from mxnet.gluon import nn def comp_conv2d(conv2d, X): conv2d.initialize() X = X.reshape((1, 1) + X.shape) Y = conv2d(X) return Y.reshape(Y.shape[2:]) conv2d = nn.Conv2D(1, kernel_size=(3, 5), padding=(0, 1), strides=(3, 4)) X = nd.random.uniform(shape=(8, 8)) print(co...
8c8009f6f73613a1a3c395594ad10c75fd613890
557a3686da7276b6cab8e4a70dcd349c5c2e339a
/Produccion/Luis Miguel Leon/Redimencionar/RedimencionarParalelo.py
d18b2b2cf4f0e21407190f99aba8b19b50a11b84
[]
no_license
diogoalfa/Laboratorio-2-Paralela-2014
4cec7d2a519a990d231cd062595f60b1df51cb91
fbab5b78b520ad0d4d7de9d00392276d8a8073ac
refs/heads/master
2021-03-12T20:04:03.086416
2014-12-01T18:42:09
2014-12-01T18:42:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,757
py
RedimencionarParalelo.py
# -*- coding: cp1252 -*- __author__ = 'Luis Miguel leon' from mpi4py import MPI import numpy as np from PIL import Image import time comm = MPI.COMM_WORLD # comunicador entre dos procesadores # rank = comm.rank # id procesador actual # size = comm.size # tamano procesador # def divisionTareaImagen(ruta): img = Im...
27aa890585b6dfb19498b02d78e05fb17194e389
abf59ac533318113c2bf8497d9a7bcddb5bcc9f3
/pages/experiments.py
7fe933d035c5bb6fc6d0e17c792438c56c7d093e
[]
no_license
KingsMentor/Belvi.xyz
3e9a3e6253f5ad842287ecdcb0c5c9c5849cc4c0
be6b70d7fbd753a41d942457f88fc6667d246a5b
refs/heads/master
2021-07-08T05:42:35.913595
2020-06-11T18:48:17
2020-06-11T18:48:17
100,165,883
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
experiments.py
experiments = { "title": "Experiments - Belvi Nosakhare", "data": [ { "target": "_blank", "date": "2015-12-07", "title": "Doing more with your Android device ", "event": "", "link": "https://medium.com/@kingsmentor/dev-experiments-doing-more-wi...
8c9cf07a03f3da69df1836f6eaa4546bc06e8156
77dd2f05f6394e5d08c605fe70232a3d13a8d4ae
/Obsolete/threadingGlobalAverages.py
ec830f8015b93c2e65fd1c62cb96dbdf97499603
[]
no_license
elgraney/uni4project
e0204f66e0d1b4309305d79067f598a2494bbd84
6d5e63035a6b2d787b9d34721375e0c64944eaed
refs/heads/main
2023-04-20T12:08:18.627740
2021-04-28T10:38:28
2021-04-28T10:38:28
301,742,687
0
0
null
null
null
null
UTF-8
Python
false
false
10,503
py
threadingGlobalAverages.py
import numpy as np import matplotlib.pyplot as plt import collections import statistics import os import time import multiprocessing def text_output(data, title): with open('V:\\Uni 3\\Project\\output.txt','a') as result_file: force = 0 result_file.write("\n"+title+"\n") for item in d...
7b3d07c60659a659379f9c95b4eaf859810255fe
cdf850d5539850af85a992963c1970683765f03b
/catalog/catalog.py
4a3f7d6ac80f6e93190779c1d5890a872bf9cbef
[]
no_license
Ayush97Didwaniya/ItemCatalogOathWithGoogle
4ac83e22720baae0c97a83f861d26fcb6de1aa24
70d27d197a54882a3df0dcc692615d9eda168954
refs/heads/master
2020-03-07T01:44:22.437973
2018-03-28T20:03:41
2018-03-28T20:03:41
127,191,781
0
1
null
null
null
null
UTF-8
Python
false
false
11,795
py
catalog.py
from flask import Flask, render_template, \ request, redirect, \ jsonify, url_for, flash from sqlalchemy import create_engine, asc, desc from sqlalchemy.orm import sessionmaker from database_with_user import Base, Category, Items, User # New imports for create anti forgery state token from flask import session...
889fd04b9fe358df53492244ae4f3e5233ccbee8
0b78708e0017844ce5e130772a71a7a0f8446d53
/code.py
4f587f19319fc724aa99f4bcb603915fe1e2e427
[]
no_license
net-impact/newdir
c9d1ed94e48baf5bde3d7e1457f12252f2d48a36
12d48c61e64059aebebec689ed75810f8e649c49
refs/heads/master
2022-12-31T07:11:57.761786
2020-10-12T00:41:09
2020-10-12T00:41:09
302,772,737
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
code.py
def do_something(): x = "1. Starting point for code.py" print(x)# this will make it much easier in future problems to see that something is actually happening
a3494e9e35c345c106a6c2600d638b52ab310bff
e3b9b4404203221482ea3a295446d38b5f404c78
/remote_api_manager/admin.py
1472135dfa16817871d990a2f0cb923efe624e4a
[]
no_license
rvalibrary/intranet
9519fe06cb964dcc764f74c97fac0dd3b8199dd1
2b0c58080f0f58140fe0da761d0777be1951efe9
refs/heads/master
2020-04-14T18:09:50.704588
2019-01-03T18:23:20
2019-01-03T18:23:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
admin.py
from django.contrib import admin from .models import RemoteAPI # Register your models here. admin.site.register(RemoteAPI)
2562d7eb12f69314e570808b996f60baba1347d3
2e74f30d9ec16b66b0d6f47faae27d7beb449c03
/dsbox-corex/corex_continuous.py
896a91654e253a9efd4a6e39538948fefb09cea7
[ "Apache-2.0" ]
permissive
Rosna/P4ML-UI
93a516537d244c31267330822d2dbb9c220e4f08
edf0dd830588f03b197e4d6532830a5aedd88424
refs/heads/master
2020-07-17T04:03:06.096267
2019-03-26T00:41:03
2019-03-26T00:41:03
205,938,437
0
0
Apache-2.0
2019-09-02T21:21:26
2019-09-02T21:21:25
null
UTF-8
Python
false
false
2,677
py
corex_continuous.py
from sklearn import preprocessing #import primitive import sys import os import LinearCorex.linearcorex.linearcorex as corex_cont #import LinearCorex.linearcorex as corex_cont from collections import defaultdict from scipy import sparse import pandas as pd class CorexContinuous: #(Primitive): def __init__(self, ...
de646de842a7989b374a3c2a98ad1629715942bb
e881c046be0b4522bd082313c51e9ab842811032
/Maze.py
587e01931fb993012411ef12c299f394bf7592d3
[]
no_license
AzadDeihim/Maze-Solving-Q-learning
99012a1818c3f11c9c5e949cb78c4a7eeeac69f0
9d507cf7ddba45adb0d9a48ab0372561a65000d4
refs/heads/main
2022-12-30T02:22:33.848109
2020-10-19T12:53:18
2020-10-19T12:53:18
305,381,703
0
0
null
null
null
null
UTF-8
Python
false
false
3,175
py
Maze.py
import random import numpy as np class Cell: """A cell in the maze """ wall_pairs = {'N': 'S', 'S': 'N', 'E': 'W', 'W': 'E'} def __init__(self, x, y): self.x, self.y = x, y self.walls = {'N': True, 'S': True, 'E': True, 'W': True} def has_all_walls(self): ...
02e0110997ff41bb489c55a41ac47f3bfcf7e0e8
dbd72e18e70414bdfef54487f3cce7722bb30082
/Boolean and IF/Boolean and IF/if06.py
bde44ad39a1365a33ae4c2ce4e8fde2b531451cd
[]
no_license
abdullayevakbar/uyga-vazifalar
cf9bbbf7a976d68dee791d549f24aa1c64277c77
e9593806e7a11321f4ac5d4040facb5b82ca9b9d
refs/heads/master
2023-08-23T03:26:00.918391
2021-10-30T12:31:26
2021-10-30T12:31:26
422,803,072
1
0
null
null
null
null
UTF-8
Python
false
false
235
py
if06.py
def if_check_dekart_kordinata(x,y): if(x>0 and y>0): return "I - chorak" if(x<0 and y>0): return "II - chorak" if(x<0 and y<0): return "III - chorak" if(x>0 and y<0): return "IV - chorak"
316d41b90c02472617a503fb805868b4e9811b11
9148c051b1043d75d34a7f2d4612b79c82481340
/Charitha_RL.py
7d38d1578503b6c66f4acbca0ef3b977bb08d757
[]
no_license
charithabakka/charithabakka
b4dc6a48f00a3a41e83c788927a0bf3f5ae3d3b0
45dccbd70f355d663e4f91be639e4206a9812380
refs/heads/main
2023-08-31T13:51:53.565018
2023-08-04T08:56:38
2023-08-04T08:56:38
369,021,582
0
0
null
null
null
null
UTF-8
Python
false
false
13,444
py
Charitha_RL.py
# Show status of board and software configuration import src.cmd_modules.IfxTx2Rx16 as IfxTx2Rx16 import time as time import matplotlib.pyplot as plt from numpy import * import numpy as np from datetime import datetime import json import time #print("Iniciando Delay") #time.sleep(7) #print("Passuou Delay") c0 = 3e8; #...
284f3ddc294077687ed1b75905deaa402ecf5036
c27938a2c4939bb3c2307043df4b88032584b293
/algorithm/kruskal.py
836d3261889ec1b15e1729a399692257fa3cc78f
[]
no_license
qkrrudtjr954/programmers
470de0fb52612ab9f91af51fb458dffb9268dbbc
1b69ece5ab5e25126fba2e0d390ee1bfb86ae2a7
refs/heads/main
2023-07-18T13:01:18.804116
2021-08-29T16:40:05
2021-08-29T16:40:05
398,295,627
0
1
null
null
null
null
UTF-8
Python
false
false
614
py
kruskal.py
from typing import List, Tuple from practice.union_find import find, union from operator import itemgetter def kruskal(n, costs: List[Tuple[int, int, int]]): ''' :param n: 노드 갯수 :param costs: 노드 별 가중치 (시작 노드, 종착 노드, 가중치) :return total_cost: 최소 가중치 ''' parents = [i for i in range(n)] cost...
ae42295931f964b85a5c1143a0ef6d70a2ecbf20
655370a696359d0d1f3cee952ae50af7ee0dc29b
/AirportVisit.py
ea6f63b716f76ecdc47a148a610ba881d698a3df
[]
no_license
shanecroberts/FuelManager
b433f10c04979e59e003e49eec4c1af35bda1892
d586ba6837c0895f8344f1606633f275eb2c5566
refs/heads/master
2021-01-10T03:48:31.376824
2016-02-10T16:53:59
2016-02-10T16:53:59
51,455,688
0
0
null
null
null
null
UTF-8
Python
false
false
2,049
py
AirportVisit.py
class AirportVisit: """ A class for recording information about a planned stop at an airport. The class has two mutator methods, buy_fuel() and add_fuel(), and two accessor methods, get_spare_fuel_capacity() and get_total_fuel_purchase(). """ def __init__(self, airport_code, fuel_price, distanc...
a9e7c873e796fcdd8f12b57b768f1f26893ac79b
2ab332a0b9e1cb871170d35f675a0dc2b32bc273
/testThrustersAuto.py
91bc6943e069f5c5bd25bdff2d670f7097ebc4c7
[]
no_license
MagnusCaligo/robosub-2018
234b99a17f9f460eb0d058696da93161455ecf8f
40510021c230524615a4d19e6c5697aa02426cb3
refs/heads/master
2021-07-07T01:10:41.126394
2019-02-16T21:01:44
2019-02-16T21:01:44
134,027,973
3
1
null
null
null
null
UTF-8
Python
false
false
531
py
testThrustersAuto.py
num = "2" import time import serial import sys import numpy as np import struct import glob maestro = serial.Serial("/dev/ttyACM"+num, 9600) pwm = 10 thrust = np.interp(pwm,[-100,100],[0,254]) thrust = int(thrust) for i in range(1,9): print "Testing Thruster: ", i pwm = 10 thrust = np.interp(pwm,[-100,100],[0,...
2effed63e88fd368da360493216c50187183abee
5ac7adc06667be411c87d7b6e415a767a0e42e0d
/tb_cli.py
34e2c89c230f60486211e7394fd6525c65f58a53
[]
no_license
Galco6/termiband
952ddab8adf12854fd6588c4bc0ec3b831db46dd
7a9cf78aed8820607075fbebb23d99155380e6f7
refs/heads/master
2022-12-23T17:56:59.292570
2020-09-27T14:10:06
2020-09-27T14:10:06
277,661,420
1
0
null
null
null
null
UTF-8
Python
false
false
911
py
tb_cli.py
import argparse from datetime import datetime, date, timedelta def init_cli(): parser = argparse.ArgumentParser(description='View your MiBand data analytics from Gadgetbridge database in yor terminal') parser.add_argument('-d', nargs=1, type=str, help='Select device') parser.add_argument('--info', action="...
0d7628c2aa5f75191f38910c765918c65f2fce57
dd4e69812ab852b57b9a0879f43316c9bd1b6052
/alice/views/logout.py
fd5d51c79e8844e2d5bae991919b36362daa271f
[]
no_license
xholmes/alice
3abed593e9bc6f8e826d729313099bce076e4083
62bd3f44de527b0a3b4cf3d77b54e24b1044dbc8
refs/heads/master
2021-01-15T12:42:43.083515
2014-02-19T04:35:18
2014-02-19T04:35:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
logout.py
from pyramid.view import view_config @view_config(route_name='logout', renderer='../templates/mytemplate.pt') def logout(request): return {'page': 'logout'}
c4a7aa0b1d294a468e2b5bf2e7f81818ec91733c
94b7eba175af68140ebca674d8a73685d0a2d209
/hello.py
969627d7387b712752bfd1ec6b9a9aa837c2b3e0
[]
no_license
louiscklaw/travis-lab
504d0ce677caf361685f180b07ecae2cba76937d
6893078ec37a42009bef39d3480e154b4bec0a56
refs/heads/master
2021-07-07T01:59:54.096751
2019-08-04T07:56:41
2019-08-04T07:56:41
199,982,367
0
0
null
2020-10-27T21:57:37
2019-08-01T05:22:24
Python
UTF-8
Python
false
false
44
py
hello.py
#!/usr/bin/env python3 print("helloworld")
ff080ed956e166ac9ad6e29c9a2c6344e27051cf
1d405c9f539ba6ce2143668c1155ba03b32031b7
/disturbance/migrations/0288_auto_20220628_1240.py
8c49d44f4eab6cacfbefa4827079bced89f3c9c5
[ "Apache-2.0" ]
permissive
dbca-wa/disturbance
c031081f8d96351c1b4835e4c4fa8ca199379d01
ffb5ee131fc6b3262188be6b6b874761420441d1
refs/heads/master
2023-09-04T07:11:23.554541
2023-05-31T05:47:19
2023-05-31T05:47:19
237,150,092
0
10
NOASSERTION
2023-09-14T08:20:18
2020-01-30T06:05:26
Python
UTF-8
Python
false
false
908
py
0288_auto_20220628_1240.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2022-06-28 04:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('disturbance', '0287_auto_20220628_1232'), ] operations = [ migrations.Alte...
c721a4efe24bf4298bb15bf3a7bba7fcac6834fb
b5e55ae23ff94a2d18e411ddac5e7135216ed83a
/Ogba_Emmanuel.py
3bf943229169c73710d3d14517d59586e78d7333
[]
no_license
sparkle666/CSC-411
18180a281d9fad474d1e3bbc18cadf007734066c
3440ae16a6b8aeaa5d8f810522e63470562249dd
refs/heads/master
2023-08-11T04:46:20.764648
2021-10-14T19:29:16
2021-10-14T19:29:16
413,890,167
0
1
null
null
null
null
UTF-8
Python
false
false
70
py
Ogba_Emmanuel.py
name = "Ogba Emmanuel" greet = "Hello world" print(name) print(greet)
58e8b092ef04412b64ba5c1716f5f88cc609c836
840f44d1942a76a4a2f489f1bfcd9e079066cef5
/rest.py
24c44ad2f043cdd38e5047d219a0fd24d5e07423
[]
no_license
whiteespresso/test2
9740abbee9e87167b4c1daaffc15731f8903efb6
b099d941760e65fdb1033e3cda792c60ccc0317a
refs/heads/master
2016-09-06T01:35:20.487687
2015-03-03T19:13:36
2015-03-03T19:13:36
31,616,217
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
rest.py
#!/usr/bin/env python # coding=utf-8 import urllib import web import json import main urls = ( '/classify/(.*)', 'classify', '/classify', 'classify' ) app = web.application(urls, globals()) class classify: def GET(self, url): """ Zwraca odpowiedź na żądanie GET. :param url: adr...
be59a226a058dc0af58086dc6c6ad59bee8d9221
26329cc5464a2aa69a2bc1636c71772efafdd467
/lab 3/Program.py
94fb0103cb0066c2389ac00675f5feaba8f7e4ad
[]
no_license
ThomasMGilman/ETGG-2801_2
e71030d7368a929a24e20efddae346bd6b3a6173
209b37e79bd32fc41a544c29bf050e77f91bc71f
refs/heads/master
2020-07-11T13:44:58.623191
2019-12-04T04:22:32
2019-12-04T04:22:32
204,556,761
0
0
null
null
null
null
UTF-8
Python
false
false
1,502
py
Program.py
from gl import * from glconstants import * import array, os class Program: def __init__(self, vsfname, fsfname): vs = self.compile(vsfname, GL_VERTEX_SHADER) fs = self.compile(fsfname, GL_FRAGMENT_SHADER) self.prog = glCreateProgram() glAttachShader(self.prog, vs) glAttachS...
157314db1d5f37142ace5aded0596d3ceaffbc9b
21b414c43bc8119c52bd942121342aa4a1b516ef
/p20210331_0_set.py
442e2c5eabfe556d98b496cd3cf82918c2ba5f3f
[]
no_license
tae9237/bythonbasic
82d798c3e8fc44db0595745ed41be0dc73dd3bf7
f9ea4626612f9a830115387b60983f2ba1f26c65
refs/heads/master
2023-04-08T01:53:58.682125
2021-04-12T00:51:36
2021-04-12T00:51:36
357,014,644
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
p20210331_0_set.py
#set:중복데이터 허용불가 asia={'한국','베트남','일본'} asia.add('베트남') asia.add('중국') asia.remove('일본') asia.update({'한국','홍콩','태국'}) print(asia)
2c03a36a24ef67e194b822533d467a365a7e193c
35b2b6920f634982e4ba876305f9ee7fc0ced747
/set_hooks.py
ed913d67aa3daad2296ad122cf6851655bfa7006
[]
no_license
pranshuteotia/cp-solutions-database
75c29d30082ff8194582d46ca1d77f856f7a2cf2
7b987ea97f638cc7d763fdbbff2fc3bcd37dfbcb
refs/heads/master
2023-02-08T21:02:52.914733
2021-01-03T10:02:46
2021-01-03T10:02:46
325,888,427
0
0
null
null
null
null
UTF-8
Python
false
false
57
py
set_hooks.py
import os os.system("git config core.hooksPath ./hooks")
021972398385a5f130024d3b32c0b2c184b31db1
058a77c2a321671a183160fdc0ecfe46889d59ac
/Day11/KMP.py
3dcc2b496e6f5a71beae72524d2da159e5dcada5
[]
no_license
MinJae-Gwon/Algo
502b919ca5a8bb8392cd284008f42693df7a01bb
23913f8e7495c931e59ea95b4bfa686818ede8e0
refs/heads/master
2021-07-17T05:55:16.243320
2020-06-27T13:11:49
2020-06-27T13:11:49
171,435,252
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
KMP.py
Pattern = 'abcdabd' Pattern = list(Pattern) NEXT = [0]*(len(Pattern)) PI = [0]*(len(Pattern)) PI[0] = -1 PI[1] = 0 i = 0 j = 1 while j != len(Pattern)-1: if Pattern[i] != Pattern[j]: if i: i=0 else: j+=1 PI[j] =0 elif Pattern[i] == Pattern[j]: if i:...
88a083442af49084310919de88f3b5351a838805
63f1072587b599ded7de1f9ba4f9ed8ddf9cf7cd
/D17/merge.py
bc3c313113b9bdb5e69672245e398680d5a0bdb7
[]
no_license
nnyong/algorithm_ssafy
9cdd06ace103f9b3e034627697d6304893f2c3f2
a774d0f13a52830a44b2f0db7a0121da9f3de146
refs/heads/master
2022-04-30T02:34:33.530873
2019-04-10T01:47:42
2019-04-10T01:47:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
988
py
merge.py
def merge(left,right): total=len(left)+len(right) new_result=[0]*total count=0 left_len=len(left) right_len=len(right) l_index=0 r_index=0 while l_index<left_len and r_index<right_len: if right[r_index]>left[l_index]: new_result[count]=left[l_index] count+...
fc5f13f23cff25d3a3899c14315e212f351c5ea9
8a1200f2bd0bf25a264c065da896d1806e45155a
/packages/fontconfig-2.8.0.py
12ee90f054942562b6f8743d14b6dcab3f0e020b
[]
no_license
mhulsman/enhance
fac908eca561749ab99ea708f19f37eaceabf6c5
761234a263e4962a8e10026ce143c1ea0e7e8728
refs/heads/master
2021-01-18T23:40:56.252953
2016-09-29T13:04:48
2016-09-29T13:04:48
1,520,086
3
4
null
null
null
null
UTF-8
Python
false
false
186
py
fontconfig-2.8.0.py
from package import * class fontconfig(MakePackage): dependencies = ['libxml','freetype'] fetch="http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.8.0.tar.gz"
bca3df6cc0b35eb36f424202dd76e59d0ae35858
b3bf840d099e838366699227ef484b8e8c44a542
/deliveryIngredientes/models.py
28cfe3555f75c4810629537bc6db983346a9bebc
[]
no_license
carolalua/Projeto-2-Delivery
ea6b21b14da8ef529ebbaff8830352c6d8bb27c0
676258c0bf47826e6af7b25297e218ae64ad24d4
refs/heads/main
2023-06-03T11:42:01.437631
2021-06-22T13:33:59
2021-06-22T13:33:59
366,558,797
0
0
null
null
null
null
UTF-8
Python
false
false
1,221
py
models.py
from django.db import models from django.contrib.auth import get_user_model class Ingredientes(models.Model): nome = models.CharField(max_length=100, blank=True, null=True) preco = models.DecimalField(max_digits=5, decimal_places=2, blank=True, null=True) quantidade = models.DecimalField(max_digits=3, decim...
279b4174e4d23c34425b95f26ab89fe30a72febd
e3f6c3aa08f4dfbdd7cc67a25d98dce17658d1e7
/library.py
3d815df5350b3db7f061f8aad6303741478123d4
[]
no_license
djnotes/python-yt-course
c2749726ebeab445280baf361b2fcba2016723b6
f6c9a82a58a40996c8cda7cce1d08a4cc7251d84
refs/heads/master
2023-03-26T00:10:17.207659
2021-03-19T15:27:48
2021-03-19T15:27:48
318,631,153
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
library.py
import sys print('The arguments sent to the script are: ', sys.argv)
f8646d899927069dc41cbf5b3695091e949d3111
7235051c8def972f3403bf10155e246c9c291c58
/angola_erp/angola_erpnext/validations/stock_reconciliation.py
24a72dfc5f55b100119bfc5027457ded93f805e4
[ "MIT" ]
permissive
proenterprise/angola_erp
8e79500ce7bcf499fc344948958ae8e8ab12f897
1c171362b132e567390cf702e6ebd72577297cdf
refs/heads/master
2020-06-03T08:51:34.467041
2019-06-07T01:35:54
2019-06-07T01:35:54
191,514,859
1
0
NOASSERTION
2019-06-12T06:53:41
2019-06-12T06:53:41
null
UTF-8
Python
false
false
623
py
stock_reconciliation.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import frappe from frappe import msgprint def validate(doc,method): #Get Stock Valuation from Valuation Rate Table for d in doc.items: query = """SELECT vr.name FROM `tabValuation Rate` vr where vr.disabled = 'No' and vr.item_code = '%s' """ %...
7f0b392195fabe1e61d05357b68059e2b0fa0efc
b1b5fd9142d7f933324b490325705220eac2de9e
/class-notes/chapter_13/comline_open.py
d29df76ba94856b10768f91f55b48d5e6f157037
[ "MIT" ]
permissive
rhoenkelevra/python_simple_applications
7f0ef1105eb9716cabd457ff8ed91317fe529950
28ceb5f9fe7ecf11d606d49463385e92927e8f98
refs/heads/main
2023-07-14T09:03:05.965363
2021-08-26T00:17:58
2021-08-26T00:17:58
383,698,858
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
comline_open.py
# -*- coding: utf-8 -*- """ Created on Mon Jul 26 13:27:12 2021 @author: user24 """ import sys if len(sys.argv) < 2: print("読み込むファイル名指定してください") sys.exit() file = sys.argv[1] with open(file) as fileobj: text= fileobj.read() print(text)
9cc5d211b51ac0195f793e1ea1faf660496fe2b4
55c87550a1e5b35e3cc0b50cd526a936c9f95514
/didc_q1.py
88073fbc215920da3f5b02acb80f5019699e7553
[]
no_license
melodyyin/etc
27d70b1f1fca1f4623e972aabd2984bebb14ffc5
c0540770ee75ab0400c0f592b50d090fbf41274a
refs/heads/master
2021-01-22T07:35:22.713326
2015-10-04T00:00:30
2015-10-04T00:00:30
39,793,162
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
didc_q1.py
# Q1: # - draw links represented as numbers from 1 to N # - draw one link at a time # - M = max subchain count; consecutive numbers form one subchain, all other numbers form one subchain by themselves # OBJECTIVE: find mu and sigma of Ms for various Ns import os, random, math #os.chdir("C:/Users/MelodyYin/Desktop")...
7ae3ca28187e74420594baa1f7138abaf6ba35df
f34f957329f3d5d821ead36bbecce3cc82ef6acb
/firstSelector.py
efa35a817db2e500451c9c3b6f93778319731750
[]
no_license
francesccapo/MasterThesis
706bace19fded90067cda37d3cc4af579c4efb5a
e0df0c2062223788fe817f0c345329afce6d29f7
refs/heads/master
2021-05-28T20:18:55.279209
2015-07-09T00:03:11
2015-07-09T00:03:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,699
py
firstSelector.py
import sys import operator import re import csv ### Argv loading if len(sys.argv)!=6: print 'python '+sys.argv[0]+' <csv_filename> + <col_select> + <min_number> + <out_csv_filename> + <hist_name_csv>' sys.exit() fn = sys.argv[1] col_index = int(sys.argv[2]) min_number = int(sys.argv[3]) outfile_name = sys.arg...
3249187945d897c689f1d14ec70ff0fa4331624b
8049dd81d52e0659054b574323887cf06dbb03a9
/api/integrations/mixpanel/views.py
11822075d9a32c6e0addb909e41cc667be14a1be
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
funetes/flagsmith
b6bfdb79e023a6e8832e898b13635e36486e5aa2
97dba4175fac4e723e7bc4208e004d61e748eed7
refs/heads/main
2023-06-21T08:18:53.531171
2021-07-26T16:47:01
2021-07-26T16:47:01
389,799,101
1
0
NOASSERTION
2021-07-26T23:57:23
2021-07-26T23:57:23
null
UTF-8
Python
false
false
363
py
views.py
from integrations.common.views import IntegrationCommonViewSet from integrations.mixpanel.models import MixpanelConfiguration from integrations.mixpanel.serializers import MixpanelConfigurationSerializer class MixpanelConfigurationViewSet(IntegrationCommonViewSet): serializer_class = MixpanelConfigurationSerializ...
0b3b9ccaf95d5f6a4176cf988b5973ac0e86c9eb
58f59efa995275c52eca3015cb298f57718f6889
/Movies/My Movies Scanner.py
e381b3e581ca01ec43c974bbaf75041004436f8c
[]
no_license
charlessuh/PlexScanners
6c2434048ad0de8ef7454ed9ee5b5ff4c735d132
0394a826969b3818a4dc89da3e4a91c2b6289146
refs/heads/master
2020-12-03T04:18:03.067358
2017-06-30T04:32:43
2017-06-30T04:32:43
95,848,091
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
My Movies Scanner.py
import re, os, os.path import VideoFiles SeriesScanner = __import__('Plex Series Scanner') MovieScanner = __import__('Plex Movie Scanner') episode_regexp = '(?P<show>.*?)' + SeriesScanner.date_regexps[0] # Scans through files, and add to the media list. def Scan(path, files, mediaList, subdirs, language=None, root=N...
9646e05dcb197d57ce5035fa41e566cdc1e158d5
87eddea6ecdd5e4f9eeaa4644328e8103e8efd4b
/radicl/commands.py
0316ccf31e341d7f153bed0dba8754e9b6b51ab7
[ "BSD-3-Clause" ]
permissive
AdventureData/radicl
8ef392c0a0db875e1ea95b9a85981ed5ce7c2c96
fa745ed3b214e048e1e08039c7f3e98e2a887f5b
refs/heads/master
2023-08-30T04:41:40.412566
2023-05-30T21:03:45
2023-05-30T21:03:45
166,423,743
7
0
NOASSERTION
2023-09-08T19:13:34
2019-01-18T15:15:56
Python
UTF-8
Python
false
false
1,074
py
commands.py
from enum import Enum class CMDEnum(Enum): @property def cmd(self): return self.value class AttributeCMD(CMDEnum): """Commands to retrieve non-measurement attributes """ SERIAL = 0x04 HW_ID = 0x01 HW_REV = 0x02 FW_REV = 0x03 FULL_FW_REV = 0x09 class MeasCMD(CMDEnum): ""...
0fd34d9e7ea3a035ff2571fcd2305083b0e35cc5
8936e36b0f8fa0f943781a23ffe06273c8df6db9
/bridge_edges.py
c0e27d1b174dfcd3a87105c32d6e10912bfe0592
[]
no_license
timurridjanovic/algorithms-class
31a78e331859eb955e4c68609a1313556b55578d
7c648bc75d3ab526578281f0bca7c60e91888211
refs/heads/master
2021-01-10T19:10:25.908617
2014-11-06T00:47:37
2014-11-06T00:47:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,647
py
bridge_edges.py
# Bridge Edges v4 # # Find the bridge edges in a graph given the # algorithm in lecture. # Complete the intermediate steps # - create_rooted_spanning_tree # - post_order # - number_of_descendants # - lowest_post_order # - highest_post_order # # And then combine them together in # `bridge_edges` # So far, we've re...
2f296f5a904f0ba25717b38494395e25c9ae4613
1808333cb0447e46532e176cf49d28e013ddffc4
/basic/5.py
2f35a6cf296d28056cafa64d7d95ffbc20f3b22a
[]
no_license
hanguangchao/python_learn
dc7ef1e4daeb723cddeb59c4b32cd1127e55608e
1f53b6d9b1c70c85f4279333f7ed381fad5888b4
refs/heads/master
2021-01-12T13:57:06.581053
2019-08-03T08:47:21
2019-08-03T08:47:21
68,928,719
1
0
null
null
null
null
UTF-8
Python
false
false
520
py
5.py
# -*- coding=utf-8 -*- x, y, z = 1, 2, 3 print x, y, z x, y = y, z print x, y, z values = 1, 2, 3 print values x, y, z = values print x print x, y, z d = {'name' : 'a', 'friend': 'b'} key , value = d.popitem() print key, value from math import sqrt for n in range(99, 0, -1): root = sqrt(n) print n, ro...
648d48e13e8de3b05972d6fff26a1d68067e25f7
67282c016965e988bd062e54e5512f481a2c228e
/Python Programs/python.py
75f55d50444d71c0e53134c6f6fedc3d194c337e
[]
no_license
manofsteel0007/BOOTCAMP
7bddcf196b5d3ba3a4afac6d86602340827cb7c7
8b13725efa73f7c21bf3b680e99adbfd71e09551
refs/heads/master
2023-08-10T16:24:19.772884
2021-03-24T16:14:17
2021-03-24T16:14:17
278,445,155
1
1
null
2020-07-10T07:36:54
2020-07-09T18:48:37
Java
UTF-8
Python
false
false
40
py
python.py
print('Hello world') print("kumaran 01")
21d07c2b80aa00d0c75da342d37195b6829593b6
7ab9588f9988e58d309844408353fdbef1d75484
/crawler.py
e045c938cda2de1cc062969c4b91248935fe8d2b
[]
no_license
jbn/indie_crawl
efa10cabddffcf3eec6cb3dd2c94cc5699130339
44a6f166ba3b240f7aafebf67104d19129c8fa6a
refs/heads/master
2020-09-28T06:02:05.443559
2019-12-08T21:41:31
2019-12-08T21:41:31
226,706,539
1
0
null
null
null
null
UTF-8
Python
false
false
357
py
crawler.py
#!/usr/bin/env python import crawl import logging from elasticsearch import Elasticsearch if __name__ == '__main__': logging.basicConfig(level=logging.INFO) logging.getLogger("crawl").setLevel(logging.INFO) logging.getLogger("elasticsearch").setLevel(logging.ERROR) es = Elasticsearch() crawl...
01b9706966007c44aa19d8249fbcaee5b511786a
01eca45fed2de7ca7f95868eb4089227cb4ae5da
/coursera-programming-for-everybody/json_graded1.py
4909ae3db750192d2c45a4f580d235c00a5b4fa7
[]
no_license
hkotka/python
a89ed0dbedf6d7e70b1d4461d46e46609088d88b
29140998517f1be8932fc7ae40ddcd8cdff1426c
refs/heads/master
2020-03-29T02:31:14.032620
2019-08-01T19:20:59
2019-08-01T19:20:59
94,645,772
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
json_graded1.py
import urllib.request, urllib.parse, urllib.error import json import ssl # Retrieve json data into Python dictionary url = "http://py4e-data.dr-chuck.net/comments_147422.json" handle = urllib.request.urlopen(url) data = handle.read().decode() data = json.loads(data) # Calculate total sum of counts sum = 0 for item in...
3e84265b7c88fc45bc89868c4339fe37dcc7d738
13efb4041dde2e0f5f359b5027999d64b208bf08
/Assignment Tasks 1/Sequences/Saving in my shell.py
b84e8b53fab6f953db686b396d8e79e8d017c8b6
[]
no_license
Royal-Milk-Tea/IntroToProgramming
ba897939a8668dbff891eac778c9616b6ceff9b2
5ebb2c5827d8310c81b6d1560eeb5381af46c42a
refs/heads/main
2023-01-13T09:47:57.529504
2020-11-18T18:01:46
2020-11-18T18:01:46
306,423,282
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
Saving in my shell.py
#!/usr/bin/env python x *= 2 """run = 0 while(run < 10): [TAB]x = (first number in sequence) [TAB](your code here) [TAB]run += 1"""
f15a0956c4aa27da861f9bccbeff7a6b6a909b73
984dd2fc230c54c0573c0b48ca01e553dd2735bc
/scripts/local_test_of_function.py
e11c50f37f945cc6ce8573fa701010292b5d3a13
[]
no_license
prasanthgelli/analytics_service
7b65139cd2efd1c8e8640851c69a0ed5213337ef
15586fbcc8bb49f559b371baf04a9c8fabf92a8f
refs/heads/master
2022-07-18T08:25:32.945121
2020-04-06T06:35:05
2020-04-06T06:35:05
206,247,367
0
1
null
2022-06-22T01:34:39
2019-09-04T06:26:26
Python
UTF-8
Python
false
false
797
py
local_test_of_function.py
import datetime as dt import json import pandas as pd import numpy as np from sqlalchemy import Column, Integer, String, Float, DateTime, Boolean, func from iotfunctions.base import BaseTransformer from iotfunctions.metadata import EntityType from iotfunctions.db import Database from iotfunctions import ui with open('...
3ac02308959749b8cd264e660c3d6334fd385fd4
2e364ea9c71772c9a6cc7b853cec2e87cb0b91ce
/circleFinder/node/finder.py
293d45e019a9aab07f9e78d456a294346025d76c
[]
no_license
idaohang/Pioneer-robot-path-finding
1dff0567b2559ff414e33709b661a36779b5fe0e
269ecb8c2fff9f0f969323b18da0485708c43f40
refs/heads/master
2020-07-13T01:33:08.895305
2012-10-26T09:08:14
2012-10-26T09:08:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,619
py
finder.py
#!/usr/bin/env python #------------------------------------------------------------------------------- # # Circle finder. # # Rowan Leeder # #------------------------------------------------------------------------------- # # Listens on the 'scan' and 'base_scan' topics. These are the pioneers SICK # topic and Stage's ...
2d7e3a70f1c25bbc7ad5eafa006ab12c978eaec4
89029bd0c3e069603c199e596bc0f045c6190bef
/coh_wn_random.py
32b46165491bf6648fc874aec63ecbe6868841cb
[ "Apache-2.0" ]
permissive
Ada520/Topic-Distance-and-Coherence
8bf12803bd0182b7ac1e8b6b03f9c467c1e739e9
d567d5b3ef71ea5654f214aa3736add7f3ac94bc
refs/heads/master
2020-03-16T00:49:57.948426
2017-02-26T20:24:19
2017-02-26T20:24:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,194
py
coh_wn_random.py
import random import sys import numpy from gensim import corpora from coherence.wn import WordNetEvaluator from topic.topic import Topic from nltk.corpus import wordnet as wn from nltk.corpus import reuters from nltk.corpus import brown # python random_tc.py <dname> <word_count> <sample_times> <output> # <word_count>...
ec224924206c41cf8203c6aa8002ddf6b0e70e9b
e97fc191d2d82cd9cf2587d6816ccda8957b9d71
/engage_scraper/scraper_core/engage_scraper_core.py
aaf07e850cc1f84b3f1512e3bd9a0e7279d0d13e
[ "MIT" ]
permissive
hackla-engage/engage-scraper
fae8166aa0f28fc632bdef64fa371d476761f99f
d7100cab958cdc14859efaa93c60df55d02f3131
refs/heads/master
2022-12-09T10:55:10.966738
2021-06-10T21:58:12
2021-06-10T21:58:12
192,946,888
2
2
MIT
2021-06-10T21:58:45
2019-06-20T15:42:58
Python
UTF-8
Python
false
false
2,513
py
engage_scraper_core.py
from abc import ABC, abstractmethod, abstractproperty from pytz import timezone class EngageScraper(ABC): def __init__(self, tz_string): super().__init__() self._agenda_locations = [] self._tz = timezone(tz_string) @property def agenda_locations(self): return self._agenda_l...
92a50bcdbb4c03d1a4813a93c2e0986250516f14
13a6b6bc9327fa6128fb0c4687e0fbc2eb80fa5f
/poo_herencia_funcionsuper.py
775042085cfb06adc03973e144f2d24e97a3917b
[]
no_license
jkaalexkei/poo_python
1df5d06f30ab5199b0c8c529cfc3faf5b8d97a61
1be51074c6eb7818770c34ef4c09cae36f1fa0f9
refs/heads/master
2023-05-06T22:52:21.577667
2021-05-27T20:43:47
2021-05-27T20:43:47
370,861,909
0
0
null
null
null
null
UTF-8
Python
false
false
1,214
py
poo_herencia_funcionsuper.py
#Aplicacion de la funcion super() class Persona(): def __init__(self,nombre,edad,lugar_residencia): self.nombre = nombre self.edad = edad self.residencia = lugar_residencia def descripcion(self): print("Nombre: ",self.nombre," Edad: ", self.edad," Lugar de residencia: ",s...
6553312c9655c821444ff5f60e4d68c7fc08bd08
21e8a5fb40f47d2868cf68490226497aee4f1f40
/zalando_classification/utils.py
84bd36915741d3dcb23486bea6d4dc65f19fe4e2
[ "MIT" ]
permissive
ltiao/zalando-classification
30d0d144e347760e751ef53b98f831ab49cfb1be
c6f699389cc0d92b3ad130291adba142f8be4bf7
refs/heads/master
2023-01-10T09:36:29.549310
2020-01-17T17:05:11
2020-01-17T17:05:11
234,562,695
0
0
MIT
2022-12-26T21:00:44
2020-01-17T14:16:51
Python
UTF-8
Python
false
false
3,366
py
utils.py
"""Utils module.""" import click import os.path import pandas as pd from tensorflow.keras.models import load_model from tensorflow.keras.regularizers import l1_l2 from tensorflow.keras.callbacks import CSVLogger, ModelCheckpoint, TensorBoard from zalando_classification.models import build_model def get_basename(na...
5c291dbc241a80e7f2625ba338a4b9b3a3f3b2d0
ba6921a268198bc0af433622c021533905f5d462
/tests/providers/amazon/aws/triggers/test_redshift_cluster.py
941258659e9ae6869b02d0eb69fac686d188826e
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
potiuk/airflow
b6447765b1a7b586a3d6c8d7ba9262f6bf68fbfd
ca2f3013bcb123c4b3973a5b85de77094bf2c459
refs/heads/main
2023-08-30T13:05:50.698888
2023-05-21T21:08:14
2023-05-21T21:26:14
173,467,275
8
7
Apache-2.0
2023-05-21T21:58:40
2019-03-02T15:50:53
Python
UTF-8
Python
false
false
2,962
py
test_redshift_cluster.py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
0eb900c92561c613ee16868c46e3df455a2345aa
4ef21561d68a30924e25df89d95c994385d38c91
/expression/unaryexpression/unaryexpression.py
74e5acb8475ac588b56a48fd28d17c2966da3fb8
[]
no_license
Justin-Reniers/AdvancedCalculator
3f623898e3aa589274e7f61eea48935dc6249e69
3716a376668bec01d3e09a23f2baec6045d078d5
refs/heads/main
2022-12-28T21:30:05.363980
2020-10-12T22:34:16
2020-10-12T22:34:16
303,528,705
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
unaryexpression.py
from expression.baseexpression import BaseExpression class UnaryExpression(BaseExpression): def __init__(self, baseexpression): self.baseExpression = baseexpression
bbc8816c91ac28e31fb2e8aa4c2474bf69a6d391
1be56f0acb435c4bb18838912c03f2a57d26809b
/share/transform/chain/exceptions.py
17b0e5c54114f341049c5f566c5fa5949014cc20
[ "Apache-2.0" ]
permissive
FranklOpenScience/SHARE
bd09fd69a512fb720497f71a37b04c23126e2883
ed73a72f0f8628617f572532e05428d45123967d
refs/heads/develop
2021-04-29T12:04:39.518883
2018-04-08T23:42:16
2018-04-08T23:42:16
121,722,487
1
0
null
2018-04-08T23:42:17
2018-02-16T06:49:37
Python
UTF-8
Python
false
false
318
py
exceptions.py
from share.exceptions import TransformError class InvalidDate(TransformError): pass class NoneOf(TransformError): """All of a OneOfLink's chains failed """ pass class InvalidIRI(TransformError): pass class InvalidPath(TransformError): pass class InvalidText(TransformError): pass
0e834bcad6723aebf7fc1ebdca31ce1d1d446379
0411d6ecc5db9711ded3adab0ea5bbfd4053db26
/0.python基本知识汇总/descriptor/type创建类.py
b85cf7f2e7bf2f28582687706f884947d45512ba
[]
no_license
a524631266/pythondesignmodel
5087a14838600d1dea37552952d7ef5c3b901e18
b3a2e7fb4f2348c2290f3feb3dd877cec31f87e5
refs/heads/master
2020-03-30T07:57:33.807051
2020-02-21T09:15:33
2020-02-21T09:15:33
150,977,211
2
2
null
null
null
null
UTF-8
Python
false
false
819
py
type创建类.py
# https://www.cnblogs.com/wongbingming/p/8973859.html # type 三参数 class BaseClass: def talk(self): print("my is baseClass") def say(self): print("asdd",self.name) # 动态创建类 # 什么是类?可能谁都知道,类就是用来创建对象的「模板」。 # 那什么是元类呢?一句话通俗来说,元类就是创建类(class)的「模板」(type)。 # 为什么type能用来创建类?因为它本身是一个元类。使用元类创建类,那就合理了 User = type("...
d7e35c6bb030c5d051519e63122c022658ad4dd0
105053863c3c5314d736f1e0f3bec49687a4c58e
/boiling_learning/utils/collections.py
5b654fac4d65a6e63dd907f8473958c9a9284547
[]
no_license
sourcery-ai-bot/boiling-learning
23c3fc8412325fcab51963d7f239292cfc6b6b5b
890dc32f54dea88c1dd6fc85f9f709a85d7b4338
refs/heads/main
2023-07-26T11:12:25.424349
2021-08-31T12:33:40
2021-08-31T12:33:40
401,695,105
0
0
null
2021-08-31T12:28:54
2021-08-31T12:28:53
null
UTF-8
Python
false
false
1,936
py
collections.py
from typing import ( Callable, Dict, Generic, Hashable, Iterable, Iterator, KeysView, MutableSet, TypeVar, ValuesView, ) _Key = TypeVar('_Key', bound=Hashable) _Value = TypeVar('_Value') class KeyedSet(MutableSet[_Value], Generic[_Key, _Value]): def __init__( self,...
0458d2ab3ed902bd0e7af2dc03a9e433ee2ad0d9
f43fc046bdcdadc4718a4de6a056b0f17ec038b4
/tests/examples/test_mr_log_sampler.py
c19f52a1546b9f85aee973cb778a34bcdf7157bc
[ "Apache-2.0" ]
permissive
YWMditto/mrjob
cb5ac1d4e7b55a50c808d3a8203745bffbf3211d
acfcdda93e2d1cd1fde7cd52b30280293ae3376f
refs/heads/master
2021-05-19T11:15:34.502642
2020-03-27T21:35:20
2020-03-27T21:35:20
251,668,334
1
0
NOASSERTION
2020-03-31T16:45:41
2020-03-31T16:45:40
null
UTF-8
Python
false
false
1,486
py
test_mr_log_sampler.py
# Copyright 2019 Yelp # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
98f192a279c70644ce2a725aa6c731f765e655f0
0e039f0d1f2d3ef7505f24924f1fc008dfde61a7
/app/data_overview.py
036b2767b235d372d284fca9e3054d4ec94405cd
[]
no_license
rzldimam28/first-streamlit
b7d087ee180e53ab7ec5507b490f1205e0dea78a
4a3d6f3d3bce9bae18aff6557344c2057af5272a
refs/heads/main
2023-03-05T15:10:16.497088
2021-02-20T07:13:06
2021-02-20T07:13:06
340,577,305
0
0
null
null
null
null
UTF-8
Python
false
false
1,792
py
data_overview.py
import streamlit as st import pandas as pd import matplotlib.pyplot as plt import seaborn as sns def app(): st.title('Data') st.write(''' This app using 'auto-mpg' dataset on kaggle, you can access it [here] (https://www.kaggle.com/uciml/autompg-dataset). ''') st.write(''' # Data O...
243142d8ee0d4c8cc51731fdfdbc336254294b3f
4be56098894a95da5964622fc4102b69e4530ab6
/A01/509.斐波那契数.py
6d2ef98a2b8541b12fe167d67f40a4e8733bf305
[]
no_license
ACENDER/LeetCode
7c7c7ecc8d0cc52215272f47ec34638637fae7ac
3383b09ab1246651b1d7b56ab426a456f56a4ece
refs/heads/master
2023-03-13T19:19:07.084141
2021-03-15T09:29:21
2021-03-15T09:29:21
299,332,864
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
509.斐波那契数.py
# !/usr/bin/env python3 # -*- coding: utf-8 -*- # @File : 斐波那契数.py @Time : PyCharm -lqj- 2021-1-4 0004 class Solution: def fib(self, n: int) -> int: if n < 2: return n a, b, c = 0, 0, 1 for i in range(2, n + 1): a, b = b, c c = a + b return c
a29d0aeb43d486a4e8461f6f5af99a6328bc4f64
cbf99072a68e6d9e80fcf6f9c5f2e684b336d203
/superlance/tests/oome_monitor_test.py
95052dfea971c6eb6256e87f1cb87394447f95ed
[ "BSD-3-Clause-Modification" ]
permissive
indeedops/superlance
88ba5a07a5d2cd0846ad0225a964f0145731c6ee
dae7f094724960655a54ca135daf4b2373fb1e73
refs/heads/master
2021-01-21T08:20:05.473703
2017-07-25T16:47:54
2017-07-25T16:47:54
48,184,686
1
3
null
2018-01-22T19:20:31
2015-12-17T16:12:07
Python
UTF-8
Python
false
false
10,851
py
oome_monitor_test.py
import unittest import mock from StringIO import StringIO from superlance.compat import xmlrpclib from superlance.oome_monitor import OomeMonitor, OomeProcess from superlance.tests.dummy import (DummyRPCServer, DummySupervisorRPCNamespace) class TestOomeProcess(unittest.TestCase): """ Test class to test ...
2f82bafcb2058b1c3a394884b29df299278e4e42
7a956a93dd9e92d2e71519ecb9c92257c722095c
/split_pu.py
80f2d8ee24c80ceab34c4d3867f0e0ef0a9569b0
[]
no_license
ntinouldinho/Artificial-Intelligence-SpamHam-Classifier
8619c1e5b92c4ba6ae5b7af4d250d80818634d2b
afff0c12df2927930ec119ec6b17346b9f4e3737
refs/heads/main
2023-03-26T13:49:42.321182
2021-03-27T18:39:48
2021-03-27T18:39:48
352,149,621
1
0
null
null
null
null
UTF-8
Python
false
false
829
py
split_pu.py
from extra_methods import find_paths_pu import pickle train_path = [] train_types =[] for i in range(8): x,y = find_paths_pu("pu_corpora_public\\pu2\\part"+str(i+1)) for i,j in zip(x,y): train_path.append(i) train_types.append(j) dev_paths,dev_types = find_paths_pu("pu_corpora_public\\pu2\\part...
5eccecca5523f0f1c6c5ee7da36f895deca9eb9b
908e2698c3f67899167c90d1a9beb93556df4df6
/__init__.py
b3e545799538a3624b4869ab580774e16dde9ccc
[ "MIT" ]
permissive
mapa17/Kaleidoscope
9666e40e065cea90f178229cce786b6e387a626b
fc4ffe9cc4096d7585c55db877cf185a794ac6d3
refs/heads/master
2021-05-13T11:37:24.997553
2018-01-28T13:36:46
2018-01-28T13:36:46
117,130,704
0
0
null
null
null
null
UTF-8
Python
false
false
34
py
__init__.py
# Init dependencies #pygame.init()
6b6d49cbe1268c95ba248bb6bd43fb7068b5cbd3
627613f144f40e2e1ee623f9fcf076919193ce2b
/src/main/java/br/edu/ifpi/capar/poo/revisao/uri/python/1066.py
c6dd0b1b6ecb1797f1f7243c4c94322f5734f35c
[]
no_license
denylsonmelo/poo
d265906aa5223b3f051392338977f5b4b8644455
a837fef3be7b595160b622de5817c39e41a77f25
refs/heads/master
2018-09-08T17:50:48.238404
2018-07-14T23:02:20
2018-07-14T23:02:20
117,726,411
1
3
null
null
null
null
UTF-8
Python
false
false
505
py
1066.py
pares, positivos, negativos = 0,0,0 qtd_numeros_lidos = 5 for i in range(0 , qtd_numeros_lidos): numero = int(input()) if ehpar(numero) #numero %2 == 0 : incrementar(pares) #pares += 1 if numero > 0: positivos += 1 elif numero < 0 : negativos += 1 print("{} valor(es) par(es)"...
c1e2a59fa18983c3c53a1e46b2f015d6add23990
fd3b702b5d6ad58fba0019458336e29667c08b37
/hackerearth/hacker_earth/super_prof/black_box.py
6748fd29c75216a5a939808ac1af04ccb525b2c1
[ "MIT" ]
permissive
bristy/HackYourself
0bb7137c8377efe11b1b0752046af8aed97f2415
ceaacce07cb1b66202e17ad313a3467bd591bdc1
refs/heads/master
2020-06-06T14:56:44.796081
2016-11-10T07:18:30
2016-11-10T07:18:30
17,864,378
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
black_box.py
def getSum(n): ret = 0 while n > 0: ret += n % 10 n /= 10 return ret fact = 1 ret = [] for i in xrange(1, 1001): fact *= i ret.append(getSum(fact)) t = int(raw_input()) for _ in xrange(t): n = int(raw_input()) print ret[n - 1]
8f97afa018ce3048e3f0f04be52b2bb215462ce5
8dc3d31ca18e799d6d5dcefa248beb33572687f8
/centralpy/responses/project_listing.py
a0ad2d7d8c0c49edfd966a1a75116ad6941a7512
[ "MIT" ]
permissive
pmaengineering/centralpy
05139592e0479f77f21983787ad14d623b3dc979
edd89925bcc4204add1bf93b7ff3437cc0e6ea92
refs/heads/master
2023-08-20T10:34:08.075958
2021-10-22T15:54:46
2021-10-22T15:54:46
339,276,101
1
1
null
null
null
null
UTF-8
Python
false
false
744
py
project_listing.py
"""A module for the ProjectListing class.""" class ProjectListing: """A class to respresent a projects listing.""" def __init__(self, response): self.response = response def can_access_project(self, project: str): """Check if the provided project ID is in the response.""" return ...
cca9dbc8c3905a39093178e22cf83aa415e4987a
a6f47c6b702055aa2cc1a9ee051017320a8c602b
/modules/webm/SCsub
44e80e2870e5a136862543a7e05751f3a86f2a34
[ "FTL", "Zlib", "MIT", "BSD-3-Clause", "Bitstream-Vera", "CC0-1.0", "MPL-2.0", "OFL-1.1", "CC-BY-4.0", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
Stary2001/godot
849ca3045a687d9b34de7cc24a8b6d26f89f95bc
00c6ce9716ed542997bc2b59136bceb3729db970
refs/heads/3.5.2-stable_switch
2023-05-25T08:38:55.387308
2023-04-14T23:07:10
2023-04-23T20:32:29
148,190,960
306
38
MIT
2023-05-19T20:10:22
2018-09-10T17:11:15
C++
UTF-8
Python
false
false
1,292
SCsub
#!/usr/bin/env python Import("env") Import("env_modules") env_webm = env_modules.Clone() # Thirdparty source files thirdparty_obj = [] thirdparty_dir = "#thirdparty/libsimplewebm/" thirdparty_sources = [ "libwebm/mkvparser/mkvparser.cc", "OpusVorbisDecoder.cpp", "VPXDecoder.cpp", "WebMDemuxer.cpp",...
32cb562ebb3c5896407ae9d162f9fb3e5a1dabc4
14d8541fe2be98f2cdb83567f075228c53313a92
/ImgProc/migrations/0008_auto_20190905_1605.py
18407e4ad2ea82086205e8fb2b61e20c23f05c3f
[]
no_license
THUMarkLau/ImgProcessSite
7526461b9eb3d8d0cbe08d566b106e173ccab45f
d423593af7f3eacb763f22fc03c2b434f627f06b
refs/heads/master
2020-07-17T20:41:00.813865
2019-09-06T12:41:51
2019-09-06T12:41:51
206,095,516
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
0008_auto_20190905_1605.py
# Generated by Django 2.2.4 on 2019-09-05 08:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ImgProc', '0007_auto_20190905_1604'), ] operations = [ migrations.AlterField( model_name='record', name='res_img', ...
d8f5ddd4ff479ad478d1e30596ed940c6f4eb99f
4dbc4d9c864ac4565193f412d1a2928f34d28da5
/Educational Codeforces Round 90 (Rated for Div. 2)/E_Sum_of_Digits.py
e06b69d1751ea17c7cd8288a68554499f2180ebf
[]
no_license
TomChan1991/codeforce
91807fd9b62abc48eaed8c0bfac17a38707a2b5c
d23c882d9194ff09f8b41bd76c9cddc3af5c9b21
refs/heads/master
2022-12-08T09:23:05.599194
2020-07-20T13:54:35
2020-07-20T13:54:35
281,128,634
0
0
null
null
null
null
UTF-8
Python
false
false
1,462
py
E_Sum_of_Digits.py
line = input() t = int(line) def helper(n): res = '' if n % 9 == 0 else str(n % 9) res += '9' * (n // 9) return res for _ in range(t): line = input() n, k = [int(i) for i in line.split(' ')] res = '' if k == 0: print(helper(n)) else: k += 1 a = sum(range(k)) ...
7d693ded97d2a9262821354839d5d97a785cd945
e9adbc20c819d653072df0c4bf89fd41d2a3eb94
/wordBreak.py
59034e1af42509862bc07017799722c3a1db14ed
[]
no_license
peinanteng/leetcode
75c7ce1cbe2fa30ed3333dfc7830a7ae1e586d08
0e10a40921d9fa5ca8c53859e4b17bcb62ee899a
refs/heads/master
2021-09-11T01:48:30.647583
2018-04-05T02:55:57
2018-04-05T02:55:57
108,075,018
0
0
null
2018-04-03T03:02:23
2017-10-24T04:03:42
Python
UTF-8
Python
false
false
585
py
wordBreak.py
class Solution(object): def wordBreak(self, s, wordDict): """ :type s: str :type wordDict: List[str] :rtype: bool """ if len(wordDict) == 0: return len(s) == 0 array = [0] * (len(s) + 1) array[0] = 1 maxLength = max([len(w) for w in...
a7f60c46e047a40c1227dad79e594d2f80704b4e
09bdeec0a18d38ad365d052e1a63cc3caad8cb37
/homework/hw1/q1.py
2a2cdd9c365b7aa692cd4306299ad4fb4a67a72b
[]
no_license
XiaoZHOUCAM/cs224w-stanford
65f9b7d248a247bef79e96e42b2a27813d542d5f
0044fcc7c89137d62f4cf2ee7baed8c063c561ae
refs/heads/master
2021-04-15T22:14:21.484720
2018-03-22T17:16:51
2018-03-22T17:16:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,728
py
q1.py
#!/opt/conda/bin/python3 import numpy as np import matplotlib.pyplot as plt plt.switch_backend('agg') import pandas as pd df = {} df["EReny"] = pd.read_csv("/mnt/notebooks/ERenyDegs.txt",sep='\t') df["Small"] = pd.read_csv("/mnt/notebooks/SmallWorldDeg.txt",sep='\t') df["Cosmo"] = pd.read_csv("/mnt/notebooks/Cosmolog...
df137f71fa41eed758cc63afca344a9ca56298a0
ce94ab5e9a96e2c5a355c0be95884d480898b673
/mpworks/fix_scripts/legacy/actions/do_fw_conversion.py
38e6aab69e8b5e9f817e17d249fd4b484eb0798d
[]
no_license
materialsproject/MPWorks
f2f08feefbaaf290fe073f3f81488fd9792096e0
17d024204a5dd5ef160b2b865e85d46d99e8001f
refs/heads/master
2020-04-04T05:40:24.837606
2019-07-06T19:43:47
2019-07-06T19:43:47
8,809,856
21
27
null
2017-12-12T01:00:47
2013-03-15T22:00:22
Python
UTF-8
Python
false
false
1,815
py
do_fw_conversion.py
import os from pymongo import MongoClient, ASCENDING import yaml __author__ = 'Anubhav Jain' __copyright__ = 'Copyright 2013, The Materials Project' __version__ = '0.1' __maintainer__ = 'Anubhav Jain' __email__ = 'ajain@lbl.gov' __date__ = 'May 14, 2013' if __name__ == '__main__': module_dir = os.path.dirname(o...
187795001d4659c24cc26efadfb8dd36439b001b
3b9bf497cd29cea9c24462e0411fa8adbfa6ba60
/leetcode/Problems/1373--Maximum-Sum-BST-in-Binary-Tree-Hard.py
bda8d7761f0c177f8b41555e9fd1ee62c1ff85b3
[]
no_license
niteesh2268/coding-prepation
918823cb7f4965bec096ec476c639a06a9dd9692
19be0766f6b9c298fb32754f66416f79567843c1
refs/heads/master
2023-01-02T05:30:59.662890
2020-10-17T13:12:34
2020-10-17T13:12:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,108
py
1373--Maximum-Sum-BST-in-Binary-Tree-Hard.py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right import sys class Solution: def maxSumBST(self, root: TreeNode) -> int: self.max, self.min = sys.maxsize, -sys.maxsiz...
b1adb66d6f8150196f97e7c5c35e4bd138441d8c
2ec8eb0ca411e1a101a5f907a6acc8bef84c8527
/retos-2/get_data.py
1109b4c7b42f2561fc6d9a2a044ed68075cd8d3a
[]
no_license
haroldspear/retos-2
d582b168071cc7967600f3524544cc01062e9845
9a1dae0133638c50b101af6604844ff5870efc06
refs/heads/master
2022-12-06T04:30:31.346607
2019-10-03T05:43:39
2019-10-03T05:43:39
212,335,799
0
0
null
2022-11-22T04:16:58
2019-10-02T12:29:27
Python
UTF-8
Python
false
false
3,955
py
get_data.py
from InstagramAPI import InstagramAPI as iApi import random from time import sleep import json import sys import argparse hashtags_default = ["nintendoswitch","gaming","nintendoswitch"] parser = argparse.ArgumentParser(description='Obtiene el top 20 de handles que postearon cada # por año, mes y día' ) parser.add_arg...
7a30f17ccd8fdad9f3224693c1197567d49cafeb
e6e8fe0854ef69faa6276c6ee5a24e5978156c56
/idc/baudtest.py
1ce2eb414778c3e9bd789eaafe7de39fb81abfb8
[]
no_license
prakadambi/masters-vm-2sem
50f56269dcb56bb749a463e47cf45b3f001df18a
8b10f49330f0175f075e46d13c7c671e86766dca
refs/heads/master
2021-06-16T06:41:04.058957
2017-05-09T03:14:14
2017-05-09T03:14:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
baudtest.py
#!/usr/bin/env python3 from serial import Serial import bitarray import time import sys; print(sys.version) print('\nAutomatic baud rate checker:Receiving end') serialPort = Serial("/dev/ttyUSB0", timeout=5)#timeout after 5 seconds print('ready to begin') serialPort.stopbits=1;#1 stop bit #serialPort.rtscts=True if ...
503dad65f16369eb4df3a6e416f3572764c22823
34634a9a81ccf75427eab8256603d24c97d2d56c
/hw2/grid.py
ad10788d1da8433f8bce01921fc17a824588597a
[]
no_license
cwallac/SoftwareDesign
7946381290d5f92aac1b650970df43e9121d3e09
fcbffce26b4692e6852227f668e7a676f2bd26b6
refs/heads/master
2021-01-14T09:54:00.064705
2014-03-10T18:22:36
2014-03-10T18:22:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
grid.py
# -*- coding: utf-8 -*- """ Created on Sat Feb 1 18:58:29 2014 @author: cwallace """ def gridPattern(n): def printRow(n): print '+' + ('-'*4 + '+')*n def printFiller(n): for i in range(4): print '|' + (' '*4 + '|')*n printRow(n) for i in range(n): ...
a47742589b572961e247f66412d149b4eace3b9a
402b1104a2d5bdc9171d44d0e8ef8e60ffa070ec
/custom_components/barry/__init__.py
aad9157f80a9370ebdb1ac4dc1ced69fe3a1fa24
[ "MIT" ]
permissive
AntorFr/hacs-barry
e5da2204d3040db8dd601b8ddcb500783a15b6a0
0a18452475e22dbb03a6a56365b61328fef10562
refs/heads/main
2023-07-16T17:52:09.515173
2021-09-11T15:57:32
2021-09-11T15:57:32
399,291,120
1
1
MIT
2021-09-11T15:57:33
2021-08-24T00:59:29
Python
UTF-8
Python
false
false
8,257
py
__init__.py
"""The Flipr integration.""" from __future__ import annotations import asyncio from datetime import ( timezone, datetime, timedelta, date ) import logging import traceback from typing import Dict, Generator from async_timeout import timeout from barry_energy import BarryEnergyAPI, PriceArea from homeassistant.con...
f488b05380a9a7bd72b6a2a57ff8b336c168f5f6
837118336f97f8eebf0db8baf79b92a1f23177cc
/pointcloud.py
398a1ceea94de6868f21a2cab45cb03d4c7c11e0
[]
no_license
romiebanerjee/MPT
d0d4fe503f1dd0583a874b85141d3690b52f1952
696faf390042bbe506cb6a074988a74d375cd51c
refs/heads/master
2020-04-13T08:01:17.418880
2019-01-11T12:38:08
2019-01-11T12:38:08
163,069,602
0
0
null
null
null
null
UTF-8
Python
false
false
7,923
py
pointcloud.py
import numpy as np import sympy as sp import pandas as pd import statistics as stats import json import math def flatten(A): #flattens a nested list if A == []: return A if type(A[0]) == list: return flatten(A[0]) + flatten(A[1:]) else: return [A[0]] + flatten(A[1:]) ...
234b0e42feee2b6f94804243d829d38bf7976ed4
ad10f4d1530fe4ededfbb93ee31042c9e5c24e9a
/Data Structure/dict/5_loop 돌 때마다 다른 dict 만들기.py
6bc4b85a157208655d9434e2f4f774cad1e80e76
[]
no_license
WinterBlue16/Function-for-work
0d76ea2c326e547ad0cc3171f4a5a09d02de5a58
38603549b448198c12b48c95147516dbbc3f28f2
refs/heads/master
2022-07-15T20:30:26.178739
2022-07-04T13:42:01
2022-07-04T13:42:01
238,364,618
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
5_loop 돌 때마다 다른 dict 만들기.py
# 하나의 dict를 활용해 여러 개의 dict를 만들고, 저장한다. users_list = [] sampled_dict = { 'id': '', 'name': '' } id_list = [1, 2, 3] name_list = ['Alice', 'Ben', 'Sam'] # for loop without copy() for i in range(len(id_list)): sampled_dict['id'] = id_list[i] sampled_dict['name'] = name_list[i] users_list.append(sampl...
c0394e98a21fa542cc702817b39ea26023b5632a
58b180199717290435a5b555c8ac7beeea8680d0
/python_experiments/paper_figures/tkde/tkde_get_static_reads_time.py
e8d692ff17e8304e107bc23e137cbae8057a4dd8
[ "MIT" ]
permissive
kiminh/SimRank-1
636e2a822950f65c3aae1338c25372f7d6a3d2fd
3a601b08f9a3c281e2b36b914e06aba3a3a36118
refs/heads/master
2022-12-16T22:28:19.561413
2020-08-29T15:06:40
2020-08-29T15:06:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
tkde_get_static_reads_time.py
import json from paper_figures.tkde.data_legacy.static_data_loader import vldbj_reasd_tag, vldbj_readrq_tag, vldbj_probesim_tag def get_reads_probesim_ap_time_dict(tag, data_set_lst): if tag in [vldbj_reasd_tag, vldbj_readrq_tag, vldbj_probesim_tag]: with open('data_legacy/vldbj-comp.json') as ifs: ...
82930478204558f48097127f7861f446f774d858
6e79746c66275c05856442a8827128017d25a619
/lnbits/extensions/lndhub/views.py
81e4c69d6e89ce010e41372b43b925bf0fdf37ee
[ "MIT" ]
permissive
enorrmann/lnbits
b4553f9947f9abf6798595c2548eea13703fdaa7
11e3bcad89dd72195bfb99569c7e65d96e3f10d0
refs/heads/master
2022-12-19T14:15:57.466596
2020-09-23T18:55:54
2020-09-23T18:55:54
296,042,870
0
0
MIT
2020-09-16T13:35:26
2020-09-16T13:35:25
null
UTF-8
Python
false
false
317
py
views.py
from flask import render_template, g from lnbits.decorators import check_user_exists, validate_uuids from lnbits.extensions.lndhub import lndhub_ext @lndhub_ext.route("/") @validate_uuids(["usr"], required=True) @check_user_exists() def lndhub_index(): return render_template("lndhub/index.html", user=g.user)
1eaa8cc54f66bf77a03650ce0dc7192baba5b6b2
4f53e5abac6018da81c78195d2bdec0650b102fd
/Frequency.py
457281258e33d0904e791674eb34515c25bfd5bb
[]
no_license
AchillesVM/LanguageAnalyser
6934a7e2f23e5159c7f67a522bba97ae6f19baf7
7800a588352628273b33bac71e71acf7ee4bc68a
refs/heads/master
2022-12-16T02:55:40.110303
2020-09-03T10:45:39
2020-09-03T10:45:39
261,752,514
1
0
null
null
null
null
UTF-8
Python
false
false
4,199
py
Frequency.py
import os import csv import tqdm import json import glob import nltk import pprint import argparse import pandas as pd import constants as co from collections import Counter from multiprocessing import Pool from AnalyserTemplate import AnalyserTemplate class Frequency(AnalyserTemplate): """This analysis performs a...
a92496f851cb68b610092fcccebf8427d40f7d21
d3406298dcaa8f53c584af144d5fa7f10f5aebac
/python/route_extract_copy_regex.py
70dcbbc2d8187918e7821554becfc8b04904c3ef
[]
no_license
anjanabheri/testc
f5c27fb7d4f811fdc3c5bb5b52f5ce010305764f
f5de53d7a7d13802eb9f28ba958e275fee711093
refs/heads/master
2022-05-18T01:04:16.196999
2022-05-03T09:53:44
2022-05-03T09:53:44
77,539,922
0
0
null
null
null
null
UTF-8
Python
false
false
2,806
py
route_extract_copy_regex.py
#!/usr/bin/env python import sys import os import re import string import logging import random import datetime import time import socket import struct out = """ S *> 100.1.1.1/32 [1/0] via 12.12.12.20, dp0s7 *> [1/0] via 12.12.12.19, dp0s7 *> [1/0] via 12.12.12.18, dp0s7 *...