blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c6c3a09d95945c7a9f020b9df2ee127ebe4414a | 00e29479dc7c45a9e019f96c90a69a49af618ccf | /src/api-engine/src/api/routes/user/views.py | 42300c55ed400a24f4c2f80abe33262434251b0a | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | yunchaozou/cello | 8dd081db2ce5d9b8975d553d4491d329790588ef | 68158f572c688f1710813c4df47fad28c3d4276c | refs/heads/master | 2020-04-22T08:40:53.157301 | 2019-02-08T22:35:35 | 2019-02-08T22:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | #
# SPDX-License-Identifier: Apache-2.0
#
import logging
from rest_framework import viewsets, status
from rest_framework.decorators import action
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from drf_yasg.utils import swagger_auto_schema
from api.routes.network.se... | [
"hightall@me.com"
] | hightall@me.com |
0f638cb37c3cfe9526b6699975d791d2e7f0eaff | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_yesdongil_main_big.py | 207b07db4c346d26f784da03b2499dd769587875 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,846 | py | import os
import sys
import math
import itertools
def xrange(start, stop):
i = start
while i < stop:
yield i
i += 1
def is_prime(value) :
ret = 0
if (value % 2) == 0 :
ret = 2
elif (value % 3) == 0 :
ret = 3
else :
limit = int(math.sqrt(value))
index_limi... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
ac605461478c38b29888febfb314e4ce4df02cb0 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2223/60595/241841.py | 6076414ea5c1392865c888fc83043dbdc578bc50 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | num=input()
if(num=="1,2,4,7"):
print("[0, -4]")
elif(num=="1,2,2,4"):
print("[2, 3]")
else:
print("[2, 1]")
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
e778973800b1393a64cfbffed12451da655f8b6e | be0046a5476db35e21325b1d7a009b95c13b2c34 | /analysis/museumstation/usage_stats/usage_stats/get_usage_short.py | 03ec8d28ba5b99f669294a736ccee4af090a1d65 | [] | no_license | brialorelle/kiddraw | 089605e1a20aa38521dcbd411f4781f62f738618 | 78db57e46d8d4eafe49a8edec5a86499abdcb332 | refs/heads/master | 2022-10-03T10:56:26.842485 | 2022-09-09T17:23:42 | 2022-09-09T17:23:42 | 106,886,186 | 18 | 7 | null | 2018-09-04T23:28:09 | 2017-10-14T00:47:07 | Jupyter Notebook | UTF-8 | Python | false | false | 1,270 | py |
## libraries
import pandas as pd
import time
import pymongo as pm
import os
# set input parameters
iterationName = 'cdm_run_v8'
num_hours = 40000
# set up connections
auth = pd.read_csv('../../auth.txt', header = None) # this auth.txt file contains the password for the sketchloop user
pswd = auth.values[0][0]
conn ... | [
"brialorelle@gmail.com"
] | brialorelle@gmail.com |
63231052babc52cc55eefc689d6deb696b58d106 | c9fd6ede5e3f8626f0e581aed9db1729ed2466ad | /browserHistory.py | 981120d322062f94c02bd0733c8c82b44b4a8673 | [] | no_license | jcgaza/leekcodes | 6de2657cc58c5680661d2495b4d996f9d6e89428 | 27fa50185adc347c6b2fe56bec7c81db13265dbc | refs/heads/main | 2023-05-03T07:54:10.573245 | 2021-05-25T12:48:20 | 2021-05-25T12:48:20 | 363,787,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | class BrowserHistory:
def __init__(self, homepage: str):
self.currentIndex = 0
self.urls = [homepage]
def visit(self, url: str) -> None:
self.urls = self.urls[:self.currentIndex+1]
self.urls.append(url)
self.currentIndex = len(self.urls)-1
def back(self, steps: int) -> str:
... | [
"jcgaza@up.edu.ph"
] | jcgaza@up.edu.ph |
6cf12299dfeaefae34ec2dbc281245a61fb76952 | 099f8b113bdf2a6f657e9b800aa657bb29bb94fa | /Python_Foundation/regularexp2.py | d114107672043e18c89e9face44d4c0602a13e97 | [] | no_license | MayurKasture/Mayur_Python_Foundation_Cource | a02d1442aa5120f6ae3f840f74b394cd4864cf58 | 9ff42a4406456897d3a0c9671e28a2d5fd441213 | refs/heads/master | 2020-09-26T16:31:42.789450 | 2019-12-06T09:28:43 | 2019-12-06T09:28:43 | 226,291,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import re
str="5349 124 8494 8 823"
#1 get list of nnumbers
lst=re.findall("\d+",str)
print(lst)
lst=re.split("\s+",str)
print(lst)
#2 get list of all 3 digit numbers
lst= re.findall(r"\b\d{3}\b",str)
print(lst)
# 3. remove single digit from list
lst= re.sub(r"\b\d{1}\b","",str)
print(... | [
"noreply@github.com"
] | MayurKasture.noreply@github.com |
b0c32aca6bcee164439fb7eba0c7676a3bb2499c | 8928f04f1867358430df456bdef5086b88b43ccd | /snagging_parking.py | 683fb7950cc374355322f68e65a4e697c08c6ae7 | [] | no_license | MMSaiPrakash/parking_slots_assistant | 83d8f76638f2f64e8fe3bf91d4abb3b0be86b5a2 | 944b775d955a65e041dda7960800b3bf887b9013 | refs/heads/main | 2023-05-06T22:18:03.437711 | 2021-05-22T06:48:27 | 2021-05-22T06:48:27 | 369,736,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,901 | py | import urllib
import cv2
import numpy as np
import time
from firebase import firebase
firebase = firebase.FirebaseApplication('https://snaggingparking-default-rtdb.firebaseio.com/')
#Change the firebase url to yours and use this code.
url = 'http://192.168.0.109:8080/shot.jpg' #Change this IP with your Camera... | [
"noreply@github.com"
] | MMSaiPrakash.noreply@github.com |
59c085b313e80a35b2b866517725e5e2b2ab268d | 2c5b7aa3ada684688a5a1556cf6c7934217b7dcd | /movie_analysis/__init__.py | 56f610126ef8054383c7532f5556c19f78520717 | [
"MIT"
] | permissive | rlfranz/movie-gender-sentiment-analysis | 385aafacd8d2f0f964d3f2467cf40a8fd74b6914 | ff8dd6393a4b6224c95e388cfc70a428a001bd41 | refs/heads/master | 2020-04-10T17:06:41.234053 | 2018-12-10T11:30:13 | 2018-12-10T11:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from .version import __version__ # noqa
from .movie_analysis import * # noqa
from .get_sentiment_score import * # noqa
from .analyze_comments_tblob import * # noqa
| [
"rchlfranz@gmail.com"
] | rchlfranz@gmail.com |
8f6544b242c2b325c60dfe4ba718e842a1bd5da5 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn4 - krajevne funkcije/M-17221-2470.py | 10d80965dddb932bac3c85dd6f23dabfac539c8c | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,073 | py | # Tu pišite svoje funkcije:
from math import *
def koordinate(ime, kraji):
for kraj in kraji:
if(kraj[0] == ime):
return (kraj[1], kraj[2])
return None
def razdalja_koordinat(x1, y1, x2, y2):
return sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
def razdalja(ime1, ime2, kraji... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
1c5a217e9f5c3d0bfa5d81fb7f4e52d6dccae8dc | 746e0dc66893cd287a0a1f94fa7f5fad168d38f9 | /main/migrations/0030_auto_20141012_0029.py | a91a9d3b23b969865ecbf8e5a88cc017fa64e136 | [] | no_license | alpotapov/foodplan | eeeb04bf5a12fac1c67a31443ab34643b59a9ccd | 0dd26a2446da9d7129c259532dcd0f19b87038d6 | refs/heads/master | 2021-01-16T21:17:44.670107 | 2014-11-15T17:22:50 | 2014-11-15T17:22:50 | 26,687,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('main', '0029_auto_20141012_0024'),
]
operations = [
migrations.AlterField(
model_name='scheduled... | [
"al.potapov@hotmail.com"
] | al.potapov@hotmail.com |
060eac28c26b41125b17d80a73f320465fa80cf3 | 2a6934acac4ec8bb29ad51e525ad2ed839a18587 | /sleekocmd.py | 68f49aecbefe4e0f260eb97fa74fe5cb08374f80 | [] | no_license | alexschlueter/arlecksbot | d9ca769a00bf0458163b397ebce314d510066af4 | 1730f5123b10bc638906f6206ea6b5b08460bfac | refs/heads/master | 2021-01-10T21:39:51.643735 | 2013-01-16T11:59:43 | 2013-01-16T11:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,261 | py | #!/usr/bin/env python2
# Name: SleekoCommander
# Author: Nick Caplinger (SleekoNiko)
# Dependencies: numpy, pypng
# Ideas:
# control the midfield with gankers
#1. Ambush flag carriers by predicting their path to the flag stand and whether or not they can intercept
#2. Camp the enemy spawn
#3. Actively search... | [
"arleckshunt@googlemail.com"
] | arleckshunt@googlemail.com |
277b796133b417f3f03e8d037d77c96b7187c638 | 5d451964cdab06369ae86e1b9594ebc6bfec789e | /Exercise/concat.py | 05af00724625624bf169a27b3e3a5bdee35b4605 | [] | no_license | Donishal/My-Project | 308d5e07a9285530a12244c66a75b89b8a01912d | 9ee4f1d354efc79f785e40b8b9652ecb01cc4694 | refs/heads/master | 2020-09-03T12:32:48.931940 | 2019-11-04T09:31:31 | 2019-11-04T09:31:31 | 219,463,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | dic1={1:10, 2:20}
dic2={3:30, 4:40}
dic3={5:50, 6:60}
dic1.update(dic2)
dic1.update(dic3)
print(dic1)
| [
"doniisabel7@gmail.com"
] | doniisabel7@gmail.com |
edeee6602b190ca18e61ad5f160a964b27d00952 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_256/ch34_2020_04_23_17_53_27_919517.py | ee3644d60592c2aae2ec473d6ba51ecadb41d2fe | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | def eh_primo(n):
if n == 0 or n == 1:
return False
elif n == 2:
return True
for i in range(3, n, 2):
if n%2==0:
return False
elif n%i==0:
return False
else:
return True
def maior_primo_menor_que(n):
p = -1
while n>0:
i... | [
"you@example.com"
] | you@example.com |
89105cb6a33047fafb65b3d7700b868a31019e2f | 782e1a5cf60fd39482d14fb1a3861ab9eeeb6ebf | /src/model/split.py | ffa577b6a3d721a93eb97efe4c0e49f398e8b6fc | [] | no_license | andfanilo/ieee-fraud-detection | f88976e9c0937ead230775c336cb437693272b31 | 672cc784d55c6649e464c7c114bb86431b43085a | refs/heads/master | 2020-06-20T15:32:38.315054 | 2019-09-29T08:28:02 | 2019-09-29T08:28:02 | 197,164,393 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,475 | py | import datetime
import logging
from typing import Optional
import numpy as np
import pandas as pd
from sklearn.model_selection import PredefinedSplit
from sklearn.model_selection._split import _BaseKFold
from sklearn.utils import indexable
from sklearn.utils.validation import _num_samples
LOGGER = logging.getLogger(_... | [
"fanilo.andrianasolo@worldline.com"
] | fanilo.andrianasolo@worldline.com |
c8c314c5d709f0fa4bdd77ab501e68a1e22ad86a | f05908fcf4236df817fe04fecff8dce670c28c57 | /Classification/Extra/rmse_class_sigm.py | 1af3ca6ad5adf3999db1212cc862046c6e75d211 | [] | no_license | visionion/Neural-Networks | 5db843232c7889cc9593c0097bf8ed93d5016e03 | d60d486399b458ad6ad0cf0dce188591ddbedd68 | refs/heads/master | 2020-04-09T11:55:01.028022 | 2017-01-02T07:34:52 | 2017-01-02T07:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,234 | py |
def featureNormalize(X):
X_norm = np.divide((X-np.mean(X,axis=0)), np.std(X,axis=0))
return X_norm
def activation(a):
#here it is sigmoid function
return np.divide(float(1),1+np.exp(-a))
def feed_forward(xtrain,weights1,bias1,weights2,bias2):
a1= np.dot(xtrain,np.transpose(weights1))+bias1
... | [
"vaibhav290797@gmail.com"
] | vaibhav290797@gmail.com |
bd7bff855a8e80aaf2827d004bd3fd6132dde759 | 0d3f7956ccbb273ca4fa8afcd55a789fa22e6ba5 | /preprocessing.py | 27f746c260e188dee2b66c28b16a26d1f224f396 | [
"MIT"
] | permissive | cltl-students/hamersma-agression-causes | 9017fea1fb77e3ca278cd3752c2c74f9a2f25925 | 11cbfd94031a0a3c84a27afa20d8a539acdab609 | refs/heads/master | 2023-04-15T07:46:58.447952 | 2021-05-03T15:27:35 | 2021-05-03T15:27:35 | 351,095,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,259 | py | import pandas as pd
import spacy
import nltk
import re
import pickle
import numpy as np
from transformers import BertTokenizer, BertModel
from utils.bert_embeddings import get_BERT_embedding
from collections import defaultdict
import torch
from collections import Counter
import os
dirname = os.path.dirnam... | [
"noreply@github.com"
] | cltl-students.noreply@github.com |
d0d5a0a378ff8e2e830f3b70dd51e7701ecdd2f4 | b243ce8a8e4ed5eb299adaa6e95ef8f268ea1744 | /advent/solver/day_6/task_1/__init__.py | 0c777935f4c9de1d73992dc3aa250a1470b5f750 | [] | no_license | LukaszSac/AdventOfCode | b62d26ab62c303abaab26f6b83f591fe9c4beca4 | d8c0438a9a7a47febabb04133800e0abcea35a5f | refs/heads/master | 2023-01-30T00:15:17.206813 | 2020-12-09T21:25:03 | 2020-12-09T21:25:03 | 318,300,208 | 0 | 0 | null | 2020-12-08T19:08:33 | 2020-12-03T19:37:59 | Python | UTF-8 | Python | false | false | 39 | py | from .solver import DaySixTaskOneSolver | [
"sacewiczlukasz@gmail.com"
] | sacewiczlukasz@gmail.com |
45f836742cb5dd1b301e9cf7ce5f7cb6f97a3458 | 444f09701504a8c09127aafb7a5bcc71ec40aa38 | /zhihu_browser.py | 2f2d40d932849265b72458996d5e59a06b340543 | [] | no_license | NanrayJack/Python-Spider | 2ea478aa2e726eaa8f3ab725d656f2adf6b2e6f8 | cc0fdb517991f923ec900b64d45a1abcf1049446 | refs/heads/master | 2022-02-17T21:28:10.864080 | 2019-09-03T16:28:17 | 2019-09-03T16:28:17 | 205,997,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,299 | py | import time
from time import sleep
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.chrome.options import Options
import secret
import platform
import os
from utils import log
def add_chrome_webdriver():
log(platform.system())
... | [
"noreply@github.com"
] | NanrayJack.noreply@github.com |
fafe549264abbc0749503ca3d08dbbc62fe4299b | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /lambda_write_f/function-event-invoke-config_delete.py | 15016e42d8d9604bacece336bdaec2f86610b9a1 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
9add89bb31c6cf98448a3a7a6624b32dfcda9b13 | 825616ad2c01a37c155579facb3ff2b9553cfb9f | /tests/test_ignore.py | 404a2ef2692d265babf632faeee6549b41f4a45e | [
"MIT"
] | permissive | paolodina/namedtupled | f909b0303387b0ef8c73fe31e4b227f586410254 | cca5396dd806dae2039a7099cce3bfc7e568fec2 | refs/heads/master | 2021-04-30T04:40:22.830873 | 2018-02-14T18:57:19 | 2018-02-14T18:57:19 | 121,540,307 | 0 | 0 | null | 2018-02-14T17:34:35 | 2018-02-14T17:34:34 | null | UTF-8 | Python | false | false | 632 | py | import namedtupled
import pytest
mapping = {
'foo': 'bar',
'baz': {'qux': 'quux'},
'tito': {
'tata': 'tutu',
'totoro': 'tots',
'frobnicator': ['this', 'is', 'not', 'a', 'mapping']},
'alist': [{'one': '1', 'a': 'A'}, {'two': '2', 'b': 'B'}]
}
mapping_array = [mapping, mapping]
... | [
"brennv@users.noreply.github.com"
] | brennv@users.noreply.github.com |
fa4a0b305407775dbe2e6907373318daf7bef42b | 7e2351db6ee3d9bf1edaf728855c7a5934e8b7dc | /examples/tutorials/lighting_tutorial.py | d2d0052338def553a03dbae1ec4a11415c4fcff2 | [
"MIT"
] | permissive | alstar8/habitat-sim | b8fd764fb57b8cb678c7ac03ec1f95f4b3012d01 | fc3261f89732c4712ca1db00b24487a983641d62 | refs/heads/main | 2023-08-14T11:15:50.555848 | 2021-10-03T11:39:03 | 2021-10-03T11:39:03 | 413,045,671 | 0 | 0 | MIT | 2021-10-03T10:31:02 | 2021-10-03T10:31:02 | null | UTF-8 | Python | false | false | 7,095 | py | # [setup]
import math
import os
import magnum as mn
import numpy as np
from matplotlib import pyplot as plt
import habitat_sim
from habitat_sim.gfx import LightInfo, LightPositionModel
from habitat_sim.utils.common import quat_from_angle_axis
dir_path = os.path.dirname(os.path.realpath(__file__))
data_path = os.path... | [
"noreply@github.com"
] | alstar8.noreply@github.com |
d8d13467a7799672f45585a90fa8be260b9dd1a7 | 028e16089ebbbd81adf41789a8da3ba3e25323d0 | /문자열 마음데로 정렬하기.py | f4bbb55c432e09c2ad24557bce06c0be8279bb49 | [] | no_license | FlowerLSH/Study1 | 18b840a1d3345e39f759661c88aa3fbc63a649f0 | bedc273d77ad7eb9fd214967dadcf9e49f21f2c8 | refs/heads/master | 2023-01-31T13:32:34.374341 | 2020-12-16T15:03:33 | 2020-12-16T15:03:33 | 278,109,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | def solution(strings, n):
answer = []
index = dict()
arr1 = []
for i in strings:
index[i] = i[n]
arr1.append(i[n])
arr = list(set(arr1))
arr.sort()
for j in arr:
emp = []
for k in index:
if index[k] == j: emp.append(k)
emp.sort()
an... | [
"noreply@github.com"
] | FlowerLSH.noreply@github.com |
e33f5e747a3394df1d4ab13d0f881353585a66d3 | fb9b320109ba55fc68fab793ce7a77058dc8b682 | /semi-supervised-learning/visual/score_visual_lfs.py | 044956da5eebf4ddcac680083ba6c027aec29002 | [] | no_license | NLP4H/MSBC | c3b03806666584a4fa1cc7328ba9d45f061d2a77 | 60b0b89496eb28707d323b595af7a411dbd84768 | refs/heads/master | 2022-10-09T19:02:48.998958 | 2020-06-02T07:15:11 | 2020-06-02T07:15:11 | 268,724,086 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,366 | py | """
Snorkel labelling functions for visual score
Note: This visual subscore is not based on Neurostatus defns but
based on heureustic information provided by Zhen based on advice given from MS clinicians
"""
import os
import pandas as pd
import re
import numpy as np
from nltk.tokenize import word_tokenize, sent_tokeni... | [
"michalmalyska@Michals-MacBook-Air.local"
] | michalmalyska@Michals-MacBook-Air.local |
f107a42e17a213bb257e6dc9bee18367a2d43d35 | c7a867c33675d48c9bcc73c70c27cac085661ebb | /extractor/POSMmanagement/process.py | a6b472f4c094cbd47cf5cd7e2c6fc14894009bd4 | [] | no_license | v55448330/posm | 3e4cbcb22f5eae17c956eb02346a8fc5a932966c | a53c15337301a769ac3b9bde54ab845ac0fe5211 | refs/heads/master | 2020-05-29T11:05:40.229015 | 2015-03-29T08:21:22 | 2015-03-29T08:21:22 | 47,541,652 | 1 | 0 | null | 2015-12-07T09:15:42 | 2015-12-07T09:15:42 | null | UTF-8 | Python | false | false | 4,559 | py | # -*- coding: utf-8 -*-
import logging
LOG = logging.getLogger(__file__)
import subprocess
import psycopg2
import sys
import os
from .utils import proc_exec
class ProcessManagement():
def __init__(self, settings, verbose=False):
self.verbose = verbose
self.settings = settings.get_settings()
... | [
"dodobas@candela-it.com"
] | dodobas@candela-it.com |
648a45ddee93210901fcbaf778e75181ac7c38e8 | fba6fca82bf1edd8e69ef94cede17193b845c48d | /planer.py | f8f6b7202193cf0d4658884a66e5d68ecea28ca3 | [] | no_license | sweettpickle/planer | 9da0cc9b34e62563979f2757b733a1612b749918 | cd505e6aebc5e3dcfdc66fabadaaaa4d75170998 | refs/heads/master | 2022-05-14T17:53:30.819859 | 2020-04-24T14:23:35 | 2020-04-24T14:23:35 | 258,514,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,969 | py | import telebot
from telebot import types
# bot = telebot.TeleBot('%ваш токен%')
token = '1010919676:AAFlETQiiF6PUzGctcTFtNZLzCb12aVJjt4'
bot = telebot.TeleBot(token)
# обработчик сообщений
@bot.message_handler(commands=['start'])
def welcome(message):
# bot.reply_to(message, message.text)
# bot.send_message(m... | [
"noreply@github.com"
] | sweettpickle.noreply@github.com |
4766e7836e32da1470704406f4da46c5ba8fe537 | 1fabc88dcd905494baa9ef6797c9b0b512c95011 | /Q12.py | df33329ecc3ca606977a358249dc1ec2e78e6e2b | [] | no_license | LYW-91118/python | f5847bef2c28f9f3daadf24f2decfc9aad7c3598 | 3798924f708752607242686398087dc3208b22fc | refs/heads/main | 2023-04-16T22:50:49.669657 | 2021-04-28T06:53:13 | 2021-04-28T06:53:13 | 362,366,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | num = input("輸入一整數序列:")
s = num.split()
sum = len(s)
a = 0
for i in range(sum):
if(s.count(s[i]) >= (sum/2)):
print("過半元素為:%s" %(s[i]))
a = 1
break
if(a == 0 ):
print("no") | [
"yoyo0928101611@gmail.com"
] | yoyo0928101611@gmail.com |
793c15be2778bfa6a0852f657ea403fc51e685ba | a3f793a53361d08f3e0cdedc7fab9df40e201eef | /main.py | a53882b59400172fbcb656c830535363798e384d | [] | no_license | songshanshi/imoocc_py3 | 156db4f072bc956f45cbcc8c61fca964be8acfb9 | 6f3491ce857c541bf55d5ed8993265b7dd4dee09 | refs/heads/master | 2020-04-28T02:25:18.241155 | 2018-10-16T07:20:15 | 2018-10-16T07:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,917 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#########################################################################
# Author:Jeson
# Email:jeson@imoocc.com
import datetime
import os
import re
import yaml
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
# import sys
os.environ["DJANGO_SETTINGS_MODULE"] =... | [
"gengming8859@icloud.com"
] | gengming8859@icloud.com |
fc9f01838570e13f69a2601763e4edf059156fb3 | f5a92dfca6e4428992f539ef2819f797c1ddf324 | /flask329/run.py | 7890a0a49e6f65cb675d7b64aab282fabd8a81f4 | [
"MIT"
] | permissive | ZJUguquan/CRF_for_entity_identify | c553013ce3c3cf630adb82a37aa7ad9106946b2f | 416e7c96854265a5873ce2aa23a8cfbe19358576 | refs/heads/master | 2021-06-16T10:48:01.825782 | 2017-05-17T08:34:01 | 2017-05-17T08:34:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,241 | py | #coding:utf-8
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from flask_moment import Moment
from flask_wtf import FlaskForm
from wtforms import TextAreaField, SubmitField
from wtforms.validators import Required
import numpy as np
from numpy import *
import pandas as pd
import json
impo... | [
"guquan291410772@126.com"
] | guquan291410772@126.com |
51372281f96d983816766c266f8a2e1c3e0a83f6 | 57206f40094fc5b0c8ff41ed8a4cec34bfd04ab5 | /Vehicle detection/speedCal.py | 31c276a7b812c787afb80524f9458de293bb93d1 | [] | no_license | wuhaostudy1992/ECPS210 | 4a7b0b8e580b07997134fad4e6cd30d6e057acdd | d68493cbba25f800e9ec57619485b6231e8724bf | refs/heads/master | 2020-03-09T09:53:55.633723 | 2018-05-11T04:28:17 | 2018-05-11T04:28:17 | 128,723,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # coding=utf-8
import numpy as np
import cv2
cap = cv2.VideoCapture("high.flv")
# Shi-Tomasi
feature_params = dict(maxCorners=10, qualityLevel=0.1, minDistance=1, blockSize=9)
# LK
lk_params = dict(winSize=(30, 30), maxLevel=2, criteria=(cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03))
# create random co... | [
"wuhaostudy1992@gmail.com"
] | wuhaostudy1992@gmail.com |
59750fad06e56331b012fa6b1c81a5617cb2f861 | 27df339496f93c8ac45878130e774ae7ef8d1f61 | /csv_file/csv_demo.py | ba634edff5b3a8db253f2636b7987edded93beaa | [] | no_license | vutukurus/class_project | 9ce2df421f44c9b90c04997ff41e19dade3d6cb7 | d714b4edafc02dcbb59fab4ba78480e1c0657b66 | refs/heads/master | 2021-01-12T05:25:33.411576 | 2017-03-12T14:27:28 | 2017-03-12T14:27:28 | 77,926,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import csv
#CSV file reading in python..
f = open('demo_file.csv',"r")
file_content = csv.reader(f) #it will read csv file contents..
for i in file_content:
print i
'''
#logic for printing salaries grater than 15k
c=0
for i in file_content:
if c > 0:
if int(i[-1]) > 15000:
print i[-1]
c=c+1
'''
f_write... | [
"vutukurus@gmail.com"
] | vutukurus@gmail.com |
af0fc5daf91f3b8d1cc064e06a4521d8bbcdd22e | e4d298905eaa0ba0d5fae062cfa6167669825a96 | /Snake_game.py | 670d25759fd6134d157292714aa855baa288c856 | [] | no_license | Blockcipher123/Snake-Game | 55f98cc58ff7d1f0005ee2ce513dae8412454786 | e64e4dd8d7374292519bbd23a851656bd12377db | refs/heads/main | 2023-08-11T08:17:39.600454 | 2021-09-26T04:55:50 | 2021-09-26T04:55:50 | 393,858,226 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,013 | py | import pygame
import random
import os
pygame.mixer.init()
pygame.init()
# colors
white = (255, 255,255)
red = (255, 0, 0)
black = (0,0, 0)
green = (9, 237, 24)
screen_width = 900
screen_hight = 600
# Creation Window
gameWindow = pygame.display.set_mode((screen_width, screen_hight))
# B... | [
"noreply@github.com"
] | Blockcipher123.noreply@github.com |
1e6eba4819d445e4bc1753cf73177ddf6931adac | ae09e15b3f4ac2c6f5a0d3f7a0d73c6def37ab2b | /joinquant/get_data.py | eb55a21d0de07f52edf198b705d82a416b5a4de2 | [] | no_license | fswzb/sensequant | db81053685a985fe50e7082b6f2e65e2e6540212 | b5fdac13f5caf2d00b99506c1c25389b406d9b17 | refs/heads/master | 2020-08-01T15:53:35.102784 | 2016-08-01T03:56:49 | 2016-08-01T03:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,713 | py | import pandas as pd
import numpy as np
import itertools
from src import configure
import sys
# Add the Test Folder path to the sys.path list
sys.path.append('/home/lcc/sensequant/code')
# Now you can import your module
from src.preprocess import in_day_unit
class get_data():
def __init__(self, fname):
se... | [
"rylanlzc@gmail.com"
] | rylanlzc@gmail.com |
b8b2d228ddc37132400ffc22205e20ffee445333 | c9cf408754c54743b3ac2e4cb963726f5204dce5 | /src/nc_service/constant_rate_server.py | 235c3d850c4c157b87b5c69b6d71761ee2dd2810 | [] | no_license | bocattelan/python-snc-mgf-Bruno | 29066777bedb54ddbe12f1863807890067f70ddf | 7009ecf46e6a68b206c252477fb76a70fe713b11 | refs/heads/master | 2020-04-13T02:27:36.597327 | 2018-12-18T20:06:43 | 2018-12-18T20:06:43 | 162,903,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """Implemented service classes for different distributions"""
from nc_service.service import Service
from utils.exceptions import ParameterOutOfBounds
class ConstantRate(Service):
"""Constant rate service"""
def __init__(self, rate: float) -> None:
self.rate = rate
def sigma(self, theta=0.0) ->... | [
"nikolaus@cs.uni-kl.de"
] | nikolaus@cs.uni-kl.de |
a68861444e000bbcdbbae9937a8b09291c122dad | ceb23942414751fb5a14b46c6f1d90e40e41cb81 | /Householder Method/QR_decomposition.py | c5dc0bf6d0326de5fe915c9b822a39446c269299 | [
"MIT"
] | permissive | Kshitiz-Jain/Algorithms-1 | fc06cb35b3621ab0efdef6c020109926fe2264eb | 3039428ba48da4872777bc3b15f75447854a9642 | refs/heads/master | 2020-08-04T22:43:31.264046 | 2019-10-02T14:52:09 | 2019-10-02T14:52:09 | 212,302,229 | 0 | 0 | MIT | 2019-10-02T09:36:14 | 2019-10-02T09:36:14 | null | UTF-8 | Python | false | false | 1,466 | py | #Roll no.- Name
#201651007 - Aman Yadav
#201651029 - Mayank Pathela
#201651060 - Anshuman Verma
# Importing needful libraries
import numpy as np
# A function to evaluate Q & R for a given array
def qr(A):
m, n = A.shape
Q = np.eye(m)
for i in range(n - (m == n)):
H = np.eye(m)
# Computing ... | [
"mp.pathela@gmail.com"
] | mp.pathela@gmail.com |
2efc3b8d4f8b6993091cf4bfe85bdb9711ec2a74 | 602ae5fca1a1d25d70cc3e1a84759d0caf124b57 | /Dash Basics/dash_core_components_example.py | a3bf2c3dec79cc947119eba68e52c15102ca1de5 | [] | no_license | harryschaefer93/DashAppPractice | 540f05380575a8afea8f8db2c9f5ef70588ec25f | aa4a144df94a32e55a206d99dd89d431baa77ccf | refs/heads/master | 2023-07-31T22:19:22.413393 | 2021-09-19T21:09:57 | 2021-09-19T21:09:57 | 321,131,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | import dash
import dash_html_components as html
import dash_core_components as dcc
app = dash.Dash()
app.layout = html.Div([
html.Label('Dropdown Component:'),
dcc.Dropdown(
options=[
{'label': 'Houston', 'value': 'HTX'},
{'label': 'Austin', 'value': 'ATX'},
{'la... | [
"harryschaefer1993@gmail.com"
] | harryschaefer1993@gmail.com |
d4a5b1ba6b6f1f3a11524fac579af53d35e04cf7 | b18660ec434f8ebafeb5397690aa1b4c0a1cb528 | /train_ALL_LSTM.py | 528fe8ecf051ad46dbbf40705f292c601be2e094 | [] | no_license | wp0517/pytorch_SRU | 5d46956406c7b64431b736981f4565264ca9aa29 | 96be5b4f4f0b73a4e0532bb18d726655af0fdb50 | refs/heads/master | 2020-04-09T12:06:47.847348 | 2018-06-17T00:53:05 | 2018-06-17T00:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,866 | py | import os
import sys
import torch
import torch.autograd as autograd
import torch.nn.functional as F
import torch.nn.utils as utils
import torch.optim.lr_scheduler as lr_scheduler
import shutil
import random
import hyperparams
import time
torch.manual_seed(hyperparams.seed_num)
random.seed(hyperparams.seed_num)
def tra... | [
"bamtercelboo@163.com"
] | bamtercelboo@163.com |
d1a3470fcaf15ed7dc2b2213d66baa0ad7186f38 | 0102b98c118cdc43dee4c849083bbbe6926512e2 | /lemon/settings.py | 24e03b9667b1bd2e1452344577c762d95ddfc86b | [] | no_license | solen0id/lemon | a201ea8c5822d47ae338bb41fd2d559e4e555c64 | 1bfa241a5ac318bae8e13351b5050d7366fe5241 | refs/heads/master | 2023-04-07T14:45:51.831355 | 2021-04-19T06:42:20 | 2021-04-19T08:35:37 | 359,386,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | """
Django settings for lemon project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib imp... | [
"max.patzelt@legislayer.com"
] | max.patzelt@legislayer.com |
4e42e313b4e8f4517cca59865a67badc6b525b39 | 200df6cda6e54d56a4c800e10e6d5f248d7d59f2 | /02-算法思想/广度优先搜索/778.水位上升的泳池中游泳(H).py | 0d5613ed1b63a75e2a20984da04124b0b0f7e70b | [] | no_license | jh-lau/leetcode_in_python | b9b9a47d0b3ce29c3c56836b39decc3ec4487777 | 1d1876620a55ff88af7bc390cf1a4fd4350d8d16 | refs/heads/master | 2023-04-17T15:01:49.925774 | 2021-04-24T01:17:39 | 2021-04-24T01:17:39 | 192,735,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,600 | py | """
@Author : liujianhan
@Date : 20/9/26 19:31
@Project : leetcode_in_python
@FileName : 778.水位上升的泳池中游泳(H).py
@Description : 在一个 N x N 的坐标方格 grid 中,每一个方格的值 grid[i][j] 表示在位置 (i,j) 的平台高度。
现在开始下雨了。当时间为 t 时,此时雨水导致水池中任意位置的水位为 t 。你可以从一个平台游向四周相邻的任意一个平台,
但是前提是此时水位必须同时淹没这两个平台。假定你可以瞬间移动无... | [
"lorgerd@163.com"
] | lorgerd@163.com |
2bb1e7e593dfb67298aa570a9c0e2c150b0dc54b | d0bd9c3c5539141c74e0eeae2fa6b7b38af84ce2 | /src/cogent3/parse/__init__.py | 7559bc6dcc006e4be1bcd02096d3c56f55fc2512 | [
"BSD-3-Clause"
] | permissive | KaneWh1te/cogent3 | 150c72e2f80a6439de0413b39c4c37c09c9966e3 | 115e9eb5700627fdb24be61441a7e3e155c02c61 | refs/heads/master | 2023-07-29T00:32:03.742351 | 2021-04-20T04:32:00 | 2021-04-20T04:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | #!/usr/bin/env python
__all__ = [
"blast",
"cigar",
"clustal",
"dialign",
"ebi",
"fasta",
"gcg",
"genbank",
"gff",
"locuslink",
"ncbi_taxonomy",
"newick",
"nexus",
"paml",
"paml_matrix",
"phylip",
"rdb",
"record",
"record_finder",
"sequenc... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
9f8c5b37b12ed48e2504be0c4a85627772bf19c6 | f188c8791f10b481c59b064e5632f2b8e6468a15 | /pyhrv/tools.py | cbfc8d21cab829d8db98694990d6728b1c3940bf | [
"BSD-3-Clause"
] | permissive | RuWander/pyhrv | a440b0f0e7bb199718fefcbc6f56a509914f4585 | 61b233e907a0223e2a2bf1a5962ee2e9ae8ed36c | refs/heads/master | 2021-03-27T05:56:17.351755 | 2020-03-17T13:28:39 | 2020-03-17T13:28:39 | 247,793,858 | 0 | 0 | BSD-3-Clause | 2020-03-16T18:55:30 | 2020-03-16T18:55:29 | null | UTF-8 | Python | false | false | 45,737 | py | #!/usr/bin/env python -W ignore::FutureWarning
# -*- coding: utf-8 -*-
"""
pyHRV - Heart Rate Variability Toolbox - Tools
----------------------------------------------
This module provides support tools for HRV analysis such as the computation of HRV relevant data series (NNI, NNI
differences Heart Rate) and
Notes
-... | [
"pgomes92@gmail.com"
] | pgomes92@gmail.com |
41a00bab3f061077909f54d74dc574355af1929d | 1b77eaf078321b1320d72aa36a4357568101e4ca | /江南大学教务处/test.py | 93ac06b18e5699d2285b3f417e63ee409aaa3bec | [] | no_license | BEE-JN/python_homework | 92ffc1216a380d124901fd64cc541f70813847dc | 8ba4ea79cbd422f40e6f9f1cc5fed4d75715d207 | refs/heads/master | 2020-03-23T08:02:47.863607 | 2018-07-17T15:30:21 | 2018-07-17T15:30:21 | 141,305,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import requests
import time
url = "https://survey.zkeycc/pku/xsdc/?dm=bk"
if __name__=='__main__':
while 1:
r=requests.get(url)
print(r.content)
time.sleep(1) | [
"41156190+GCS-CN@users.noreply.github.com"
] | 41156190+GCS-CN@users.noreply.github.com |
3fc886a7c14ade2e0cb83e4bcde5765fa6f76294 | 9144f651ca34ba324270bbcd216c6f8396aa4602 | /pro4_2.py | 56371678cf000e81ff854ba1890b524610a9cdec | [] | no_license | NishantJindal41/guvi3 | 1a26bf132e4c660b287b42e8b538d2496d8468f4 | 3d1ba6626b4684abacbbd0f9c0a3e2d44e88d85c | refs/heads/master | 2020-04-15T06:19:28.831298 | 2019-04-16T16:24:22 | 2019-04-16T16:24:22 | 164,456,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | n, m = map(int, input().split())
A = []
for i in range(n);
A.append(list(map(int,input().split())))
for i in range(len(A));
A[i]=sorted(A[i])
A = [list(i) for i in zip(*x)]
for i in range(len(A));
A[i]=sorted(A[i])
A = [list(i) for i in zip(*A)];
print(A);
}
| [
"noreply@github.com"
] | NishantJindal41.noreply@github.com |
950368a1376a80cc13f1e58217778e6f36f4931f | b5bbbed97f1c52180751cde5cc187158ae98cec3 | /football_api/urls.py | 465ee7a3e2df25f2d2d502b84d4abd6ea0d93e1a | [
"MIT"
] | permissive | king-tomi/total-football-api | d4066fd4005ba71df445edf46ccaead5140fa126 | 39f8efbd8b658a5a2e52458dc594f8354d28da04 | refs/heads/main | 2023-07-18T12:48:17.648402 | 2021-09-07T23:42:42 | 2021-09-07T23:42:42 | 404,150,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | """football_api URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | [
"noreply@github.com"
] | king-tomi.noreply@github.com |
5b3b646c4113d5b24b5038e64dcdf1fcd7ee035b | fa572b453270fd688e91cbed75d488c24b86cb12 | /lists/tests/test_forms.py | 7f7270b28c3a1678dd2f22d5451771c213844173 | [] | no_license | XOyarz/TDD-with-Python | d3bfea9ac4b0391058a6b8b2d759cde8c53e759c | d2350e70cd77691255a667cbff60910b36a30cc3 | refs/heads/master | 2021-01-21T13:26:52.011789 | 2017-09-11T18:39:45 | 2017-09-11T18:39:45 | 102,126,072 | 0 | 1 | null | 2017-09-11T18:39:46 | 2017-09-01T15:19:02 | Python | UTF-8 | Python | false | false | 929 | py | from django.test import TestCase
from lists.forms import ItemForm, EMPTY_ITEM_ERROR
from lists.models import Item, List
class ItemFormTest(TestCase):
def test_form_item_input_has_placeholder_and_css_classes(self):
form = ItemForm()
self.assertIn('placeholder="Enter a to-do item"', form.as_p())
... | [
"xavier982@hotmail.com"
] | xavier982@hotmail.com |
96c1f73d17d18f7906615ca48bc2e2d25d8b7259 | caa06eca3eef2549d5088f6487201f734b35822e | /multi_ie/EE/model/multi_pointer_net.py | 0d2334ed6d7a09e87757e36528cedd3c228713c5 | [] | no_license | kelvincjr/shared | f947353d13e27530ba44ea664e27de51db71a5b6 | 4bc4a12b0ab44c6847a67cbd7639ce3c025f38f8 | refs/heads/master | 2023-06-23T19:38:14.801083 | 2022-05-17T09:45:22 | 2022-05-17T09:45:22 | 141,774,490 | 6 | 1 | null | 2023-06-12T21:30:07 | 2018-07-21T02:22:34 | Python | UTF-8 | Python | false | false | 7,694 | py | # _*_ coding:utf-8 _*_
import warnings
import numpy as np
import torch
import torch.nn as nn
from transformers import BertModel
from transformers import BertPreTrainedModel
from .layernorm import ConditionalLayerNorm
#from utils.data_util import batch_gather
warnings.filterwarnings("ignore")
def batch_gather(data: ... | [
"deco_2004@163.com"
] | deco_2004@163.com |
071cdfa73d8b8928b72c1e5dd2ba4a8ba6f7578c | b7850a5605eea1ab876140e2ab9eea9b5e3b6305 | /ControlFlujo/for.py | 80c2c78706b7c7dc8c074f7ee4798cbe2b99f7a3 | [] | no_license | lagarridom/PythonSemestral19_1 | db37159983f842a2310f676e167f877fe93c6706 | aad25b1a84822f52796f5faed251a62037a04c3a | refs/heads/master | 2020-03-27T06:34:45.149558 | 2018-10-17T02:37:05 | 2018-10-17T02:37:05 | 146,116,479 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #10.-
"""
for ITERADOR in ITERABLE:
instrucciones
"""
for i in [10, 20, 30, 40, 50]:
print(i)
nombres = ["luis", "pato", "gabriel"]
for nom in nombres:
print("El es"+nom)
for elemento in ("cadena", 3, 3.4, True):
print(type(elemento))
diccionario = {"lunes":"pollo","martes":"pescado","miercoles":"carne"}
for... | [
"noreply@github.com"
] | lagarridom.noreply@github.com |
b865fa83e9b8e72b08e144110aa75b200cf807d4 | 7ec04fc867d0a48fffc05c65bff9217cfe211fe7 | /HW/统计字符串/countHotal.py | 31f95d4500041b28fa209a1a7c4dae778ad024c5 | [] | no_license | Cherry93/pythonPractic | 3b9d1f99803503073bbb2f3a58009665338bd278 | 2889183af6c9a01ab47895b23e2d6ce8c288fd4d | refs/heads/master | 2021-08-31T16:41:56.655989 | 2017-12-22T03:53:18 | 2017-12-22T03:53:18 | 115,008,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | '''
统计加州旅馆中所有单词出现的次数,并降序打印
'''
import collections
file = input("Enter a filename:")
with open(file, 'r') as fpr:
content = fpr.read()
content = content.replace("\n", '')
content1 = content.split()
print(content1)
print(content1[0].lower())
print(len(content1))
list =[]
for i in range(0,len(content1)):
list.a... | [
"358544104@qq.com"
] | 358544104@qq.com |
20f38bed70c1832fcabd62c4095639a2b179b570 | 2b63c99eaa0c4866e5ea956ab0c5207b01ce6c0f | /bin/easy_install-3.2 | 2753b93978d3263f58bff7abb72623f52d4505d4 | [] | no_license | raspicamproject/raspi-python | 6f55b7c989e6f98d16a06f2f3b245f296af5d2a4 | 42380d47fb7974b63f21f56bb1093c246074ed76 | refs/heads/master | 2021-01-15T11:25:38.106055 | 2015-03-19T16:05:43 | 2015-03-19T16:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | 2 | #!/home/pi/raspi-cam/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'distribute==0.6.24','console_scripts','easy_install-3.2'
__requires__ = 'distribute==0.6.24'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('distribute==0.6.24', 'console_scripts', 'e... | [
"lebras.simon@gmail.com"
] | lebras.simon@gmail.com |
18cbb1000278e07122b15b44881c258ca0146e5d | 2ec96d507e800a8c669b1507a1bfc7b5aee697ac | /test/test_logging.py | b32bd591ce2603f9644f63853170ceb6f57d3feb | [
"Apache-2.0"
] | permissive | leizhen10000/rainbrow | 719e83ac3702d6b2309c15bd26d4d4c5e49be199 | 6a61ed3550e9fc6d2ff48eb49fed0fb81f4a41c9 | refs/heads/master | 2020-03-19T04:57:47.181019 | 2019-07-09T10:02:40 | 2019-07-09T10:02:40 | 79,789,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# @Time : 2019-07-03 17:58
# @Author : Lei Zhen
# @Contract: leizhen8080@gmail.com
# @File : test_logging.py
# @Software: PyCharm
# code is far away from bugs with the god animal protecting
I love animals. They taste delicious.
┏┓ ┏┓
... | [
"leizhen8080@gmail.com"
] | leizhen8080@gmail.com |
2ad49bb329c46561a59ca0a5e8fdb28c2b53c900 | 3f5d387b70ba0c828d9ebe30e6100d8837466b64 | /FWUploadThread.py | c431d49b7e06187157e6520f7824eba4c7f76789 | [
"MIT"
] | permissive | CsVance82/WIZnet-S2E-Tool-GUI | 502eb04841549ff2ad3eeeabe5f3dccb4c6aa9d8 | 6cadde2c3b37bd3eb403e56e61675ee44e884c5b | refs/heads/master | 2020-03-15T02:53:17.775896 | 2018-04-29T23:38:07 | 2018-04-29T23:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,386 | py | #!/usr/bin/python
import re
import sys
import io
import time
import logging
import threading
import getopt
import os
import subprocess
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger()
import binascii
from WIZMSGHandler import WIZMSGHandler
from WIZUDPSock import WIZUDPSock
from wizsocket.TCPClien... | [
"kyi8907@gmail.com"
] | kyi8907@gmail.com |
c7eee2a22a1efb7ddb4b5278189a0424acae6d63 | 14ebcf98e7c64505839e0b7bbab89e32af7abe1e | /deep4rec/datasets/census.py | 4d58743074fe1b8d1eb3004a4a18b2d8469a1f62 | [
"Apache-2.0"
] | permissive | Luiz-FS/Deep4Rec | b021fbc36e377e1055e46e9a52f68c32018894f8 | 78c5ca74f0e0d06a9f4bb2f267817b69abd40d1d | refs/heads/master | 2020-09-03T14:27:45.828007 | 2019-11-18T01:10:30 | 2019-11-18T01:10:30 | 219,484,411 | 0 | 0 | Apache-2.0 | 2019-11-18T01:10:31 | 2019-11-04T11:22:00 | Python | UTF-8 | Python | false | false | 6,110 | py | # Copyright 2017 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... | [
"mariannelinharesm@gmail.com"
] | mariannelinharesm@gmail.com |
090808a81f4df895399f7bf0cacf2ebba9dc778e | dac7095e7b5ad4dae993871c1ae45cbb7a5ce5f7 | /Character/14.Yashiro/Re/Yashiro_C.py | 2c0cd5afc2266f92fa0884ed0406cc049d41656d | [] | no_license | Lastation/RenewalAniChaos | d12a8423f4b83cb019495c59ed059451e67e0483 | c3edb29af58925de55c11110ccaf927d2b5d1b39 | refs/heads/master | 2023-08-24T11:28:35.614844 | 2023-08-22T21:23:14 | 2023-08-22T21:23:14 | 246,617,812 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | import variable as v;
import func.trig as trg;
function main(playerID)
{
if (v.P_WaitMain[playerID] == 0)
{
if (v.P_CountMain[playerID] == 0)
{
KillUnitAt(All, " Creep. Dunkelheit", "Anywhere", playerID);
if (v.P_LoopMain[playerID] < 2)
{
var d = 0;
... | [
"aaiiiho@gmail.com"
] | aaiiiho@gmail.com |
b0dd12f359d47826a34ff45e3eec933fcad07418 | b9bd74516dc0f24d336f35b14780a171030ea529 | /18.随机森林算法.py | ba4d7db1198edb81bfe134670e0a5c5bf50c3801 | [] | no_license | DataIsStrength/scikit-learn | 814326c03743cacb62b68bb5cfda8e4e75b2fe09 | 2d581032404f67ad628da75a64c1cba514b77bf7 | refs/heads/main | 2023-08-29T07:47:28.600815 | 2021-10-30T14:29:26 | 2021-10-30T14:29:26 | 422,897,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | # -*- coding: utf-8 -*-
"""
随机森林算法
"""
'''
1.随机森林:
随机森林是包含多个决策树的分类器,其输出的类别是由个别树输出的类别的众数而定。
例如,训练了5个树,其中4个树结果是True,1个数结果False,那么最终结果就是True。
2.Bootstrap抽样:
即随机有放回抽样,是一种重抽样的方法,为了形成随机森林的多个决策树,
要采用Bootstrap抽样,具体过程如下:
①抽取样本:在N个样本中Bootstrap抽取N个,形成一个树的训练数据集。
②选择特征:如果一共有M个特征,则选择m个来训练决策树,m<<M,这样的好处是可以降维。
'''
impo... | [
"noreply@github.com"
] | DataIsStrength.noreply@github.com |
ca7766b7e9d85b36afe08c3d90244d6b446ff5e9 | 99d3d6132908841edcbc9deec3f590b0e9eba5b6 | /venvpip/bin/macho_standalone | 14da32f6ac9d00114ceb371da83895ecd90dbe2a | [] | no_license | nataliawcislo/cutvideo | 7979066b6ee146d78308832e137dbe0028ccca11 | 66401b15bff3a7e6a01d8eb2d7e308b8bd04d302 | refs/heads/main | 2023-07-28T07:05:06.709878 | 2021-09-14T13:37:08 | 2021-09-14T13:37:08 | 391,267,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/Users/natalka/PycharmProjects/cutvideo/venvpip/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from macholib.macho_standalone import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"wcislonatalia1998@gmail.com"
] | wcislonatalia1998@gmail.com | |
ed42e42af0566b7f01fc67a855eb8e7c557d20a2 | 588de5142e35002b618c5777751f141c075be8fd | /hourofci/hourofci_widgets.py | 2b89a07e5c04fda80ff9b97562caa96a587a59f7 | [] | no_license | IrisZhiweiYan/test_hourofci | 5464035164f4657351c70bc81dfd52694ccd9096 | a4371f88fcd091ae939655da5087b1010a7795f9 | refs/heads/master | 2021-07-14T01:22:27.932172 | 2020-11-09T05:40:27 | 2020-11-09T05:40:27 | 219,059,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | from hourofci import *
from .buttons import button
# import buttons
# CHANGE in v2: pass the answer catalog in the notebook to the widget function
def IntSlider(question, hash_answer_catalog):
# start_time = time.time()
int_range = widgets.IntSlider()
display(int_range)
value = 10
# Iris: wher... | [
"irisgogo.yan@gmail.com"
] | irisgogo.yan@gmail.com |
7d3e8a94ef63a6dd931ce66016c56a243fb7a2e9 | 7a402c6bb3887af56ff8609453ef926fa41291a5 | /LightGBMwithSImpleFeatures.py | ebcffd5eb8005c9fe27613e44bc60d7577bc6206 | [] | no_license | lizihaoleo/home-credit-default-risk | cdcfe2ee7768b553205f3121a946535122b8626b | 1a9f8d3ab107f8b3ed59634db71382f4965ecb0b | refs/heads/master | 2021-10-18T05:27:36.397640 | 2019-02-14T03:54:31 | 2019-02-14T03:54:31 | 170,621,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,019 | py | # HOME CREDIT DEFAULT RISK COMPETITION
# Most features are created by applying min, max, mean, sum and var functions to grouped tables.
# Little feature selection is done and overfitting might be a problem since many features are related.
# The following key ideas were used:
# - Divide or subtract important features t... | [
"lizihaoleo@gmail.com"
] | lizihaoleo@gmail.com |
66768fa558987437e75dd0b92ce3c1a561c04efb | b9650416b09de5ca8f4063a066e56586060f1cf0 | /Tutorial29/tutorial29.py | 27ebdb2a5c415b4b27e6a0505715c2550d1b34f9 | [] | no_license | giova0/cursopython | e0ef2f4edacab706ed896df5b8b22fdc3e9f1b23 | 19790bb6f82dcae80d10df9f5d84df85ae4fea54 | refs/heads/master | 2023-02-21T10:44:51.597349 | 2021-01-26T00:35:02 | 2021-01-26T00:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | #import modulo
from modulo import *
suma(8,9)
resta(4,5)
multiplicacion(6,7)
input() | [
"jesusjppr@gmail.com"
] | jesusjppr@gmail.com |
215ae356baf15b509dbf0205fdc664d254fcde92 | 09fbe030de6322ab7d141276fc1f8019cc1604e5 | /migrations/versions/1da835fbb866_season_model.py | 9bdfea12529d693c6a23bdc367ef38e0eb5d0bd2 | [] | no_license | cpkm/darts-site | 0f2dece8c563adfa67f85031d0a99ac947e1508a | 1be939ffe8ba2e58e093adac81993aa19079d1e1 | refs/heads/master | 2022-12-10T00:30:09.173821 | 2021-11-24T01:43:03 | 2021-11-24T01:43:03 | 158,226,996 | 0 | 2 | null | 2022-12-08T01:22:29 | 2018-11-19T13:24:05 | Python | UTF-8 | Python | false | false | 1,492 | py | """season model
Revision ID: 1da835fbb866
Revises: 8689d43c428c
Create Date: 2018-11-27 16:58:53.743252
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1da835fbb866'
down_revision = '8689d43c428c'
branch_labels = None
depends_on = None
def upgrade():
# #... | [
"20861192+cpkm@users.noreply.github.com"
] | 20861192+cpkm@users.noreply.github.com |
cd71c189fbf967e745e42e3248c4421abdfecb06 | 8b2be934a63fee5e542bb818e81d1452b31d0ecc | /Candidate_models/final_rnn.py | d18abffcc2c1e35e0e6a9f67ccb9f5d595851a7b | [] | no_license | Danny1379/Computational_intelligence_final_project_NLP | 06cde2ce40c795c57eb0f31235a9ffc98178e7fa | 7c8dc7b69e2f8458959c44b8b1a1e16be300651e | refs/heads/main | 2023-05-14T09:23:13.328895 | 2021-06-01T11:08:50 | 2021-06-01T11:08:50 | 338,410,556 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,850 | py | import numpy as np
import sklearn as sk
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.preprocessing import OneHotEncoder
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.linear_model import SGDClassifie... | [
"noreply@github.com"
] | Danny1379.noreply@github.com |
098f5bd193fa7c2e62926d0e9b70554529503192 | 1d218b6af654a77aa8a3592e40f93fbc4f584319 | /cirq-core/cirq/sim/act_on_state_vector_args.py | 07f86b370d922667fa62ff5ea2779f0a32ba82d1 | [
"Apache-2.0"
] | permissive | eendebakpt/Cirq | dcf2d15781aea201760b37140ab1505ef570ee1c | f8ffbea1b68b483f8dc716781f2c514a02aa765e | refs/heads/master | 2023-08-30T10:30:41.653293 | 2021-09-23T19:01:32 | 2021-09-23T19:01:32 | 409,719,785 | 0 | 0 | Apache-2.0 | 2021-09-23T19:29:17 | 2021-09-23T19:29:16 | null | UTF-8 | Python | false | false | 13,551 | py | # Copyright 2018 The Cirq Developers
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | eendebakpt.noreply@github.com |
bcfcfd42d82934ef66bd39ecc5139583c6a927df | f62ff90d7850af458d8f12386fc9ee9134dbe7c1 | /Plots/Showplots/Model_3/Current_Voltage_Curves.py | 2d9023dab4df536df56c4202551adad30523eb73 | [] | no_license | AlexSchmid22191/EIS_R_Sim | 51b431f078cb455fc38637c192436c0523449565 | 851b061e60811e1e58a5b2fd4e393e529c3f86ac | refs/heads/master | 2023-06-27T17:40:59.177270 | 2021-07-22T11:50:27 | 2021-07-22T11:50:27 | 380,768,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | from matplotlib.pyplot import subplots, show
from matplotlib.style import use
from numpy import load, log10
use('../Show.mplstyle')
data = load('../../../Currents_Resistances_Model_3/Current_Data_Model_3.npy')
fig_hi, ax_hi = subplots(nrows=2, figsize=(6, 8))
fig_me, ax_me = subplots(nrows=2, figsize=(6, 8))
fig_lo,... | [
"Alex.Schmid91@gmail.com"
] | Alex.Schmid91@gmail.com |
357383ee731f6f3e548ae395bba056b0b0a71aeb | 9acbda554a136235ef2f605281ec39e6c6d8cd63 | /billman/settings.py | 7b47311e624aa21bf2d35d7e64239afeefdaf76a | [] | no_license | arpheno/billman | 23dfa9d6b05ce022ec8b2165c6e5bdf2dad51d91 | 11b6d9386d4e450f75b9c809a48626b2379a39eb | refs/heads/master | 2020-04-10T09:22:55.242570 | 2014-06-07T17:37:51 | 2014-06-07T17:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | """
Django settings for billman project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
im... | [
"ciupakm@gmail.com"
] | ciupakm@gmail.com |
9435b62b274dd42e74992cca64e569aa33c081d9 | 00adb3ceec4e37f8384f575d2711a27ca94327bb | /solutions/836_Rectangle_Overlap/solution_arsho.py | 9cc8700ed4892cd4bd78dee1949d0945fb8ad33a | [] | no_license | arsho/leetcode | 8c7d40de5a2579f06c58474540d704aaae41d81a | 55d52f7b150968ce348782ca30e573ae1cf1bd53 | refs/heads/master | 2023-01-23T20:46:00.859736 | 2023-01-22T15:55:18 | 2023-01-22T15:55:18 | 123,886,220 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | """
Title : 836. Rectangle Overlap
Category : Math
URL : https://leetcode.com/problems/rectangle-overlap/
Author : arsho
Created : 23 March 2021
"""
from typing import List
class Solution:
def isRectangleOverlap(self, rect1: List[int], rect2: List[int]) -> bool:
x_distance = min(rect1[2], ... | [
"shahariarrabby@gmail.com"
] | shahariarrabby@gmail.com |
c3589908c3d02252488818d8c7ea24447f365be5 | af0d9efc37cc79b170cafcee1a5044588167761c | /clean.py | 0dc4360098b244e5377974c16aec64899d8bb40d | [] | no_license | AcmeCleanPower/HRSLToolkit | 41ba3a817bc5dfb59bdb1bca32def61effbc3902 | 4b5144c775b6bb7292dfec132eabc839cc9c7374 | refs/heads/master | 2021-01-18T20:04:18.656066 | 2017-04-07T20:43:14 | 2017-04-07T20:43:14 | 86,934,250 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
from skimage import morphology
from skimage.external import tifffile as tif
# borrowed from tiff_tools.py
def read_array_from_tiff(fin, band=1):
tiff = gdal.Open(fin)
return np.array(tiff.GetRasterBand(band).ReadAsArray())
def med_filter(mr... | [
"stephen.s.c.chan@gmail.com"
] | stephen.s.c.chan@gmail.com |
44c995550d05f889cc581a0508223c1b95b5eb2d | f3075dd8f88e2d1d3c6ee350098d7bd42238b92c | /naver_map/naver_gigye.py | 1441572bc7711d0e83c1a8ca27bc707c1bafb40c | [] | no_license | jjjjooonno/kmong | 8257a208918b947569d8868605051c7c801f5fa6 | 6a38f5fa4ff031602c70c6ed925fa3abdb6af38d | refs/heads/master | 2020-03-28T22:19:48.693145 | 2018-09-18T03:35:39 | 2018-09-18T03:35:39 | 149,224,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | from selenium import webdriver
from bs4 import BeautifulSoup
from pandas import *
import time
import re
dt = read_excel('행정구역코드(법정동코드)_전체본.xls',0)
dt_dong = dt['법정동명']
dt_dong_new = []
for i in dt_dong:
if i[-1] == '동':
dt_dong_new.append(i)
query = []
for i in dt_dong_new:
query.append(i+' 제조업 > 기계, 장... | [
"jjjjooonno@gmail.com"
] | jjjjooonno@gmail.com |
e469b1c0df202afbdf63411ba8abdbd4527e1190 | 493f99b210303d019f62195ae8dde9d02ee1b81f | /indy_node/test/api/test_rich_schema_objects_reply.py | 56dbda7791bdd23e1fda9ccddcde4b9f7330077d | [
"Apache-2.0"
] | permissive | darklordz-217/indy-node | 745baa357fe739bac20433cb2daa0f7c5a2f2caf | 4d2f6a9dc0ff136117f8766a4f2cf70b239404e0 | refs/heads/master | 2022-10-06T17:01:12.414734 | 2020-06-11T08:49:17 | 2020-06-11T08:49:17 | 271,472,931 | 2 | 0 | Apache-2.0 | 2020-06-11T09:04:23 | 2020-06-11T06:48:21 | Python | UTF-8 | Python | false | false | 2,499 | py | import json
import pytest
from indy_common.constants import JSON_LD_CONTEXT, RS_CONTEXT_TYPE_VALUE, RICH_SCHEMA, RICH_SCHEMA_ENCODING, \
RICH_SCHEMA_MAPPING, RICH_SCHEMA_CRED_DEF, RS_CRED_DEF_TYPE_VALUE, RS_MAPPING_TYPE_VALUE, \
RS_ENCODING_TYPE_VALUE, RS_SCHEMA_TYPE_VALUE, RICH_SCHEMA_PRES_DEF, RS_PRES_DEF_T... | [
"alexander.sherbakov@dsr-corporation.com"
] | alexander.sherbakov@dsr-corporation.com |
f6eee75f1210f4f5852d81892eb4e17c12279a21 | f7dc26779dd5491480b3e88fa1ab38eee99eacad | /third-party-synthetic/third-party-tester/tests/testdefinitions/ping_test.py | d2e1480b1f6af85bfd054fced4bfae7b7be55a4f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | Dynatrace/dynatrace-api | 13e068a17c08f0e7609438c043066ff4dc6b9357 | 5d85759bbead72dc708581979987c41912393410 | refs/heads/master | 2023-08-11T13:46:46.051080 | 2023-07-24T13:33:50 | 2023-07-24T13:33:50 | 45,841,623 | 99 | 87 | BSD-3-Clause | 2023-07-08T22:51:18 | 2015-11-09T14:04:12 | Python | UTF-8 | Python | false | false | 2,810 | py | import os
from tests import Test, TestStep, TestArgument
from datetime import timedelta
import pings
class PingTest(Test):
"""Ping test class.
It measures the time needed for a single ICMP probe to check server
availability.
"""
TEST_NAME = 'ping'
TEST_HELP_DESCRIPTION = "Test if given hos... | [
"pawel.nalezyty@dynatrace.com"
] | pawel.nalezyty@dynatrace.com |
1b2d9640e14054aa031bb6464300d7d9f16da3d7 | 14da21d280a8508de934a68508612af36b42c43c | /mysite/text/migrations/backup/0017_auto_20200714_1701.py | 435eeb64ccf5c4e3f0f3a106b2040fe4d5469db4 | [] | no_license | Shoupinglianginnolux/textmining | dd8bc2e2d5c8ea576fffb8c197f6bcffa64272e1 | c811589c5d675f65a6211aec1df5d408ca1bd98c | refs/heads/main | 2023-08-07T12:52:05.709080 | 2021-10-01T07:07:20 | 2021-10-01T07:07:20 | 412,362,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | # Generated by Django 3.0.4 on 2020-07-14 17:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('text', '0016_auto_20200713_1111'),
]
operations = [
migrations.CreateModel(
name='TMPSRQ',
fields=[
... | [
"shouping.liang@innolux.com"
] | shouping.liang@innolux.com |
0316e5d65124316a03b71cca0c7a19fb8a058d61 | eaf2c1331eeef64d276d7d77127191a0b7ac6908 | /home/models.py | a8f4e4b4114e33c3a14700d090085fb9619d7358 | [] | no_license | anubhavsrwn/Basic-Django-App | 9378d9244bc34437498c7792646d0fe933e5c40a | de6ccdb378927b35c6c7b916c80290f4d573ea69 | refs/heads/master | 2023-06-26T21:39:20.879087 | 2021-07-20T08:33:40 | 2021-07-20T08:33:40 | 387,726,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from django.db import models
# Create your models here.
class Contact(models.Model):
name = models.CharField(max_length=122)
email = models.CharField(max_length=122)
phone = models.CharField(max_length=12)
desc = models.TextField()
date = models.DateField()
| [
"anubhav.s@technovert.net"
] | anubhav.s@technovert.net |
65d5f34158a47d8bcadc80486e61ebf04640a721 | 2e2ecaaace5bcc70ccfad103ddb3692db82ec655 | /django/background_scripts/microsoft/get_utilization.py | 0c87906410b428638748f0f7ee6e6701ca43fa35 | [] | no_license | RobertRajcool/Angular4-Django | 32f3d24c4dbbc42abe671fd65fe98637834a388b | 4424e25f6d9f982d682d13ae0e620dd0a01348a7 | refs/heads/master | 2021-07-10T17:53:36.222339 | 2017-10-10T10:17:56 | 2017-10-10T10:17:56 | 104,564,564 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 15,536 | py | from decimal import Decimal
from . import microsoft_base
from redington import settings
from cloudtemplates.models import CloudRates
from billing.models import CloudServiceConsumptions
from customers.models import Customers, CloudAccounts
from products.models import Products, VendorDetails
from django.db.models import... | [
"doss.cclawrance226@gmail.com"
] | doss.cclawrance226@gmail.com |
8fcbe2dc5cae2f366d06acf5e7f587d9893d8b85 | 7e181f4925d24c95924920647a8d007f6a609821 | /venv/bin/django-admin.py | 7aded3eddca9f1de5217af11ebfb2746615b12e1 | [] | no_license | Tamim101/portfolio-update | af76cd1db34d4c57658f39b032c40689ad5afe8c | bf52a72eb45c485cad578ef2a81536d8827899dc | refs/heads/master | 2023-04-23T03:47:14.815150 | 2021-05-02T04:29:11 | 2021-05-02T04:29:11 | 363,565,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | #!/Users/mujahid/Documents/Django/Personal_Portfolio_/My_Personal_Portfolio/venv/bin/python
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportErr... | [
"tamimkhan7133@gmail.com"
] | tamimkhan7133@gmail.com |
1026e1d0f5add5bf40edc076405f2e409f26c5ce | 2f2682f778512a75a1ff49d7e267c2f4d355c48e | /geoprocess/controllers.py | 7be119b34c9b20b609770261e464a475b5996a9b | [] | no_license | beatcovid/geoprocess | 4a44f46b900c2e0ffed0dab18008e7884e759e3b | c2a7b1e4ede06583679db9dadebe2066b0274e54 | refs/heads/master | 2023-04-13T13:45:48.572825 | 2020-05-27T03:08:14 | 2020-05-27T03:08:14 | 260,215,049 | 0 | 1 | null | 2023-03-29T00:36:19 | 2020-04-30T13:11:38 | Python | UTF-8 | Python | false | false | 4,538 | py | import csv
import email.utils
import json
import logging
import os
import sys
from datetime import datetime
from pprint import pprint
from dotenv import load_dotenv
from pymongo import MongoClient
from geoprocess.find_psma import find_lga, find_sa3
from geoprocess.google_geo import google_geocode, lookup_placeid, pla... | [
"nc9@protonmail.com"
] | nc9@protonmail.com |
3d037302f28cf01673df247c203d6585ef894a16 | b7a03c36c8f7d95d7cac3628f7c9d4834f33b2b9 | /week6_EDA_streamlit/day1_streamlit/streamlit_class/utils/dataframes.py | 8761c1b955c376c140a4d4f4ee5bc17d670bef0f | [
"MIT"
] | permissive | Jasc94/thebridge | dcca51d2d9aef7044f87795025678cb4340fb109 | e194e7f5948dc52bc62fc06bd4ae58a031d3aa7a | refs/heads/main | 2023-07-16T04:12:37.673222 | 2021-08-16T16:00:04 | 2021-08-16T16:00:04 | 361,670,388 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | import streamlit as st
import pandas as pd
def get_data_from_df(df):
selected_values = df.iloc[:10,:].values
return str(selected_values)
@st.cache(suppress_st_warning=True)
def load_csv_df(uploaded_file):
df = None
if uploaded_file != None:
#uploaded_file.seek(0)
df = pd.rea... | [
"jonathansuarezcaceres@gmail.com"
] | jonathansuarezcaceres@gmail.com |
d6e158a754d97f4f5e0dedfbf9ad93d4b43e0abe | ec28e7f3290069451ec8889efa4e22b5930979c0 | /strategery/engine.py | c9ee8a83a5a9f31f423dbb23634a73f29cba5401 | [
"MIT"
] | permissive | rcgale/strategery | e226c0deb53a8ff35aa32a25b963807ffc98859f | d1608ea59587d7e49db0bdf788e3243d4d42081a | refs/heads/master | 2021-06-23T16:06:45.218568 | 2021-03-06T01:42:15 | 2021-03-06T01:42:15 | 206,894,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | import inspect
import sys
import time
from functools import lru_cache
from strategery.exceptions import TaskError, StrategyError
from strategery.logging import BypassLogger
from strategery.strategy import get_strategy
from strategery.tasks import Task, get_key
logger = None
def execute(*args, targets, input=None, pr... | [
"galer@ohsu.edu"
] | galer@ohsu.edu |
0342556411170d9d8108b8c277f1ca7f02dc2409 | 45e8df26d895fce1ffced77e2fc7c87aa5fcec71 | /leetcode/python-sol/301.Remove_Invalid_Parentheses.py | 6bcb271d66e2d15f39cc41fe7eb7f82c787062cb | [] | no_license | mikehung/competitive-programming | 5c4b429942357bfbe3c8ff2820d5cb5b7c5dc828 | 50713dc5973f2ea42220ac0248c3d1a6d90fcc15 | refs/heads/master | 2021-06-20T08:21:36.837057 | 2021-01-01T01:29:56 | 2021-01-01T01:31:55 | 153,595,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | class Solution:
def removeInvalidParentheses(self, s):
def valid(s):
left = 0
for c in s:
if c == '(':
left += 1
elif c == ')':
left -= 1
if left < 0:
return False
... | [
"mikehung@synology.com"
] | mikehung@synology.com |
31740dec5203fccc5a4171d951f24d5a9e15aa2a | 59a4a6b9a18778566307af6a281d86c3f79531e0 | /Trening/TreningDjango/asgi.py | 644eee76517ec9b2d15360ca1ad815b2860e5354 | [] | no_license | Kasuczi/WebDev-Back-End | d8448ee2ed052518d95d54953f2672e19d997ea7 | f3759fbd11d4d572fb6cf960d59dbd6e84692f8f | refs/heads/master | 2021-05-26T03:49:11.889975 | 2020-04-08T09:19:11 | 2020-04-08T09:19:11 | 254,039,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for TreningDjango project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"janikowski.mateusz96@gmail.com"
] | janikowski.mateusz96@gmail.com |
2d0368b80dbcb9c47412bfcb2b774d5f053f1fb7 | aea6cb6ab25a288d9a7143d54523d63aee0d67d9 | /alien_invasion/alien.py | 0f3173b69a5052510f6efacd2f79a6ddfb1e8ba0 | [] | no_license | ivanozz/python-crash-course | 13f8fbb00effa37dd513ded6d9d12539af516293 | dd889759275c24bddb2ba55c3c4a86af917781a0 | refs/heads/master | 2021-05-11T01:02:04.620160 | 2018-02-12T17:33:24 | 2018-02-12T17:33:24 | 118,316,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | import pygame
from pygame.sprite import Sprite
class Alien(Sprite):
"""Класс представляющий одного пришельца"""
def __init__(self, ai_settings, screen):
"""Инициализирует пришельца и задает его начальную позицию"""
super(Alien, self).__init__()
self.screen = screen
self.ai_set... | [
"iva1989@icloud.com"
] | iva1989@icloud.com |
61dea01dd75ab8c90bcab212f1a036edbc2ab457 | 2bebcab2997a08695378d798ffb196d49ad1b846 | /orders/migrations/0010_auto_20200826_1214.py | e324a93b00264f69ef948c91908114bec10504d1 | [] | no_license | lit-lucy/Pizza-orders | 739049825ac9af266d23b2d2a2af53236b1c728b | 46b5c5aa2bb5e3d5f7c5901f9c06ccec12c8c0d0 | refs/heads/master | 2023-05-31T19:10:42.206173 | 2020-09-04T09:42:49 | 2020-09-04T09:42:49 | 272,914,438 | 0 | 0 | null | 2021-06-10T23:03:50 | 2020-06-17T08:03:56 | Python | UTF-8 | Python | false | false | 432 | py | # Generated by Django 3.0.7 on 2020-08-26 12:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0009_auto_20200826_1027'),
]
operations = [
migrations.AlterField(
model_name='order',
name='delivery_type... | [
"love@MacBook-Pro.local"
] | love@MacBook-Pro.local |
26ab05607c4b32f1e825bba9fc453b0a897db9b6 | cdf9bba82c5e42758664e1eeb3e157340c29c500 | /generator/test.py | b9f9245ed294e3d2fa2ce52879a97137638525f9 | [] | no_license | mex3/fizmat-a | ce2802035dd045fcf0f6bfe8d6388ed88c6c2af5 | be90332a518f0c3b2113dd967a63f4a056f937ab | refs/heads/master | 2021-01-21T13:41:35.050273 | 2016-05-14T12:13:16 | 2016-05-14T12:13:16 | 55,837,428 | 1 | 4 | null | 2016-05-14T12:12:24 | 2016-04-09T09:59:23 | Python | UTF-8 | Python | false | false | 82 | py | inputq = open('test.txt', 'r')
s=inputq.readline()
print (s)
ss=input()
print(ss) | [
"gurovic@gmail.com"
] | gurovic@gmail.com |
690fe2ffb43edf1febae8410ba150129ce00cce0 | 3419067388879d8a6542df01cb0278ae90b021a2 | /py100day/Day01-15/Day04/code/for2.py | 22c96886304fa47ecee9b5c39f3f60d9a36a21f1 | [] | no_license | oweson/python-river-master | faa31c5248e297a92054cc302e213e2b37fb8bd5 | cf9e99e611311b712465eb11dec4bb8f712929b2 | refs/heads/master | 2021-06-21T15:47:01.755957 | 2019-10-02T00:08:05 | 2019-10-02T00:08:05 | 205,607,518 | 0 | 0 | null | 2021-06-10T21:55:20 | 2019-08-31T23:39:55 | Python | UTF-8 | Python | false | false | 173 | py | """
用for循环实现1~100之间的偶数求和
Version: 0.1
Author: 骆昊
Date: 2018-03-01
"""
# 步长是2
sum = 0
for x in range(2, 101, 2):
sum += x
print(sum)
| [
"570347720@qq.com"
] | 570347720@qq.com |
112ec58a217bf533202e32fa348ec43b73761ded | f396b2690b62c74dfa6a58a619c9f64828d4cf84 | /TreningDjango/news/migrations/0002_alter_post_slug.py | 00f42b3df82c567631c5fcfaec9191d44eb476b7 | [] | no_license | bart-son/home-budget | 7daf7bd56f9bf819e4777a1d1f1588b433df545c | ef9721a099dc55750c42b1437762bb3b206f53c1 | refs/heads/master | 2023-05-04T23:35:15.796553 | 2021-05-29T07:42:52 | 2021-05-29T07:42:52 | 371,912,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.2 on 2021-04-11 12:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='post',
name='slug',
field=mode... | [
"bartosz.kwiatk@gmail.com"
] | bartosz.kwiatk@gmail.com |
582bb899d0407eb2070b66f080e8e55395136ae0 | 5d9d88881abd73cc841f1bc3a523ebbb1c46f6b4 | /DeepTrainer/DeepTrainer/state_tracker.py | 59f2d525260bf2d1f5fd428196ae7cf7a51ea89f | [] | no_license | zhuMingXu/CarSimRL | 3f6e92d73a6eacc9fc311bc5c71e6e909fe79335 | bcbb7654f1b68b00edb00ccd6d1480a7db9e6598 | refs/heads/master | 2022-04-13T14:04:56.596481 | 2017-02-15T11:57:03 | 2017-02-15T11:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,872 | py | # -*- coding: utf-8 -*-
import constants as CONST
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
class StateTracker():
def __init__(self):
#keeping track of oldest state so I can remove it
#before inserting the most recent state
self.frame_histo... | [
"joshua.d.patterson1@gmail.com"
] | joshua.d.patterson1@gmail.com |
c0bccab0f33fe2f6323731cddd1742ba4d45275c | aa410a95773aeea73e75f0e701db5cdc0eda890b | /weapons.py | cf6e4eb05ba6ad8a453e07637018051ed6eac5f8 | [] | no_license | predominant/zombsole | ccc00893b7739c5341c43fc28375415fa628b885 | a04ff40a144cb1f63d8aa29ccf0b06ecccc2bc7f | refs/heads/master | 2021-01-21T19:29:05.322551 | 2014-03-26T05:38:15 | 2014-03-26T05:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # coding: utf-8
from core import Weapon
def _new_weapon_class(name, max_range, damage_range):
'''Create new weapon class.'''
class NewWeapon(Weapon):
def __init__(self):
super(NewWeapon, self).__init__(name,
max_range,
... | [
"fisadev@gmail.com"
] | fisadev@gmail.com |
36e68501df2d8e58be3d3faf5755ed0cc380b628 | 854660b48f63711489eabd96a6d3cbf69f4c1144 | /CodingBat/WarmUp1/diff21/diff21.py | 1ccef4bbbe8437264f4935a8c30561a58a224abf | [] | no_license | SametSahin10/CodingBat-Exercises | c9727e7d38defeb927d3684263d0d7655b8d8afa | e7371a8b8c71706872c8ba7a0d140d19e7ce20dc | refs/heads/master | 2021-05-10T09:12:21.039238 | 2018-03-05T20:05:54 | 2018-03-05T20:05:54 | 118,917,328 | 2 | 0 | null | 2018-03-05T20:05:55 | 2018-01-25T13:38:52 | Java | UTF-8 | Python | false | false | 92 | py | def diff21(n):
if(n > 21):
return abs(n-21) * 2
else:
return abs(n-21)
| [
"enesdemirag1@hotmail.com"
] | enesdemirag1@hotmail.com |
8652d45d2d668f0a709c1b4574844c3bdb0bca45 | e7e4943e67db51791de9f0dbd302a1e6bf6e7446 | /Prism_RayTracing.py | 6d3a97582d0740e14cc88a6a871a1655fb4c8a2d | [] | no_license | benchizhao/RayTracing-week1-4 | 7b8949cebd77db81323bbbb686a3a7c11f1eb392 | 2aa5bc00b5a497018d3e0e8fb37a967375c5e0d4 | refs/heads/master | 2022-11-08T00:42:07.001028 | 2020-06-29T03:59:00 | 2020-06-29T03:59:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,663 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 11 09:23:07 2020
This file needs three packages:numpy, matplotlib.pyplt, math.
This .py file simulate the behavior of the prism. The geometry of the prism is equilateral triangle.
To trace the ray, we use the state of ray to describe. To trace the ray while refrac... | [
"noreply@github.com"
] | benchizhao.noreply@github.com |
6c7fbde29cd1fec7bc805412befb2db644f4048d | a5bb696d63052d6a07d0ca1c48f415e5a5308c8d | /Lesson11/Lesson11_hw02.py | e1d3197e9faaa59f3ec12f3c872a4b8b592b522d | [] | no_license | VitaliiRomaniukKS/python_course | 258af6f1a925c5cbc9207ddf0958f30652e84ff8 | a530d34ad18c6fcb8e4b573376a21fe34f653f77 | refs/heads/master | 2020-09-03T17:27:27.892224 | 2020-03-15T14:44:57 | 2020-03-15T14:44:57 | 219,520,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | # Распарсить файл с информацией о платежах, но использовать только те,
# где тип платежа out, также не все строки могут быть в корректном формате.
# Кто совершал больше всего покупок? На наибольшую сумму? Файл:
out_trans_list = []
with open('payments.txt', 'r') as payments_f:
for line in payments_f:
new... | [
"noreply@github.com"
] | VitaliiRomaniukKS.noreply@github.com |
c058ffd30adadb95fe7dfaf10ca143450a96c2c5 | 445720e21dce60d8504daeb68a97525343a95639 | /PyCybos/pycybos/cybos_EurexJpBid.py | 2730aced35e282a67acf7d661199f2898493b0d1 | [] | no_license | QuantTraderEd/AQTrader | 60826cd71b0fa568852f23be9daeb7f65a13e845 | c65ecba53beebce500a2e9cde0bd54374851e980 | refs/heads/live_patch | 2021-06-01T16:40:30.350977 | 2020-05-31T07:06:56 | 2020-05-31T07:06:56 | 145,120,057 | 2 | 0 | null | 2020-02-06T13:00:22 | 2018-08-17T12:51:13 | Python | UTF-8 | Python | false | false | 548 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 31 14:14:25 2014
@author: assa
"""
from cybos_source import Source
class EurexJpBid(Source):
""" subscribe index option quote """
def __init__(self, code = None):
super(EurexJpBid, self).__init__('CpSysDib.EurexJpbid.1')
self.type = 'TAQ'
... | [
"hyojkim79@gmail.com"
] | hyojkim79@gmail.com |
1955dee98cd2d41ac68b3c467664e2dd537aaf21 | 354f5a285b0c6f14475aba45a18312995a337de6 | /core/admin.py | 7a082b38139b57888ec5f982338832dba5f04bf7 | [] | no_license | lucasdmarten/navedexAPI | 45063cf63a8b7d55cc23a01ada6451a8e726e6f7 | 712425268a2cbd8f041deac32ea3d25292ea30fe | refs/heads/master | 2023-03-23T11:27:19.833069 | 2021-03-15T22:15:41 | 2021-03-15T22:15:41 | 345,178,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,453 | py | from django import forms
from django.contrib import admin
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.core.exceptions import ValidationError
from core.models import MyUser, Nave... | [
"lucasdmarten@gmail.com"
] | lucasdmarten@gmail.com |
a61174c4d8077eef4dc25a83b1c32e6f227bcf5d | f0f2d8cb16d494443a678ea24c04be95d1cbf824 | /Time_table_generator_/py_ui/Room.py | e40c89794cad5314c9a7d7c2e008ddbbc15889b5 | [] | no_license | Automatic-Timetable-Generator/ATG | 314e09b2becef67913df0744c094bca4d20635f0 | 6b1187e0be434346bfdd1a61a30bb57718fb0cbc | refs/heads/master | 2021-02-17T10:51:00.604358 | 2020-04-08T07:30:30 | 2020-04-08T07:30:30 | 245,091,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'room.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.s... | [
"noreply@github.com"
] | Automatic-Timetable-Generator.noreply@github.com |
066a9bb3b23255dc5f349786bfe1e4b093454a5a | 238a0dd7c1bd72b8e241798c8d31ff3cbb2c0c90 | /caesar.py | 36d0e4ed7074f13b4cd5f3fa51e5d21e4d8bb64d | [] | no_license | Procerus/caesar-converter | 7881666ae638ef288af873377436fd482797182c | 92a8ce5e764e552351e51048384747683a634c2e | refs/heads/master | 2020-09-19T21:21:34.310140 | 2019-11-26T23:00:48 | 2019-11-26T23:00:48 | 224,301,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | # This program takes in a user input when running the program as an argument
# that number is a key that will shift the associated text that the user enters
# next and shifts every letter that amount
import sys
def main(argv):
try:
sys.argv[1] == None
except IndexError:
print("Usage: p... | [
"noreply@github.com"
] | Procerus.noreply@github.com |
203f04df3c3f6b979898621a354f1d50daec9fe6 | db01067e88324466ba4743e5e53cd53de609c342 | /04. Functions Basics Lab/01. Grades.py | 0f7ea110f53b23d04e17bca1968d4c40ba88f432 | [] | no_license | IlkoAng/-Python-Fundamentals-Softuni | 07eaf89d340b2e60214ab5f8e896629ae680dc4a | 01a112b13e84ab2f29e6fc4ed39f08f395d54429 | refs/heads/main | 2023-05-18T02:11:53.676763 | 2021-06-06T15:39:22 | 2021-06-06T15:39:22 | 371,475,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | def solve(grade):
if 2.00 <= grade <= 2.99:
return "Fail"
elif 3.00 <= grade <= 3.49:
return "Poor"
elif 3.50 <= grade <= 4.49:
return "Good"
elif 4.50 <= grade <= 5.49:
return "Very Good"
elif 5.50 <= grade <= 6.00:
return "Excellent"
grade_dat... | [
"noreply@github.com"
] | IlkoAng.noreply@github.com |
2eac0fe3402f79f389178ebe792a10a16f7c1a4a | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /AGC001/AGC001c.py | 6f3fb7892212fb5a2683a833717ea55a344d0dfd | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #AGC001c
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
# map(int, input().split())
if __name__ == '__main__':
main() | [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
9ced689eedce285664f086c784d82698560785ff | 324ae3f56926da4169598897b4b9f06053d0a78d | /src/satisfy/nonogram.py | a0d242026fbebebb46a473f94765a8a6f23c6589 | [
"Apache-2.0"
] | permissive | simone-campagna/satisfy | 654152b410f81d0aaa672a8f3629aecce5924498 | b5327e937e32c5324c05f6288f59cfaac4a316dc | refs/heads/master | 2023-06-29T04:46:00.051479 | 2019-06-29T17:20:35 | 2019-06-29T17:20:35 | 157,007,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,321 | py | import collections
from .solver import ModelSolver, VarSelectionPolicy
__all__ = [
'NonogramSolver',
'pixmap_shape',
'pixmap_to_nonogram',
]
VarInfo = collections.namedtuple('VarInfo', 'size start_value end_value')
class NonogramSolver(ModelSolver):
def __init__(self, nonogram, **args):
... | [
"simone.campagna11@gmail.com"
] | simone.campagna11@gmail.com |
cee887c62ba400532290d58768227c8f8146d85e | e892207dd96f39ee2b9a99761b08381c442bef61 | /sources/simple_shop/adapters/message_bus/scheme.py | aa54e44be9cd5c4ff308c76d099b67dd11a68c6a | [
"MIT"
] | permissive | theevs/classic_demo_medium_difficulty | f9196795bd60acea3458c3b83d8a56c79ecdb9e7 | 335b50f9509c85dc426a76dbef7f7f2d28603e76 | refs/heads/main | 2023-08-31T21:32:51.001017 | 2021-10-26T14:38:58 | 2021-10-26T14:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from classic.messaging_kombu import BrokerScheme
from kombu import Exchange, Queue
broker_scheme = BrokerScheme(
Queue('PrintOrderPlaced', Exchange('OrderPlaced'), max_length=1)
)
| [
"variasov@gmail.com"
] | variasov@gmail.com |
9cc02e6a288eb047e372805fdff7b5c41409b6f1 | 7b71da9189de3358ef73b37a3083a56c1ab10772 | /robobench/calibration/pipette_calibration/classify.py | 3f968b169085ed7e6e911dc5b6a88230de32baef | [] | no_license | EndyLab/opentrons | 91ff3b8364c9b1746f7d073875651baa5efaf4c3 | 75d1789ad6ddef556a2c46e6608d5496f9f5ec7d | refs/heads/master | 2021-01-13T13:39:32.443502 | 2019-11-19T22:23:47 | 2019-11-19T22:23:47 | 76,410,678 | 8 | 0 | null | 2020-10-27T21:05:49 | 2016-12-14T00:42:02 | Roff | UTF-8 | Python | false | false | 1,890 | py | import cv2
import numpy as np
# classifies an array of imgs
def knn(img, k=5):
# load the data we generated previously
training_dir = "C:/Users/gohna/Documents/bioe reu/opentrons/robobench/calibration/pipette_calibration/training"
samples = np.loadtxt(training_dir+'/general-samples.data').astype(np.float32)
respo... | [
"natagoh@stanford.edu"
] | natagoh@stanford.edu |
911507e11b9253bb23a002ed90852dba054ea2f8 | 9e22cd10e0e89872146b2ced45a8fcff29ae30d2 | /module_integration/raspberrypi/manage.py | 50d7c99e7444d50ab732838ce32b87b4252cd5e2 | [] | no_license | Supriya-Suresh/eYSIP-2017_Vegetable-Identification-Using-Transfer-Learning | ca19833e5a2208252bfcf33515fd7ea0a3480c6d | 8c570408b4394789840660fa9123caea8e634f6c | refs/heads/master | 2022-11-23T22:59:40.466739 | 2017-07-08T06:20:49 | 2017-07-08T06:20:49 | 107,849,691 | 0 | 0 | null | 2022-11-22T01:06:25 | 2017-10-22T08:34:22 | Python | UTF-8 | Python | false | false | 10,977 | py | import loadcell as lc #import load cell library
import RPi.GPIO as GPIO
import lcd #import lcd library
import kpad #import keypad library
import time
import os
import math
import datetime
import sys
import json
#address constant for lines in lcd display
LINE_1 = 0x80
LINE_2 = 0xC0
LINE_3 = 0x94
LINE_4 = 0xD4
baseValu... | [
"techieboy.teknas@gmail.com"
] | techieboy.teknas@gmail.com |
5314e273b1fab0e24e981f1fa735e30171ba22a2 | a76ea88df1f28bab17fae40f1c0b4a4471e3da05 | /wanderbot-ws/src/teleopbot/src/keys_to_twist.py | 6fd8b0342f416ee377d5cad97ce7997915336bc4 | [] | no_license | oemergenc/ros-wander-bot | 0182b902851f6e896654c72d08e7c86f2bd72311 | d78d2a6595882f2f05c468c84a4d102cca8a699b | refs/heads/master | 2020-04-14T02:03:03.829173 | 2019-01-07T10:05:29 | 2019-01-07T10:05:29 | 163,575,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | #!/usr/bin/env python
# BEGIN ALL
import rospy
from std_msgs.msg import String
from geometry_msgs.msg import Twist
# BEGIN KEYMAP
key_mapping = {'w': [0, 1], 'x': [0, -1],
'a': [-1, 0], 'd': [1, 0],
's': [0, 0]}
# END KEYMAP
def keys_cb(msg, twist_pub):
# BEGIN CB
if len(msg.da... | [
"oemergenc@gmail.com"
] | oemergenc@gmail.com |
dafc1d3715006b5918f20ffe70c8e774c8a86cf5 | 1fb9a17e9273a627b090b1f332fab15f14d5baca | /Clustering_Twitter_Data.py | e0a27cd69ed88ca34b7c77cfda65f70fe673eb8e | [] | no_license | Akhilavk1106/Clustering-Twitter-Health-Data | 1803481d3f52d7167909c15404894e4a73cd2fd1 | 8dc2f3a30d68ac287680ecc4318ea2c621b12933 | refs/heads/master | 2020-03-29T07:34:13.632976 | 2018-09-21T00:52:54 | 2018-09-21T00:52:54 | 149,670,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py |
import re
from nltk.corpus import stopwords
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.decomposition import PCA
from sklearn.cluster import KMeans
import matplotlib.pyplot as plt
import numpy as np
from sklearn import cluster, datasets
import pandas as pd
import sys
original_labels=np.emp... | [
"noreply@github.com"
] | Akhilavk1106.noreply@github.com |
def39a55d547e1131e0f8dcf639f5da81e09bb90 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /cGaTqHsPfR5H6YBuj_0.py | c3936bfae1158025ccd064458e0c9c17ee2d0b5e | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | """
Given a list of ingredients `i` and a flavour `f` as input, create a function
that returns the list, but with the elements `bread` around the selected
ingredient.
### Examples
make_sandwich(["tuna", "ham", "tomato"], "ham") ➞ ["tuna", "bread", "ham", "bread", "tomato"]
make_sandwich(["cheese", "le... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
008b54483f4cb8901c5fb12ee52cc4dfed87daa6 | 8900db5096dcf2f8a758f6792cc7c8f2bc1d7785 | /src/dataset.py | b23694ff85df42853de900a29099a30f0b2c3931 | [] | no_license | PeterZhouSZ/seg2vid | ca5d649a19c47b769fc243ef5da4f95e965c42a9 | 306ca254ac30620afe48767d02b9cf3fecba1194 | refs/heads/master | 2020-06-01T19:50:22.737812 | 2019-03-26T11:37:58 | 2019-03-26T11:37:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,811 | py | from datasets.dataset_path import *
def get_training_set(opt):
assert opt.datset in ['cityscapes', 'cityscapes_two_path', 'kth']
if opt.dataset == 'cityscapes':
from datasets.cityscapes_dataset_w_mask import Cityscapes
train_Dataset = Cityscapes(datapath=CITYSCAPES_TRAIN_DATA_PATH, datalist... | [
"panjunting@sensetime.com"
] | panjunting@sensetime.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.