blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e6b8fde538cec96db8cef72026689d663d32259e | efeccd1f4452edbd8251fb3c111a696a9d8515c3 | /helloWorld.py | 0281b6ea4f5feb30a48f53d4f5f69b5debcb9d45 | [] | no_license | Harnet69/HomeWork1 | d50e2dc773bf6a8c33fcabfd9727fc425dbfc4ae | 8278e85d4889a7dd9f118a8a85160359578d2870 | refs/heads/master | 2020-07-25T11:02:23.366491 | 2019-09-17T09:02:53 | 2019-09-17T09:02:53 | 208,267,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import sys
def main():
# print a welcomming message in a terminal, according to existance argument
if len(sys.argv) == 1:
print("Hello World!")
elif len(sys.argv) == 2:
print(f"Hello, dear {sys.argv[1]}!")
else:
print("Given too many arguments!")
if __name__ == "__main__":
... | [
"harnet69@gmail.com"
] | harnet69@gmail.com |
f599258999eedcc69f5f15a4b3405581416ae76a | 21b19597dfab7ab31cb1f7ddc4d7fbe732a8fc68 | /behavior_test/src/core/__init__.py | 215284ab157e558fb12ae5690f1dda32df846e1f | [] | no_license | Gao-guang/behavier | 58bd0a1f695cfffcc0b48f2cb15c04896e67025b | b27465c3afb76be38a794572123ab6264f75aced | refs/heads/master | 2023-01-23T01:26:30.294935 | 2020-11-28T15:01:56 | 2020-11-28T15:01:56 | 314,163,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from core.dblackboard import DBlackboard
from core.skill import Skill, Do, Complain
from core.role import Role
__all__ = (
Skill, Do, Complain,
DBlackboard,
Role,
)
| [
"gaoguang@zhejianglab.com"
] | gaoguang@zhejianglab.com |
50ed1f8d179e861be01c2f0586c2702d027fd1a3 | d641d02330e8e4f3f73d86da36016a9325d2d41b | /src/read_csv.py | 518e1f24fe6886018fc13807fb59dd8ee9dec97b | [] | no_license | Lemonchasers/msds510 | 5d11e7239b8cdabbe841f89b9aacd4fc9797ecb9 | 0fcdd2adb88ef31ff9647dbd022602d14b0011ec | refs/heads/style-and-documentation | 2020-03-23T06:44:27.110096 | 2018-07-22T22:51:29 | 2018-07-22T22:51:29 | 141,053,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import sys
input1 = sys.argv[1]
def main(input1):
with open(input1, 'r') as c:
rows = c.readlines()
print(rows[161])
if __name__ == '__main__':
main(sys.argv[1])
| [
"clemons_12@hotmail.com"
] | clemons_12@hotmail.com |
ffbbd117f421b8881da5003cf12d16b21e707021 | 30177e1ac1fb6533ca61a5ba190b02236d59a6a0 | /Code/Methods/EliteSelection.py | ac900be44e94fb57ce1eea962ba9a866c54694cc | [] | no_license | PiotrKaszuba/AEM | 8541fbef2e29b23daa16365846fe5b175c26b587 | 2959e973870a2bfc1ce5672729b8cd2d843e486f | refs/heads/master | 2020-04-25T06:51:40.724405 | 2019-06-07T19:53:31 | 2019-06-07T19:53:31 | 172,594,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | import time
import numpy as np
from operator import attrgetter
class Elite:
def __init__(self,start_population,population_size):
self.population_size = population_size
self.population = self.get_pure_population(start_population)
def get_pure_population(self,population):
elite_pop = so... | [
"sebastianniespodziany@gmail.com"
] | sebastianniespodziany@gmail.com |
98b39e3ef7ac3b4c4feba75480f8ad386b37f1ab | e9214d299f2d306ffeed378824b1326801707cfb | /venv/Scripts/pip-script.py | e44d325c57c7011d6cb733850d621ca1cb2071fd | [] | no_license | DiliSimon/RideRateRecorder | 35df8bdf91ca163d14966b62bf036a799bdd8ea7 | f50d874df3445a988c1a8a5333d70270b06f1b71 | refs/heads/master | 2020-05-27T12:22:47.002497 | 2019-05-27T01:50:17 | 2019-05-27T01:50:17 | 188,615,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | #!D:\RatesRecorder\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"Gtingwen@outlook.com"
] | Gtingwen@outlook.com |
020cc492835e3f6213e03d6a0067ede9641141eb | 9c73dd3043f7db7c9ec76d560484e99ad134fdb6 | /students/douglas_klos/lesson05/activity/code/rdbms_api.py | 1d84511af15a33b1c59531bb3f00eef544715492 | [] | no_license | UWPCE-PythonCert-ClassRepos/py220-online-201904-V2 | 546b316025b680ca28d24b523663095398616b13 | ac12beeae8aa57135bbcd03ac7a4f977fa3bdb56 | refs/heads/master | 2022-12-10T03:14:25.514630 | 2019-06-11T02:14:17 | 2019-06-11T02:14:17 | 179,139,181 | 1 | 19 | null | 2022-12-08T01:43:38 | 2019-04-02T18:49:10 | Python | UTF-8 | Python | false | false | 985 | py | class BaseModel(Model):
class Meta:
database = database
class Person(BaseModel):
"""
This class defines Person, which maintains details of someone
for whom we want to research career to date.
"""
person_name = CharField(primary_key=True, max_length=30)
lives_in_town = CharField(m... | [
"dougklos@gmail.com"
] | dougklos@gmail.com |
2593204861d0c06350f0a813e14f83118c9aec92 | f3928b60d809643b40d683af38ba3b692527b2f8 | /python/383.py | 8931c8032aeb6aa406a07b2ce4d21105eede6a43 | [
"MIT"
] | permissive | SeisSparrow/Leetcode | 8bd2ae697dbdcf1e9e2ef9833e07fadf79edf817 | 10535ca41e51c0d2d4015e53da7efdca43000c4c | refs/heads/master | 2021-01-20T09:07:45.476058 | 2018-06-17T00:19:40 | 2018-06-17T00:19:40 | 90,226,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | class Solution(object):
def canConstruct(self, ransomNote, magazine):
"""
:type ransomNote: str
:type magazine: str
:rtype: bool
"""
N1 = len(ransomNote)
N2 = len(magazine)
ran_up = sorted(ransomNote)
mag_up = sorted(magazine)
output = True
flag = 0
if N1 > ... | [
"noreply@github.com"
] | noreply@github.com |
34c8f2b1fad1c29421bec555fae6b807a7102a8e | 599709e7687a78f92b268315590d6ad750ce97d6 | /calc/opt_h_pi/1skp_l/gto_part_shift/w1_dense/search/calc.py | 2e3b85307b244e4655cabc6fd13518b2f7d18fa3 | [] | no_license | ReiMatsuzaki/cbasis2 | b99d096150d87f9301ed0e34f7be5f0203e4a81e | 86f21146fab6fc6f750d02fb2200ea94616ca896 | refs/heads/master | 2021-01-19T23:15:32.864686 | 2017-04-27T07:29:26 | 2017-04-27T07:29:26 | 88,953,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | import sys
import numpy as np
import pandas as pd
from itertools import product, combinations
import subprocess
sys.path.append("../../../../../../src_py/nnewton")
sys.path.append("../../../../../../r1basis")
from r1basis import *
from opt_green import *
## one GTO optimization value is 0.0105604,-0.0548991
with open... | [
"matsuzaki.rei@sepia.chem.keio.ac.jp"
] | matsuzaki.rei@sepia.chem.keio.ac.jp |
b3254b2c8833794d441184da5193c9576d7167d5 | 345c2939e0fad1ad046e90d828135c690e8e5c73 | /env2/bin/wheel | be1597a96de07bb9f1be41d758b4f17cf0d17b4d | [] | no_license | suminkimm/Blog | 33bef2ca9468e5ed90352966c8528ef2968e7843 | 3e572543985de1a57ba49b1c1bb373c1564048f0 | refs/heads/master | 2020-04-26T22:51:03.434340 | 2019-03-05T06:16:24 | 2019-03-05T06:16:24 | 173,885,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/SuminKim/Documents/College/RUMAD/AccelProject2/env2/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"SuminKim@nbp-80-120.nbp.ruw.rutgers.edu"
] | SuminKim@nbp-80-120.nbp.ruw.rutgers.edu | |
9caa7e62a296cb9d70826a994820fc938477ba8b | eeb5cc492fa7e217fd865c94b1263eeda8d162b3 | /Projectile.py | 7884aa7c9b4bc3440ffe196c4cf603b9b04c6dd9 | [] | no_license | anubhavsengupta/collosaladv | e4fc0c1d5717b08676fe80af36b596b331109e68 | bf870e114705dd6741b75b6abb271ca1cebbc195 | refs/heads/main | 2023-03-06T23:23:53.636997 | 2021-02-19T17:29:02 | 2021-02-19T17:29:02 | 338,611,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | import pygame
class Projectile(object):
def __init__(self, x, y, vel, radius, facing):
self.x = x
self.y = y
self.vel = vel
self.radius = radius
self.facing = facing
def draw(self, win):
pygame.draw.circle(win, (0, 0, 0), (self.x, self.y), self.radi... | [
"noreply@github.com"
] | noreply@github.com |
f01c7a44eccbf92d7cc1e3ecbafa94dc41b95918 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/easy/8_15.py | 86dea0108cdf7dbb420de013fbc38390cad29623 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,388 | py | Python – Reading last N lines of a file
**Prerequisite:** Read a file line-by-line in Python
Given a text file _fname_ , a number _N_ , the task is to read the last N
lines of the file.
As we know, Python provides multiple in-built features and modules for
handling files. Let’s discuss different ways to... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
402200e5c6c3d708a3beb5e97137c59c1ddd8bd8 | cf5f24e5a32f8cafe90d4253d727b1c0457da6a4 | /algorithm/boj_21317.py | 55af763cbe118028143f347a61cddc9f96f9e1d5 | [] | no_license | seoljeongwoo/learn | 537659ca942875f6846646c2e21e1e9f2e5b811e | 5b423e475c8f2bc47cb6dee09b8961d83ab08568 | refs/heads/main | 2023-05-04T18:07:27.592058 | 2021-05-05T17:32:50 | 2021-05-05T17:32:50 | 324,725,000 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | import sys
input = sys.stdin.readline
def solve(curr, ok):
if curr > n : return inf
if curr == n: return 0
if dp[curr][ok] != inf: return dp[curr][ok]
dp[curr][ok] = solve(curr+1,ok) + jump[curr][0]
dp[curr][ok] = min(dp[curr][ok] , solve(curr+2,ok) + jump[curr][1])
if ok: dp[curr][ok] = min(dp[... | [
"noreply@github.com"
] | noreply@github.com |
b509f60a2e791fe632fece0b20093daef6fd98f3 | ee7319fb858da518f7c572b524e9445bf092b384 | /wsgi/static/wsgi/static/profiles/urls.py | 1878f80637f57f734627460022b52948cd8f6094 | [
"Apache-2.0"
] | permissive | telbohtimy/Vygit | fa1653b6b3454e465e10f08e7e4d7bb4fdf6c9d8 | 2858a71a658368e86ef789114144ce68c06dd4c5 | refs/heads/master | 2021-01-10T02:58:44.461300 | 2018-10-17T21:18:09 | 2018-10-17T21:18:09 | 51,856,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from django.urls import include, path
from . import views
urlpatterns = [
path('login', views.loginUser, name="login"),
path('register', views.register, name='register'),
path('logout', views.logoutUser, name='logout'),
path('<int:id>/', views.authorPage, name='authorPage'),#broken
path('editProfile/<int:id>/'... | [
"elbohtim@ualberta.ca"
] | elbohtim@ualberta.ca |
d0a8ac9b4c6333860be9b8bae7bd5aa8b69e8c72 | bc847cdbb54179eae1b7bfb7a376ada4b9f5ad7e | /src/OLD_split_dataset.py | 308f338381286d1e56ef2c2691d9c1d6db5febfd | [] | no_license | peternara/FashionVisualExpl-recommend | 7df351e9ddd0deccd8b0eb0d780649fa8f88a648 | a7ca07f2e43fd44dbc8b50bcccdb24326a66aed6 | refs/heads/master | 2023-04-09T21:02:43.073339 | 2021-04-10T14:52:27 | 2021-04-10T14:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | from config.configs import *
import pandas as pd
import argparse
import random
random.seed(1234)
parser = argparse.ArgumentParser(description="Run dataset splitting.")
parser.add_argument('--dataset', nargs='?', default='tradesy', help='dataset name')
parser.add_argument('--validation', type=bool, default=False, help... | [
"d.malitesta@gmail.com"
] | d.malitesta@gmail.com |
7885a77c550774f08a3cff1f19f60dcc326bf6ef | f780b05549bea9ecb0b80e4e9ea63376aa59f962 | /iplauction/migrations/0004_auto_20160305_1217.py | 8a77f654b1476c81a8fd5872f2939d3becf242b4 | [] | no_license | PunitGr/django-kickstart | ebff3e7e60a27091468f45a35e3b562954609168 | 5e8a21b0408ade1be4860deb3bc2cb80f033b159 | refs/heads/master | 2021-01-24T20:26:06.970847 | 2016-03-07T14:33:17 | 2016-03-07T14:33:17 | 52,964,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-03-05 12:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('iplauction', '0003_auto_20160305_1102'),
]
operations = [
migrations.AddFiel... | [
"groove679@gmail.com"
] | groove679@gmail.com |
436f30a2498d842a3d072fce670e18d2b9ddc915 | 879b8172ac2714b0178918558185a27f3a4c0a24 | /monomial.py | 108e21d2f0ce968a8d7691376b4fb2d994be54df | [] | no_license | SvetlanaNesterova/Polynomials | b2dc23167c90cda21a16837e5ccda51c65b29dc4 | 51c2db3138ebee138bdf314cad9943fc3b3eb8ea | refs/heads/master | 2021-08-30T12:12:29.994821 | 2017-12-17T22:14:50 | 2017-12-17T22:14:50 | 109,090,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,784 | py | EPS = 1e-10
def try_as_a_number(value):
"""
If value is int/flout or string representation of int/float number,
returns this int/float number, else returns None
"""
if isinstance(value, (int, float)):
return value
elif not isinstance(value, str):
return None
try:
re... | [
"nesterova.svetlanka@yandex.ru"
] | nesterova.svetlanka@yandex.ru |
acfa9a779a3742ab9dd0a91275fe85db4de5017d | b4c95c1ef240faa56954a1027e6f2590cff6f8ad | /exercises/django_rest/rest_enviro/lib/python3.7/functools.py | 7d3af7b955baea8ada4b5f6191321b48117321fc | [] | no_license | jcarter0149/python | e0243d964b0d8269d772f0dd349306340debda45 | 611f91b7dc8d4449a64c7553a4c9f3c67d006713 | refs/heads/master | 2020-03-22T11:47:08.601622 | 2018-07-20T16:15:27 | 2018-07-20T16:15:27 | 139,995,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | /Users/jake/.pyenv/versions/3.7.0/lib/python3.7/functools.py | [
"jacobraycarter@gmail.com"
] | jacobraycarter@gmail.com |
c510c84e3d299fcf9a1f405cea1f88a73a0aef5d | f459920d50938d166a33d1052061c35f96fe3c8f | /backend.py | b03db87c1eb2fead3833060fcb36a887ec124983 | [] | no_license | lgvelasco/MovieDataBase | 9d80d13d275d63826ad5d34f0b5a5286fb0676f5 | 4acbedc232554e2d7a2de4a4f3d05d54061ad01d | refs/heads/master | 2020-04-06T20:28:14.108816 | 2018-11-15T21:11:55 | 2018-11-15T21:11:55 | 157,773,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | import sqlite3
class Backend(object):
def __init__(self):
db = sqlite3.connect("movies.db")
cur = db.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS movie (id INTEGER PRIMARY KEY, title TEXT, director TEXT, year INTEGER, lead TEXT)")
db.commit()
db.close()
def add(sel... | [
"guillermo.velasco98@gmail.com"
] | guillermo.velasco98@gmail.com |
0ca1c1b2b6d4a5a92a1cf44d6e0600fa459c73fa | 78f43f8bd07ae0fc91738a63cd7bbca08ae26066 | /leetcode/interval/merge_interval.py | 9f4a681237c817d9390d7cf79195feeb3effddb0 | [] | no_license | hanrick2000/LeetcodePy | 2f3a841f696005e8f0bf4cd33fe586f97173731f | b24fb0e7403606127d26f91ff86ddf8d2b071318 | refs/heads/master | 2022-04-14T01:34:05.044542 | 2020-04-12T06:11:29 | 2020-04-12T06:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | from leetcode.interval.interval import Interval
class Solution(object):
def merge(self, intervals):
"""
:type intervals: List[Interval]
:rtype: List[Interval]
"""
if len(intervals) <= 1:
return intervals
def overlap(l1, l2):
"""
... | [
"dofu@ebay.com"
] | dofu@ebay.com |
9f0bfb7dfd472ab752aaa8f9d61911ecfdfab4ff | 46a0effe096bf6f8fece98a352318c63ef5556d9 | /mahjong/consumers.py | 6f67489c805a87052a23662558b3f224b98632b7 | [] | no_license | lzy0411/trymahjong | 062328d28da893bcb844040d564f968c18d82ed7 | 3e4b521a479b9cdb4e157964d5ffeb0aa1168816 | refs/heads/main | 2023-01-23T03:45:01.846396 | 2020-12-06T00:29:00 | 2020-12-06T00:29:00 | 318,862,638 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,613 | py | # chat/consumers.py
import json
from channels.generic.websocket import AsyncWebsocketConsumer
class ChatConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_name = self.scope['url_route']['kwargs']['room_name']
self.room_group_name = 'chat_%s' % self.room_name
# Join room g... | [
"zeyuanli@andrew.cmu.edu"
] | zeyuanli@andrew.cmu.edu |
74b88d61b79bd5ebc7c8ea4b42c60bfc7ba59bc5 | 130a98632d2ab4c171503b79e455b7aa27a1dda4 | /models/official/utils/flags/_conventions.py | b6f248b443a689f82770c2a725791ec76dc46591 | [
"Apache-2.0",
"MIT"
] | permissive | aboerzel/German_License_Plate_Recognition | d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787 | 6fc53292b1d3ce3c0340ce724c2c11c77e663d27 | refs/heads/master | 2023-01-30T18:08:37.339542 | 2023-01-07T07:41:36 | 2023-01-07T07:41:36 | 245,586,430 | 34 | 12 | MIT | 2023-01-07T07:41:37 | 2020-03-07T07:16:51 | Python | UTF-8 | Python | false | false | 1,808 | py | # Copyright 2018 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... | [
"andreas.boerzel@gmx.de"
] | andreas.boerzel@gmx.de |
0cf29b631841299753c6e7ed112b5e5a33914a43 | d4c892d340ebb2e92843f2f941fe804f80556b7e | /PythonSE/PythonDay09-1.py | d2a0cbff47e9ecf1dd32435b490e19d943b2bdb9 | [] | no_license | Bestlm/PythonTest | 4bcc6fc2c9c7cf76dd0875a4fc91aeeb7626d645 | b25c7fe18163e2a51d259fba18a2f9059f030713 | refs/heads/master | 2023-06-13T23:27:45.708297 | 2021-07-12T09:31:06 | 2021-07-12T09:31:06 | 375,107,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | """
大小写切换
capitalize首字母大写
title 单词首字母大写
upper 全部大写
lower 全部小写
"""
s1 = 'hello,world'
# 首字母大写
print(s1.capitalize())
# 单词首字母大写
print(s1.title())
# 全部大写
print(s1.upper())
# 全部小写
print(s1.lower())
"""
查找字符串
find index
"""
s2 = 'hello,world'
# find方法从字符串中查找另一个字符串所在的位置
# 找到了返回字符串汇总另一个字符串首字符的索引
print(s2.find('or'))
print(s... | [
"bestlm3034@gmail.com"
] | bestlm3034@gmail.com |
cc925d4a740a8e784da078d307a4fe879207f224 | 663ba13645919e36af1111bf4c843ec4fef1462a | /pythonProject/venv/greedy01.py | e26e39d2bbf4e224483da525a1eb98043cc8f512 | [] | no_license | Iamthankyou/buff | abc4f4a763eeeb5b5dfcdfe6ce7f1ce4e1b4a19a | 405a0a17569d6a91620d63a0c95b3c1fe1dce537 | refs/heads/master | 2023-02-04T06:06:03.585988 | 2020-12-27T22:59:45 | 2020-12-27T22:59:45 | 289,721,108 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | class event:
def __init__(self,u=0,v=0):
self.start,self.finish=u,v
if __name__ == '__main__':
n=int(input())
E=[]
for _ in range(n):
u,v=map(int,input().split())
E.append(event(u,v))
E.sort(key= lambda x:x.finish)
dem=0
time = E[0].start=1
counter = 0
fo... | [
"quangduynb00@gmail.com"
] | quangduynb00@gmail.com |
041645ad029ae1da78cd282c6980c9e489f5b47e | 59cdb8b3995ee5938dc4710e32f29ac273410265 | /_archive/nosepoke_code/_old/cuedtaste_abu3.py | ca2954d2612ada74593f061d92279ad1919ac11a | [] | no_license | abuzarmahmood/firing_space_plot | 15ff667fada8f4e985a6a6c6f31261b72b0f4b60 | 9fe925d9b443fda96d8e23d6d2d2d2aa60b08f15 | refs/heads/master | 2023-07-25T01:39:31.942434 | 2023-07-15T14:24:38 | 2023-07-15T14:24:38 | 139,602,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | """
Code to ONLY CONTROL cue and RESPOND to nosepoke
No recording --> Leave that to Intan Board
"""
from threading import Thread, Lock
import time
import RPi.GPIO as GPIO
import datetime
import numpy as np
class nosepoke_task:
"""
- Class to run nosepoke task
- Stores main variables and performs appropri... | [
"abuzarmahmood@gmail.com"
] | abuzarmahmood@gmail.com |
a08261dfb20e2f5f2b1ccac1c04c7469f46f54e4 | 25ebec4dd05334b63d62e238ccaa1700fdb7dcc4 | /Arase/PWE/DeleteDate.py | 54b02b15eff997334804e5fcbe1ec03e7b387862 | [
"MIT"
] | permissive | mattkjames7/Arase | 2513416f0211f82a75d6b963fc8d6ea081dbc4f0 | 996167be35a13bbb1fdddfbe75e3a06d124b1d25 | refs/heads/master | 2023-04-07T03:54:59.407811 | 2021-05-20T12:03:50 | 2021-05-20T12:03:50 | 187,637,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | import numpy as np
from ..Tools.Downloading._DeleteDate import _DeleteDate
from .. import Globals
def DeleteDate(Date,subcomp,L,prod,Confirm=True):
'''
delete all of the files from a given date
'''
if subcomp == 'hfa' and L == 3:
idxfname = Globals.DataPath + 'PWE/Index-L{:01d}-{:s}.dat'.format(L,subcomp)
da... | [
"mattkjames7@gmail.com"
] | mattkjames7@gmail.com |
40930966a5c734365861cae377dd68f45b0e6228 | 063624e5447f1094ec8ad822f28ab1449eff1164 | /hello_world1.py | 7ebabdee709fcf18498e33cf39311f508bf5321d | [] | no_license | binnyjoseph/hello_world1 | 05d528295fca33acab71bf741a03ba9a716bc421 | c3d659b41e3c15a5504764a957c7a1f2ef884ec7 | refs/heads/master | 2021-01-19T04:34:15.099842 | 2017-03-09T11:48:05 | 2017-03-09T11:48:05 | 84,435,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | ''' Program to display hello world '''
print("hello world")
| [
"noreply@github.com"
] | noreply@github.com |
1d4c3398dbe8500a5f40bba7900cef9ef5474a8b | 13224c0b8f8f441dc335254ca32d1093984af18c | /snake_classless.py | 946f0d3a4218ed1215f861152987be4f32043f5a | [] | no_license | mrdavidoneill/snake | 204bdf137b3e293d353baa6a0aea459b9a23bd7e | a8ae92ca63961dd68bd1ff85ad6e8b5fe060332a | refs/heads/master | 2020-06-25T09:48:33.839565 | 2019-08-22T08:39:30 | 2019-08-22T08:39:30 | 199,276,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,710 | py | # A version of snake coded without classes #
import pygame, sys, random # sys for closing programm. random for Apple position
from pygame.locals import * # for using pygame keywords like QUIT or KEYDOWN
# =========== User changeable data =========== #
GRID_SIZE = 10 ... | [
"mrdavidoneillll@gmail.com"
] | mrdavidoneillll@gmail.com |
d1165753cc97997fada28074b3e3231c3cbb3a47 | a16d3c43e455298c371ff853e14acd8eea1db8fd | /test/test_orf.py | 076e7f901505901fbbf9ffffac9035415f7ede1c | [] | no_license | TyloRoberts/fosvis | a17eebe9dc29a589ac38c902bf1b06841b0a9e53 | 992535b2799dc04334b7be97f81b64e986dcd0cf | refs/heads/master | 2023-02-19T00:38:36.931003 | 2021-01-21T22:19:05 | 2021-01-21T22:19:05 | 316,780,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | from fosvis import orf
import unittest
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
import filecmp
import os
import pandas as pd
from pandas.testing import assert_frame_equal
import difflib
# Done
class test_run_prodigal(unittest.TestCase):
"""
Checks that prodigal creates both output files
... | [
"troberts@shamwow.microbiology.ubc.ca"
] | troberts@shamwow.microbiology.ubc.ca |
253c252323546c2c2ba8c96b8da35b95ab07cd45 | 028b9dd96124abe8e61a52d68ea23b7bdbc46c1a | /test_poly.py | 91e7056214ae792dfe3c309e350beadb63eed124 | [] | no_license | dooglius/CSC253-shouldworkthistime | 37951ae4465095783ae71bd2c0e99d35fda884d0 | 9e329c555e2f05514cc565abe3101b6670e2c0be | refs/heads/master | 2020-05-12T15:12:31.288842 | 2014-12-13T04:34:08 | 2014-12-13T04:34:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import generic
import time
import numpy
def func(x):
return 10*x*x*x*x*x+4*x*x*x*x+x*x*x-20*x*x+3;
def manual(list):
for i in xrange(len(list)):
list[i] = func(list[i])
num = 1000000
arr = [0.0+x for x in range(0,num)]
n1 = numpy.array(arr,numpy.double);
n2 = numpy.array(arr,numpy.double);
n3 = numpy.array(arr,... | [
"dooglius@localhost.localdomain"
] | dooglius@localhost.localdomain |
929c50e581ba266a4e5e97563ad0a5e617df9c5d | c7f1e28d23032ef0aeaeb12a8c295e31fbae9577 | /Cap3_ListsAndFunctions/SearchList.py | 90a4a1da876f3d2d991cc467a59ff2713f1e9228 | [] | no_license | fabiomeendes/nanocourses-python | cd9358dc970fe1b8cbeb40f7610908bd094b9571 | b4c237cc04e5531dbc52338f8045b7039c5a1983 | refs/heads/master | 2020-08-06T10:16:43.308402 | 2019-10-06T21:59:05 | 2019-10-06T21:59:05 | 212,940,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | boyfriends = []
girlfriends = []
answer = "S"
while answer == "S":
boyfriends.append(input("Boyfriend: "))
girlfriends.append(input("Girlfriend: "))
answer = input("Type \"S\" to continue: ").upper()
search = input("\nType the person name to search: ")
for i in range(0, len(boyfriends)):
if search ==... | [
"fabio.camillo@3xsolutions.com.br"
] | fabio.camillo@3xsolutions.com.br |
8ebe1144e95ccdfe54a4fbadf30f57bdde4f75e6 | a9dd6474a4c79e096a6b84697e7abc31095602c7 | /tests/tests.py | a1628c7e2bdccd88d0a35cfaf904e988f2aee4eb | [
"MIT"
] | permissive | canarduck/django-versatileimagefield | 037d3161f5566ccc3edd936b2c4ed83f6629346f | 3eefff9aceb35eb8c5971b8ec14644332159fa46 | refs/heads/master | 2021-01-21T07:44:57.179345 | 2016-03-04T13:43:11 | 2016-03-04T13:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,172 | py | from __future__ import division
from __future__ import unicode_literals
from functools import reduce
import math
import operator
import os
from shutil import rmtree
from django import VERSION as DJANGO_VERSION
from django.conf import settings
from django.contrib.auth.models import User
from django.core.cache import c... | [
"jonathan_ellenberger@wgbh.org"
] | jonathan_ellenberger@wgbh.org |
c798854445e4d463535272b78fde8fdc4951b180 | 3ef4c564b437e37d4139b2c64e46a6c223991dfe | /mchgenalg/__init__.py | 34cce566e2f810607f63d53e5c18d16bc5f07e3d | [
"MIT"
] | permissive | TshepoMK/python-genetic-algorithm | c981ba42b9f23c9d8702fcc26b80549daaab97fc | 3388fa8c09960ddcd4f79e0bd3c9cc355713c76a | refs/heads/master | 2020-05-15T07:40:58.391946 | 2017-01-11T14:29:11 | 2017-01-11T14:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from .genalg import GeneticAlgorithm
__all__ = ["GeneticAlgorithm"]
| [
"chovanecm@gmail.com"
] | chovanecm@gmail.com |
b459688eeae1fbbe8dd66b3c76bfa9b38f047c97 | 3e8b539cc1fb1c1b10cb703576447b6dc7c74f35 | /Aufgabe 1/News Agent/logic.py | a39d762921d906ce098f4f4e9cc7496f931cbc98 | [] | no_license | s3fagawaakaderkingvomhinterhof/Intelligente-Agenten | b363f16cd12339a1f7644fe5ac27746c4f29fefd | e9bba8a3c47f28de8fc86e1bec720b69d77a62fd | refs/heads/master | 2022-12-25T03:05:12.393254 | 2020-09-16T08:51:58 | 2020-09-16T08:51:58 | 293,719,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py |
# Newsagent
# functions for web-requests
from bs4 import BeautifulSoup
import requests
def get_departments():
url = 'https://www.sueddeutsche.de/'
response = requests.get(url)
text = response.text
soup = BeautifulSoup(text, features="html.parser")
departments = soup.find('ul', class_='department... | [
"falkogawantka@gmail.com"
] | falkogawantka@gmail.com |
3f2ab7df5f4f7fc432c79ef2ed7a0604e20a3ceb | e3afad642b98f0c6cdda91b550c080f7cd6fdf4c | /epi/10-binary-trees-15-bst/BinaryTreeNode.py | dcca3a3d0241a37beb165c28593cec5c1728f1ca | [] | no_license | danielcodes/practice-problems | 50e7ceb71305f69eafcd50c1507f9aa8829a8a2c | b06dfaed6b71e5a86dc43940fb15bc2e7f07903f | refs/heads/master | 2020-04-12T06:19:25.552398 | 2016-11-30T02:13:06 | 2016-11-30T02:13:06 | 65,409,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py |
# module for binary trees
class Node:
def __init__(self, value, left=None, right=None):
self.value = value
self.left = left
self.right = right
self.parent = None
def printInOrder(root):
nodes = []
printInOrderUtil(root, nodes)
return nodes
def printInOrderUtil(root... | [
"daniel_1118@hotmail.com"
] | daniel_1118@hotmail.com |
75a852c590cbe00aed287ba19facddf4787f8cde | 5e73b4cfe286b0e4227433cde20e59f99ad88fc1 | /service/views.py | a1a989343c4b7b549a578ea70fc997e282089343 | [] | no_license | CLUTCH-ANKIT/Saptshrungi | e3d836cbc882fe2addc2f770d42f02a89003fb3d | 90a04b9160beaa1b8042e46280ab983c85daadbe | refs/heads/master | 2020-12-05T21:13:50.886893 | 2019-12-10T07:08:35 | 2019-12-10T07:08:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | from django.shortcuts import render
from .models import Service
from .forms import AddServiceForm
from django.views import generic
from django.http import JsonResponse
from django.urls import reverse_lazy
from django.core import serializers
def addService(request):
if request.method=='POST':
form=AddServiceForm(req... | [
"rushichaudhari26@gmail.com"
] | rushichaudhari26@gmail.com |
173b57ad8c786518ac5f21dc5279642ca3cbd0c6 | d7526252d3264e33affc4622a5a244b3c8581b52 | /lib/geocode_to_small.py | 368de3c8460b2c98aafdffe57d2382841351f1b5 | [] | no_license | kogalex/tzeva_adom | d18256a69afcbb649ca5744dc8dfbc00f444030b | 3d1520223ed28915979cbedda97de4fb21478ab9 | refs/heads/master | 2020-04-17T07:53:13.740689 | 2014-07-21T20:10:10 | 2014-07-21T20:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # -*- coding: utf8 -*-
import json, requests, time
cities_json = open('city_geocode.json')
CITY_LIST = json.load(cities_json)
cities_to_geocode = {}
for k, v in CITY_LIST.items():
if v['status'] == 'OK':
try:
cities_to_geocode[k] = v['results'][0]['geometry']['location']
except Exce... | [
"kogalex@gmail.com"
] | kogalex@gmail.com |
7462ddc18040dea7befbfec456a283e9e675ed43 | dfb66cf39f46c46fbe3eeff1c00520a714c06015 | /Greatest common divisor.py | 270e6353f2386f1fbb97ac9e7ad5301ff18c4173 | [] | no_license | AianaG/Codewars | f507ed4174b59f753186f9d811874d6f0329ffec | 87e82a7d94bff7c094ea04b9aebb71a9268c5a9b | refs/heads/master | 2023-04-27T00:40:48.477876 | 2021-04-25T13:29:27 | 2021-04-25T13:29:27 | 356,896,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | def mygcd(x, y):
if x == 0:
return y
else:
return mygcd(y%x, x)
| [
"goyal.aiana@gmail.com"
] | goyal.aiana@gmail.com |
fc15793a804a48945b401bf8a2d206fbbc12f401 | 41fb7cef4470e387e05afd17e7890d12461f9f94 | /gensokyor_XiongFeng_18052229/2020/0319/devide_issues.py | 6641f3508582f318553d5b9d77f72eee1c69892f | [] | no_license | xiaocaiji233/cxsj2020shang | b4f16cb6506e7935e8f43cc7a4d2bf3e36447332 | 3b41075796f7b0f7b2f87a690bca2278babbbae7 | refs/heads/master | 2021-01-13T19:50:08.875049 | 2020-05-26T11:58:19 | 2020-05-26T11:58:19 | 242,474,858 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,116,995 | py | def match(issues, time):
# print("?")
matched = {}
time.sort()
for i in time:
in_time = []
for j in issues:
if i > j['created_at']:
in_time.append(j)
issues.pop(issues.index(j))
# pprint.pprint(i)
matched[i] = in_time
... | [
"386098423@outlook.com"
] | 386098423@outlook.com |
df73e373c3adc0dcd365dadb07488bcb0261b1f2 | 9c1f5d8c6c7ace605c79c92f3591685520227744 | /controller.py | 90bb4262ff0f03531390c46ad815276f5e062c96 | [
"MIT"
] | permissive | churnikov/ev3_thinkers | 91d14b2827401b80fba72e64afb26d95c9f7bc4e | 3ad322c198e8625df30b0870402486c2e6151d72 | refs/heads/master | 2021-10-28T20:07:00.586810 | 2019-04-24T22:04:13 | 2019-04-24T22:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from ev3dev import ev3
left_wheel = ev3.MediumMotor('outA')
right_wheel = ev3.MediumMotor('outB')
infra_sensor = ev3.InfraredSensor('in1')
touch_sensor = ev3.TouchSensor('in2')
def forward():
left_wheel.run_forever(speed_sp=500)
right_wheel.run_forever(speed_sp=500)
def turn():
left_wheel.run_forever(sp... | [
"nikita@chur.ru"
] | nikita@chur.ru |
0c2c84e403e9f20d2561782a26be0c73590ce960 | 179d9ba63d0a9b1e07cc342534eac061ff941d94 | /facial_recognition/src/facial_node.py | b284e860fadc913c69222fe6acf40957aa9f14cc | [] | no_license | asad9520/MTRX5700_Baxter | b08d00c09076bf36bc0fa530cea694147df1effc | a21150ce54b63bea0af6a3f00d54dfb24f881323 | refs/heads/main | 2023-05-16T17:06:47.020560 | 2021-06-13T07:38:07 | 2021-06-13T07:38:07 | 367,002,290 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | #!/usr/bin/env python
import sys
import rospy
import cv2
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
class image_converter:
def __init__(self):
self.bridge = CvBridge()
self.image_sub = rospy.Subscriber("/cameras/right_hand_camera/image",I... | [
"noreply@github.com"
] | noreply@github.com |
7b48d917637fb4d2a301c58da1464aef2f61fbe6 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/tmpconsolecmds.py | 0c0a4a16136a52bf97658edd60418a96123dc691 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,405 | py | # 2015.11.18 11:51:09 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/TmpConsoleCmds.py
import BigWorld
from debug_utils import *
class LanServers:
def search(self):
BigWorld.serverDiscovery.searching = 1
def stop(self):
BigWorld.serverDiscovery.searching = 0
def show(sel... | [
"info@webium.sk"
] | info@webium.sk |
eea4911c0b75ea46fa1b027b3f5c1b9a3e7ffc49 | e3839d29c7814c7938f58e30cecbe8fef36af90c | /Lamdas.py | f09d415f109907e101ab789a2368c4d64fcc7453 | [] | no_license | tec-csf/tc2017-pf-primavera-2020-equipo-3-1 | e17d7942e65030f6dda378e8c10d16614c4dbef7 | ee883beef57655db8217bd9bc3a6f4b2f0e0558f | refs/heads/master | 2022-09-14T19:32:23.495584 | 2020-06-02T16:01:51 | 2020-06-02T16:01:51 | 267,729,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | import numpy as np
g=open('Probabilidades.txt',"r")
lines=g.readlines()
g.close()
lista = [ ]
cont=0
contelem=0
contex=-1
lin0 = 1
for i in lines:
if contelem==0 and cont>lin0:
contex=contex+1
if cont==0:
lin0=float(i)
else:
w=float(i)
if contex==contelem and ... | [
"noreply@github.com"
] | noreply@github.com |
2fce1969b734f3e2b2136a553945aa976d01ea51 | 61fec9a443a5642e94acd80c5c87b88dd85736f2 | /flask_app.py | a0d69efd586d5cad85f41f487958d97805cd4003 | [
"MIT"
] | permissive | MarekCichy/pt-br-classifier | b09bf66b154d68449ee81ba8e25dd27a3e645ae4 | 03119cea5032876f146d1ae15edbc70a4d63e985 | refs/heads/master | 2023-01-05T19:51:57.754040 | 2022-12-22T12:10:14 | 2022-12-22T12:10:14 | 203,243,733 | 5 | 2 | null | 2019-08-19T20:32:49 | 2019-08-19T20:15:20 | null | UTF-8 | Python | false | false | 855 | py | from flask import Flask, jsonify,request
from flask_cors import CORS
from joblib import load
#specific path for PythonAnywhere
classifier = load('/home/Mariankowlak/mysite/ptclassifier.joblib')
app = Flask(__name__)
CORS(app, resources={r"/*": {"origins": "*"}})
@app.route('/')
def hello_world():
return 'Hello f... | [
"noreply@github.com"
] | noreply@github.com |
f219968595f1bddf561f797e9fca77bb9a5dd7bd | d9d4c42185d8520b56d3f6b146886e2db9756123 | /scripts/get_classical_swine_seqs.py | e732e1685e0bd6ab41ceb240e713b31e6f9990cf | [] | no_license | rasilab/machkovech_2018 | 5863be8431f066af4880546af1f9109e0407d505 | 4c8e76ba38c8020d90f53fbaa8964b3d48ccf6ad | refs/heads/master | 2021-08-07T21:46:44.576527 | 2020-03-30T15:30:52 | 2020-03-30T15:30:52 | 133,700,172 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,456 | py | """Parses classical swine H1N1 genes.
Gets the PB2, PA, NP, M1, M2, NS1, and NS2 coding
sequences descended of classical swine H1N1 virus.
These sequences are aligned to the 1918 virus, with
gaps relative to this strain stripped away.
Classical swine viruses are defined on the basis that they are
H1N1 viruses from ... | [
"hmachkov@fhcrc.org"
] | hmachkov@fhcrc.org |
8b40b20ddc25c39c872e71a072cf13fc2309c050 | afbc5d39cc189de52f5019a5ade8d27125d2bafa | /main.py | 3bd663acaa7116621218387a5c05f66b2c6486b2 | [] | no_license | Alphabetious/qrcode-maker | d950035ec1b034ff5c0b188d7a78f96b9c7342d4 | 5cd90816ca1e14ad9f126f50a8cb1172f983d72a | refs/heads/main | 2023-08-19T00:40:21.706897 | 2021-10-04T04:25:37 | 2021-10-04T04:25:37 | 413,272,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #You can add an additional package to this project named "pypng" if you want to save the qr code in a png format.....
#If you use a python IDE, it would be better
import pyqrcode
from pyqrcode import QRCode
s = "website link here"
url = pyqrcode.create(s)
url.svg("urpic.svg", scale = 8)
url.png('urpic.png... | [
"noreply@github.com"
] | noreply@github.com |
11fb9d36c40c720438b72a603de3e62ce81150f1 | 095de609dab3f2602848a5c4328402a8ad886f7d | /examples/external_satisfy/sigma.py | fa2f63d4782cb02dfaac570f18799b0350cf2160 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | maxtuno/PEQNP | 6147be6742ce8ea17e09532f9aa8db72cdbeb430 | 2b5732f9edb18d68ebb1efdba4962420bcca7501 | refs/heads/master | 2021-10-04T06:11:46.404468 | 2021-09-25T19:32:01 | 2021-09-25T19:32:01 | 230,134,649 | 15 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | import peqnp as pn
pn.engine(16)
x = pn.integer(key='x')
n = pn.integer(key='n')
pn.sigma(lambda k: k ** 2, 1, n) == x
while pn.external_satisfy(key='sigma', solver='java -jar -Xmx4g blue.jar'):
print(x, n, sum(k ** 2 for k in range(1, n.value + 1)))
| [
"oscar.riveros@peqnp.science"
] | oscar.riveros@peqnp.science |
24c00d0849b82f31a85ab6bb874148598107ac92 | afad4d43af53de357f16166f8502c204194222e3 | /Class Yapıları/deneme03.py | 1702cc4cf7188c36072feecff20175aae7640e17 | [] | no_license | erolkahraman/python | d1b1530172345a716eab8c6dae8aed89d788a8f6 | 09f797a38071db393ca8c796e4b03f7515ae8c8e | refs/heads/master | 2022-07-26T10:01:12.696273 | 2022-07-17T12:20:42 | 2022-07-17T12:20:42 | 162,548,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | class Basketci():
def __init__(self,ad,soyad,boy,basket_ortalamasi,maas):
self.ad = ad
self.soyad = soyad
self.boy = boy
self.basket_ortalamasi = basket_ortalamasi
self.maas = maas
def bilgileri_goster(self):
print("""
Basketçi Özellikleri
Ad \t\t\... | [
"erol.kahraman@gmail.com"
] | erol.kahraman@gmail.com |
5bd3e4e252e0b99cd0c55de795d0f9c35040dfb7 | ad2704933de4502ae9de91e6d915f9dbe010b446 | /Shi-ma/chapter07/knock63.py | c5110290b021e62eb7c1702fce7c0a42df7f114d | [] | no_license | tmu-nlp/100knock2017 | 266e68917d8d5a7f5d0c064f1bc2da5fa402a253 | 629bd1155d0fe78cd9302ae9a7cdf0922b778fe7 | refs/heads/master | 2021-01-19T17:36:53.328997 | 2017-07-24T07:09:54 | 2017-07-24T07:09:54 | 88,334,932 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | import json
import gzip
import plyvel
import pickle
def make_name_tags_DB(data_js_path):
with gzip.open(data_js_path, 'r') as data_js:
name_tags_db = plyvel.DB('result/knock63_result.ldb', create_if_missing=True)
for line in data_js:
data_dict = json.loads(line.decode('utf-8'))
... | [
"Shimanaka_Hiroki@shima-no-MacBook-Air.local"
] | Shimanaka_Hiroki@shima-no-MacBook-Air.local |
667dcfcdda94d91eb701455fb1c3d0c63ac7ca7e | fd09328dbd4cf8120b2af2908205c763ffb35941 | /20.py | b41e59f89dd2bfd2745cd410e7ff0bf34d9186af | [] | no_license | divyank0/euler_project | 7cc3d33f35b6fbaa585ae0ffb2e566321e42a733 | e87866471525f0e54bc69c4971115e2cef3bfc8d | refs/heads/master | 2021-01-01T03:55:13.660836 | 2016-05-03T08:32:13 | 2016-05-03T08:32:13 | 57,953,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | def d (n):
summ=0;
for i in range(1,n):
if n%i==0:
summ=summ+i;
return(summ)
murgi=0;
for j in range(2,10000):
dn=d(j);
if d(dn)==j and dn!=j:
murgi=murgi+j;
print(j);
print(murgi);
| [
"divyank.agarwal1993@gmail.com"
] | divyank.agarwal1993@gmail.com |
86a50ebbc2aa2bf4ea319da0ffd475469bbd1399 | 392f9194b7d85234e19c3dae21bed193e2713014 | /美团爬虫/main.py | c8f9cdda3fd17d94c3fb11e80377a57d6f53e1ed | [] | no_license | anjia0532/reptitlesDemo | 681d91e7e61f48b6036d16bca1d95c072cb324d3 | 709e8705f011b68659302761f4218b9c7e657c42 | refs/heads/master | 2023-01-10T03:40:28.585755 | 2020-11-14T11:29:24 | 2020-11-14T11:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,100 | py | # -*- coding: utf-8 -*-
import time
import random
import asyncio
from exe_js import *
from pyppeteer import launch
class MeiTuan_Spider():
def __init__(self):
pass
@classmethod
async def create_browser(cls):
self = MeiTuan_Spider()
self.browser = await launch({
... | [
"65542675@qq.com"
] | 65542675@qq.com |
5514351cc2be4c6c7ebba14ab3a196cc67fa6b0c | 11a71b12d2a2520935d50e0ad35e3dfc1eefbe39 | /stocks/migrations/0003_remove_stockitem_slug.py | ed9adec91255eec63259d0ca38e68ff83b61c622 | [] | no_license | absolutedevelop/stockmanagement | c6bd4bdae11f523b9d60a5597078366848d84bdb | d7c2dc834d625be6107b87c43b95988154899a1c | refs/heads/master | 2023-04-20T14:53:42.895472 | 2021-05-14T11:59:57 | 2021-05-14T11:59:57 | 364,081,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.2 on 2021-05-05 22:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('stocks', '0002_auto_20210505_2116'),
]
operations = [
migrations.RemoveField(
model_name='stockitem',
name='slug',
),
... | [
"mathalefortunate5@gmail.com"
] | mathalefortunate5@gmail.com |
fd2354fc5f8639df779bc4aed1d45cd7fb001518 | 45e68db43b2774efaf210c0de55e78a6edc9dbee | /test_system/apps/my_tests/migrations/0008_auto_20200630_1802.py | 3d3ffdf53a05ef52385f455b5109921b78969f67 | [] | no_license | AnonymCybercik/nazorat-ishi | 1d08f4abc98b71aacf2d7d3bb969028051ac40d6 | a8368e9e3a0b8b489d5027677544028d188e7c90 | refs/heads/master | 2023-02-27T12:34:33.806530 | 2021-02-05T12:19:49 | 2021-02-05T12:19:49 | 277,541,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # Generated by Django 3.0.7 on 2020-06-30 13:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('my_tests', '0007_auto_20200629_1257'),
]
operations = [
migrations.AddField(
model_name='student',
nam... | [
"noreply@github.com"
] | noreply@github.com |
0adfeb27a80172b94835a6caa48499f98a23fa10 | 653132f7cd602caa1a6035e31caec46b1e534120 | /not-comparison/metrics-token/tokens-single-file.py | af025bd5a24afd4f3db0756f2a5782fe34ada62b | [
"Apache-2.0"
] | permissive | deib-polimi/katena | ca4c5eb322f5e3685bd0d41a66e02ea07f4ae753 | 2afbb3fa83fda5082db2dd0ca545553dd53d2a42 | refs/heads/main | 2023-09-03T15:30:05.083094 | 2022-10-27T18:05:59 | 2022-10-27T18:05:59 | 472,717,537 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import argparse
import re
import sys
import glob
def tokens(code):
return re.findall(r'\w+', code)
def get_tokens_in_file(filename: str) -> int:
with open(filename) as f:
file = f.read().replace('\n', ' ')
return len(tokens(file))
def get_YAML_in_directory(dir_path: str) -> list:
return ... | [
"terraccianoluca@gmail.com"
] | terraccianoluca@gmail.com |
f0e71dab23c9d10b9ed81e223aeb65c5444569bd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02784/s847410997.py | fd50024c37c9f2ef3942f98bcea7d5ff189e9a6b | [] | 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 | 228 | py | import sys
from itertools import accumulate
H, N = map(int, next(sys.stdin.buffer).split())
A = map(int, next(sys.stdin.buffer).split())
ans = any(map(lambda v: v >= H, accumulate(A, initial=0)))
print('Yes' if ans else 'No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f7e85081c01c0d0ff1d7433a15547ad8c29ece32 | afbbd9f0f3647193779cca964a20891fca6afd89 | /postprocess.py | ca0f899afc465eea6073237a9e3480f265f37b67 | [
"MIT"
] | permissive | DFKI-NLP/lrv | b884a131445ee6d300c567f9900be01b3487c8d2 | e0dfd2f994257125fb359fe5cc165f1d671ba9e7 | refs/heads/master | 2021-06-17T14:47:34.419960 | 2019-09-25T10:41:39 | 2019-09-25T10:41:39 | 210,299,791 | 12 | 2 | MIT | 2021-06-02T00:26:59 | 2019-09-23T08:12:58 | Python | UTF-8 | Python | false | false | 10,793 | py | import copy
import os
import pickle
import ujson
from argparse import ArgumentParser
import matplotlib.pyplot as plt
from sklearn.metrics import f1_score
from tqdm import tqdm
from explain import normalize_explanations, relevance_matrix
from helpers.config import config
from helpers.log import log
from train import P... | [
"robert.schwarzenberg@dfki.de"
] | robert.schwarzenberg@dfki.de |
ef16a7892614d638cd0b989921e2c479a82bda61 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/requests/api.py | abada96d4627a52bf0f6040ee2e08b0eff32c77c | [
"MIT"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 6,253 | py | # -*- coding: utf-8 -*-
"""
requests.api
~~~~~~~~~~~~
This module implements the Requests API.
:copyright: (c) 2012 by Kenneth Reitz.
:license: Apache2, see LICENSE for more details.
"""
from . import sessions
def request(method, url, **kwargs):
"""Constructs and sends a :class:`Request <Request>`.
:para... | [
"354142480@qq.com"
] | 354142480@qq.com |
434e4fc8b768aec3a7aa946368fc48bff819ef15 | 2ee1d66a04cac94aeb5a69642ab317553efce6fd | /data/prep_review.py | 633d0e071777aedd0dc489bf1bee737651e73665 | [] | no_license | tysonmcleod/LDSA-Project | fd4eccfaf248eacb1bf6f0e01d502e0db25bf16a | 9fc96b98324b1e3bb1e63fbbf0594243e51306ba | refs/heads/master | 2020-05-24T15:42:25.802172 | 2019-06-02T14:48:53 | 2019-06-02T14:48:53 | 187,337,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | lines = []
count = 0
with open("./yelp_academic_dataset_review.json", "r", encoding="utf-8") as reader:
while count <= 1000000:
lines.append(reader.readline())
count += 1
with open("./yelp_academic_dataset_review.json", "r", encoding="utf-8") as reader:
for i, l in enumerate(reader):
... | [
"moritz.eck@gmail.com"
] | moritz.eck@gmail.com |
799e21a3097e1e3d725c443cdac5c82df799111d | 2faf4925329ff950fe4a898c83b4ec03f16beed2 | /Project_2/lunar_lander/environment.py | 8edc43d543f70142f16ca6d56c96c257c8a6663b | [] | no_license | rushidesai1/ReinforcementLearningProjects | 86a2893f460b11432ab494bbf86da3bda623d1ea | 006e6c45b1b99daf1028d596c5be19f67a103a1a | refs/heads/master | 2023-07-29T00:46:34.871917 | 2021-07-26T09:05:49 | 2021-07-26T09:05:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | class Environment:
def __init__(self, env):
"""
Setup for the environment called when the environment first starts
"""
super().__init__()
self.env = env
self.env.seed(0)
self.reward_state_is_done = (0.0, None, False)
def reset(self):
"""
T... | [
"rushidesai1@gmail.com"
] | rushidesai1@gmail.com |
311cc87a3b20d8b6748d58c460a77d6164fb510b | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.2/tests/regressiontests/test_client_regress/urls.py | ede4a3681af80b4442b4d39b9ee1f20d85f729a7 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/tests/regressiontests/test_client_regress/urls.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
725ae5cb559adac73aa5ac94b2f193dbed895a91 | a2b7fba22a16f379ccca2e38d9d6291b9562abc3 | /Graph Theory/Connectivity/Biconnected_Components.py | 4967813f98137ae85ef4c6f0d35ab613b52ff0ee | [] | no_license | neelamy/Algorithm | 565c1cea72715745653e90a3dabbba1e9e283fd8 | 7c9f53ff27bcb840b9dbc20d520f003f4d76fe17 | refs/heads/master | 2020-06-10T15:53:12.967832 | 2017-07-18T07:59:32 | 2017-07-18T07:59:32 | 75,953,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,445 | py | # Python program to find biconnected components in a given
# undirected graph
#Complexity : O(V+E)
from collections import defaultdict
#This class represents an directed graph using adjacency list representation
class Graph:
def __init__(self,vertices):
self.V= vertices #No. of vertices
self.graph = defaul... | [
"neelamyadav.jss@gmail.com"
] | neelamyadav.jss@gmail.com |
c273060f4e5c1d789d3172c4728a9d14e155ee66 | 9eea7714f7830dbf98e82836d614a8d625d10c6c | /calender/migrations/0001_initial.py | 0d762fa861e6f02267cfbb04208f1e24089ffd08 | [] | no_license | munyiv/DjangoSystem | 30cbf3f6036b4a3fa3791805dc2228f3822beca4 | 0a86b77225255d2f855a7b22a7c4c046df9b5579 | refs/heads/master | 2023-08-15T19:08:51.140434 | 2021-10-22T04:56:24 | 2021-10-22T04:56:24 | 388,866,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # Generated by Django 3.2.5 on 2021-08-15 07:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Calender',
fields=[
('id', models.BigAutoFi... | [
"audreymunyiva@gmail.com"
] | audreymunyiva@gmail.com |
951c2be72ed4095a14de2755f92fc75cc2bef855 | dc148a54f239a0818e6771d34f883d6b97232728 | /generate_tfrecord.py | c562508b4cb6fc2ef3da9bd3eaf178b5004af4d8 | [] | no_license | khoale95/SatImageParkingLotFinder | dfe32b8901a36a4d1ed8263745efe4ea9acdeeaf | 6b2fafcd1b5c5cb58aa681da59dd5cad158ab04f | refs/heads/master | 2021-05-03T12:01:13.250946 | 2018-05-03T03:29:49 | 2018-05-03T03:29:49 | 120,492,851 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,332 | py | """
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=test.record
"""
from __future__ import division
from __future__ im... | [
"twolfe99"
] | twolfe99 |
b523b9185d17a4f3efa4b361d2a69eff1f0dae5a | 83792f662d06bd940f3eb63bdd3107512c314d0a | /tests/ignite/contrib/handlers/test_mlflow_logger.py | cfc090538a5fda3d6eb1f25409851b5eb060643c | [
"BSD-3-Clause"
] | permissive | anmolsjoshi/ignite | 5c040af9969ed479ed4a7cc90af6a813c2099d7c | 1566604081c95905c9488a89a563b1998c6b3069 | refs/heads/master | 2022-06-22T10:27:56.765690 | 2022-06-15T13:15:14 | 2022-06-15T13:15:14 | 143,375,830 | 0 | 0 | null | 2018-08-03T04:02:32 | 2018-08-03T04:02:32 | null | UTF-8 | Python | false | false | 12,472 | py | import sys
from unittest.mock import call, MagicMock
import pytest
import torch
from ignite.contrib.handlers.mlflow_logger import (
global_step_from_engine,
MLflowLogger,
OptimizerParamsHandler,
OutputHandler,
)
from ignite.engine import Engine, Events, State
def test_output_handler_with_wrong_logge... | [
"noreply@github.com"
] | noreply@github.com |
46e2d193b97424d1a2d8772664b01e36c0c0284e | db37fa6d91f7d3584acb3dc9a49e037215e3db76 | /training_digit.py | f6c0cd65a792ee91fe028e32938741ec91553921 | [] | no_license | Dat0309/Handwritten-Digit-Recognition | 6a61e6203f4a9234ec1d03dcd58497d839b1fd3f | baaffb666db041c2ee349b9f4f47a73aace7d093 | refs/heads/main | 2023-06-07T21:33:06.578379 | 2021-06-28T12:53:59 | 2021-06-28T12:53:59 | 380,740,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py |
from tensorflow import keras
from tensorflow.keras.datasets import mnist
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Flatten
from tensorflow.keras.layers import Conv2D, MaxPooling2D
from tensorflow.keras import backend as K
from matplotlib import pyplot as plt
imp... | [
"71766267+Dat0309@users.noreply.github.com"
] | 71766267+Dat0309@users.noreply.github.com |
072f7e19cd98ce5065f789934b7814ea37d91782 | 2fdce8cd7ba299049b78f619fdf64cd65909328d | /mac/shop/admin.py | 7f7f79340971254d7532fe4657d7783907b96605 | [] | no_license | OneSakib/Ecommerce-Website-Demo-using-Djang-Framework | 7ae45822cf12f9336ff841c8723358e207534daa | cc19a54c1fd25d016dc0dceb98976a5e45651f0b | refs/heads/master | 2023-06-27T01:41:58.594218 | 2021-07-31T11:55:35 | 2021-07-31T11:55:35 | 389,879,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from django.contrib import admin
from .models import Product, Contact, Orders, OrderUpdate
# Register your models here.
admin.site.register(Product),
admin.site.register(Contact),
admin.site.register(Orders),
admin.site.register(OrderUpdate)
| [
"maliksakib347@gmail.com"
] | maliksakib347@gmail.com |
1452e939bb0b5275d0c58f559df9650d3c71a041 | 9dbf8de0e123849180ca945db653de42de417642 | /FGSM/model.py | b0bce995e749b86e32eaef4ef1f348fd965eccbd | [] | no_license | KevinHuang841006/AI_Security_training | 60c73ce8044ecda937ad89b922f19fd0f580c305 | 93ece6d3503d24494d9a5b2d3e1388fe710d8ded | refs/heads/master | 2020-03-22T13:09:12.850141 | 2018-09-27T08:20:31 | 2018-09-27T08:20:31 | 140,087,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | import keras
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers import Dense, Activation, Flatten
from keras.layers import Conv2D
def conv_2d(filters, kernel_shape, strides, padding, input_shape=None):
"""
Defines the right convolutional layer according to the
version... | [
"noreply@github.com"
] | noreply@github.com |
0675fa79cb50d6f70ae4d1f4b9bfa46070797d0a | 67b0379a12a60e9f26232b81047de3470c4a9ff9 | /slideshow/admin.py | 365cd2affc5bde2acbcc881b16c1a4523658de1c | [] | no_license | vintkor/whitemandarin | 8ea9022b889fac718e0858873a07c586cf8da729 | 5afcfc5eef1bb1cc2febf519b04a4819a7b9648f | refs/heads/master | 2021-05-06T03:35:09.367375 | 2017-12-20T15:43:08 | 2017-12-20T15:43:08 | 114,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from django.contrib import admin
from .models import *
from content.fields import AdminImageWidget
from django.db import models
class SlidAdmin(admin.ModelAdmin):
list_display = ('name', 'pic', 'published', 'ordering')
list_editable = ('published', 'ordering')
formfield_overrides = {
models.ImageF... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
2e424e970f298b6e3f96fe5aaf6fdb58c9648820 | ee4265c3c6c99f189e2202e7f0d2b5a78475376d | /code_forces/Accommodation.py | 58c0a2f2021e7ef312b1bdda00f5506ed981caeb | [] | no_license | akashgkrishnan/HackerRank_Solutions | 96f762848a77b731748d3331d17314f5e343abae | 75eeb5bd0f6e81c62ecd2898eb7de9b540e98b46 | refs/heads/master | 2023-03-18T18:01:21.402781 | 2020-09-30T18:08:43 | 2020-09-30T18:08:43 | 271,615,533 | 1 | 0 | null | 2021-03-20T05:03:59 | 2020-06-11T18:09:23 | Python | UTF-8 | Python | false | false | 143 | py | count = 0
for _ in range(int(input())):
p, q = list(map(int, input().split()))
if q - p >= 2:
count += 1
print(count)
| [
"krishnanag1996@gmail.com"
] | krishnanag1996@gmail.com |
82ae6081af92203e7de8a4eae701c34ca3048032 | fb0c02a5529f41384598dab941180152f39fa10e | /dopzad.py | d4825d0e0ef8fa4c07a4e4ec12b31c244ee1f015 | [] | no_license | Sezimm/Problem2 | 951200c92dcdbd43da3daefd32491c8850184745 | 0a3f392f025d22db4ef2ca8045c6d8a770b54f9f | refs/heads/main | 2023-02-22T02:03:25.424031 | 2021-01-26T15:49:45 | 2021-01-26T15:49:45 | 333,133,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py |
#2
'''
text = input()
l = text.split()
q=""
for i in sorted(l,key=lambda a: len(a)):
q = q + " " + i
print(q)
'''
p = input("vedite dannye cherez probel: \n")
s = int(input("vedite shag: "))
x = p.split()
for j in range(int(len(x))):
| [
"you@example.com"
] | you@example.com |
f0943fa2d2d87420311e0473ddf9c5fb8cbf71c8 | 87f84f65d74af6dc7b8e7eeb3d15c927944f5db3 | /SCRIPTS/svm linear pred 2.py | 6df12bac2beadd2e4a5d41b6d93225fe0fa3f134 | [] | no_license | panjoel4/ML-missingWellLogPrediction | 9c12ddc616f772dca5465fc473ba9b46f8bcf147 | 751a9a024c5f0d7eec97273c3b96f0bf653c40dd | refs/heads/master | 2023-08-15T06:55:56.761004 | 2021-10-02T06:20:51 | 2021-10-02T06:20:51 | 264,474,028 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,043 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 26 17:23:14 2020
@author: ASUS
"""
"""
heatmap (correlation matrix)
polinomial and radial
using trained data in 2 well
compare the mean square error between previous and new model
plot ditimpa
"""
import pandas as pd
import matplotlib.pyplot as plt
imp... | [
"noreply@github.com"
] | noreply@github.com |
fbdb6d8535e241017238bb38664de7ece301a539 | 20e562ec5b4c5fe09387b608c1d3bc745ab82a64 | /Partial-Recall/v0.2/encode_faces.py | b563bb89383cae837f76eb629fffc624be4fe7e1 | [] | no_license | CosminMares/ImageRecognition | fa9279dbcd9e376b8e04927dadebf3130552dd63 | f2575df2e2b0991447db84b40d179106997e878b | refs/heads/master | 2020-03-30T06:58:03.782922 | 2018-10-16T21:06:05 | 2018-10-16T21:06:05 | 150,903,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | # USAGE
# When encoding on laptop, desktop, or GPU (slower, more accurate):
# python encode_faces.py --dataset dataset --encodings encodings.pickle --detection-method cnn
# When encoding on Raspberry Pi (faster, more accurate):
# python encode_faces.py --dataset dataset --encodings encodings.pickle --detection-method h... | [
"mares_leo2000@yahoo.com"
] | mares_leo2000@yahoo.com |
24191fdc79d441024fb6475e576a61287f8d1b50 | 2843523c4e85133ceca0fa895a67c9286c994d85 | /mysubmission/model.py | 579a8ea87afff83eb20aceb9735f34a32f42ec71 | [
"Apache-2.0"
] | permissive | shuangyumo/AutoSpeech2020 | 387cdcadf8509f38644dfc72fa4e6885844d0ec5 | 0b4c035dac937638c18dd34d842b18f6534b2bab | refs/heads/master | 2022-08-07T16:00:58.530996 | 2020-05-18T15:14:00 | 2020-05-18T15:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,937 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by HazzaCheng on 2019-09-22
import os
import tensorflow as tf
from tensorflow.python.keras.backend import set_session
from data_manager import DataManager
from model_manager import ModelManager
from tools import log, timeit
import res34_model
config = tf.ConfigPro... | [
"279632990@qq.com"
] | 279632990@qq.com |
e71c26708fa1dac89ce425302946faba0f6cdd88 | e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6 | /venv/Lib/site-packages/pybrain/structure/modules/biasunit.py | a85d6212c196f190500ec537e31bc49c033bddc8 | [
"MIT"
] | permissive | ishatserka/MachineLearningAndDataAnalysisCoursera | cdf0f23a58617e17d6b938e3a9df17daae8585e4 | e82e772df2f4aec162cb34ac6127df10d14a625a | refs/heads/master | 2021-09-11T01:39:26.228392 | 2018-04-05T14:33:39 | 2018-04-05T14:33:39 | 117,153,454 | 0 | 0 | MIT | 2018-03-27T05:20:37 | 2018-01-11T21:05:33 | Python | UTF-8 | Python | false | false | 387 | py | __author__ = 'Tom Schaul, tom@idsia.ch'
from neuronlayer import NeuronLayer
from module import Module
class BiasUnit(NeuronLayer):
"""A simple bias unit with a single constant output."""
dim = 1
def __init__(self, name=None):
Module.__init__(self, 0, 1, name = name)
def _fo... | [
"shatserka@gmail.com"
] | shatserka@gmail.com |
2c5be723c0c1f69bc419b022a6a4f2ac99391dca | ba670e0a7ecd9913e517d87091c6be4c905885ee | /sudoku.py | 2b7e2f4c7658f4bb01bb1da8e420519ffa469535 | [] | no_license | avcourt/sudoku-validator | 0c2e2cf9b1c0961a3aeaf31fe6fefcd8b3f22fbe | 039bc0d083e76ec86ba9ac1dd55de20e5539cbe9 | refs/heads/master | 2020-11-26T16:46:24.951871 | 2019-12-19T22:04:26 | 2019-12-19T22:04:26 | 229,144,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,738 | py | """A quick and dirty Sudoku grid validator
Uses numpy for matrix operations:
- extracting submatrices in validate_square()
- transpose
All functions return immediately upon detecting invalidity.
Operates correctly on Sudoku grid dimensions that are perfect squares.
"""
import math
import numpy as np
def valid... | [
"andrew.vcourt@gmail.com"
] | andrew.vcourt@gmail.com |
aa2c00344a3dceca94a75e0d8068d23040ff87f0 | b956d3450e604dcfa1f9a7c024dccb434b1e441f | /Ch03/variable/02_variable1.py | b47a03c8e66d2114c4c09deb6cdfc4551322a1d6 | [] | no_license | min0201ji/PythonStudy | 51516a0fbe6b0383f6e49b43e96e928a1d5be4a9 | 2d840119c6594a6b0494590c82c6c8a7b97a543f | refs/heads/master | 2023-07-07T10:27:30.985303 | 2021-08-12T16:37:31 | 2021-08-12T16:37:31 | 395,382,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | # 변수는 할당해놓고 사용하지 않으면 메모리 공간을 차지하게 됨
# 변수 삭제 명령어 : del
# del 변수명
c_var = 100
print(c_var)
del c_var
#print(c_var)
# 코드 블럭 주석처리: ctrl + / (window), command+/(mac)
# 무자열 값 저장
# 문자열은 큰따옴표 사용(작은따옴표도 가능)
# 여러 종류의 따옴표를 사용시에는 짝을 맞춰야 함
name = '박민지'
std_name = '박민정'
pro_name = "박춘식 '교수'"
print(name)
print(std_name)
print(pro... | [
"ymcm2468@gmail.com"
] | ymcm2468@gmail.com |
082ffed8db361c3d31eac76e28dc30c952cd5487 | 537c4ff86d11dad58c6d9fbc0506d3361e9eef88 | /aocpy/__init__.py | f180f8756dc42ad8ee2560aea431c2dbd55899c8 | [] | no_license | SteadBytes/aocpy | cd92e833d9f67747611588acaaabca550a237e15 | 948e8872f685b8ac0c76d673651dd3a26fedbd96 | refs/heads/master | 2022-12-15T14:26:28.485773 | 2020-12-06T19:09:07 | 2020-12-06T19:09:07 | 159,924,086 | 1 | 2 | null | 2022-12-08T03:13:39 | 2018-12-01T08:23:05 | Python | UTF-8 | Python | false | false | 114 | py | from aocpy.puzzle import Puzzle
from aocpy.generate import generate_day
from aocpy.templates.cli import input_cli
| [
"steadmanben1@gmail.com"
] | steadmanben1@gmail.com |
e506bf720c7d527c574f30e8d79bae17303d912e | 673adb50ef81fbd3f604e398dfe70f4c2170126d | /structuredPrediction/modelMakers/dropModel.py | 17c512f7036abe77d5a526066009b2040f1cdd25 | [] | no_license | leeleavitt/cellTypePredictor | d6f7fc2307bf7c767aa2362ed9f95c974be00f31 | 3b5b364596fffdf9bc927163bf0976120a138251 | refs/heads/master | 2023-01-28T03:15:47.130683 | 2020-12-04T18:37:04 | 2020-12-04T18:37:04 | 258,028,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,831 | py | import pandas as pd
import numpy as np
import py.main
from py.main import imageLoader
import tensorflow as tf
from scipy.stats import describe
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation, Dropout, Flatten, Conv2D, MaxPooling2D
from tensorflow.keras.layers import ... | [
"lee.leavitt.u@gmail.com"
] | lee.leavitt.u@gmail.com |
2bc1edafefe685826dff39c42d7e69e9c67e1523 | 10f2f0c06d213d9272de256d5da47473c885b448 | /Demo3/data_preprocess.py | 898d19be2d4212d97eb9092141a34ab844b524fe | [
"MIT"
] | permissive | kinglai/compare-aggregate | 9cb3d60050dcd7903da1b1836c205694c2b355de | 2544468842ac0f991bede858c6cc4943ae22d640 | refs/heads/master | 2022-02-13T14:00:34.761738 | 2019-07-25T12:45:17 | 2019-07-25T12:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,840 | py | # -*- coding: utf-8 -*-
# @Time : 2019/1/23 14:35
# @Author : Alan
# @Email : xiezhengwen2013@163.com
# @File : data_preprocess.py
# @Software: PyCharm
import sys
import numpy as np
import random
from collections import namedtuple
import pickle
import time
random.seed(1337)
np.random.seed(1337)
ModelParam ... | [
"xiezhengwen2013@163.com"
] | xiezhengwen2013@163.com |
393946c087e0bf9714c2426d6b9b0cbe78b993ba | df976ab4970a5fd8de22e7f16a825c0edae4571f | /test/test_projects_api.py | 61b0969e7ffda0bc53d288b0f3249f6846ed5f13 | [] | no_license | kondratov-saritasa/ucb-python-client | 67d0cbf694575669fdc9ee8088f5de5f933a12a3 | fcfe5263c632c60f177dd23aeb725647881365b9 | refs/heads/master | 2023-03-02T05:00:44.268038 | 2021-02-08T17:26:26 | 2021-02-08T17:26:26 | 336,761,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,809 | py | # coding: utf-8
"""
Unity Cloud Build
This API is intended to be used in conjunction with the Unity Cloud Build service. A tool for building your Unity projects in the Cloud. See https://developer.cloud.unity3d.com for more information. ## Making requests This website is built to allow requests to be made a... | [
"s.kondratov@saritasa.com"
] | s.kondratov@saritasa.com |
9effb16c43bd2e316d863b588a3dd31e196935cb | 142d22846b0dc90763d9006aa4e972cb022de351 | /twiceredis/client.py | b348d6225d8797e37dca9408133e6ac133876e86 | [
"Apache-2.0"
] | permissive | alanquillin/twiceredis | 43d1ae93e618b60a7a3b183c4fea6421dbe398fc | 3bd3e960b0249e40d1c99f23b3e147543c945da3 | refs/heads/master | 2020-12-25T09:47:17.391998 | 2015-07-31T04:11:28 | 2015-07-31T04:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,421 | py | # -*- coding: utf-8 -*-
#
# Copyright 2015 Trey Morris
#
# 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 appl... | [
"treyemorris@gmail.com"
] | treyemorris@gmail.com |
93ee7482eeedef17bad15864a88d4e24c7563673 | 02eb2f6387a30347081e226598fe46954de1017e | /python/scripts/batch_decode.py | 0fe4b70cbd245e5254a82052df060dc991500bf1 | [
"Apache-2.0"
] | permissive | seyuf/kaldi-serve-1 | 45b2552926e2f05c46a17beee2c089d574b0531d | 6be4ea3375ed64176d4638cc2252909136c95b3d | refs/heads/master | 2020-12-14T15:02:24.969199 | 2020-01-18T20:36:21 | 2020-01-18T20:36:21 | 234,778,981 | 0 | 0 | Apache-2.0 | 2020-01-18T18:32:43 | 2020-01-18T18:32:42 | null | UTF-8 | Python | false | false | 3,618 | py | """
Script for transcribing audios in batches using Kaldi-Serve ASR server.
Usage:
batch_decode.py <audio_paths_file> [--model=<model>] [--lang=<lang>] [--num-proc=<num-proc>] [--output-json=<output-json>] [--transcripts-only]
Options:
--model=<model> Name of the model to hit [default: general]
--... | [
"pskrunner14@gmail.com"
] | pskrunner14@gmail.com |
83746c2f8f8c278e1647782695f53eca9c354ff6 | 249ef744ece1167f6e5bf7edc0b3ce5b1a31e66a | /EnvCmp.py | baea40b8a0e3cacfae52fdb69bb066dfb621da57 | [] | no_license | ftakanashi/EnvCmpWeb | dba2b9bec6a0c3dc5a2a623f52257c3a56ca957c | 692164d341ae7d6aeff946a7e89c3ceabc96b6e3 | refs/heads/master | 2020-03-21T17:41:47.209949 | 2018-07-11T11:04:25 | 2018-07-11T11:04:25 | 138,847,521 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,275 | py | #!/usr/bin/env python
# coding=utf8
# @author:weiyz
import os
import uuid
import threading
import tarfile
import shutil
import socket
import time
from filecmp import dircmp
### beg 20180111 重设系统编码为GBK保证可以读取中文字符 ###
import sys
reload(sys)
sys.setdefaultencoding('gbk')
### end 20180111 ###
def get_sub_dic(lst, key):
... | [
"wyzypa@gmail.com"
] | wyzypa@gmail.com |
1a230e1f33accf74fd62ae3f668ea5f86518bb7f | 17ac294835d62e64cc76add4f90c713a34122c0a | /applications/flaskapp/src/views/views.py | 5d85e58b84736306340eca9dba63c8e8e02bdb6e | [] | no_license | rachhtordoff/docker-base | 0c6a60f988a21b2e83aa1e6bbc054c33bdd53794 | 33795c246ad7c2c49dcf3141597e07bc336fd327 | refs/heads/master | 2020-07-02T17:00:27.765064 | 2016-11-21T13:18:05 | 2016-11-21T13:18:05 | 74,295,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from hello import app
@app.route('/')
def index():
return 'Hello World! This is the Fldkfdjhfjassdsk App!'
| [
"rachael.tordoff@digital.landregistry.gov.uk"
] | rachael.tordoff@digital.landregistry.gov.uk |
c8b543cdeadf9fb95eb43e57df6ec30172d49e3e | 20d9eea39eb73f069e22b780d61fc1dc8277ce25 | /discobolus/server/views.py | ada91538b22da59d9694c8b150816e863b70ffce | [] | no_license | holandes22/discobolus | 93ce2a0758ce8188aae42d89071bb83f8e6a5ee0 | e05f8ac54a3f96f889c08ff6693cec61e794a3c6 | refs/heads/master | 2020-12-24T13:28:55.644617 | 2012-10-10T22:01:37 | 2012-10-10T22:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,075 | py | import rpyc
from django.http import HttpResponse, HttpResponseRedirect
from django.views.generic import ListView, UpdateView
from django.contrib.formtools.wizard.views import CookieWizardView
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404
from discobolus.core.m... | [
"pabloklijnjan@il.ibm.com"
] | pabloklijnjan@il.ibm.com |
3433c82e629bfe16c15262b3012ea380799f93a1 | 6713b68c912af377c741b26fe31db0fe6f6194d4 | /1st Term/Data_Structure_and_Algorithms/Codes/Exercises/ses07/tests/recap.py | ad9b6e78d422a95dedfce25d228c43c11c8d1e21 | [] | no_license | Lanottez/IC_BA_2020 | 820e8d9c1dbb473ed28520450ec702f00c6684ed | 8abd40c6a5720e75337c20fa6ea89ce4588016af | refs/heads/master | 2023-08-25T05:52:08.259239 | 2021-11-03T07:27:11 | 2021-11-03T07:27:11 | 298,837,917 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | test = {
'name': 'Recap Lists and Dictionaries',
'points': 0,
'suites': [
{
'cases': [
{
'code': r"""
>>> d = {'dog': 'bone', 'cat': 'mouse', 'bird': 'work', 'cow': 'grass'}
>>> 'mouse' in d
284955ce13007698ae8d35f81082c68b
# locked
"""... | [
"z727629029@gmail.com"
] | z727629029@gmail.com |
0495d7d550fc2f26ef08d7b1b944e40a049e7945 | bca67a91d4d73d3acdecf301443c847390cf5eb4 | /test_polynominal.py | 428339e9e797e4b06de3bc0511b8ba5fd39aa200 | [] | no_license | senwen616/Algorithm | 0512f8d417cc324f1235f972e11a6b1ab50cc4b9 | aadf869e66b766720632d69a3689bbb155e1c92d | refs/heads/master | 2023-02-24T11:25:42.674303 | 2021-01-30T13:24:12 | 2021-01-30T13:24:12 | 296,201,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | #!/usr/bin/python
# -* - coding: UTF-8 -* -
#!python
#coding:utf-8
from sklearn.preprocessing import PolynomialFeatures
import numpy as np
X = np.arange(20).reshape(2, 10)
poly = PolynomialFeatures(degree=2)
res = poly.fit_transform(X)
print res
| [
"sunwenping@qianxin.com"
] | sunwenping@qianxin.com |
2c4a1eda1cdf0cca1eda7df5f81a7d2c40200495 | 899cb8acb78cb528090532687218315dcaae2582 | /ssdmultibox/predict.py | 28e34d4aaa1cb8d1a2528ac5595c82dc6d7d13a5 | [
"MIT"
] | permissive | aaronlelevier/ssd-pytorch | e26f1720e572e3be0319e51894b56c82dfec4fc1 | 2663d32e072dd5928c60f39fef71af4774d1c596 | refs/heads/master | 2020-04-10T00:37:30.757252 | 2018-12-31T15:15:53 | 2018-12-31T15:16:37 | 160,690,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,455 | py | """
NMS final predictions module
"""
import torch
from ssdmultibox.config import cfg
from ssdmultibox.datasets import NUM_CLASSES, device
class Predict:
"""
Methods for making NMS predictions
"""
@classmethod
def all(cls, preds, index=0, conf_thresh=cfg.NMS_CONF_THRESH):
"""
Calc... | [
"aaron.lelevier@gmail.com"
] | aaron.lelevier@gmail.com |
ccd14549e5a112a8f3debc9aad43bc9bbe62c0c1 | deaaee1bf000ffd6576c3e57f663b8381163ce2f | /bot.py | ba131647828244ed8b46fc359263960b1597219c | [] | no_license | Jaculabilis/engine-hearth | ccfddb68757ca88d4208c3d472f2e63e9a04f891 | 17c924ed2f2b1a4ae4cdc0a8f35d6f9639cfe71f | refs/heads/master | 2023-05-07T10:28:55.383723 | 2021-05-16T05:27:30 | 2021-05-16T05:27:30 | 367,709,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from importlib import reload
import discord
import config
import processor
client = discord.Client()
@client.event
async def on_ready():
print('Engine Hearth logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
# No self-reply
if message.author == client.user:
... | [
"Jaculabilis@users.noreply.github.com"
] | Jaculabilis@users.noreply.github.com |
998f53a8b19e40d1c9ab0da166b3dc7494fc3c8a | cfa0dac500a120526cca197d8d201e2bba7724d0 | /alien_invasion/bullet.py | e78349a3588d404ac02f8ef38c0bff037ce990ae | [] | no_license | jinglebelly/alien_invasion-py | 2dad8e81aa80816e399af00a3b1ef0b02a3f15ac | a8dff36773d85ccb29688142f2f83b89ec915038 | refs/heads/master | 2020-04-01T04:37:00.523124 | 2018-10-13T12:48:13 | 2018-10-13T12:48:13 | 152,870,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
"""一个对飞船发射的子弹进行管理的类"""
def __init__(self,ai_settings,screen,ship):
"""在飞船所处的位置创建一个子弹对象"""
super(Bullet, self).__init__()
self.screen = screen
# 在(0,0)处创建一个表示子弹的矩形,再设置正确的位置
self.rect = pygame.Rect(0, 0, ai_settings.bullet_wid... | [
"noreply@github.com"
] | noreply@github.com |
5fc2963a91359afbb15ebff966137ed30388b2bd | e3a8e77c84be5f3f1a5c29d1bea388d75732a37d | /get_git.py | 1d6c1e3ff0146b9e0d3c3cff1e83605ace61d3b0 | [] | no_license | sumairz/clone-git-repos-on-local-drive-python | 349bd4a4c4dbcacf04aa57d02a54fabc4865afed | d384cdfc6daf0cc6592c704192f25bfaabd1809d | refs/heads/master | 2020-05-30T02:01:42.476643 | 2015-02-10T17:11:03 | 2015-02-10T17:11:03 | 30,603,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | # Modules Requirements
# module: BeautifulSoup
# module: gitpython
# module: urllib
from BeautifulSoup import BeautifulSoup
from functions import saveHtml
from git import Repo
import shutil
import stat
import urllib
import sys
import os
import re
count = len(sys.argv)
if (count > 1):
configFile = sys.argv[1]
... | [
"sumairz@gmail.com"
] | sumairz@gmail.com |
c045d46e66a4f04621788b28c78761a1223a3cee | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/uon.py | 949b044bc5d13f037b1b044c161086ca0f3cc3ab | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
62ce97e4549f62a710d4263d3e8b54ea8f210ac6 | cf3561ff0cd52d12216aa2a688281bab4dc2b7e5 | /src/models/train_model.py | e756c0bd9b6c74a34038290f910bf600c534fab0 | [] | no_license | chris-lovejoy/PitDepthPrediction | 624571f31932d20a32c226e714e7ce47687425b4 | b63ba406633bcc19ef429dbb82acfe7e5393a208 | refs/heads/master | 2023-01-23T07:53:38.527479 | 2023-01-17T12:08:08 | 2023-01-17T12:08:08 | 262,115,507 | 3 | 0 | null | 2023-01-17T12:08:09 | 2020-05-07T17:28:25 | Jupyter Notebook | UTF-8 | Python | false | false | 21,305 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import random
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LassoCV, RidgeCV, LinearRegression, ElasticNetCV
from sklearn.metrics import mean_absolute_error
fro... | [
"noreply@github.com"
] | noreply@github.com |
a472871209ba36dddc71717632c40210ffcdb40d | ad0d092d26b126ebf9c5f79a0254e79320a4d732 | /avgtest_pico.py | 8801fc479c10cafaf34933348fe63907e7b0caf7 | [
"MIT"
] | permissive | peterhinch/micropython-filters | be9bcbc3ace92987a1ef23fca5faa90af2391d35 | 4e0b737574073bab36ec1c776e8dfb80b8fe5f9f | refs/heads/master | 2022-02-07T23:01:52.492287 | 2022-01-26T18:29:34 | 2022-01-26T18:29:34 | 30,693,766 | 59 | 13 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # Demo program for moving average filter
# Author: Peter Hinch
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2021 Peter Hinch
# 16th Dec 2021
import array
from time import ticks_us, ticks_diff
from avg_pico import avg
data = array.array('i', (0 for _ in range(19))) # Average over 16 samples
dat... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
ffc496c1178675c25948aa989646fc4987941540 | 94abab503b3cb7164a0553170216cda1aed2110c | /iggybase/core/table_collection.py | 6b0ac00fdaf7d60cff8543a161f6b9616e1a8e98 | [] | no_license | harvardinformatics/iggybase | 2f66c92e83589fc3f4d0126887e6194ce7eb7b88 | 6f48a61c2748ab9fc1dc120dd75e892f2b24f691 | refs/heads/master | 2021-01-24T08:06:59.735889 | 2017-06-08T21:18:23 | 2017-06-08T21:18:23 | 38,822,302 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | from iggybase.core.table_data import TableData
from collections import OrderedDict
from iggybase import g_helper
from flask import abort
import logging
class TableCollection():
def __init__(self, table_names = [], depth = 2):
self.role_access_control = g_helper.get_role_access_control()
self.organ... | [
"mbreneiser@g.harvard.edu"
] | mbreneiser@g.harvard.edu |
9ba88f9b386ad10642120c245525438f08dd9c0b | d15bdaddab59d1cfea76790004cbad3e5f0c2c55 | /batkin/build_isolated/move_slow_and_clear/catkin_generated/generate_cached_setup.py | e0ab70b36efd40a0bb19f5981e56650cf00a794b | [] | no_license | gychen-n/robot | 4265a1ff469d22550b6b537d1c81aa846ee7641a | 0663a33aea2c2de9e3ac5863307619091e5b5959 | refs/heads/main | 2023-04-10T13:32:06.623682 | 2021-04-16T00:41:04 | 2021-04-16T00:41:04 | 358,431,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,820 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
455310b9dfe29696c6f940236e19322517b714c7 | 792f751a26a57255bd12d83e2fc23a3eb26c3a1d | /venv/Scripts/pip-script.py | 001b6184e36a2383f22930e268e5da74ea426608 | [] | no_license | stutipandey/stutipandey.github.io | bba92a366cdf3bfbdd5cd4d32d0ca6d24f2b5feb | d242f30aa9ed3478f937148393503c40c253716b | refs/heads/master | 2020-04-18T02:56:51.118033 | 2019-01-23T14:54:04 | 2019-01-23T14:54:04 | 167,146,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!"C:\Users\Stuti Pandey\PycharmProjects\HTML\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"46956171+stutipandey@users.noreply.github.com"
] | 46956171+stutipandey@users.noreply.github.com |
89699a3f5c0a09f40f6a3e407c26b6854482f88f | d30b5f255157a27d088d4d02d9b94c400e533101 | /app.py | eeacdc16f90a0a3cb23ede4625520c4bda77c209 | [] | no_license | JosephineKantawiria/MA346_FinalProject | f746a4bb095d4c8cc3e272e41111d566eff5ffb6 | e0c3ec9bb2701e850739a2c8c432566c8f882feb | refs/heads/main | 2023-06-06T02:34:13.583910 | 2021-06-29T18:21:58 | 2021-06-29T18:21:58 | 381,443,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,317 | py | # Load packages
import pandas as pd
import numpy as np
from sklearn import preprocessing
import streamlit as st
# Load data
df1 = pd.read_csv('Most-Recent-Cohorts-All-Data-Elements.csv')
df2 = pd.read_csv('World_University_Rank_2020.csv')
# Filter rows and columns
df2 = df2.loc[df2["Country"] == "United States"][["Ra... | [
"kantawi_jose@bentley.edu"
] | kantawi_jose@bentley.edu |
c91ea1861504524d9c48bbf06c6c426309fc28cf | 2478b6b11c33f6210c057da01397d9ff557b2d90 | /BiliUtil/bili_user.py | 7f19d00adab5bf03af500d54d054b4730f200982 | [
"MIT"
] | permissive | cumulus27/bilibili_video | 56db29e4da7d730cc359fd014117c84a2bec773a | 8c651a137cb825c0e6de81cad672fe3c904aab7f | refs/heads/master | 2020-04-26T10:04:37.929173 | 2019-03-07T04:33:18 | 2019-03-07T04:33:18 | 173,476,669 | 0 | 0 | MIT | 2019-03-07T04:33:19 | 2019-03-02T17:17:59 | Python | UTF-8 | Python | false | false | 7,892 | py | import os
import re
import json
import requests
from urllib import parse
import BiliUtil.static_value as v
import BiliUtil.static_func as f
from BiliUtil.bili_album import Album
from BiliUtil.bili_channel import Channel
class User:
cookie = None
uid = None
name = None
birthday = None
coin = Non... | [
"zhaopy27@gmail.com"
] | zhaopy27@gmail.com |
48d2cf630d83fc2b014ffccb6d9f2932204a3ca3 | 24877bcb3fb730eae81864ac71f2c0629800cad1 | /target/venv/test/cpython-3.6.9.final.0/bin/easy_install-3.6 | 2586182add6a42584ac77eb035612c31574ac824 | [] | no_license | TrellixVulnTeam/EPIDEMIOLOGY_MODELING_7BS9 | a507b97a25f8c9342d78ba76fd214e5428ad5f10 | a18e8458cfe203cd8f511f68677fa63f7351e283 | refs/heads/master | 2023-03-20T03:04:56.445266 | 2020-06-26T12:31:06 | 2020-06-26T12:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | 6 | #!/mnt/d/NewProject/target/venv/test/cpython-3.6.9.final.0/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"simranhora912@gmail.com"
] | simranhora912@gmail.com |
ba16348c57a2554b922ba70d3ca766334cd8a281 | c07524550036222110ca600da8b1f65b5c3701b6 | /main.py | 985e2764cb554681e4d9eda6eb34448f81a3fae5 | [] | no_license | mt5225/uinnova_weekly | df09549c9aec23955e6ab66bc2d4ccc4c04ecf39 | 827e22373699047936f675ee93990efe336ae26b | refs/heads/master | 2021-01-21T21:19:54.432826 | 2017-09-26T00:18:08 | 2017-09-26T00:18:08 | 84,262,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,157 | py | from time import gmtime, strftime, sleep
import os
from datetime import datetime, timedelta
import pandas as pd
import numpy as np
import glob
from jinja2 import Environment, FileSystemLoader
import paramiko
import logging
# create logger
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(level... | [
"mt5225@gmail.com"
] | mt5225@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.