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
ac2c5c05fb448bb1a4a4324d0ebba07bc884effe
e13091c137650cd31c8d9778087b369033d0cf96
/src/main/python/study/boj/2021.05.22/BOJ-1213.py
fc3f32e76f223f763f1193743329012dc9b913a4
[]
no_license
jwoojun/CodingTest
634e2cfe707b74c080ddbe5f32f58c1e6d849968
d62479d168085f13e73dfc1697c5438a97632d29
refs/heads/master
2023-08-22T09:03:32.392293
2021-10-31T01:00:33
2021-10-31T01:00:33
300,534,767
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
BOJ-1213.py
import sys name = list(input().strip()) alpha_count = [0 for _ in range(26)] temp = "" ans = "" for i in range(len(name)): alpha_count[ord(name[i]) - 65] += 1 odd = 0 for i in range(26): if alpha_count[i] % 2 == 1: odd += 1 temp += alpha_count[i] if odd > 2: print("I'm S...
a66ada1e99a708fa85e2c619252a665d8d0e6bbb
1de13167939b9c26ebf62414ac0bf1aa0eac9351
/problem007.py
199ab9ce6825a72e8577af031db9fa11ac562720
[]
no_license
gezero/EulerPython
99da41ac81b202b6b30e893145f10c62af290804
ab3432c98e2634678a8b78b1bc9a536f6dd163b5
refs/heads/master
2020-06-02T02:58:37.341941
2014-08-09T18:37:40
2014-08-09T18:37:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
problem007.py
#link: https://projecteuler.net/problem=7 # By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see # that the 6th prime is 13. # What is the 10 001st prime number? import primes sieve = primes.sieve(1000000) print(len(sieve)) print(sieve[0]) print(sieve[5]) print(sieve[10000])
c9bdbcdc852c749ca55cdd780563b6ac0c090144
42f9ad7743376d7599833556cbc6341563c89db0
/imageapp.py
8007b69708d0bbea6ef2eee4f05e5e8bbabb1a3c
[]
no_license
Tejaswini-y30/ICS-project
458ba03f430c37bde9e4f243539cf094598e52a9
a756ce431dbde885bd045602d48d46ccb795e1a0
refs/heads/main
2023-06-22T02:36:58.171735
2021-07-15T15:45:56
2021-07-15T15:45:56
386,336,866
0
0
null
null
null
null
UTF-8
Python
false
false
2,560
py
imageapp.py
from tkinter import* from tkinter import ttk import tkinter as tk from tkinter.filedialog import * import tkinter.messagebox from PIL import Image,ImageTk import hashlib import enc_script def pass_alert(): tkinter.messagebox.showinfo("Password Alert","Please enter a password.") def encrypt(): global file_pat...
32d7c53f2207e56842a3fd1ac3e58e011cc59b63
8fc29d449b42106114ace7907d84e421c71653ef
/text_statistics/most_common_letter.py
823980458fc1f9992ff3a35c80130fc6b4582e2b
[]
no_license
vzDevelopment/text_statistics
2592400ed87c7f353ed4f0215fb476ba51e859fc
e33ce3f96c3d4f07d9abcff428abece9c7c4226b
refs/heads/master
2023-01-09T14:25:26.784747
2019-10-22T19:39:21
2019-10-22T19:43:17
215,394,089
0
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
most_common_letter.py
# -*- coding: utf-8 -*- """ Provides a Statistics Generator Plugin to calculate the most common letters in a piece of text. """ from typing import Set from .letter_occurances import LetterOccurances from .statistics_generator import StatisticsGenerator class MostCommonLetter(StatisticsGenerator): """This c...
785483f2f8744e5e64db27c44373436c6091cf27
23611933f0faba84fc82a1bc0a85d97cf45aba99
/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/storage/storage_util.py
c17be9a504d535d52584046899bb1935525af778
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
KaranToor/MA450
1f112d1caccebdc04702a77d5a6cee867c15f75c
c98b58aeb0994e011df960163541e9379ae7ea06
refs/heads/master
2021-06-21T06:17:42.585908
2020-12-24T00:36:28
2020-12-24T00:36:28
79,285,433
1
1
Apache-2.0
2020-12-24T00:38:09
2017-01-18T00:05:44
Python
UTF-8
Python
false
false
9,881
py
storage_util.py
# Copyright 2015 Google Inc. All Rights Reserved. # # 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 ag...
3a8f141ce21f95e93b28399b979b982094781569
640e4320ad91a5f3942990f4eefd9abca9a92506
/pelicanconf.py
9100a3d8263ea4b61b5e48319199e33bf897da41
[]
no_license
boxfish/presentations
69c8b4b4d2dbe2d1cfb921da5b262042828db05b
c3b22bd35b5622b7932cd31e35a21019e0f3dc28
refs/heads/master
2020-05-30T15:41:00.655249
2013-10-31T05:04:57
2013-10-31T05:04:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,085
py
pelicanconf.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals AUTHOR = u'Bo Yu' SITENAME = u'Presentations by Bo Yu' SITEURL = '' TIMEZONE = 'America/Los_Angeles' DEFAULT_LANG = u'en' PAGE_DIR = 'pages' PAGE_URL = '{slug}/' PAGE_SAVE_AS = '{slug}/index.html' #ARTICLE_DIR = 'articles' ARTI...
6890123d429066f936454a0d2afa9b7fee97eca0
d1a6de945a6d3e0663b60ba4fdbac6958f620417
/authentication/views.py
7fd2ecc3cae734bcf13955a9861458f4e485965c
[]
no_license
dbinoj/public_audit
7d09f1138279d4a6d930e61fcf9fef360df5ca5e
9768b506d3b44cd603f0ba6296ea46671347b461
refs/heads/master
2021-01-18T01:26:44.639742
2018-12-17T08:10:54
2018-12-17T08:10:54
32,314,259
3
2
null
null
null
null
UTF-8
Python
false
false
1,588
py
views.py
from django.shortcuts import render, render_to_response, redirect from django.http import HttpResponseRedirect from django.template import RequestContext from django.contrib.auth import authenticate, login, logout from authentication.forms import LoginUserForm def index(request): if request.user.is_authenticate...
1ee535ee182b3bc11a871d3f468f26834842ca28
1c6aa1b899c478a8b4f5f057de98e46b14901cab
/Basic/sr for real and complex.py
647d79e7317af7f1d0ababa08ad4295de335474f
[]
no_license
codezila-org/Python-Programs
a213fd0176ad7eba549f7c4dc19008a54dd603bf
e9c1d9a6a87932be6de7ba1efbf8d4ff2f83339f
refs/heads/master
2021-07-14T09:43:17.321703
2021-05-19T17:47:21
2021-05-19T17:47:21
248,087,735
8
6
null
2021-05-19T17:40:52
2020-03-17T22:43:14
Python
UTF-8
Python
false
false
479
py
sr for real and complex.py
# * Written By Codezila.org at 20-03-2020 1:26AM (IST) # Find square root of real or complex numbers # Importing the complex math module import cmath num = 1+2j # To take input from the user #num = eval(input('Enter a number: ')) num_sqrt = cmath.sqrt(num) print('The square root of {0} is {1:0.3f}+{2:0.3f}j'.format(...
062afbfa9fb47c382c57a2f7f3df0a24fd429913
ec76030092cfc86a7b2a2bb3fbfe3c14ceeb0986
/portfolio/migrations/0006_technology.py
ac40f323fc38c253100989c001a7368324e332fb
[]
no_license
VManuelSM/personal-site
e495c82b884c3ec55d91c7399ca8f039173d1bf4
b229ec98865c5b9daad05ccb2f940c736240f02c
refs/heads/master
2022-11-30T22:43:03.366307
2020-08-16T00:13:24
2020-08-16T00:13:24
287,836,486
0
0
null
null
null
null
UTF-8
Python
false
false
1,157
py
0006_technology.py
# Generated by Django 3.0.5 on 2020-08-15 06:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('portfolio', '0005_auto_20200815_0606'), ] operations = [ migrations.CreateModel( name='Technology', fields=[ ...
38756ef9dce398e30d3edb919db37fc2d1a54402
d6498142019194e6513d6ed52322433a588c27e2
/3.read_journal_network.py
e9e3946a206b7e9f6695be9b0218a196e4eb7b3d
[]
no_license
liusida/journal_citation_network
4a6e0c8b58a1825ad4b389c83481178128fe9b2e
95d78a3815053dd13d33de70e3c50caeda22dd67
refs/heads/master
2020-09-21T08:13:55.887358
2019-11-28T22:23:44
2019-11-28T22:23:44
224,737,788
1
0
null
null
null
null
UTF-8
Python
false
false
1,596
py
3.read_journal_network.py
import json import pymysql import pymysql.cursors import sys import networkx as nx G = nx.DiGraph() connection = pymysql.connect(host='localhost', user='citation', password='password', db='citation', cha...
9daf0a6a513cae1a62e1dc59947423d6fdb48737
16476ee084ed4dbea0d83acebe3e9f3cf109296d
/main.py
2c3efc8b17719b0575bbe28b04b77b6bd0cc1361
[]
no_license
dustin/postbin
317dd0abad79ca440e533a23b7ce12e7ae03c205
d8b6636b2d961b8b1ea2b29cb41ed81dfc58d438
refs/heads/master
2023-08-26T12:43:11.307019
2009-07-04T07:54:22
2009-07-04T07:54:22
240,419
1
0
null
null
null
null
UTF-8
Python
false
false
498
py
main.py
import wsgiref.handlers from google.appengine.ext import webapp from google.appengine.ext.webapp import template from models import Bin class MainHandler(webapp.RequestHandler): def get(self): self.response.out.write(template.render('templates/main.html', {})) def post(self): bin = Bin() ...
bdbb19bfccf71677dd4cca99c023ebea67416eb6
5758f1244604931af198c2c42bc6cd6f8d31511f
/posts/oo2_time.py
05f7b51db9018474105880e98f697ed1304dc7c7
[]
no_license
jreisinger/blog
422f960cfaff1f070805ea3f2f62b43a6893f16e
7d9a34e238754913e554d9a08c3713d7bd69526c
refs/heads/master
2021-01-24T11:01:57.896014
2019-11-13T13:21:38
2019-11-13T13:21:38
7,575,155
10
1
null
null
null
null
UTF-8
Python
false
false
1,512
py
oo2_time.py
#!/usr/bin/python # Think Python, Ch. 17 Classes and methods class Time(): """Represents the time of day. attributes: hour, minute, second""" # init method gets invoked when an object is instantiated def __init__(self, hour=0, minute=0, second=0): self.hour = hour self.minute = minute ...
7280f04ef5d36f601e32dbe5a1d2edc05c47b3ef
60fa18ba949e525c2e6a289e78d2ae93527aabd2
/Week5/Class1/copy_list.py
c9b00a3c609f21413270026593c33e568a5fd4d1
[]
no_license
lavalio/ChamplainVRSpecialist-PythonAlgorithms
a98f6f947d2758108f10ba7ca9634d6431e0e9ea
d50d343e42a2098dd097b2282444df07b9ca603e
refs/heads/master
2020-04-05T00:59:05.027786
2019-03-09T22:35:48
2019-03-09T22:35:48
156,418,306
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
copy_list.py
a = [22,33] b=a print("list a") print(a) print("List b") print(b) a[1] = 66 print("list a") print(a) print("List b") print(b) #print(a[:]) c = a[:] print("List c") print(c)
1dbf93dc75d2bbd7e04dcda4a70d6bd9c8ee59fb
b0569f078dc7c2db311815f3c29c6978837b5040
/blogs/admin.py
079dd225d6499d977e13b985ad9d3a4dc794c471
[]
no_license
carinfinity/imageupload
439029cc5cd0293fa408c087b429c48ca7f31aaa
f34b084fb3717c81a400addc4f2382446a3b1026
refs/heads/master
2023-04-24T11:13:06.870196
2021-05-04T12:02:35
2021-05-04T12:02:35
364,223,900
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
admin.py
from django.contrib import admin from .models import NewCar # Register your models here. @admin.register(NewCar) class NewCarAdmin(admin.ModelAdmin): list_display = ('id', 'carname', 'cardesc', 'carimage')
0d13476c00812826e5a404d02640196a5ebbdb08
b533a75e0e934baf8910919740791092fa266991
/seeseehome/seeseehome/settings/settings.py
dc7aacc977f838b67905e03a1ede7cea8060a4c8
[]
no_license
ssu-see/see.ssu.ac.kr
efa914695f2b2472f6b03140cf48985f1a670b47
821e7e24a225909d57d4a26c634cb3471a86e38b
refs/heads/develop
2020-12-24T15:50:13.880168
2016-03-08T17:00:39
2016-03-08T17:04:40
29,292,961
2
5
null
2016-03-05T15:14:47
2015-01-15T10:48:17
CSS
UTF-8
Python
false
false
211
py
settings.py
from .partials.database import * from .partials.application import * from .partials.static import * from .partials.media import * from .partials.internationalization import * from .partials.development import *
904d227b33e8d679fa6a01433dd29ab677eaee98
9c9d2e9bffa0f671f88ec6b1832a42be1d4b6cd5
/z_algo.py
75dc272506ef672d05d70199cb342ba7feb7d180
[]
no_license
adiesha/z-algorithm
afbd656953825dc01ef2e6b4ccbf70a32ff795d3
4881cfcb55763b20e36b08bdc0ed2d70c34c882b
refs/heads/master
2023-08-27T21:25:22.188187
2021-11-12T17:41:04
2021-11-12T17:41:04
402,529,629
0
0
null
null
null
null
UTF-8
Python
false
false
2,585
py
z_algo.py
import numpy as np def main(): print("Hello World!") z = generateZi( "gtcaagaacgaatcacccgtcaggtactcgcccacagctgagttaatatgatactgtagagtgattttctggttctatgctgcgtcacgtagtccatatataaagattaattcacgcgccggaaagataagcattttaatgcgtcatgctatacgctgatatcgtggtctgcggtacacaagccgtcgtaataggcggcaaagcgtagagagtatgagtattctataccacg...
f89bff1ed1e340ba155554369159a51ee5f2136f
46778f6ecf0082c46c25472341d6f60593a73003
/serializers/renderers.py
8d14df6f39420ad392d3fa90cfdd14dc4c8f1e1f
[ "BSD-2-Clause" ]
permissive
madalbalstudio/django-serializers
f0d8821b711a4674e910aabf879db3d5933a8f68
d7aa18e7a5e3a7dee3264a020aa2a47fe4897503
refs/heads/master
2021-01-16T03:53:13.140458
2014-09-15T11:16:06
2014-09-15T11:16:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,176
py
renderers.py
import datetime import json from django.utils.encoding import smart_unicode from django.utils.html import urlize from django.utils.xmlutils import SimplerXMLGenerator from serializers.utils import SafeDumper, DictWriter, DjangoJSONEncoder try: import yaml except ImportError: yaml = None class BaseRenderer(obj...
bbb18620f336341c3228750fc2b2641dd4904d64
15f4764f4cc499cc858e62a432859dce909ce25d
/scripts/Parse/setup.py
f0a981359217b40d92e4bf65da2b477e5a3fa5d0
[]
no_license
nachocove/Telemetry
e2dde75293afbaaf98b8e6e58c054bd94bf54546
15c33e8bb4a715021213ddd09a507a3149b24908
refs/heads/master
2021-06-01T04:34:00.540210
2016-06-14T00:38:51
2016-06-14T00:38:51
19,679,956
0
0
null
2020-04-30T07:45:05
2014-05-11T23:16:00
Python
UTF-8
Python
false
false
1,506
py
setup.py
import getpass import pprint from argparse import ArgumentParser from Parse.connection import Connection from Parse.users import User from Parse.roles import Role from Parse.acl import Acl def create_user(conn, username, password, email=None): user = User(username=username, password=password, email=email, conn=c...
7759cc6d8afc552e07b2589de4bc90700f1f19d2
f7d48b2f00fdb399eb0fccb8756f7d177ce80c5f
/OlympicDataAnalysis/athleteClass.py
10f916916bc59e1d04ebc77aea068a28dfdecd68
[]
no_license
Songlynn/DataAnalysisProjects
55f2f1b3c8c2316c9daa5cf48ff670ea90ca1441
f0c8d2f4889424e48164c830ec6f726af99c71af
refs/heads/master
2020-03-30T07:36:48.054702
2018-10-08T05:23:51
2018-10-08T05:23:51
150,952,692
0
0
null
null
null
null
UTF-8
Python
false
false
2,357
py
athleteClass.py
import re class Athlete: def __init__(self, info): self.name, self.name2 = self.get_name_from_info(info) lis = info.find_all('li') self.sex = self.get_item_info(lis, "性别") self.country = self.get_item_info(lis, "国家") self.birth = self.get_item_info(lis, "出生日期") self....
8acabedee5682eefbc43c2dd838369250cc49fcd
7378aaee27ef676db95dce7702c48f8643c63313
/grow/partials/partial.py
cfec85ba387db31078006ddc445546dbcc790efa
[ "MIT" ]
permissive
grow/grow
323fa25c7690643bf170cc4558fffdfbd406ac76
17471c436621ebfd978b51225fa4de05367a53e1
refs/heads/main
2023-06-15T09:51:08.288251
2022-07-21T16:19:33
2022-07-21T16:19:33
12,899,663
352
56
MIT
2023-02-08T02:35:36
2013-09-17T15:51:40
Python
UTF-8
Python
false
false
2,125
py
partial.py
"""Partials contain organized units for templating.""" import os from grow.documents import document_front_matter from grow.common import utils split_front_matter = document_front_matter.DocumentFrontMatter.split_front_matter class Partial: """Partial from the partial directory.""" def __init__(self, pod_...
6f6dc88f0aeef1968e567d135947c4e8637a8d62
4f85b712215f5f1d8cdfa22199da5bde970c072e
/scripts_ProjectExamples/seabirdwatch/animate_birds.py
803bd898288ce68f2bfdeb68759193e373bbd1b1
[ "MIT" ]
permissive
zooniverse/Data-digging
fbf0a1051730ef983c896f449865101f5c266f60
4f79b8807a8dfa3718567311f3b2bfbf412ddee0
refs/heads/master
2023-08-08T00:05:14.122187
2023-07-28T18:35:42
2023-07-28T18:35:42
46,790,207
47
40
MIT
2023-04-27T21:37:58
2015-11-24T12:26:58
Python
UTF-8
Python
false
false
2,762
py
animate_birds.py
import pandas import matplotlib.pyplot as plt import matplotlib.patches as patches from matplotlib.animation import FuncAnimation, FFMpegWriter import numpy as np from scipy.interpolate import interp1d # inputs brids_over_time_path = 'all_birds_over_time.csv' freq = 'day' tween_frames = 16 interval = 124 birds = pand...
f852692d416b00279067184222cd1ba8f96b6912
763ba7154a2799882c5be807ae6aab577a017d46
/manager.py
0f30a6af3634adc6e58be0e089479f7f9202eabc
[]
no_license
swetalight/python_homework_manager
a236910a8908c564bbe0b92b47bd7d9336fd8c15
1154350ee134a22680a283c5fe194e27dd91f957
refs/heads/master
2020-04-20T02:57:19.420798
2019-01-31T19:44:04
2019-01-31T19:44:04
168,584,652
0
0
null
null
null
null
UTF-8
Python
false
false
2,007
py
manager.py
from datetime import datetime from contextlib import contextmanager class MyManager(): def __init__(self, name_file): self.name_file = name_file def __enter__(self): self.start = datetime.now() self.cook_book_rez = self.composition_bluda(self.name_file) self...
519394c3cdec0fb353abd490af231d38812cdaf4
33341bd5e5e5818c12231d4e2b996f5d09863fb3
/2017/06/debug/plotting_interactive.py
68a66ca3f7586b4a633f2c8dece8b47610479d5d
[]
no_license
davidlow/pythonlogs
dedd23f394b1ae6582a433d8318a3565559017e3
557225da4885e5d40ea5ee9993273796ff405216
refs/heads/master
2021-01-25T09:14:29.275442
2017-10-11T22:23:29
2017-10-11T22:23:29
93,804,176
0
0
null
null
null
null
UTF-8
Python
false
false
1,088
py
plotting_interactive.py
import matplotlib matplotlib.use("qt5agg") import matplotlib.pyplot as plt import multiprocessing as mp import random import numpy import time def worker(q): plt.ion() fig=plt.figure() ax=fig.add_subplot(111) ln = ax.plot([], [],'b',marker='o')[0] fig.canvas.draw() # draw and show it plt.show...
985cfe848c60368763b20d2b938ed3181b535e83
4a473fe75c0ad2ddac69eed3e04d15530eb27ab2
/application/laji/views.py
632dc3917b7aadfe8cfb0c2ff3c7489a5b2eb4ed
[]
no_license
tumajote/Villiruokasovellus
921bae8bda78646ee53c95c8b9b53316fbe8f2de
17e7e6298a084afe37127beadd4f5efa974564d3
refs/heads/master
2021-06-26T06:15:10.580193
2019-12-13T21:57:26
2019-12-13T21:57:26
218,759,682
0
0
null
2021-03-20T02:07:35
2019-10-31T12:21:56
Python
UTF-8
Python
false
false
321
py
views.py
from flask import render_template from flask_login import login_required, current_user from application import app from application.laji.models import Laji @app.route("/laji") @login_required def laji_index(): return render_template("laji/list.html", lajit=Laji.find_maarat_lajeittain_by_user_id(current_user.id))...
30949a99d464ecc8b7240b406e68a6de3c0929b5
1214e2da186d23cf4c5f02571860e777486f1853
/data/views.py
409da193b1f83c5e19740b6fe174e0f8353fb1b7
[]
no_license
fargusplumdoodle/SnakePit
9aaa873ee7003e2a09e1e6a4a19c77eda0d41692
c7c68b28c78604588429411ae35e03fa380ff46e
refs/heads/master
2022-12-11T00:55:23.350552
2019-06-19T16:05:58
2019-06-19T16:05:58
171,145,457
1
0
null
null
null
null
UTF-8
Python
false
false
9,409
py
views.py
from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from . import controller as c from .models import Game import json import requests from rest_framework.authentication import SessionAuthentication, BasicAuthentication from rest_framework.permissions import IsAuthenticated from re...
2020e984f90733df472fc425f187db15a94bf89b
1359f138858f99d74cd1ee877dd529712ad2e9a4
/RL test/stability test/improve/boxing/preprocess_test.py
2bd5e6f8a58de5a208753046f22f7ec74e73c3d9
[]
no_license
MiaoDragon/RL-FYP
a33be5a9c609b4c6878b6c4899c973ad3e9c799a
c68b6a8933fef1ae40905a74c8e332a41957bfde
refs/heads/master
2021-09-03T16:01:53.029459
2018-01-10T08:44:58
2018-01-10T08:44:58
106,380,538
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
preprocess_test.py
import cv2 img = cv2.imread('Lenna.png') img_yuv = cv2.cvtColor(img, cv2.COLOR_BGR2YUV) y, _, _ = cv2.split(img_yuv) # scale res = cv2.resize(y, (84,84), interpolation = cv2.INTER_CUBIC) cv2.imshow('lenna1', res) print(res) print(res.shape) #y = cv2.cvtColor(y, cv2.COLOR_GRAY2BGR) #cv2.imshow('lenna2', y) cv2.waitKey(...
61b46eed150cf99cb6c5356f2fb99cfd56bf97ed
2f66cea48877ec46926960767c4c45d801d76b9e
/gibbs_sampler.py
04ee3868307aae94297729577850e6b9ded15fe5
[]
no_license
dushyantk1509/Non-parametric-Bayesian-Methods
c954b9aaaba4c059044a8d8567610eb5bfb398a2
a42251838c9a966a360eb9256b5ff0ca43fe51fd
refs/heads/master
2020-05-20T22:04:36.778836
2019-05-09T10:19:20
2019-05-09T10:19:20
185,775,022
0
0
null
null
null
null
UTF-8
Python
false
false
5,620
py
gibbs_sampler.py
import os import _pickle as cPickle import gzip import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm import random from scipy.stats import multivariate_normal from scipy import stats import seaborn as sns from tqdm import tqdm import sys from sklearn.utils import shuffle import pickle from coll...
d12745a79f822cd32bd2554628f40675dbbd0fc1
31183957be76278fbcd500cc3955c04bbf2eda43
/lxfpy/do_iter.py
a754ad220b9ab813cfe75964610f1446df1062ec
[]
no_license
kobeding/python
d182bea677f226393f9d08cb3923dd2653864e13
dc2e3fbd5698a612c9579aef4a2421c4e114060c
refs/heads/master
2021-01-21T04:47:11.122869
2016-06-21T01:33:15
2016-06-21T01:33:15
54,940,896
0
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
do_iter.py
#!/usr/bin/python3.5 #关于迭代 from collections import Iterable,Iterator def g(): yield 1 yield 2 yield 3 print(isinstance([1,2,3],Iterable)) print(isinstance('abc',Iterable)) print(isinstance(123,Iterable)) print(isinstance(g(),Iterable)) print('-----------------------') print(isinstance([1,2,3],Iterator)) ...
28bea43d930e1e4b07c53bddf0d6432a7ac60234
f96be755e58b1614655dff78c0d29445c29e8ff6
/hungarian/python/code/ellipse.py
f1975a8a49a6b097111e2990f3865c8724905e2b
[ "Apache-2.0", "CC0-1.0" ]
permissive
OSGeoLabBp/tutorials
9413935d786b5ad7cedbfc14d47592a2a18d4e71
540837585d597a8f6fa0d1265f48eb91fa4054be
refs/heads/master
2023-08-21T14:48:29.792705
2023-08-14T05:37:04
2023-08-14T05:37:04
37,574,986
18
28
CC0-1.0
2023-09-01T06:41:38
2015-06-17T05:41:54
Jupyter Notebook
UTF-8
Python
false
false
775
py
ellipse.py
#!/usr/bin/env python # -*- coding: UTF-8 -*- import math from circle import Circle class Ellipse(Circle): """ class for 2D ellipses """ def __init__(self, x=0, y=0, p=2, r=1, b=1): super(Ellipse, self).__init__(x, y, p, r) self.b = b def __str__(self): return ("{0:." + str(sel...
827e94aaffa8cdb711b44027acca6069b5c0c3b4
98e78a6481330d1eb4afcd706cabecea712c33bc
/utils.py
a2ddb8f7e9d433e5488773b3589ea10224dcb289
[]
no_license
zampie/Animation-standing-segmentation
9b08df4dbab1fb14f7c1c1da1e5464afa9f9bd3c
2d7b8b75a49bd34fd13a3cf3632e58c3a4ba36df
refs/heads/master
2020-09-28T18:17:22.872940
2019-12-09T11:19:17
2019-12-09T11:19:17
226,833,519
1
0
null
null
null
null
UTF-8
Python
false
false
1,978
py
utils.py
from PIL import Image import math import cv2 import numpy as np # data_B = Image.open('./samples_2/results_512/000000_data_B.jpg') # fake_B = Image.open('./samples_2/results_512/000000_fake_B.jpg') # # data_B = data_B.convert('L') # fake_B = fake_B.convert('L') # # data_B = np.array(data_B) # fake_B = np.array(fake_B)...
85cbb991e4dd509d1168617b46969f377f595070
0ac4e22842dd68d5ed7fd3d0bd23f30571376bfb
/src/app.py
a5ce13d20d9e94af9a317d900507872d1bcbbd36
[]
no_license
Florrod/family-static-api
16ae41512874cbd3368f58350fca8a6deb862d18
81800ffc0852f288bc5d7e53075198cc5c057a2e
refs/heads/master
2023-04-19T21:39:46.313306
2020-06-30T18:31:06
2020-06-30T18:31:06
276,175,356
0
0
null
2021-05-06T20:29:10
2020-06-30T18:13:23
Python
UTF-8
Python
false
false
2,246
py
app.py
""" This module takes care of starting the API Server, Loading the DB and Adding the endpoints """ import os from flask import Flask, request, jsonify, url_for from flask_cors import CORS from utils import APIException, generate_sitemap from datastructures import FamilyStructure import json #from models import Person ...
3779ba0df56bf5edb438e161c8ee1dbfb05a6f2b
59da63de20d75a1020fb8abe54d716199b776b18
/Print Function.py
60acebd09aade7c1f99916ea0aecada631014ef9
[]
no_license
Aixa201/Challenges
4e890916ecb0e78055748fc47587159e60c25aec
744a077a1cef5f3c826dbf8d5b633d827bab6ade
refs/heads/main
2023-06-09T21:34:44.491868
2021-06-30T23:13:16
2021-06-30T23:13:16
381,440,835
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
Print Function.py
if __name__ == '__main__': n = int(input()) string = "" if n in range (1,150): for i in range (1,n): string = string + str(i) string = string + str(n) print(string)
d59edc5873e8896e5b8b6f2a03515563a67ab0ec
e6af7a910673452fae39081b8853507aa9a54d2c
/peewee_setup.py
3e7e5d1fd15b7b658c7e87e75a413f93acea0a59
[]
no_license
nbhatia823/vibe-server
1f8db25d01be1bc4c3f8fc3ff375e4624b6cd065
9727ca9fc329410385cfc02389d65ac878e8a00e
refs/heads/master
2021-06-21T21:06:07.484235
2019-12-07T02:20:54
2019-12-07T02:20:54
216,963,014
0
0
null
2021-05-06T19:47:19
2019-10-23T03:48:12
Python
UTF-8
Python
false
false
474
py
peewee_setup.py
from config import Config from peewee import PostgresqlDatabase, Model ### SETUP peewee # Initialize db_helper with Peewee; static variable db = PostgresqlDatabase( Config.DATABASE, user=Config.USERNAME, password=Config.PASSWORD, host=Config.HOST, port=Config.PORT, ) #db.connect() # BaseModel ne...
b790c2f90be5398efc963d962769334f4d9df1ad
12f14aa4d1dbda15da19e53a24ad170ca3240bf7
/movie_reccomender.py
7a6fbb5d39eeaaa2206a9fa7bf8d478a019a03de
[ "MIT" ]
permissive
amy-leaf/Movie-Recommender
3760e8df7c193f1d87af454253e130384aa8e006
5d20dec3e0050c1eaab90796490d5234c021548a
refs/heads/master
2020-05-15T12:31:27.251977
2018-11-19T21:07:45
2018-11-19T21:07:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,977
py
movie_reccomender.py
# -*- coding: utf-8 -*- """ Created on Sat Oct 20 21:43:06 2018 @author: Harshitha R Movie recommendation using Movie Lens data """ import pandas as pd #Using apyori library to find relation between movies using support metric from apyori import apriori ratings = pd.read_csv("ratings.csv") rat...
d022a3788a1f8a65d376969290762a5946914c62
fb06550c3fd8ae6ef87eb1e17a484551deaa2e02
/backend/school_personnel/migrations/0005_auto_20200315_1456.py
498503553abb501ae50c2fd775aeba7924750125
[]
no_license
micakce/react-django
abf2daa2a1d9ec31ac4cc96f7c762e874e796cff
0a099138d18845880822a168bc5c0e983c91474d
refs/heads/master
2023-01-06T22:14:05.762610
2020-04-27T21:35:47
2020-04-27T21:35:47
246,853,352
0
0
null
2023-01-05T09:53:46
2020-03-12T14:20:56
Python
UTF-8
Python
false
false
343
py
0005_auto_20200315_1456.py
# Generated by Django 3.0.4 on 2020-03-15 14:56 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('school_personnel', '0004_auto_20200314_2144'), ] operations = [ migrations.RenameModel( old_name='Student', new_name='Profes...
ce4bf634e77c33bdcfb5fa2a32db95cad4363c53
b30077a0fffb3c9e98d25b92d9247cf4f5070cae
/app/pull_scripts/loadNewest.py
5a67037fe87a51a1c5a2fa3e4748c4476e7ceb97
[]
no_license
saqibnizami/dat-dashboard
8bd54dcf79a5d259c8116f4cbe95e439897284a6
d6c0c9d5c7b3443240aab6c891cb8056dd34b6cc
refs/heads/master
2023-08-09T11:30:08.937878
2019-11-04T02:39:34
2019-11-04T02:39:34
172,582,581
0
0
null
2023-07-21T11:54:37
2019-02-25T20:50:12
Python
UTF-8
Python
false
false
1,186
py
loadNewest.py
import hvac import os import sqlalchemy as db import psycopg2 import sys import pandas as pd import numpy as np from datetime import datetime as dt import re from pathlib import Path def loadNewest(foldername, tablename): """ Returns the latest data from the folder and tablename """ now = pd.Timestamp....
153eeb58e9fce372de6ea9899a988b34b9be3602
d1313aff34e14a1986b9e44780cb0d27b2aa136c
/dCC_Python_SodaMachine/simulation.py
c0df89b195b448a9dee3bb0c4b9be8b9fb6324e1
[ "MIT" ]
permissive
PSButlerII/DebugProjectSodaMachine
dd54335a18ab8238534a4de48a6e5c92ab0170dc
350ee216e5d3bc8c6b9714b655ffd08cedcad71b
refs/heads/main
2023-06-01T10:02:27.486367
2021-06-18T19:50:53
2021-06-18T19:50:53
378,238,929
1
0
null
null
null
null
UTF-8
Python
false
false
760
py
simulation.py
from customer import Customer from dCC_Python_SodaMachine import user_interface from soda_machine import SodaMachine class Simulation: def __init__(self): pass def run_simulation(self): """The central method called in main.py.""" customer = Customer() soda_machine = SodaMach...
72cae571426c1a0c73f72a73a7ae49d03c48ed7d
fb26f74f938454e482d440e86e7584fb601f9b7d
/run.py
1c5e7cc08842cd1098cbc7a0f4a941c618ba5394
[ "MIT" ]
permissive
nickdrozd/ecio-lisp
7865b9b39201331a3c91cbcd574641b4830d8ecf
690637f28f81c2e708075c5247d1598756aaadb2
refs/heads/master
2021-04-30T17:59:24.980314
2017-03-23T12:55:00
2017-03-23T12:55:00
80,310,662
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
run.py
from env import load_global_env from garbage import collect_garbage_if_needed import ec_main from instr import curr_instr, set_continue, goto, DONE from info import display_info from stats import run_stats def initialize_cont(): set_continue(DONE) def initialize_run(): collect_garbage_if_needed() loa...
d3598d9d61795f9d35153873a86934e0992e7951
70adad89e02fb7417d210e83041c1d3df094fc78
/prime/command_line/run.py
93b34acbe51f1fd071de5923bff624d6db3caa86
[]
no_license
dalekreitler/cctbx-playground
9a93b0daa2e213b343a6ee078cc9445be6cdb24f
07046f34cadeba2c3f5a30355d2bd46f83d6e0e6
refs/heads/master
2021-01-20T17:29:55.650359
2016-08-11T02:11:50
2016-08-11T02:11:50
64,417,111
0
0
null
2016-07-28T18:01:08
2016-07-28T18:01:08
null
UTF-8
Python
false
false
2,240
py
run.py
from __future__ import division # LIBTBX_SET_DISPATCHER_NAME prime.run """ Author : Uervirojnangkoorn, M. Created : 7/14/2016 Description : Commands for running prime main class. """ from prime.command_line.genref import genref_handler from prime.command_line.postrefine import postrefine_handler from prime.com...
029681d6c69ad3ce030623277c2afa3266dcffa9
fe476d22293d5a7f1b21a7318303867ef8c1764a
/21)Even_Odd.py
96bacf807f9b17c9962407c510894b2fd4304488
[]
no_license
Aaronphilip2003/w3resource-practice
49877fa06d8e173c0e93604e97ef64ac2318ff12
a120a46fa4aaf9c6714c60698f6b6fee4785c1dc
refs/heads/main
2023-04-19T15:17:42.813177
2021-05-08T17:38:10
2021-05-08T17:38:10
363,713,183
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
21)Even_Odd.py
#Even Odd using function def check(n): if n%2==0: print("Even") elif n%2!=0: print("ODD") else: print("0") return '\0' print(check(9))
695cae5bb6e88fcb3f1f4f77da104b43cf56832a
d9a22d4dcdfc0c28176c0e8afd784b30d275597e
/specific_analyses/n_state_model/data.py
57561e453d21dc4079a8d18d3c6f7b3488b252b8
[]
no_license
jlec/relax
fda1b3ff77be0afc21c2e6cc52348ae7635cd07a
c317326ddeacd1a1c608128769676899daeae531
refs/heads/master
2016-09-08T00:27:57.256090
2015-02-10T12:24:55
2015-02-10T12:24:55
30,596,131
4
1
null
null
null
null
UTF-8
Python
false
false
6,170
py
data.py
############################################################################### # # # Copyright (C) 2007-2015 Edward d'Auvergne # # # ...
d48c1df40f114e8b492f21a270774ecad920afbc
71c511adb16cdece404c77f0623d8b2b3d820271
/matplot/demo4.py
c579f9cdc36352986ddea8933862fbd2e63db33f
[]
no_license
Bestfeel/pythonPractice
fab882300b6233a7a097a8db0b7ddf759df58fa2
040f350af4f782b0a2783f623acfdf6038ab8139
refs/heads/master
2021-01-13T16:58:25.217031
2017-02-28T10:31:49
2017-02-28T10:31:49
77,390,753
2
0
null
null
null
null
UTF-8
Python
false
false
374
py
demo4.py
#!/bin/env python # coding=utf-8 import numpy as np import matplotlib.pyplot as plt # 绘制 均值为100 , 标准差为20 的 直方图 N = 100 sigma = 20 x = N + sigma * np.random.randn(1000) print x print(np.mean(x)) print(np.var(x)) print(np.std(x)) # normed 是否 标准化 plt.hist(x, bins=20, color='green', normed=False) # plt.hist2d(x,x,bi...
07f7e361f43c32a6028a82dabb4c4faad3ba83de
87d6e34920b9f18df7613fb69df4027bd79f9a00
/Haptic Feedback Code/yplane.py
bcc53ea4467d32aa692c3c92db176926ed002020
[]
no_license
shensleymit/HapticGlove
b14800d56cc426f356afdeedee1593858d0b4b42
c790d22fc32fa008c8e13d47d79c7e58a259a39c
refs/heads/master
2020-05-17T22:39:05.218509
2014-03-08T21:01:41
2014-03-08T21:01:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,318
py
yplane.py
import Leap, sys, serial, time, math from time import sleep from Leap import CircleGesture, KeyTapGesture, ScreenTapGesture, SwipeGesture connected = False ser = serial.Serial("COM5", 9600) class SampleListener(Leap.Listener): def on_init(self, controller): print "Initialized" def on_connect(self, ...
53fe9655d7105a6ca883f67c202c9c0a6c571779
24e443905012e9311d70cdaec0492b5aaa133e9b
/st2.py
6aa29a2728b8df6714e4d1fad191b81d1f89962b
[]
no_license
OmarMeriwani/Idiomatic-Language-Detector-tf-skip-thoughts
7100cb9dadc6d7826730e43db1c462545152e1d4
cef3b1d5933d5b48fb24de440453a2684d9f0c57
refs/heads/master
2020-04-28T22:14:45.231011
2019-03-19T00:12:30
2019-03-19T00:12:30
175,610,733
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
st2.py
import numpy import pandas as pd df = pd.read_csv('Dataset-Skip-Thoughts.csv') length = {} for i in range(0, len(df)): sentenceVector = df.loc[i].values[1] sentenceVector = str(sentenceVector) sentenceVector = sentenceVector.split(',') x = length.get(str(len(sentenceVector))) if (x != None): ...
bf492244fa09f9055222e15e31afead40f9493c2
c87ba12b608a9c21159619c1c0ad912c6b7a7aab
/LIMS_v0_4_0/LIMS/sample/migrations/0022_remove_sample_sample_name.py
bf48c0fe678b88c69f30e2a1ce052bb9d9997920
[]
no_license
bcurrall/LIMS
e653df4512f1ce9e90347d646a673e163c1a0215
c20ea34a5779f94bec5daf9cd690e09461cff600
refs/heads/master
2023-04-29T09:04:34.586063
2020-06-26T14:27:22
2020-06-26T14:27:22
81,500,605
1
0
null
2023-04-18T05:00:12
2017-02-09T22:18:27
Tcl
UTF-8
Python
false
false
325
py
0022_remove_sample_sample_name.py
# Generated by Django 2.1.5 on 2019-07-31 19:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('sample', '0021_sample_name'), ] operations = [ migrations.RemoveField( model_name='sample', name='sample_name', ), ...
0588746e13bd0f1da56a86bb691892ac8a9e191e
488beaad110b3482f66ccb42143e3d67c90b7fb4
/export/commandes.py
41dcadab546fc2f95917513dd7e8c45154876e2c
[]
no_license
hoccau/DiabolikStock
c926c5d0dc5bf2a033d91b71e2463964cb5fb855
76b80e9e1991ea406b19223c7e8c2286f0fa6f22
refs/heads/master
2021-01-19T10:04:49.801454
2017-10-19T14:04:17
2017-10-19T14:04:17
87,823,019
0
0
null
null
null
null
UTF-8
Python
false
false
1,914
py
commandes.py
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Export Stock as pdf file """ import logging from collections import OrderedDict from PyQt5.QtCore import QDateTime, QDate from PyQt5.QtPrintSupport import QPrinter from .utils import html_doc, pdf_export def create_pdf(filename='bonDeCommande.pdf', db=None): html =...
fd3d6be873f384115f705d71649c30250342bbe7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03632/s153726294.py
1ceb22dbcfd68a7b4c5166aeeeaad45ce9bf596f
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
112
py
s153726294.py
A, B, C, D = list(map(int, input().split())) if B <= C or D <= A: print("0") else: print(min(B,D)-max(A,C))
58021692f449a58e184fa9b706139782ed51e047
d1839a8bc228ec0b1f7fe19b833ee959a4467403
/Scripts/exp4.py
35fa674c01ed71764b0226f322d15b160c5ff364
[]
no_license
gayathrireddyt/Python
f293f665ed4b5f7194599f470fe7c6f1915abe36
5c524031fdc3115c70342c33b666479995b0141e
refs/heads/master
2021-05-31T05:56:50.717031
2016-04-23T07:09:28
2016-04-23T07:09:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
727
py
exp4.py
import re content = open('actual.txt') numlist = list() for line in content: numbers = re.findall('[0-9]+', line) if len(numbers) == 1: num1 = int(numbers[0]) numlist.append(num1) #print numlist, #sum = 0 #count = 0 #for number in numlist: #count += 1 #sum = sum + number #print count,sum if len(nu...
1433364b82514954edf4bc53919524e011781ed5
6c8bf82ac42fd5c8b8087d91f4b537054ad9ba55
/python_rest_test_app/rest_test/clients/files_client.py
d182ab06cc796a546fe106d35067d198af83340c
[]
no_license
vtslypro/pythonreactjsprojects
f02cfcc31d3a2239b6a8be1b4050960dae5d4c1d
ddb77ea22176193368fb86ee2b3147601f96a3c1
refs/heads/master
2023-01-19T14:53:29.028244
2020-02-04T01:15:29
2020-02-04T01:15:29
238,095,222
0
0
null
2023-01-06T01:36:54
2020-02-04T01:06:48
Python
UTF-8
Python
false
false
27,980
py
files_client.py
__author__ = 'alonitzhaki' import json import requests from utils.headers import AdskCommonHeadersManager from rest_test import app_settings as settings class FilesManagementClient(object): KEY_NAME = 'name' KEY_VERSION_ID = 'versionId' KEY_PRIMARY_WS_ID = 'primaryWsId' KEY_USER_DRAWING_PREFERENCES ...
01a61140f4af992f8719fbb052804332c5978119
5e6ed15f4df85711fd47fb3d7dbb9242a5e848ac
/astropysics/pipeline.py
fe5da1fe36c2bb3bde2c3c68e7f3d4acaec78221
[ "Apache-2.0" ]
permissive
eteq/astropysics
0c38ea0e14d46c70d434dca982ff2f70f9ba4e02
3d8fa228f84700d5e45e4a5273b88f4e2d3dd5c7
refs/heads/main
2023-01-31T13:23:24.570120
2021-05-05T14:39:52
2021-05-05T14:39:52
1,659,338
54
23
null
2023-01-14T22:12:23
2011-04-25T09:12:52
Python
UTF-8
Python
false
false
25,278
py
pipeline.py
#Copyright 2009 Erik Tollerud # # 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 i...
e7fc6aa426c339557bd078473fbf15e3e1435be1
f34d3948b707e461151ee33296a61fb23a6d3f44
/month01/day02/demo06.py
381cd3ee0a4194d80bab0da967c4bd76d026f28f
[]
no_license
xiao-a-jian/python-study
f9c4e3ee7a2f9ae83bec6afa7c7b5434e8243ed8
c8e8071277bcea8463bf6f2e8cd9e30ae0f1ddf3
refs/heads/master
2022-06-09T17:44:41.804228
2020-05-05T07:48:07
2020-05-05T07:48:07
256,927,969
0
0
null
null
null
null
UTF-8
Python
false
false
799
py
demo06.py
""" 运算符 算数运算符 增强运算符 练习:exercise05.py """ # 1.算数运算符 + - * # 幂运算** # 小数商 / # 整数商 // (地板除) # 取余 % (取模) number01 = 10 number02 = 4 # 数字 + 数字 --> 数学运算 # 字符串 + 字符串 --> 字符拼接 # 字符串 + 数字 --> X报错 print(number01 ** number02) # 10的4次方 print(number01 / ...
7671c1686b96111be8e173cf1aad6ab95c491a75
3a743139cca78fe4fc48c08a05a4f77680a0e65b
/pyrixs/process1d.py
b16d3bed44b18dddaa009f0fb68a813371ee5201
[]
no_license
mpmdean/pyrixs
d88388117560e6056a893c43aa8cb9788365d2af
e94531f325478ce18b88d9fb3d42068f269bd118
refs/heads/master
2021-01-12T06:56:40.588030
2017-07-10T22:28:30
2017-07-10T22:28:30
76,873,971
3
1
null
2017-05-17T19:27:57
2016-12-19T15:34:00
Jupyter Notebook
UTF-8
Python
false
false
12,424
py
process1d.py
""" Functions for processing 1D spectra data i.e. photon counts versus energy or pixel Everything is stored in an ordered dictionary Spectra -- spectra -- Pandas dataframe of all spectra -- spectrum -- Pandas series representing the sum of all spectra -- shifts -- number of pixels that -- meta -- A string can be us...
d542f51320bb71cbfb37889cf819fb550564672d
fd52784a9425ee122ff6eeacc63d475d00636395
/1stList/ex10.py
c4896b316f40fd3d1e92db875c7fbbee36f44cc1
[]
no_license
Felipe351/learning_python
f0c621e60720d7d7672e510bfdc69e25f0de3767
8d418c66b37011350cb6c1ce264e8535a419a02b
refs/heads/main
2023-08-25T03:10:49.659182
2021-10-10T05:06:34
2021-10-10T05:06:34
414,402,862
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
ex10.py
#Make a programm that asks a Celsius degrees and inform it's Fahrenheit value. celsius = int(input("Please, inform a Celsius degree: ")) fahrenheit = (celsius * 1.8) + 32 print(f'{celsius}°C = {fahrenheit}°F')
507e9ee4a07c45f3f170fd5ad21506eea55407c3
d50eb9b59540e6aae020e767db09f4682b7a703e
/assignment3/friend_count.py
e36b9e8b2a04befcab69e6e7391eb39c6d3b0146
[]
no_license
allenp/misc
5049b8eb2a45185023f62984b9eb67f9b7dbb42e
07ab6d4aee4572dd1ea4bc7d10e39c660249cb21
refs/heads/master
2020-05-17T15:55:36.658109
2015-01-04T01:02:59
2015-01-04T01:02:59
9,963,224
1
0
null
null
null
null
UTF-8
Python
false
false
330
py
friend_count.py
import MapReduce import sys mr = MapReduce.MapReduce() def mapper(record): personA = record[0] mr.emit_intermediate(personA, 1) def reducer(key, list_of_values): mr.emit((key, len(list_of_values))) if __name__ == '__main__': with open(sys.argv[1]) as inputdata: mr.execute(inputdata, mapper,...
720dabe0727a45c052c9409c9da5cc5dc31b0646
1ac91ce0b19129099ec51b94fc0d894e6fbd278e
/sgdblast/find_genes.py
6c85dd63725cfaf454e16456353e3f3b8d31e518
[]
no_license
kpaskov/StrainCleanupScripts
89782205377026f972f781ba61bf84605ad85aee
f4074265e4ac4f079b14ae6fedc738fcef73a89b
refs/heads/master
2021-01-10T08:31:14.726261
2015-11-15T01:37:52
2015-11-15T01:37:52
46,199,433
0
0
null
null
null
null
UTF-8
Python
false
false
2,121
py
find_genes.py
__author__ = 'kelley' import urllib2 import math # Given a BLAST output file (particularly the results of UNDEF blasted against S288C, finds # any genes that exist within the match interval chromosome_name_to_number = {'chrmt':17, 'chr01': 1, 'chr02': 2, 'chr03': 3, 'chr04': 4, 'chr05': 5...
b0b2342bbda02ab296109f892f00b97582540351
644bcdabf35261e07c2abed75986d70f736cb414
/python-project/Premiere/Probabilite/somme_nb_alea_Correction.py
2373c0c2ca54ef796b6d6b10606967aaa48e9e41
[]
no_license
matcianfa/playground-X1rXTswJ
f967ab2c2cf3905becafb6d77e89a31414d014de
67859b496e407200afb2b1d2b32bba5ed0fcc3f0
refs/heads/master
2023-04-03T11:56:15.878757
2023-03-24T15:52:37
2023-03-24T15:52:37
122,226,979
5
20
null
null
null
null
UTF-8
Python
false
false
229
py
somme_nb_alea_Correction.py
from random import random N = 10000000 def ma_fonction(): S = 0 for _ in range(N): somme = 0 n = 0 while somme < 1 : somme += random() n += 1 S += n return S/N
0d46f8880fc4fca7651494c4ad96ae03d655f4f6
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/tensorflow/_api/v2/xla/__init__ 2.py
f28873fa696ed49c8f3faabe8e7604b0142e0f37
[]
no_license
Akira331/flask-cifar10
6c49db8485038731ce67d23f0972b9574746c7a7
283e7a2867c77d4b6aba7aea9013bf241d35d76c
refs/heads/master
2023-06-14T16:35:06.384755
2021-07-05T14:09:15
2021-07-05T14:09:15
382,864,970
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
__init__ 2.py
version https://git-lfs.github.com/spec/v1 oid sha256:d1fba8b2723a0e83657f68346ec78c181ba15e87564578090a19a5103898f3d9 size 297
9b89276fc542f974360e6ea54766caaea1c5908e
8149d1030b5bc62cc82d5afedbe7486daedbf8c5
/[524][Longest Word in Dictionary through Deleting][Medium].py
47321babf324da20695c32bf9036883bea20aacf
[]
no_license
guofei9987/leetcode_python
faef17bb59808197e32ed97e92e2222862e2ba8c
23703a6fb5028d982b3febc630e28f9bb65a82a6
refs/heads/master
2020-03-21T18:24:33.014579
2019-10-12T13:29:03
2019-10-12T13:29:03
138,889,760
1
0
null
null
null
null
UTF-8
Python
false
false
75
py
[524][Longest Word in Dictionary through Deleting][Medium].py
# https://leetcode.com/problems/longest-word-in-dictionary-through-deleting
b7ffb5b8b88f984c26cbfe0084592a29541b2568
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/SMA-NOTIFICATION-MIB.py
78d54d24dfec0196abcaa679435d547e47756f10
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
7,131
py
SMA-NOTIFICATION-MIB.py
# # PySNMP MIB module SMA-NOTIFICATION-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SMA-NOTIFICATION-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:07:35 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
4360e6fe8afac03666fa730b02457ff93a9b76ee
f2a102c494fc7748f85a11acd13dfd6a6520caec
/Skeleton_inference/generation/run_SVR_SkeletonRecon_gen_binvox.py
37e24d8716f1484131afa42089998a7708c64c6b
[]
no_license
haoshidong/SkeletonBridgeRecon
e418d8f724a48c7fe4cd151ba4bd32a0998ef3e2
283d94c29b682bb0d84acab1beff43e22582afdf
refs/heads/master
2023-04-23T03:34:15.258418
2021-05-09T05:31:15
2021-05-09T05:31:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,417
py
run_SVR_SkeletonRecon_gen_binvox.py
from __future__ import print_function import argparse import os import random import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils.data import torchvision.datasets as dset import torchvision.transforms as trans...
f68750e963e0ed6e9b737dab1df13ed511131b6a
fe931e4eb729e010add72732889cfcfa0e82663d
/src/thesis_code/simulator.py
07d1f833f1af97a9795e5b95fbffa66c20afdf04
[]
no_license
Duam/python-master-thesis-code
14d7ae68d94475cc978717dbb2a9df691b5246e5
bb1a800612a1f046d2184ae42e00ed5ec0425b06
refs/heads/master
2023-06-30T07:02:28.369372
2021-08-06T15:11:26
2021-08-06T15:11:26
385,187,111
1
0
null
null
null
null
UTF-8
Python
false
false
4,440
py
simulator.py
import numpy as np from numpy.random import multivariate_normal from casadi import MX, DM, vertcat, integrator, Function from thesis_code.model import CarouselModel class CarouselSimulator: def __init__( self, model: CarouselModel, x0: DM, z0: DM = None, ...
3f0465adcde78e08de63a84d3395e6d99ac26909
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnsqueak.py
9231f63a3b7cfc62dc892f879b244d7382b223a5
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
234
py
nnsqueak.py
ii = [('KembFJ1.py', 1), ('CarlTFR.py', 2), ('GilmCRS.py', 1), ('CrocDNL.py', 2), ('BackGNE.py', 2), ('BailJD3.py', 1), ('HogaGMM.py', 1), ('KembFJ2.py', 1), ('LewiMJW.py', 6), ('AinsWRR2.py', 2), ('ClarGE3.py', 1), ('NortSTC.py', 1)]
ff5ef798f1defd8b8cf40db35353ccaa544190af
f24ebccebb89b52def95f394ba57d9f1e5a71817
/gui.py
625f7fc3fbbcd7ed5cc034ef1dadab4592d63bdd
[]
no_license
myGitName77/movie_recommendation_engine
4819d097f4c3bef8271ad4ea7dba54b4f99f562e
7de711e7a21888f8544de7ca0e3543199e9aa685
refs/heads/master
2023-05-05T08:10:15.704035
2021-05-15T13:59:21
2021-05-15T13:59:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,456
py
gui.py
import wx from main import movies, recommend_movies class MyFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, title="Movie Recommendation System", size=(900, 600)) self.Centre() self.SetBackgroundColour('#333333') self.panel = wx.Panel(self) my_sizer = wx...
8ef00a0c6326b0dbc37bbefe3995a93f846ce143
1f0690fd6780f44ba46076e958f56ba395dcbc20
/shexer/core/class_shexer.py
6398da2a198365d115fd42c208b93dbeb434d67d
[ "Apache-2.0" ]
permissive
DaniFdezAlvarez/shexerp3
196ee4d20b4b92b64a71256571c06de3b4a5cf78
80c3bdaac856a88d53359f5996477994774d34e2
refs/heads/develop
2021-06-13T14:03:12.494569
2021-04-26T11:38:36
2021-04-26T11:38:36
187,663,813
3
2
Apache-2.0
2020-03-27T19:38:33
2019-05-20T15:07:48
Python
UTF-8
Python
false
false
20,168
py
class_shexer.py
import json from shexer.model.statement import Statement from shexer.model.shape import Shape from shexer.consts import RDF_TYPE, SHAPES_DEFAULT_NAMESPACE from shexer.utils.shapes import build_shapes_name_for_class_uri from shexer.utils.target_elements import determine_original_target_nodes_if_needed from shexer.io.she...
2189a1c0020e2a42c716be4c524994ddd5b88d6f
5f57ca2d29ff633541e54eee7c4f5e4cf29540a8
/frontend/events/signals.py
ddb0ead872aa2cdb54fa7b86dafc71eac680e0cc
[]
no_license
calumhalcrow/campr
0872cb1f005e05808c0b28f8fd691b7361fd7993
d8465f09a3007d834fc52af169a0522fd78e2d5f
refs/heads/master
2020-12-25T03:48:47.394748
2011-12-12T08:49:44
2011-12-12T08:49:44
2,413,818
0
0
null
null
null
null
UTF-8
Python
false
false
1,338
py
signals.py
from django.conf import settings from django.db.models.signals import post_save from django.dispatch import receiver import pika from events.models import Message, Checkin from django.utils import simplejson def publish(data): connection = pika.BlockingConnection(pika.ConnectionParameters(**settings.RABBITMQ_CONN)...
af902e41581010d1f7a4e45561a62a323d212f06
19333aed645a4721108a67ba4d90292d2383314e
/163findPeakElement.py
83826f28ee2977439cc2563c46bc0aa5c91d3446
[]
no_license
qinzhouhit/leetcode
f39f8720a19259310293c1eb2975ce459f7cf702
502e121cc25fcd81afe3d029145aeee56db794f0
refs/heads/master
2023-06-24T09:18:25.715450
2021-07-21T07:21:42
2021-07-21T07:21:42
189,679,632
0
0
null
null
null
null
UTF-8
Python
false
false
1,811
py
163findPeakElement.py
''' keys: Solutions: Similar: T: S: ''' from typing import List class Solution: # iterative; O(logN) for T and O(1) for S def findPeakElement2(self, nums: List[int]) -> int: l, r = 0, len(nums)-1 while l < r: mid = l + (r-l)//2 if nums[mid] > nums[mid+1]: ...
e7c5896c66dcc583e6d3e5c0abcf809c515bb0cc
bb3c2dc01a603132fc9a8eeecd30fc0226036b73
/main.py
1db1bff456a8b506c7eb4548f337de21aee1753d
[]
no_license
stormzee/student-management-system
b758bb18ad179c7763bd48da6fb884e1b94a0dee
6287a5bc271fee4918e31ab9b31d6c67cff9d26e
refs/heads/master
2022-12-08T02:41:22.002344
2020-08-30T16:40:31
2020-08-30T16:40:31
291,508,804
1
0
null
null
null
null
UTF-8
Python
false
false
10,239
py
main.py
try: from tkinter import * except ImportError: ImportError try: import ttk except ImportError: import tkinter.ttk as ttk try: import mysql.connector except Exception as error: print(error) else: pass class Main_win: def __init__(self,top=None): '''This class...
9741288a291996f7d448856a4b342b05fbaf230b
418c94dbc5289598fb77e1d8a9a7a246bc6edc60
/tests/test_cfg.py
2f7211cb8cbee2a297ca30ceda8f90d28bbf4c6b
[]
no_license
avacariu/pycfg
115dc07720ac41ebf5602b3eeda6ada277f9f322
b7f0fe3f338fee9e99d6bf708e6de3f86f5a1362
refs/heads/master
2021-03-22T00:07:02.859045
2018-04-05T05:36:16
2018-04-05T05:36:16
110,307,098
4
0
null
null
null
null
UTF-8
Python
false
false
3,713
py
test_cfg.py
import dis import os import unittest import pycfg function_registry = [] def register(f): function_registry.append(f) @register def _1(x): for i in range(x): print(i) return i @register def _2(x): for i in range(x): print(i) if i > 3: break return 5 ...
19fad4cb113d1a39d356bf76d8bb38f2fe44f164
656a355f7a9e5aacb82a64f365b3fbaf7286d87d
/perfiles/urls.py
17030f3712a15a3ad0b48ca3227c25bb5ac37bd5
[]
no_license
inturiasgary/gme
5bb45319536a148a563623e1ae2ad7a891d0d8e0
0e2c719cd73322b00c0047ab30f0f77ba148f3ad
refs/heads/master
2021-01-15T10:53:55.025495
2010-03-17T21:37:26
2010-03-17T21:37:26
169,403
1
0
null
null
null
null
UTF-8
Python
false
false
335
py
urls.py
from django.conf.urls.defaults import * urlpatterns = patterns('', url(r'^$', 'perfiles.views.perfiles', name='lista_perfil'), url(r'^(?P<username>[\w]+)/$', 'perfiles.views.perfil', name='detalle_perfil'), # url(r'^username_autocomplete/$', 'profiles.views.username_autocomplete', name='profile_username_au...
fc69837b4981f48bf47b364a84cb7e876529e21e
21e4296257910af4971813fed17e3b072b3987ab
/Calc.py
a33f135e7889d239c5f843b22b967c82f166fb6f
[]
no_license
CharliePasa13/Calculadora
658885162ef33a6746abf9ed42a5e0066c80eb62
faa9bd87a82a6efd3566660dc4a99f19a3b16158
refs/heads/master
2020-04-04T13:16:01.561505
2018-11-04T03:39:18
2018-11-04T03:39:18
155,955,074
0
0
null
null
null
null
UTF-8
Python
false
false
2,158
py
Calc.py
#esto define el metodo de suma def suma(num1, num2): return num1 + num2 #esto define el metodo de resta def resta(num1, num2): return num1 - num2 #esto define el metodo de multiplicacion def multiplicacion(num1, num2): return num1 * num2 #esto define el metodo de division def division(num1, num2): re...
369c119488ace5d44a96000025102bcd1aa751a7
3d97a922d57f4fbfd9ab53e0e91d2d9221552f7d
/sqrt.py
99646126ff3fce67d413b52ce160e7a92b678674
[]
no_license
devendraingale2/PythonPrograms
30c2e937f84ba89939aff479a4a9d24029565053
af02f3116a4cb8b6f3c033e569b96a50471e5a36
refs/heads/main
2023-01-21T10:32:57.400769
2020-12-05T14:19:29
2020-12-05T14:19:29
318,801,610
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
sqrt.py
num=int(input("Enter Number:")) flag=0 for i in range(1,num+1): if (i**2==num): print("Square Root Of",num,"is:",i) flag=1 break else: flag=0 if flag==0: print("Not A Perfect Square.")
0a6697dc6e4b3d33b8a8628bc79b4abdbb7b58ad
6e6be7ec7fee37e8826ba2053956920d91e28bc7
/codes/78e40089-2dcf-464f-a574-1fc05c1bed4a.py
10d08bc312d8368daf3d8dc924aa3006763847f6
[]
no_license
Buttonupd/Interactive_Online_IDE
81f4abca995988ab439b9cb9fa87e085885d0dda
a8085cb64bb731167493a4f76196b8a41435e9cf
refs/heads/master
2023-07-08T21:10:04.299150
2021-08-16T12:22:38
2021-08-16T12:22:38
395,621,612
0
0
null
null
null
null
UTF-8
Python
false
false
39
py
78e40089-2dcf-464f-a574-1fc05c1bed4a.py
user = input("Enter input") print(user)
352079d5f3dbfe0678c73d59c7e1775e1000a946
78add4109ea063cfd92cb80836a0e7b71085058d
/pythonScrapyWebCrawler/items.py
07ab16240b62205504367eec3dbb25ccf35d2a00
[ "MIT" ]
permissive
FabianGroeger96/python-scrapy-web-crawler
d74c445d3fdd09911c100253262c03b2c94a527c
cadb32f1b9667ca60c0b1effe056e892b1d016df
refs/heads/master
2020-08-26T21:26:08.736792
2019-11-05T08:40:45
2019-11-05T08:40:45
217,152,925
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
items.py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy from enum import Enum class ArticleItem(scrapy.Item): url = scrapy.Field() title = scrapy.Field() content = scrapy.Field() datasource ...
0df2c11c67564a6a96620289830752b555d19849
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03329/s035844719.py
1c0ac1b4bb11db003cb0218d6b965e548e9e07ca
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
s035844719.py
N = int(input()) dp = [None]*(N+1) a = 1 while a <= N: dp[a] = 1 a *= 6 a = 1 while a <= N: dp[a] = 1 a *= 9 def f(n): if dp[n]: return dp[n] a = 6 while a <= n: a *= 6 a //= 6 b = 9 while b <= n: b *= 9 b //= 9 ans = min([f(n-a), f(n-b)])+1 d...
0f7f381bde3442f5a78109148e1ad51bc01dfa51
ad266e4ab25bfd61ce0e8076b5015e9172d55bbf
/setup.py
2e4c055c80bb68499ab9cf824b4a554cea1fdd92
[]
no_license
brandizzi/ritd
af10bdedfc7903a64704cb9fa683439dd005f8f4
7bfcf71520588ea9bcf6423800ecf7f29de43e19
refs/heads/master
2022-06-20T22:22:27.307505
2016-04-04T02:08:01
2016-04-04T02:08:01
262,801,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
setup.py
# !/usr/bin/env python # # Copyright 2016 Adam Victor Brandizzi # # This file is part of Rain in the Desert. # # Rain in the Desert is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of th...
f20e7460c6a117899491bec8632efeafc6906aaf
602fc8613ff1e71604c7753df4d2dd4f191578e4
/listTest1.py
6a9bdcd6a2c9ec47dd7c8df57ad84009b9d8c57b
[]
no_license
sharshad9081/pythonlearn
cb79b4b81098fa6a47e2e7bdbeb1431a3442039c
aae22ef6332a9059ad40d98acad53034a8965708
refs/heads/master
2020-09-21T13:08:11.343123
2019-11-29T12:11:12
2019-11-29T12:11:12
224,797,978
0
0
null
null
null
null
UTF-8
Python
false
false
1,661
py
listTest1.py
# -*- coding: utf-8 -*- """ Created on Tue Nov 26 11:38:30 2019 @author: Rivatech """ #alist = [10,20,"abc"] alist = [10,20] print(alist) alist[0] = "test" #alist[2] = 25 print("changes", alist) atup = (10,20) print(atup) atup = 2 print("change", atup) name = "python program" print(name....
7b43ef99a36714e6cd4bab5ec7bc9f66b8c458d2
ea3a52ace0330d6713b302e3cbec342aef6c0ed1
/5_train_easy_network/easy_network.py
067303f9fa753bee173586a42c9677154929e9b4
[]
no_license
darren1231/Tensorflow_tutorial
093a3c478f2fa7ce7b6f2d8beb05d03f945f4070
bf8ea80696138420387b0f08ddf10f09de137b1a
refs/heads/master
2021-01-11T19:06:46.567404
2017-05-15T03:10:44
2017-05-15T03:10:44
79,319,364
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
easy_network.py
# -*- coding: utf-8 -*- """ Created on Mon May 1 15:05:36 2017 @author: darren """ import tensorflow as tf import numpy as np desired_input = np.random.rand(100) desired_output = 3*desired_input+5 weights = tf.Variable(tf.random_uniform([1],-1,1)) biases = tf.Variable(tf.zeros([1])) net_output = desired_input*wei...
7badac1f864e4d45ad06f99570b04875d3677da0
1ae555d3088dc123836060371fc520bf0ff13e52
/atcoder/abc057/c.py
b65a08a5d45e8fb67543a7d0a6e6a58b10ed76bc
[]
no_license
knagakura/procon
a87b9a1717674aeb5ee3da0301d465e95c758fde
c6ac49dbaaa908ff13cb0d9af439efe5439ec691
refs/heads/master
2022-01-31T19:46:33.535685
2022-01-23T11:59:02
2022-01-23T11:59:02
161,764,993
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
c.py
N = int(input()) root_N = pow(N,1/2) ans = 1000 for i in range(int(root_N)+1): A = i+1 if N%A == 0: B = N//A ans_l = max(len(str(A)), len(str(B))) ans = min(ans,ans_l) print(ans)
0aa64a60651efa3b2ba21b43d187d557ee0b02ac
26941758e77b2c196544c16b4f16c3e1e8a55654
/msbrainpy/chain.py
ebe8f060f87ca2841646b70dae6c8ba5418edac0
[ "BSD-3-Clause" ]
permissive
AbigailMcGovern/msbrainpy
76debeb9875f507235a2a0711037f457ff0c6219
1489aa1d6190cf70397577dbaa0ae597d9b2bd6d
refs/heads/master
2022-12-19T12:11:34.060831
2020-09-28T08:00:51
2020-09-28T08:00:51
223,312,832
1
0
NOASSERTION
2020-08-03T09:37:15
2019-11-22T03:06:20
Python
UTF-8
Python
false
false
19,639
py
chain.py
# The chain (Rumors reference intended) # ----------------------------------------- Higher-level Chain functions ----------------------------------------------- def makeChain(functionDictList, preiterable=None, inMethod=None, in_kwargs=None, writeInfoExists=False, recordMethod=None, record_kwargs=None,...
2b7f1e8e9cf36743fee7ae094b72679c4acc7f26
8fe9c3f2389999ae7fe2312c6cb894c2f1dcd1a7
/SubjectExplorer.py
cefdca0ab35ed693ca992b4bce954d7cad5cd2dc
[ "MIT" ]
permissive
ghonk/ibex
06b4706f8f7649f2b7bafc9360aff23ce370ea44
5667bf358d1701746a1dfd165e769a3a06259d25
refs/heads/master
2020-03-20T23:11:52.917172
2018-06-18T17:42:17
2018-06-18T17:42:17
137,834,479
0
0
null
null
null
null
UTF-8
Python
false
false
5,783
py
SubjectExplorer.py
# -*- coding: utf-8 -*- """ Created on Thu Aug 10 09:13:37 2017 @author: azunre """ # sumy imports from __future__ import absolute_import from __future__ import division, print_function, unicode_literals from sumy.parsers.html import HtmlParser from sumy.parsers.plaintext import PlaintextParser from sumy.nlp.tokeniz...
6aece18061fc6ca4ab9710a58fbd8b309bb1785c
55db341e712c1e1894304d6e7620eac21728a2de
/projeto_visualização.py
2767835767b3874666ad19dcf48610ac4194837c
[ "Apache-2.0" ]
permissive
tmrb/process_data_visualization
f24378abd55ae92a2683886fd8e68092821a44e5
d4c38ae5191aa6b8ac135058d31535f6de7b7b82
refs/heads/master
2022-12-24T03:48:44.422836
2020-09-21T23:39:22
2020-09-21T23:39:22
295,478,851
0
0
null
null
null
null
UTF-8
Python
false
false
12,567
py
projeto_visualização.py
# -*- coding: utf-8 -*- """Projeto_visualização.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1f12rdO1deH4S2LB95RWV5ponuG15Oor5 """ from google.colab import drive import sys drive.mount("/content/drive", force_remount=True) root = '/content/dr...
a442070a8e15fea3487a2e2374ff15581a243114
a04045b8c0ff53a0f161dcfab3349e7f1a114f59
/day1/day1a.py
e6a81c861bd002f8544746d50078f67d46efc9f8
[]
no_license
kgodfrey24/advent-of-code-2017
5579517d221aa2716d0e9b1a1bb16e86c3f6d082
576225243c23f4da6b6bde6aff508c501ce94220
refs/heads/master
2021-08-31T15:20:11.967081
2017-12-21T21:49:14
2017-12-21T21:49:14
112,945,476
1
0
null
null
null
null
UTF-8
Python
false
false
2,613
py
day1a.py
input = "823175367468399787817925919556533257949337848326497818414334128437968278851855917882222512662542831811539663268114187195289429189836478189892929261479288488324935672874199322488916792823226132512344756982993295126829295392876675577976183799381252852748448729811773986918941559946174694499265175276815861199671...
041b9513948a9cb8104a913264478719d2d12c00
ce9b7f4b168b2e0c2526133700b686bf3baf6cbf
/aipnd_project/utilities.py
76de57e933456af3ee53f10c2d4abee2a4b06763
[ "MIT" ]
permissive
zietho/datascience-nanodegree
d37486453b6ad93dcfb6e558f81a7d5216dd174f
2e1e6cdfe34b0b9cdbd6f56313b74a1151d6c2cb
refs/heads/master
2020-04-10T18:26:03.938707
2019-03-05T19:36:51
2019-03-05T19:36:51
161,204,104
0
0
null
null
null
null
UTF-8
Python
false
false
4,543
py
utilities.py
from PIL import Image from torchvision import datasets, transforms import logging import sys import os import torch import numpy as np import matplotlib.pyplot as plt class ImageUtilities: #constructor def __init__(self, args): self.mean = args.get('mean') if 'mean' in args.keys() else [0.485, 0.456, ...
df5db76cf84128ce7a49e8445321afbb2830a0de
0bdfb98fb76f3efb030f929e61ca6b946a483107
/src/environments/genz1984.py
7a5ea00ad111f9e743ea188757221a85afea0875
[]
no_license
tmpethick/thesis-code
6919b79cb90c40f7c17ca6097e5331a23d10f4fd
bf4c37f91d97ec5a2725d6016cc991baccd1b747
refs/heads/master
2020-04-28T11:31:59.675984
2019-09-25T09:08:58
2019-09-25T09:08:58
175,244,449
5
0
null
null
null
null
UTF-8
Python
false
false
3,895
py
genz1984.py
import numpy as np from src.environments.core import BaseEnvironment class GenzContinuous(BaseEnvironment): bounds = None def __init__(self, u=None, a=None, D=10, **kwargs): super().__init__(**kwargs) self.bounds = np.array([[0,1]] * D) self.D = D if u is not None: ...
fc0cd4adb59b13c320902b246b912e330e696780
b7e5c4cd7288c6bc1603e209cb2a8b3a72094516
/1.0/v1/test16.py
2b9cb1efe95285e4a93cc1561bb1eb60cb7175f8
[]
no_license
bcrafton/rram
96f8fc4d278f6abe0f494f85ca307541ee59787a
82548d465b7fb4beaba5596aa8e6aa3a4fac72db
refs/heads/master
2021-06-06T00:16:50.496984
2019-02-12T19:14:23
2019-02-12T19:14:23
165,597,912
3
0
null
null
null
null
UTF-8
Python
false
false
1,668
py
test16.py
import numpy as np from scipy import signal import matplotlib.pyplot as plt from rram7 import rram ############################ def square(T, dt, pulse_width): steps = int(T / dt) + 1 Ts = np.linspace(0., steps*dt, steps) ret = (signal.square(2 * np.pi * (1. / (2 * pulse_width)) * Ts, duty=0.5) + 1.) / 2...
26f0245404d659d4db2de6f43643e51382efc542
add3f762b22701c3fa88a9d52f5e2488708e1bb2
/test.py
6865cf58bad3017d97eb3bcb20a5fe5265c655f3
[]
no_license
krishnas-clumio/faker-data
4bb121ce365707b7804bba1211e6f39b3c42d539
3fa2b2fb71780c138f2e6b1b509581c545afdb9b
refs/heads/master
2023-03-16T16:43:49.967981
2021-03-10T19:49:58
2021-03-10T19:49:58
346,471,150
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
test.py
path= "DELTA=s3a://clumio-045303117942-eng-15-uw-2-uw-2/rds/883863842359/uw-2/instance-clumio-mysql-krdatabase-3/2020-11-12/a45c96ea-247a-11eb-ae6d-1a9201bb4c6e/clumio-export-s3-task-t2770308-org61/sales/sales.sales_orders/,s3a://clumio-045303117942-eng-15-uw-2-uw-2/rds/883863842359/uw-2/instance-clumio-mysql-krdatabas...
f6a12c00bdca17ea177acbe7ae156e0a880fde17
ecb7156e958d10ceb57c66406fb37e59c96c7adf
/Cracking The Coding Interview/Chapter_4/3. List of Depths/mySolution.py
1dc4f31eaf3a3d69481a51dc17535f2ca61d160e
[]
no_license
chenshanghao/RestartJobHunting
b53141be1cfb8713ae7f65f02428cbe51ea741db
25e5e7be2d584faaf26242f4f6d6328f0a6dc4d4
refs/heads/master
2020-07-27T17:39:58.756787
2019-10-18T06:27:27
2019-10-18T06:27:27
209,175,165
0
0
null
null
null
null
UTF-8
Python
false
false
1,388
py
mySolution.py
""" Definition of TreeNode: class TreeNode: def __init__(self, val): this.val = val this.left, this.right = None, None Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None """ class Solution: # @param {TreeNode} root the root...
4acde8df02d364ad30ff917e402d84de5f761e04
c3655bc6c3c6941e8bec64345af879585f0ce8f1
/ex12.py
68a52d5c58cd651fdde95896cab30b4caab2a032
[]
no_license
Jean-Alesi/Exercicios
5935eccb99813994f0d18c126ea728bafdc5d5e2
5fa88d067c287090147febdc9f7e7cb59c6bb7a1
refs/heads/master
2020-12-19T08:32:45.968972
2020-02-01T00:21:51
2020-02-01T00:21:51
235,681,796
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
ex12.py
prodruto = float(input('digite o valor do produto:')) desconto = (prodruto * 5) / 100 valor = prodruto - desconto print('Valor a pagar com o desconto aplicado é {:.2f}'.format(valor))
55512eb22f0b094241c995ceaf2933c08ff677a6
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/python/saved_model/model_utils/mode_keys_test.py
4e6998658c6e2d575512ee7e3cf6166b48a94612
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
Python
false
false
2,287
py
mode_keys_test.py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
be7e630c976080c1649caf8fff2979bff70e16db
d1df2e5a771d89a6824bcdbca8e3d20368e5f7d6
/flurry/__init__.py
565fbbce3f493961c59c80608e2a9cd28fa955bd
[ "MIT" ]
permissive
widd/flurry
d6c70b35db421a6fbd9288f9e9224897321f8d4b
c2904522d2fa83d76456ec50739690b734acbdc5
refs/heads/master
2021-06-30T23:24:39.255098
2017-09-17T03:09:44
2017-09-17T03:09:44
103,256,841
0
0
null
2017-09-17T01:20:51
2017-09-12T10:28:15
Python
UTF-8
Python
false
false
601
py
__init__.py
__author__ = "widd" BANNER = """ _______ __ __ __ .______ .______ ____ ____ | ____|| | | | | | | _ \ | _ \ \ \ / / | |__ | | | | | | | |_) | | |_) | \ \/ / | __| | | | | | | | / | / \_ _/ | | | `--...
c91ebc14baad216f02a3df04be0a4d974b354583
ccc52ed99c4469568e04926fbca9ab19d6188d76
/Transcription Pipeline/whisper_api_transcription.py
0fd0297ed079ec4b2eb6ddc7e7c23c9247e10fdd
[ "Apache-2.0" ]
permissive
bblinder/archiving
8efcc83026d4346fd9db84acaad0c425cdb7a7ef
90ed02a1b2b15775f21dc35bc87967009104fc52
refs/heads/master
2023-05-14T08:29:57.897939
2023-05-10T14:56:06
2023-05-10T14:56:06
174,854,861
1
0
Apache-2.0
2022-06-15T03:10:23
2019-03-10T17:10:30
Python
UTF-8
Python
false
false
7,987
py
whisper_api_transcription.py
#!/usr/bin/env python3 """ Downloads a video from YouTube, converts it to mp3 If it's bigger than 25MB, splits it into 10MB segments. Transcribes it using OpenAI's Whisper API. """ import json import logging import math import os import shutil import sys from argparse import ArgumentParser from pathlib import Path i...
0cb38be34e5a2079c590b99ca5fe7cdecdb350a2
55a2a89fe752dc72ca353c091a47628c830e4117
/classification/src/classifier.py
c83e9bd9b329b45a345ef15aadabd1b2a24ad4d0
[ "Apache-2.0" ]
permissive
hercules261188/serverless-transformers-on-aws-lambda
28df74886154906494f7315298d534000f784b41
d48caab0e07ae8326d4b37ab730faf2cffd02f7d
refs/heads/master
2023-07-09T01:37:49.042169
2021-08-20T08:39:46
2021-08-20T08:39:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,749
py
classifier.py
import warnings from functools import lru_cache warnings.filterwarnings("ignore") from transformers import (AutoConfig, AutoModelForSequenceClassification, AutoTokenizer, pipeline) from src import config, utils logger = utils.create_logger(project_name=config.PREDICTION_TYPE, level="INFO")...
65c77e49d054620158e4cf52ba78444952ab0b62
59d9c059bbe1f7000342095fa9173ed8e08ae138
/public_tools.py
297f7821cd6d4f5cbf7ee68b79756feca2095716
[]
no_license
lishengxuan/price_comparison_system
e896508f937d1213ca337c108e5230fdcf88b2be
3e74e87c2d9b8343ee6f2245f496a1234a3857f4
refs/heads/master
2022-12-13T16:10:25.398554
2020-05-07T12:34:07
2020-05-07T12:34:07
230,204,846
4
0
null
2022-12-08T04:06:25
2019-12-26T06:04:14
Python
UTF-8
Python
false
false
3,626
py
public_tools.py
import time from functools import wraps from lxml import etree import pymongo import requests from flask import session, redirect, url_for def login_required(func): """登录限制装饰器""" @wraps(func) def wrapper(*args, **kwargs): if session.get("user_id"): return func(*args, **kwargs) ...
b04e4b001a2df1d8a7ac3ab940e53d3a779661e3
5534c19110c09b715c742690b081d4523ce79b6b
/DP/Longest_Arithmetic_Progression.py
fc6c431e493405c46851034e5ee4afe869ded3c8
[]
no_license
alexthemonkey/interviewBit
8dd25968a7b791051a44c7fc53d1e0c7b19ed1d7
7afc52987c56111b2aed568e89d28024a1ac8ee8
refs/heads/master
2021-01-19T23:48:02.109714
2017-05-03T22:31:47
2017-05-03T22:31:47
89,031,582
2
0
null
2017-04-26T02:42:31
2017-04-21T23:37:31
Python
UTF-8
Python
false
false
1,250
py
Longest_Arithmetic_Progression.py
""" Longest Arithmetic Progression https://www.interviewbit.com/problems/longest-arithmetic-progression/ Find longest Arithmetic Progression in an integer array and return its length. More formally, find longest sequence of indeces, 0 < i1 < i2 < ... < ik < ArraySize(0-indexed) such that sequence A[i1], A[i2], ...,...
1ee7cd92a6ae3bca28cb0c386d19adc26952dde3
62d82fd576d809905d1f0bd944f22f1a8f19820f
/Day4/InputOutput.py
8586bd40fc139d656f9907b9a82d7a6580049b9e
[]
no_license
Blake2912/30DaysOfCode
97f4f930916c37b32498036943e0fb7fdee0ec7e
ba3d0390c6e1510f67f8eb176e632a392b61f9c7
refs/heads/main
2023-06-27T01:25:01.975217
2021-07-26T18:44:11
2021-07-26T18:44:11
387,540,811
0
1
null
null
null
null
UTF-8
Python
false
false
2,673
py
InputOutput.py
# Here i am extending the billing system that i did in Day3, # The system will get the item name and quantity and automatically # Generated the bill # Here i assume that each item has the same price of $20 def make_item_list(): item_lists = [] item_qty = [] while True: stop = input("Do you want to...
3bb1279c7070fa08741d7645e02de6832fa37fb4
d168c14a79ad171edbebb908c4020f6ca52d39ad
/q33.py
ec5da85e3dc21f898f75dc715badaccd60d96bce
[]
no_license
sehrishkhangh/deeplearning
b672f29d48b4456f2ee4cce637149904eff1ca4d
0180f18d10fb4ad83532f0827e6b65a6b2ada706
refs/heads/master
2020-12-09T15:42:29.952979
2020-01-12T07:00:30
2020-01-12T07:00:30
233,350,421
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
q33.py
'''num = int(input("Input a four digit numbers: ")) x = num //1000 x1 = (num - x*1000)//100 x2 = (num - x*1000 - x1*100)//10 x3 = num - x*1000 - x1*100 - x2*10 print("The sum of digits in the number is", x+x1+x2+x3)''' print('============================== REVERSE NAME ===================================') print('\n')...
2084c952d0d49d0893145449726f88c71a77ec1c
fafa05debeeff697821f1e6fe72727c14b0959dc
/bs4_script.py
f350fd4a3f6b6fa27e1a1041831c34862b55bb37
[]
no_license
jonfleet/Amazon-Price-Checker
5903ac1e0fceaf6ae6dd21765c076598f3e091d1
79938055884566c8d26f955b4a7e0aa386fd1fa8
refs/heads/master
2023-02-15T13:13:51.294565
2021-01-08T03:54:14
2021-01-08T03:54:14
327,793,649
0
0
null
null
null
null
UTF-8
Python
false
false
2,385
py
bs4_script.py
import requests from bs4 import BeautifulSoup import ssl # path_URL = 'https://www.amazon.com/Shun-DM0706-Classic-8-Inch-Chefs/dp/B0000Y7KNQ/ref=pd_ybh_a_4?_encoding=UTF8&psc=1&refRID=5EW727VD61WHGMCX5V9G' path_URL = 'https://www.amazon.com/SHINCO-Dehumidifier-Basement-Bathroom-Effectively/dp/B07WHXH1DC/ref=sr_1_11?dc...
338e685d4d4c2511cd47aac1f41ad9f11430093b
ed1f6990fb099bc4e905a8b6d51dbd6103444473
/dontneedit.py
ad9131f1aa127b520fbcc7425013382c8f4f8edb
[ "MIT" ]
permissive
JWalnut/cs3240-labdemo
a45ce5ae6682cea9a2bf91252a2fc941ab1224de
c08ea8ac66b43b178232fa7e2b56a7609643a7ac
refs/heads/master
2020-05-29T12:13:39.298661
2017-02-20T19:33:43
2017-02-20T19:33:43
82,588,077
0
0
null
null
null
null
UTF-8
Python
false
false
52
py
dontneedit.py
print("Don't know why you say goodbye i say hello")
7aa8f65f7bd337dca9c9bbd6cadbd37a2dba3cd5
ff9dcc6a63480378f43a5ce2121865373bc88f23
/2017/Comptes-Rendus/TP4/Kouadri_Ye/TP4/prime.py
9c145f43e8ea518e9b79bfb48b8f8162ebbc6537
[]
no_license
jpcp13/L2
d1cd5bb6cc5679f4971ca51ef3e8df797aa4ca1a
e5b2aaac3b4772222a1f3fd5c01582d4079ec6cc
refs/heads/master
2018-12-08T01:18:31.656209
2018-10-25T05:01:26
2018-10-25T05:01:26
105,018,512
0
1
null
null
null
null
UTF-8
Python
false
false
2,646
py
prime.py
import numpy as np import matplotlib.pyplot as plt import matplotlib.lines as mlines import random def is_prime(n): if n == 1 or n == 0: return False if n == 2: return True for i in range(2, int(np.sqrt(n))+2): if n%i==0: ...
d10f5bf7beaa158504edaaff68d1a257f1228329
8455b7f1e43c3646237461d04d55365773118ea2
/chess_ai/translation/model_output_to_chess_move.py
9f43dea05c3cfe58300816616a7acad7d07d48f8
[]
no_license
chanind/chess-ai
c6c2e2445e350d9cd3973470c42339969b257184
1c16cecb75f7f273886f18ab2f0d4e0cf70f77d4
refs/heads/main
2023-08-14T09:34:24.377486
2021-08-25T14:27:38
2021-08-25T14:27:38
393,482,481
0
0
null
2021-08-25T14:27:39
2021-08-06T19:31:36
Python
UTF-8
Python
false
false
600
py
model_output_to_chess_move.py
import chess import numpy as np import torch from .Action import Action def model_output_to_chess_move( board: chess.Board, action_probabilities: torch.Tensor ) -> chess.Move: """ Translate model output probabilities to a playable chess move """ best_move = None best_move_score = -np.Inf ...