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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e366bc13803422c14f98bd569c6808943f20d8ee | d3a582fcaebf7a16127b1b02c20643aa4ffb737b | /speedreport.py | 6bd912600862bfaabdab552ca665d553e0595916 | [] | no_license | zonar-systems/Python | 550a0847bf5e1962c4471fb49348ed098aae75b5 | bfa24b1183d6dbf5255bafff3cbaa67453e7b20c | refs/heads/master | 2021-01-10T01:48:12.564996 | 2015-11-23T19:05:28 | 2015-11-23T19:05:28 | 46,512,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # python3 required. urlib2 was combined in v3 with urllib.
import urllib.request
# build request string
response = urllib.request.urlopen(
'https://qa1.zonarsystems.net/interface.php?username=&password=&action=showposition&operation=speed&format=xml&customer=9944&fromdate=1141397988&todate=1141398000&vers=2')
# r... | [
"rmossuto@outlook.com"
] | rmossuto@outlook.com |
0e1ef1f8754a256009137ccd90ba7bcef7730e98 | 71e2c08ee2df6104522f06a173d4445abc7e2f82 | /createandupload_mvt.py | 85a5ac48687917fd597f2a7b61dfbfb943999a18 | [] | no_license | GeographicaGS/mapbox-mvt-helpers | 5f3f3750ab3922bb287fd01977b98c8af970c9ca | 61059a79c7848162cb7ff1a05bf6628277befabc | refs/heads/master | 2021-01-19T11:21:50.279523 | 2018-01-16T17:43:06 | 2018-01-16T17:43:06 | 87,959,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,255 | py | #
# Author: Cayetano Benavent, 2017.
# https://github.com/GeographicaGS/mapbox-mvt-helpers
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your ... | [
"cayetano.benavent@geographica.gs"
] | cayetano.benavent@geographica.gs |
17d6e1584f491e8f5ffd92347535889c77e41139 | 8b68ab8567bfb36b310135a293b68b08f999e4a9 | /Ch06ProjTablePrinter01.py | eabbc18990a3c26ca5095f0da8e343655ff019ef | [
"BSD-2-Clause"
] | permissive | steveayers124/AutomateTheBoringStuff | 544faa8ddb212132462bc215e37303b3b6e252d0 | 9bb9190fab0bc81d7acc8f90e1d162af961d6048 | refs/heads/master | 2020-06-07T07:55:28.080508 | 2019-08-22T14:41:19 | 2019-08-22T14:41:19 | 192,966,807 | 0 | 0 | null | 2019-06-25T15:18:24 | 2019-06-20T18:11:55 | Python | UTF-8 | Python | false | false | 1,352 | py | #! python3
# Given a list of a list of strings, each inner list having the same number of items,
# display all this in a well-organized table, having each column right-justified.
# Example:
# tableData = [['apples', 'oranges', 'cherries', 'bananas'],
# ['Alice', 'Bob', 'Carol', 'David'],
# ['d... | [
"steveayers124@gmail.com"
] | steveayers124@gmail.com |
5ca7bb44464eb2b8bc4a97eed49157497214cee6 | aced407b41f6669f69e9eb8bd599260d50c0bd3f | /server/libs/top/api/rest/TaobaokeItemsDetailGetRequest.py | 13b1b69b497043b5f31870c254d245496fe97a64 | [] | no_license | alswl/music_sofa | 42f7d15431f11b97bf67b604cfde0a0e9e3860cc | c4e5425ef6c80c3e57c91ba568f7cbfe63faa378 | refs/heads/master | 2016-09-12T18:37:34.357510 | 2016-05-20T11:49:52 | 2016-05-20T11:49:52 | 58,946,171 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | '''
Created by auto_sdk on 2013-11-07 12:53:22
'''
from top.api.base import RestApi
class TaobaokeItemsDetailGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.fields = None
self.is_mobile = None
self.nick = None
self.num_iids = None
self.ou... | [
"alswlx@gmail.com"
] | alswlx@gmail.com |
f4bfb83c2408bd57b3ce899378717e5b6fe39407 | 5552380060fd8be832a61d1cc4020c16dde40452 | /home/migrations/0004_bank_branch_file.py | 244237a150562d68ccb2eac9f7f5cf4d1998f799 | [] | no_license | rayhancse08/LawChamber | a1f4121a911d92cdf7cd4c885767b2080fa5fbb0 | 40f2306d50bc9c2d2b7c08b44e527ab45a7dc756 | refs/heads/master | 2021-09-10T06:32:48.473590 | 2018-03-21T16:12:58 | 2018-03-21T16:12:58 | 125,860,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | # Generated by Django 2.0.3 on 2018-03-19 13:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0003_contact'),
]
operations = [
migrations.CreateModel(
name='Bank',
field... | [
"rayhancse08@gmail.com"
] | rayhancse08@gmail.com |
a44f913b2b3dfe6e31cbba513045c3cd8023fcdb | d701f3b0a85f22cc0551ae1d2bfd4b37aed8724b | /gen-py/user_profile/test_client.py | c34736f13c6bdea746a0291623b8109fcb404a8c | [] | no_license | truncs/thrift-example | 8eb9bec53134d793ddc10df0233c4fbbdaad93a0 | 8995496bc5d49093116c4f9103959e5f7b92131a | refs/heads/master | 2016-09-06T21:37:49.620798 | 2013-10-22T20:33:18 | 2013-10-22T20:33:18 | 13,763,648 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from thrift.transport import TSocket
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
from ttypes import UserProfile
import UserStorage
transport = TSocket.TSocket("localhost", 9090)
# Buffering is critical. Raw sockets are very slow
transport = TTransport.TFramedTransport(transpor... | [
"aditya@uber.com"
] | aditya@uber.com |
efa9169a5663a0c34cd035eaf9a6c8eb588d6625 | 0485a490f466bd1d02eaae96d277888781208c0e | /tests/single_instruction_translation_validation/mcsema/register-variants/xaddb_r8_r8/Output/test-z3.py | 0f72e6bf891b173f5c8d4ce6b1ee4ac725000960 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA"
] | permissive | Mthandazo42/validating-binary-decompilation | c0e2d54cd79e609bfa35802975bddfa52e646fad | c0fcd6f099e38195dcbbac9e8c13a825865c5cb5 | refs/heads/master | 2022-11-11T13:18:13.033044 | 2020-06-25T05:49:01 | 2020-06-25T05:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,327 | py | #############################################
######## Auto Generated Proof Scripts #######
#############################################
import z3
import sys
status=True
test_name="UnK"
if(len(sys.argv) > 1):
test_name = sys.argv[1]
def solve(msg, lvar, xvar, s):
global status
s.set("timeout", 60000)
res =... | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
fc46327b637817362b96ebdbbc1b23c06a9c6cc4 | 4a3ca3bd0e371cdd6e24a8b8a0769c3e25539b40 | /test/ntust/meal/eat/migrations/0002_auto_20180608_1549.py | 3a1c75d5a28dff01cfbf8f480c1a7ffb659092fe | [] | no_license | NTUST/107-team12 | d63b3d48d31413ec5342e6398630c8157ce92ce4 | d92ee5ca8a5d5471f8ea9c35ddd71551eaae1207 | refs/heads/master | 2022-11-23T22:21:34.496145 | 2018-06-11T01:57:11 | 2018-06-11T01:57:11 | 123,248,423 | 0 | 1 | null | 2022-11-03T04:22:46 | 2018-02-28T07:45:07 | Python | UTF-8 | Python | false | false | 373 | py | # Generated by Django 2.0.5 on 2018-06-08 07:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('eat', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='restaurant',
name='votes',
fi... | [
"claire0230025@gmail.com"
] | claire0230025@gmail.com |
cee59d6f621e33b97ad0d92b13d623a6e7b75408 | 666f609658266a87bb3c1fb78c23a3c9b5ea30e0 | /Lab_4/lab 4.py | c03a89842aa83518d24e8bc512a35ab1e54cf532 | [] | no_license | Quindeci/MOPE1 | e679eb1a534dc4a01575ab7d36d4c6e780f43a5c | f347af09684d010390ec9cb752b80ce3467ffdff | refs/heads/main | 2023-05-27T23:10:54.515939 | 2021-06-19T19:49:15 | 2021-06-19T19:49:15 | 363,998,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,174 | py | import random
import numpy as np
import sklearn.linear_model as lm
from scipy.stats import f, t
from numpy.linalg import solve
def regression(x, b):
y = sum([x[i] * b[i] for i in range(len(x))])
return y
def dispersion(y, y_aver, n, m):
res = []
for i in range(n):
s = sum([(y_aver[i] - y[i... | [
"zzzkiritozzzzzzz@gmail.com"
] | zzzkiritozzzzzzz@gmail.com |
9ca6d92b19008f566d7bad5323b3263b78cd3d47 | 09e0efb05c9cd29c7aa4301cec7fb95d24d2bdc2 | /nionui_app/nionui_examples/ui_demo/StatusBar.py | 99f1fd1396a4fbf0ae59bae7916bfa90a1e1e115 | [
"Apache-2.0"
] | permissive | AEljarrat/nionui | 4c452037f7e3ee6710c19b18afeb45e35e9ec361 | 3714a54d56f472a8a0f7b9f8a8240103ca790374 | refs/heads/master | 2022-11-30T19:54:10.714060 | 2020-08-06T21:37:47 | 2020-08-06T21:37:47 | 286,014,692 | 0 | 0 | NOASSERTION | 2020-08-08T09:40:31 | 2020-08-08T09:40:30 | null | UTF-8 | Python | false | false | 686 | py | from nion.utils import Model
class Handler:
slider_value_model = Model.PropertyModel(50)
def reset(self, widget):
self.slider_value_model.value = 50
def construct_ui(ui):
label = ui.create_label(text="@binding(slider_value_model.value)")
button = ui.create_push_button(text="Reset to 50",... | [
"cmeyer1969@gmail.com"
] | cmeyer1969@gmail.com |
446ccd7e5f607f8cfa6cb6a321573ab0f61353eb | 35cccb6f98985031f2e82ce0e7ac29045df31747 | /CoNet_new/model.py | a25c7c0e93d85a687daf8679db53960f94533259 | [] | no_license | iwtlu/Machine-learning | 7fd0a90aa6feec90f941e97fc0a7013aff2a893f | d96b75bba4030aae40123f28678135c95e771ea9 | refs/heads/main | 2023-08-26T22:09:42.235132 | 2021-11-07T16:44:56 | 2021-11-07T16:44:56 | 425,526,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,052 | py | import numpy as np
import tensorflow as tf
from past.builtins import xrange
from Dataset import Dataset
from collections import defaultdict
import time
import sys
import math
import random
import os
class MTL(object):
def __init__(self, config, sess):
t1 = time.time()
# data corpu... | [
"noreply@github.com"
] | iwtlu.noreply@github.com |
05b743ce281ac33fb022e5863f590c58b54543bb | ed21529844d95422e3375b7fe51f7775ab6c751c | /lkliondjango/oldman_blog_project/oldman_blog_project/asgi.py | 924b4fbd169cc587b8b1e0ae8d5108f2db2d975b | [] | no_license | wlight96/likelionworkspace | d842af8b269fe72314508e1a99eb94cce70b659b | 6634efd0105a0e93750b7a695f39907683257b32 | refs/heads/main | 2023-06-24T08:19:38.859740 | 2021-07-14T07:37:38 | 2021-07-14T07:37:38 | 366,376,720 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
ASGI config for oldman_blog_project 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('... | [
"wlight96@naver.com"
] | wlight96@naver.com |
fa40c9f5c291d466245994d71e3b05bde8d0668f | 976230c7d6270f9fbec052e01f9799e13059f79c | /tests/spatio_temporal/test_daily.py | 0c473f4a8bf1f201c13a2cf6200948d00b171507 | [
"MIT"
] | permissive | amet123/jyotisha | 01cd60884f729814e6757d2a7186a6a4e3941a1f | 83930880ca74d6ddc95cc72f7026ef63a2e1c3be | refs/heads/master | 2020-03-16T09:44:13.310195 | 2018-02-10T02:43:19 | 2018-02-10T02:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | import logging
from jyotisha.panchangam.spatio_temporal import City
logging.basicConfig(
level=logging.DEBUG,
format="%(levelname)s: %(asctime)s {%(filename)s:%(lineno)d}: %(message)s "
)
def test_solar_day():
from jyotisha.panchangam.spatio_temporal import daily
panchangam = daily.Panchangam(city=City('Chen... | [
"vishvas.vasuki@gmail.com"
] | vishvas.vasuki@gmail.com |
7f2c089465d69d06d084c109ad84d7088060ca5d | cad35dc744779798138015c7b0d674e5784a0d68 | /BOT/fakeSMTP-latest/received-emails/received-emails/regex.py | 9049bc5e3579432a69996f8e0791b00ea3395e1c | [] | no_license | snsubir1997/BOT | ae2867fb064f48ffa918b28d85fac74963dd6865 | 6e94d16e64c546fdec149a56842e5b0978fa8cc6 | refs/heads/master | 2021-05-09T13:03:37.447172 | 2018-02-18T05:08:33 | 2018-02-18T05:08:33 | 119,022,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,813 | py | #CLIENT TO SYSTEM MAIL
#!/usr/bin/python
import smtplib
import re
import os
import time
sender = 'sn.subir1997@gmail.com'
receivers = ['coolsubir1997@gmail.com']
message = """From: SN <coolsubir1997.com>
To: To Person <sn.subir1997.com>
Subject: Regarding leave due to emergency.
Respected Sir, this is to inform you... | [
"sn.subir1997@outlook.com"
] | sn.subir1997@outlook.com |
ad38656e01d8b7af25583df1759432cb561cbe06 | 3ae13e6d49a549598f7de303630cc5dcd85edb67 | /manage.py | 1da5ae32e92c0060f4504dfdfa5f244678fe22c9 | [] | no_license | fanlion/dream_blog | 03e2b73ad463a841f3a5a1b2ace75ba34e7b2736 | bdcfb2d8786ae522d955e2c497021c60c2804eb7 | refs/heads/master | 2022-12-11T02:56:17.590091 | 2018-02-27T07:34:54 | 2018-02-27T07:34:54 | 93,694,858 | 6 | 1 | null | 2022-12-07T23:59:01 | 2017-06-08T01:28:38 | Python | UTF-8 | Python | false | false | 808 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dream_blog.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that t... | [
"fan.li@changhong.com"
] | fan.li@changhong.com |
ae030ee10624972a845f3259a104661887ee65dd | 71227ba095dd55a4c1a2bd48c7b59ae8fb8d4133 | /Labo01_AgentesInt/original.py | 7a58e3fafcd842e0535a695bfe2c3037c7a24619 | [] | no_license | jantov/Jose_Olpo_IA_1 | ef6313ba5d2f581845d2544894f64d098f8cd547 | 859d4ba1e11ef8f229ea788b4553f2a376418794 | refs/heads/main | 2023-06-15T11:40:37.339113 | 2021-07-17T16:29:23 | 2021-07-17T16:29:23 | 356,385,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,087 | py | """CSP (Constraint Satisfaction Problems) problems and solvers. (Chapter 6)."""
from utils import argmin_random_tie, count, first
import search
from collections import defaultdict
from functools import reduce
import itertools
import re
import random
class CSP(search.Problem):
"""This class descri... | [
"noreply@github.com"
] | jantov.noreply@github.com |
21e0a4a5c520b5364f7115b1ed1387993123f14b | bea2c1ad58a1d45705ba8f9e4527e4ffac4969cb | /sfepy/discrete/parse_regions.py | c0b71f0ee8b1d0bc7fd05dcd16232c367e61ac0b | [
"BSD-3-Clause"
] | permissive | fethio/sfepy | 8423e9083e3144e1fd97d24c31eda1646167ff5b | 78efe51d6038dc92f5bfeac4c57614746fe28117 | refs/heads/master | 2021-01-16T20:59:29.459626 | 2016-07-01T15:06:11 | 2016-07-01T15:06:11 | 61,715,917 | 1 | 1 | null | 2016-07-01T15:06:11 | 2016-06-22T12:06:07 | Python | UTF-8 | Python | false | false | 6,738 | py | """
Grammar for selecting regions of a domain.
Regions serve for selection of certain parts of the computational domain
represented as a finite element mesh. They are used to define the boundary
conditions, the domains of terms and materials etc.
Notes
-----
History: pre-git versions already from from 13.06.2006.
"""... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
a35aa60f59bebb4861691d0b50e50090c5e43684 | 26b8b7da6f5b1e1767155138d69782827b8dadaa | /python/twitter/connecttwitter.py | dd40769a76499bb9c3b35ff3991d54ab6c6f664a | [] | no_license | hyunghunny/asdl-playground | 84d744e95f41489b44155210efbe82a33375881b | a84bf358eaade8939e48e124d25c921be0dea0f4 | refs/heads/master | 2021-01-19T15:34:00.067047 | 2015-03-18T08:25:51 | 2015-03-18T08:25:51 | 32,057,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # Social Computing Tutorial #1
# First Twitter Connection
# Copyright (C)
import twitter
import credential
auth = twitter.oauth.OAuth(
credential.getOAuthToken(),
credential.getOAuthSecret(),
credential.getConsumerKey(),
credential.getConsumerSecret())
twitter_api = twitter.Twitter(auth=auth)
print twitter_api | [
"hyunghunny@gmail.com"
] | hyunghunny@gmail.com |
97c63ac9e665a2d66342e42e241c92b0489a2ee3 | 18d51ac0a6ca14c8221c26f0dacd8d3721ca28e9 | /73_hun.py | 5a18a272bbd749e2a12f95c01d715dc788f4067d | [] | no_license | mahakalai/mahak | 05f96d52880ed7b2e5eb70dd1dbf14fc533236e8 | 613be9df7743ef59b1f0e07b7df987d29bb23ec7 | refs/heads/master | 2020-04-15T05:01:58.541930 | 2019-07-15T16:28:32 | 2019-07-15T16:28:32 | 164,406,486 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | s=input()
s1=input()
l=[]
if s==s1:
print(s)
else:
for i in range(0,len(s)):
for j in range(i+1,len(s)):
k=s1[i:j]
if k in s:
l.append(k)
print(max(l, key=len))
| [
"noreply@github.com"
] | mahakalai.noreply@github.com |
830deb8c085adda6c6f247353257bb26a505967b | c0997d6da33a0821b35e7b9b2b2e60f6b8ab252c | /IT 14/14.1.py | 7b601217d0ef96e0b59af8cd8fd6551524e35e0a | [] | no_license | GeorgeGalaxy/IT_PY_2021_05 | 2015d7282cc083a4871d6441db577841c6ea9285 | 160130c4709e24f298eefabf1d75eb10ff0a7140 | refs/heads/main | 2023-05-03T08:30:34.538408 | 2021-05-26T17:17:55 | 2021-05-26T17:17:55 | 371,113,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | print("Galaktionov "+" George"+" BASO-01-19")
number_1 = float(input("Enter number 1: "))
number_2 = float(input("Enter number 2: "))
summ_1_and_2 = number_2 + number_1
print(f"Summ = {summ_1_and_2}")
x = float(input("Enter x: "))
funct1 = x**5 - 2*x**3 + 1
print(f"Func = {funct1}") | [
"georg1506@mail.ru"
] | georg1506@mail.ru |
f442a8f384330fe844ce830763e3fb4134cb9238 | d46e6ecd926ebcdfdf47c1ca2f13f8d4f7b11f06 | /Messages/migrations/0001_initial.py | ab07537ead78c25997f8c5b00f2fe82771c1be8c | [
"MIT"
] | permissive | gordiig/Swimple-Server | a23b62e119e998d5238a5b601232d59ae0c34d00 | 5181b51a7809ab6868f87129b6a4e1efaf779f6f | refs/heads/master | 2020-04-10T16:11:11.175502 | 2018-12-10T08:22:31 | 2018-12-10T08:22:31 | 161,136,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | # Generated by Django 2.1.4 on 2018-12-10 07:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"gordiig@gmail.com"
] | gordiig@gmail.com |
540b1e207d9d6ca9788b0f7943f280f2b8351728 | bc7c9df185cd7ab30b1c8b50bc50fe3fd8a79a7e | /lesson_6/lmparser/items.py | 8dab6484cfadbec0a2de4f9d9a1f57be7fc81eb9 | [] | no_license | Sharovatov-N/Web_Scraping | feb2df131883c4aeb627f145bd529f2744ec1304 | 094481b6fb7e21f0e797f31e939fb3e5d07eb77f | refs/heads/master | 2022-12-18T14:15:11.504550 | 2020-09-23T14:27:39 | 2020-09-23T14:27:39 | 291,339,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
from itemloaders.processors import TakeFirst, MapCompose
def price_to_float(price):
if price:
return float(price.replace(' ', ''))
return price
def clean_str... | [
"nn1959@mail.ru"
] | nn1959@mail.ru |
1f139cc7860e6b6a2ccf91630684bc4cc2032544 | cfb599cdf099c5c7b0d476b4e6f19c887fe584b6 | /scrapy_spider/MovieComment/MovieComment/MovieComment/spiders/CommentsCorpusSpider.py | ebe85dc1e865b078f6157fa9c52dfe1bc6b7c2b8 | [] | no_license | kakayuw/Sentiment-Analysis-Based-on-Douban-Movie-Critics | bc2ada9ec3e36690976c5dccbe13bb27a4a6407b | 7be32dd5fdd8007f4922220d75e6844b502762a0 | refs/heads/master | 2021-07-12T10:19:09.163470 | 2020-07-04T03:50:53 | 2020-07-04T03:50:53 | 162,956,843 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,852 | py | import csv
import os
import re
import time
import jieba
import scrapy
class MovieCommentSpider(scrapy.Spider):
# 爬虫唯一标识符
name = 'CommentCorpus'
# 爬取页面地址
base_url = 'https://movie.douban.com/j/search_subjects?type=movie&tag=' \
'%E7%83%AD%E9%97%A8&sort=recommend&page_limit=20&page_star... | [
"yuhang012@sjtu.edu.cn"
] | yuhang012@sjtu.edu.cn |
47eccdae8acbd25874bd94626617616ed0ee61fe | 5fdcf15f818eb2d0c7b5dd39443064d5bc42aff9 | /lc_reorganizing_string.py | 8ab639672dbe010d9b0fc8e9842a0ca17c1438dc | [] | no_license | vincentt117/coding_challenge | acf3664034a71ffd70c5f1ac0f6a66768e097a6e | 5deff070bb9f6b19a1cfc0a6086ac155496fbb78 | refs/heads/master | 2021-07-02T05:43:08.007851 | 2020-08-27T02:16:19 | 2020-08-27T02:16:19 | 146,027,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | # Optimal solution retrieved from Leetcode - https://leetcode.com/problems/reorganize-string/
class Solution:
def reorganizeString(self, S: str) -> str:
pq = [(-S.count(x), x) for x in set(S)]
heapq.heapify(pq)
if any(-nc > (len(S) + 1) / 2 for nc, x in pq):
return ""
a... | [
"vincentt117@gmail.com"
] | vincentt117@gmail.com |
0900e25488befc06a072f8331763d920546e11f0 | 4c67b3913ff451841d2877a57e201d926b44c177 | /video_bylenth.py | d9e61f9218655a4e14c3c50997234b929cbdf195 | [] | no_license | notalent01/oms_test | 9dacc67266d6d9aa1fbe225eeaf35dad37f7ace5 | b12f31706a19b44754615b3b0dd25214b1c78b73 | refs/heads/master | 2021-01-15T18:00:01.423019 | 2017-08-17T07:05:29 | 2017-08-17T07:05:29 | 99,770,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | #-*- coding:utf-8 -*-
import requests
import login_oms
import re
import sys
import datetime
from bs4 import BeautifulSoup
expectd_len = float(sys.argv[1]) #接受输入参数
expectd_min = expectd_len - float(sys.argv[2]) #接受最小范围
expectd_max = expectd_len + float(sys.argv[3]) #接受最大范围
pageSize = int(sys.argv[4])
name_list = [] # ... | [
"chriswangs@pptv.com"
] | chriswangs@pptv.com |
16afd9ce21d2dba67e85bb80f5d5278878afce2e | 6296c3f5128f4c82d8f85708bb6e98b3c5e2addd | /task1/main.py | e5b313285988faf80cb1c71a32792223ba53b249 | [] | no_license | gblazq/qosf-fall-2020-st | 2f36ed752fb546f7fd9b7421c8fc70adacb8699d | dd9b8aee03604fc2018ad92c113a9937d544294d | refs/heads/master | 2022-12-19T06:42:17.440823 | 2020-09-21T21:31:59 | 2020-09-21T21:31:59 | 296,953,251 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,820 | py | #!/usr/bin/env python3
import argparse
import logging
import sys
from exitstatus import ExitStatus
import numpy as np
from scipy import optimize
from qiskit import Aer
from qiskit.quantum_info import random_statevector
from task1.circuit import build_circuit
from task1.optimizer import objective_function
# Define a... | [
"guilleblazquez+github@gmail.com"
] | guilleblazquez+github@gmail.com |
c1c2f08f213c1883d5c0d7e36a037127caeebd14 | 29ab920cf5c02ca6351e1c98824b8ebdb08933b0 | /src/core/models.py | d6b1641b0977a3f01e92bd8e2d76097fcb2dff09 | [
"MIT"
] | permissive | yordan-marinov/su_dj_todo_app | 237c8a14c17d349a75a437ab810c396269d3b571 | 34adcf3c17fcda30e57d76099780d0cf5f3f0fe6 | refs/heads/main | 2023-05-15T12:05:08.948196 | 2021-06-16T08:01:03 | 2021-06-16T08:01:03 | 375,369,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Task(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, null=True, blank=True)
title = models.CharField(max_length=120)
description = models.TextField(null=True, blank=True)
... | [
"jordanmarinov8@gmail.com"
] | jordanmarinov8@gmail.com |
39f9db6893ed5b9a99a7a7c13ff1ebb6b66b445f | d5fbecbd18f44e30201d80255eeb50565c9a976a | /takeout/migrations/0007_auto_20201122_0415.py | 419fce1a395da2ff5768743db8ebc73e9c222c5d | [] | no_license | earthtomemphis/RestaurantOnlineOrderForm | 51a2d13726e0ee2d5d4da2a63dbad4300329ffbd | e0faca26b73eef084d1e781e444f6b015e784b8d | refs/heads/main | 2023-01-14T08:17:07.614114 | 2020-11-23T04:30:10 | 2020-11-23T04:30:10 | 314,916,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # Generated by Django 3.1.3 on 2020-11-22 04:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('takeout', '0006_auto_20201122_0406'),
]
operations = [
migrations.AlterField(
model_name='menu',
name='dish_image',
... | [
"earthtomemphis@gmail.com"
] | earthtomemphis@gmail.com |
9df46ecf280ec9b0f935a81e7ed92bb330202dc3 | baace6d0e857655f41b509c90280a4fe749f12c4 | /twitchy.py | 701163c0d8586ecfd2897b780186597ab6fd89a6 | [
"MIT"
] | permissive | andrewalexander/hon_bot | 5981177997e164ca0dc223da5428ad982cd0348c | d1503b7f09891830b365fb37cc01afcbc0dbe967 | refs/heads/master | 2016-09-05T20:47:44.746345 | 2015-07-13T01:50:41 | 2015-07-13T01:50:41 | 38,977,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,257 | py | import requests, re, time, praw, HTMLParser, json, webbrowser
from config import subreddit
# from PIL import Image
from StringIO import StringIO
class configuration():
def __init__(self):
self.r, self.subreddit = self.reddit_setup()
self.config = self.get_config()
self.streams = self.wikipage_check(self.config... | [
"andrewalex.1992@gmail.com"
] | andrewalex.1992@gmail.com |
194ba9e2d48337aa89eb30deb90a845d278ff020 | 05581fa74e15416943d6d7659742080dd07f1b9a | /cache/.mako.tmp/base.tmpl.py | d6b6f1c705889461cb21a5f38262cedd8896d102 | [] | no_license | demba/blog | b05ec00d89c8f2d3acea7638ca13d954e8781bd6 | ddf9a6ba9f647b697371d5ebbea2be3147c93161 | refs/heads/master | 2023-01-12T07:03:21.854260 | 2021-06-26T19:12:02 | 2021-06-26T19:12:02 | 40,611,969 | 0 | 0 | null | 2022-12-26T19:53:45 | 2015-08-12T16:34:43 | HTML | UTF-8 | Python | false | false | 13,041 | py | # -*- coding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1548692602.838756
_enable_loop = True
_template_filename = u'/home/demba/.pyenv/versions/blgng/local/lib/python2.7/site-packages/nikola/da... | [
"dembayel@gmail.com"
] | dembayel@gmail.com |
e678647f567f69e613f9801f9ae2ac7ac80e1659 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/185/30193/submittedfiles/swamee.py | cf9c5669d5d51a92ee3a60133f07bc131b3da0cc | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
f=float(input('digite f:'))
L=float(input('digite L:'))
Q=float(input('digite Q:'))
DeltaH=float(input('digite DeltaH:'))
V=float(input('digite V:'))
g=9.81
E=0.000002
D=((8*f*L*(Q*Q))/((math.pi**2)*g*DeltaH))**1/5
Rey=(4*Q)/(math.pi*D*V)
K=0.25/(math.log10((E... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
17344efc56c087a7170e129ec0ee09de2a798135 | fdfbe19c3ebed78cc3b2eeab148769248a15e12f | /apps/core/views.py | c9bfe567b9f30862cb562c8b3fbfacde68db0622 | [] | no_license | allwdesign/Organization-info-Rest-API | 5d469a4fbb8884f01b5c07426932bb5f9d8cea92 | cef30db040859c6b9fa5e217a5b60dea01aff1d5 | refs/heads/master | 2022-03-30T23:29:52.971571 | 2020-01-20T12:41:20 | 2020-01-20T12:41:20 | 112,495,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | # -*- coding: utf-8 -*-
from rest_framework import generics
from rest_framework.filters import SearchFilter
from django_filters.rest_framework import DjangoFilterBackend
from core.filters import OrganizationFilter
from core.models import Service, Organization
from core.serializers import (
OrganizationSerializer,
... | [
"allwdesign@gmail.com"
] | allwdesign@gmail.com |
7027d267d55dd34f4335b5ae71ba77455ec34778 | 83ab553b6180752818418232aaf73b367e9f1daa | /Wordpool.py | 5be7c24237572f32e362083f986e59682d725911 | [] | no_license | gnaWeinrE/NLP_FinalProject | 3e302fcd910e504b643689e880e92f302f2f9496 | 6eabac8b0ebf18b81cffc17216d6819e2df82871 | refs/heads/master | 2022-07-16T10:57:45.648757 | 2020-05-10T02:15:35 | 2020-05-10T02:15:35 | 262,643,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | from spellchecker import SpellChecker
import spacy
import inflect
from pattern.en import lexeme
def wordpool(word, pos, former_pos, dep, spell):
pool = []
title = word.istitle()
word = word.lower()
# misspelled
misspelled = spell.candidates(word)
pool.extend(list(misspelled))
if pos =... | [
"mw1222@georgetown.edu"
] | mw1222@georgetown.edu |
cf332c14f2ceeeefe2fa62b1415468de620b4892 | 9b9969231268d7c066370f06a4f3b17699c2bcef | /1.16.18 do now.py | 94e5d122104ae0f095e3123c0bfe169e969580f7 | [] | no_license | juliapetiteau/ComputerScience | d73478c2a340347c83a3027450a6459d6af7a874 | 1be34d66260e011674d89beac2672b35adb812f4 | refs/heads/master | 2021-05-11T15:14:56.694445 | 2018-03-20T18:46:01 | 2018-03-20T18:46:01 | 117,722,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | n=1
m=-1
if n < -m:
print(n)
else:
print(m)
from math import sqrt
x=sqrt(2.0)
y=2.0
if x*x==y:
print(x)
else:
print(y)
#using input( ) to make an interactive program
from math import sqrt
x= float(input('Enter the number you want to get the square root for'))
num_squared= sqrt(x)
print('Your number ... | [
"noreply@github.com"
] | juliapetiteau.noreply@github.com |
8df7f4ec252f39264940d3b0ca9114440bf1427d | 1677fa0e8b61c116164252f687501fe470a965a6 | /Python Random Practice Folder/web.py | 8c0ce32a65eadbbcf691f1e4b1fb217cbcf74877 | [] | no_license | Badhansen/python-working-dictionary | 1cfbf6d04879c7fb02c39f235dba8f5ad3040ee1 | ed2ce39f6b2535a6c1c51d89436fb97adba32ec7 | refs/heads/master | 2020-04-29T04:55:26.079839 | 2019-03-15T18:34:26 | 2019-03-15T18:34:26 | 175,863,786 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | import requests
from bs4 import BeautifulSoup
def trade_spider(max_pages):
page = 1
while page <= max_pages:
url = "https://buckysroom.org/trade/search.php?page=" + str(page)
source_code = requests.get(url)
# just get the code, no headers or anything
plain_text = source_code.te... | [
"badhan.cse@gmail.com"
] | badhan.cse@gmail.com |
0a24b3a91fce7b64c9736fe1e88990657e061c7a | 616e40cc27a68a81e75e1f93cea1aee264c41ce9 | /web/app/modules/manufacturers.py | 350c38c4afbdcc9796f2ca3770175650f32f926d | [] | no_license | xiaoluoge11/Devops | 4e5b8765a68a3fce800a396ba4be35cdac97390d | 9c1b6e7a29a843d9819aa9f409b88ee462844113 | refs/heads/master | 2021-01-19T02:32:47.752370 | 2018-01-04T08:11:44 | 2018-01-04T08:11:44 | 49,615,536 | 14 | 13 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | #coding=utf-8
from app.models import db, Manufacturers
from app.utils import *
def create(**kwargs):
check_field_exists(Manufacturers,kwargs)
obj = Manufacturers(**kwargs)
db.session.add(obj)
try:
db.session.commit()
except Exception,e:
raise Exception(e.message.split(")")[1])
return obj.id
... | [
"root@xiaoluo.(none)"
] | root@xiaoluo.(none) |
9a4ddcf2d9c8cf00ab5ee0567fd2a2d9f2898023 | cabec31ced9f68ac6d183ccdf55bee702fd62444 | /utils/utils.py | a0e468db51fee0a48b2491d83724aeeb51352862 | [] | no_license | superhg2012/asr-e2e | 96c06333c071d43d138ad225971430d358b3542f | 9aeb0c54d4a53b1c5dc2478e4dff942dd636b3cb | refs/heads/master | 2021-07-09T10:38:42.284803 | 2017-09-30T15:51:01 | 2017-09-30T15:51:01 | 106,247,615 | 1 | 0 | null | 2017-10-09T07:01:15 | 2017-10-09T07:01:14 | null | UTF-8 | Python | false | false | 1,646 | py | import time
from functools import wraps
import numpy as np
def describe(func):
"""
Wrapper for any function to log theirs estimating time
Args:
func: Some function
Returns: The result value of the function
"""
@wraps(func)
def wrapper(*args, **kwargs):
print(func.__name__ ... | [
"niklemark@gmail.com"
] | niklemark@gmail.com |
1d1b706b79d817045a4458163d9e0a30057bb120 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_nets.py | 9595b4e462c02417b87f949ef703a5e57f707413 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py |
from xai.brain.wordbase.adjectives._net import _NET
#calss header
class _NETS(_NET, ):
def __init__(self,):
_NET.__init__(self)
self.name = "NETS"
self.specie = 'adjectives'
self.basic = "net"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
247a1d2d9f5a2c30d208c39d87069007bd8babe4 | 0770e82d0d83a1afb1a02eaa7dc836264bbfdf05 | /Segundo_Semestre/Classe/Classe_basico3.py | 99527f1a77b01727ef979dbfa5b1cbe2108bd1a1 | [] | no_license | vinicius-carv/Ciencia-da-Computacao | db79203396f1974a9f10be4df9ab67d624261dec | 763dd049752236860ea7f3ecf2b47d8ed47d89d6 | refs/heads/main | 2023-05-07T04:20:36.014992 | 2021-05-05T00:48:02 | 2021-05-05T00:48:02 | 310,368,822 | 0 | 0 | null | 2021-05-05T00:48:03 | 2020-11-05T17:16:53 | Python | UTF-8 | Python | false | false | 1,680 | py | import datetime
class Pessoa(object):
default=datetime.date(2000,1,1)
def __init__(self,name,birth=default):
self.name=name
self.birth=birth
def get_name(self):
return self.name
def get_birth(self):
return self.birth
def set_name(self,change):
self.... | [
"noreply@github.com"
] | vinicius-carv.noreply@github.com |
7a8658e2780e39c807703f1ce6d24759d56e59b6 | c546a4c676828aa34fb6eec633f07b84db9082ba | /test/util/test_misc.py | 277b823ae30850eab8c4f1c7852b5451029a1e21 | [
"MIT"
] | permissive | gunbra32/cate-core | 0bc73ef9682201f2763183c0e67d653f0b9e1c50 | 371ca8b1bd54ea307753917f9ebc5b2e84aeadaa | refs/heads/master | 2020-06-22T22:15:03.990577 | 2017-06-26T08:54:30 | 2017-06-26T08:54:30 | 94,225,795 | 0 | 0 | null | 2017-06-13T15:05:19 | 2017-06-13T15:05:18 | null | UTF-8 | Python | false | false | 9,160 | py | from collections import OrderedDict
from datetime import datetime, date
from unittest import TestCase
from xml.etree.ElementTree import ElementTree
from numpy import dtype
from cate.util.misc import encode_url_path, to_json
from cate.util.misc import object_to_qualified_name, qualified_name_to_object
from cate.util.m... | [
"norman.fomferra@brockmann-consult.de"
] | norman.fomferra@brockmann-consult.de |
2404b325034d97f4ecca71ac3a63c427b607477a | 93da83e4426b5fe84882adb21ec6ba2566252be5 | /WSN_CROSS_VALIDATION_AND_SPLITING_DATA_FROM_50K_TO_300K_GRAPHS_AND_PIE_CHARTS.py | 01d9670ade6aed6ad65033615c317d183f3aad9f | [] | no_license | RezviAlauddin/Intrusion-Detection-System-on-Wireless-Network-by-Data-Mining-Code-Part | cccd6e4ae43ef82373d012dac251e39abbceb1f3 | ee341d9816b2c0222a6c001fe9119b3bcee1d9f6 | refs/heads/master | 2020-06-28T21:11:31.348349 | 2019-08-03T07:00:06 | 2019-08-03T07:00:06 | 200,343,267 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,011 | py |
# coding: utf-8
# In[1]:
# coding: utf-8
# In[1]:
#all header files
#import tensorflow as tf
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import accuracy_score
from sklearn.linear_model import LogisticRegression
from sklearn.naive_... | [
"noreply@github.com"
] | RezviAlauddin.noreply@github.com |
46ff505f95a812fb8e32ef840394722926fc6756 | 24d5bafa5f925083f6a1c8ac8d750de909e6ac8b | /Assign Category.py | be6c533cb3693aa9fe9e8a9f7d5399d6cb375905 | [] | no_license | mtnekros/Trials-Project-Codes | d37fe6094cc3cbe04be0f1838aee4259649f5597 | 59cb10e4f7eff9f1e785649112a103fa78136d4e | refs/heads/master | 2020-12-03T15:34:35.036245 | 2020-01-03T09:14:09 | 2020-01-03T09:14:09 | 231,373,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | import arcpy
print("Imports Done!!\n")
way_points = r"C:\Users\PATHWAY\Desktop\Mugu Trails\all_waypoints\{AddNameFileNameHere}.shp"
arcpy.MakeFeatureLayer_management(way_points, 'waypts_layer')
# category wise keywords to include at 0 index and to exclude at 1 index
category_keywords = {
"Education Infrastructure... | [
"mtnekros@gmail.com"
] | mtnekros@gmail.com |
fc60141431fdb2a1d9447306ce86f6388d1d206b | 1422f408da469ec0659c6a7c182486c89f36b30c | /oops/Static class.py | 7bfa36719df85a33d252ce7ccc5cd54ffce97ac0 | [] | no_license | saiprasadvk/pythonprogram | df448e0ee6e5c3ecaba91b55ff01bf7ae2c98b31 | 6c8efaf35cc48e0cae0be30bda06bd7e543b0d70 | refs/heads/master | 2022-12-01T09:09:41.565623 | 2020-08-17T13:05:51 | 2020-08-17T13:05:51 | 281,454,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | 1)
class Mathematics:
def addNumbers(x, y):
return x + y
# create addNumbers static method
Mathematics.addNumbers = staticmethod(Mathematics.addNumbers)
print('The sum is:', Mathematics.addNumbers(5, 10))
O/P::
The sum is: 15
2)
class Dates:
def __init__(self, date):
self.date = date
... | [
"noreply@github.com"
] | saiprasadvk.noreply@github.com |
3c65ed2a44664d5a2adb94184c873b7c3bba5196 | 070a55b60b91049e94d607c54e89e6681acb7ea0 | /python/selenium/steam-forum-bot/loop.py | 5228d2d7d5c8d73960f0d7c6a8463283476b1d38 | [] | no_license | deadmoto/examples | 1489e291d3c2b274a45ab95d34497ef5cd1cfab6 | f9e40b769220680f72d7b2d032a2c80cefb9869d | refs/heads/master | 2021-06-08T15:59:42.275671 | 2020-10-20T19:14:34 | 2020-10-20T19:14:34 | 21,589,060 | 0 | 0 | null | 2020-10-20T19:14:35 | 2014-07-07T22:30:35 | Java | UTF-8 | Python | false | false | 268 | py | from time import sleep
from inventory import Inventory
from script import Bot
while True:
try:
games = Inventory.games()
bot = Bot()
bot.process(games)
except Exception as e:
print e.message
finally:
sleep(60 * 1)
| [
"v-dberezhnoy@expedia.com"
] | v-dberezhnoy@expedia.com |
2eed11ec265d80ff25e3c546f346c8b9f148d089 | 57a012d807e6b764d4a756ffbd075532e91e3d2a | /perception/implementation.py | 9f40de39783115da0b30ea7c6cbe40ab66c22404 | [
"MIT"
] | permissive | zbs881314/Self-Driving-Car- | 730b02042728c04bdc634e7b924bc41fad4f644c | 4e18a410b1ad6c542c72c7ee68f0a4042f45f9d3 | refs/heads/master | 2020-04-16T01:11:07.787183 | 2020-01-28T23:48:42 | 2020-01-28T23:48:42 | 165,163,547 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn import datasets
import keras
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import Adam
np.random.seed(0)
n_pts = 500
X, y = datasets.make_circles(n_samples=n_pts, random_state=123, noise=0.1, factor=0.2)
print(... | [
"shibo.zhou14@gmail.com"
] | shibo.zhou14@gmail.com |
20c48cc4a77f45fd86724abe840615267cceb96d | 4dac09a38ecfd1bec5895e82e79446522ba26a0b | /p2.py | ac71ef4688ffa96f3d67e40cc56fcf0679b1fd5c | [] | no_license | elhamrazi/ai-first-project | e63a8b4fdccef36d8e6d77400175ba74bf32297b | f733d712f1efac9f21412c7b8f6e07582c628ec9 | refs/heads/master | 2023-02-01T21:23:55.266016 | 2020-12-24T10:25:17 | 2020-12-24T10:25:17 | 321,106,901 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | import copy
path = []
created = 0
explored = 0
class Node:
def __init__(self, deck_no, parent):
self.decks = []
self.no = deck_no
self.parent = parent
def add_slots(self, slots):
for i in range(self.no):
temp = slots[i]
self.decks.append(temp)
de... | [
"elhamrazi99@gmail.com"
] | elhamrazi99@gmail.com |
b8993aa7ccaea8513fd07124d6005cdbd77c5068 | dd6cf539f20a0143acbdda1ed3f64b18b08a29b5 | /whiteList_v5/Config/2019第一季度脚本/config_fangtoo.py | 8af88ee3c64feb458b58b8f158acd47a212eef70 | [
"MIT"
] | permissive | myirelias/white_list | eec6a900cc3eea0f227425327ab55a6b46ba873d | 2bf344d2dc8f5cb3afbde71e248c019651ee3a7a | refs/heads/master | 2020-04-15T11:10:44.850942 | 2019-11-05T01:51:41 | 2019-11-05T01:51:41 | 164,618,155 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | # 房途网
TASK_NAME = 'fangtoo'
# 起始URL
START_URL = 'http://www.fangtoo.com/'
# 控制域,必须为list格式
DOMAIN = ['fangtoo']
# 请求头
HEADERS = {
'Host': 'www.fangtoo.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0',
'Accept': 'text/html,application/xhtml+xml,application... | [
"myIrelia@aliyun.com"
] | myIrelia@aliyun.com |
df5b840b8c55c2243221fa48aa5153e851743636 | 515d5d19f81324e4d021402f14028d72cb50c8f0 | /team3/Sinogi.py | a6e299d8c244a2b02e00258a2543eeff89745052 | [] | no_license | ophwsjtu18/ohw20f_code | 88a9dc9084df537ed8879780496b7fd9f440289c | 8b068fc4c53728cb5100b6c184cc7c73463562c8 | refs/heads/main | 2023-01-11T19:48:23.254168 | 2020-11-18T08:50:56 | 2020-11-18T08:50:56 | 309,934,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | import os,random,numpy
from cv2 import cv2
print('Sinogi:还就内个一头攒死')
score=0
def Q_B(event,x,y,flag,param):
global score,img,QB
if event==cv2.EVENT_LBUTTONDOWN:
if not QB[y][x].any()==0:
stp_x=y//img.shape[0]
stp_y=x//img.shape[1]
for a in range(1,img.shape[0]):
for b in range(1,img.shape[1]):
QB... | [
"1051563411@qq.com"
] | 1051563411@qq.com |
e07513b4008c37e78c551f70370709347e1bde89 | 0b4ef2684ed06cc3029226801d9b0d3a06aebb86 | /scipy_stats.py | 2ffd63b551efc2541762e59e61ce8f8cae694c3a | [] | no_license | haitwang-cloud/python_science | 5f317992a9383c3d492b8b2486214327b6f97c3d | af53ce4054084300c1c44dcc00ce7996eaf32f27 | refs/heads/master | 2021-09-28T09:08:50.090240 | 2016-10-30T14:26:02 | 2016-10-30T14:26:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 14 13:33:25 2016
@author: WangHaiTao
"""
from scipy import stats
import numpy as np
import pylab as pl
print stats.norm.stats()
X=stats.norm(loc=1.0,scale=2.0)
print X.stats()
x=X.rvs(size=10000)#对随机变量取10000个值
print '期望:',np.mean(x)
print '方差:',np.var(x)
print stats.norm... | [
"christprince23@gmail.com"
] | christprince23@gmail.com |
b8a11afd62dda6a0c4927d7d976a193bd9afeeb3 | 6f49a43d03354752676ae07ebed922f60a13267b | /utils.py | 2ebe25c78b4f46da273dc36cc74dfcfee5c21ec6 | [] | no_license | dgrissen/mint-import | 7c493c50693884306d8dffed14fa7bfa413afcb1 | 09beefd362651e0dd2ed1b6b702428a1394dd13d | refs/heads/master | 2020-05-16T21:40:01.068609 | 2015-07-11T16:47:18 | 2015-07-11T16:47:18 | 20,864,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py |
def build_post_dict(description, default_category, default_merchant, txndate, txnamount, mtIsExpense, token):
post_dict={
'cashTxnType':'on',
'mtCheckNo':'',
'tag461974':'0',
'tag461975':'0',
'tag461976':'0',
'task':'txnadd',
'txnId':':0',
'mtType':'c... | [
"darrell.grissen@eflglobal.com"
] | darrell.grissen@eflglobal.com |
0396fa2eb4a6c60be54c6de8b5c2e26b14e84240 | 90982877e08435b19934a92cd159834a2f5843f8 | /UDP/UDPServer.py | 7e0be3d7ceb4fb3a7061dbfdcfbc3ff0779be310 | [] | no_license | Hughshine/very-simple-network-programming-demos | 3d86b950fc22b97d2a0883b2b1ff59f76d78623e | 56513e9bf435cd7e300a40b41dbff5834da45cea | refs/heads/master | 2020-08-03T05:18:54.409647 | 2020-03-14T18:05:07 | 2020-03-14T18:05:07 | 211,635,766 | 2 | 0 | null | 2020-03-14T18:05:08 | 2019-09-29T09:10:08 | C++ | UTF-8 | Python | false | false | 759 | py | from socket import *
class UDPServer:
i = 0
def __init__(self, serverName='hostname', serverPort=12000):
self.serverName = serverName
self.serverSocket = socket(AF_INET, SOCK_DGRAM)
self.serverSocket.bind(('', serverPort))
print('The server is ready to receive.')
self.st... | [
"1015545250@qq.com"
] | 1015545250@qq.com |
f469e7db405db18259b6a734309b541d8c906bec | d9cda40bcb8aca54d4037bf9d714956198d9ff57 | /EjercicioC/Breduce.py | deb2f3b3c2e0fe62b038d07feccc6b2019957ae9 | [] | no_license | flanciskinho/FIC.MUEI.ICS.MapReduce | dae56a68954a2e78e43cd155915bdf6e63de0c0b | f8856078b89d0e8703908e36a6a20493a78b8c0f | refs/heads/master | 2021-01-19T05:44:42.181742 | 2015-01-13T16:07:33 | 2015-01-13T16:07:33 | 29,198,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | #!/usr/bin/env python
import sys
value = 0.0
for line in sys.stdin:
rec = line.strip(' \t\n\r').split()
if len(rec) != 1:
print 'Formato incorrecto'
exit()
try:
value += float(rec[0])
except ValueError:
print 'Formato incorrecto'
print '%f' % (value)
| [
"flanciskinho@gmail.com"
] | flanciskinho@gmail.com |
e2b98a1c28772c9818ccbe48267a4b758985e0bb | 2d34788fed3ea53e5a8d03bebf636bf29ab9dde8 | /py3k-grapheq/networkxdemo.py | 4d672fe0b8bc5ceda611d9c68156479883f23454 | [] | no_license | kummahiih/my-never-ending-projects | 60c96895bc5ef78864ac27ec0737e9dc640f155a | ba5484032a15ea8c068ce230d045a056512fd61d | refs/heads/master | 2021-01-10T20:13:31.734562 | 2015-10-31T14:38:40 | 2015-10-31T14:38:40 | 42,805,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | import grapheq
import networkx as nx
import matplotlib.pyplot as plt
def graph_maker(G):
def connect(a, b):
print (a, b)
G.add_edges_from([(a, b)])
return grapheq.from_operator(connect)
if __name__ == "__main__":
G = nx.DiGraph()
I, O = grapheq.get_I_and_O()
C = ... | [
"pauli.rikula@gmail.com"
] | pauli.rikula@gmail.com |
7967013853faa251a7c164a1774ad60bcab38057 | 84a240d463a7c286a4ff3b0c344a0e80e681ce38 | /src/chap03/10_time_dependencies/test.py | 1ae0ad5dbbf3e72fb61a6fcfb782ede2deaa843d | [] | no_license | perillaroc/ecflow-tutorial-code | 87f12b11f942b2323e45f8f8c205f665ceaeca7f | e00d0556a161a4c221b854f99dbbd0898ee14762 | refs/heads/master | 2021-09-06T04:30:48.812500 | 2018-02-02T06:48:41 | 2018-02-02T06:48:41 | 119,969,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | import os
from pathlib import Path
from ecflow import Defs, Suite, Task, Family, Edit, Trigger, Event, Complete, Meter, Time, Day, Date
def create_family_f1():
return Family(
"f1",
Edit(SLEEP=20),
Task("t1",
Time("03:00 23:00 00:30")),
Task("t2",
Day("sund... | [
"perillaroc@gmail.com"
] | perillaroc@gmail.com |
ac95e55e51e4a45b5d32403509d34f501b77358a | bacaf5520a381b9043fc8003a3b5e970f055a0b7 | /Software/utils.py | a8ef8bc95066e8b268c25d48c7c91021859c9e1a | [] | no_license | hemjyoti/MI-MPC | 494900afd31e69e8677fef8c389fd5af70f30741 | 703b93b02b952434defd08d30fd3f29060c82630 | refs/heads/master | 2023-03-07T09:59:41.276419 | 2021-02-22T12:51:55 | 2021-02-22T12:51:55 | 341,198,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,872 | py | import numpy as np
from typing import Sequence
import matplotlib.pyplot as plt
from matplotlib import rc
from matplotlib.gridspec import GridSpec
from mpl_toolkits.mplot3d.axes3d import get_test_data
# This import registers the 3D projection, but is otherwise unused.
from mpl_toolkits.mplot3d import Axes3D # noqa: F40... | [
"hemdu23@gmail.com"
] | hemdu23@gmail.com |
6ea7d621fefd4269a56d863f6213844eb685a7e1 | 50b99da2d1b565038af4b2422566504877bca512 | /Pokemon_API_Testing/TestScripts/Pikachu_Move.py | ba236b8f034a7b6843bfe91423cda867c9a8963c | [] | no_license | Bindu-KHB/Intive | 20d7bba3a378d343368cefc6d7a9515f575042b5 | 772403b9dcb7b794cc789d692ff3704e835d46ba | refs/heads/main | 2023-03-23T10:01:13.512415 | 2021-03-17T21:51:28 | 2021-03-17T21:51:28 | 347,780,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | import requests
import json
response = requests.get('https://pokeapi.co/api/v2/pokemon/pikachu')
json_content = json.loads(response.content)
for moves in json_content['moves']:
pikachu_move = (moves['move']['name'])
if pikachu_move == "thunder-punch":
print("Verified thunder-punch move found")
loca... | [
"bindu.kethireddy@yahoo.com"
] | bindu.kethireddy@yahoo.com |
ea464d0736ced0fd8a1eb5f9d260007260e87d9b | bf3b1e583c3091fc4c376eba92ecd26720a02d07 | /scripts/testgsw.py | 6eaf39eb32277848878df65f570dfa2f7d4194d1 | [] | no_license | justinecstz/dynamical_planner | f88516aa132fa5baf690e2af05758f6db7962060 | 6e6370f5378cc7a0cd789b3b1c0daee26bbf5282 | refs/heads/master | 2020-04-27T03:12:11.010896 | 2019-06-05T16:06:38 | 2019-06-05T16:06:38 | 174,018,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,043 | py | #!/usr/bin/env python
import roslib
import rospy
import math
import tf
from std_msgs.msg import String
from std_msgs.msg import Float32MultiArray
from std_msgs.msg import MultiArrayDimension
import numpy as np
oldState = ""
if __name__ == '__main__' :
rospy.init_node('getStateWolrd')
listenerMarkers = tf.Trans... | [
"justine.costaz@live.fr"
] | justine.costaz@live.fr |
42490e9d628afc7166f5dcda37a9bee303d53667 | 0a6cdc131ec7de905717eef677b0d89447b4b325 | /main/admin.py | d48cd2a6572004772a259f5db74b9054409276b4 | [
"Apache-2.0"
] | permissive | madcat1991/hh_survey_gui | 615cbd4ddb4cddd2d55e5257ad471af0b2043d3b | 30e19f4289fbfbf5eccb59f7a4c9c738877f8ffc | refs/heads/master | 2023-06-02T04:07:44.615525 | 2017-11-20T11:41:31 | 2020-04-22T15:42:01 | 257,945,556 | 0 | 0 | Apache-2.0 | 2021-06-10T22:48:35 | 2020-04-22T15:41:12 | Python | UTF-8 | Python | false | false | 905 | py | from django.contrib import admin
from main.models import HHUser, RecsReview, RecsReviewQA, ClusterRecsReviewQA
class HHUserAdmin(admin.ModelAdmin):
list_display = ('code', 'cluster_id')
class RecsReviewAdmin(admin.ModelAdmin):
list_display = (
'pk', 'reviewer', 'hh_user', 'recs_type', 'dt', 'qa',
... | [
"tgurbanov@Turals-MacBook-Pro.local"
] | tgurbanov@Turals-MacBook-Pro.local |
befb49d4dbdb7cb938cabe95b0ce64fc371134a3 | 93a10a77cfed19f6f43987d5f7333c7599990ab1 | /vpy27/Lib/site-packages/cms/cms_toolbars.py | 963e7378c772e5cbb3cd448e37d3d387bf6db174 | [] | no_license | zfanai/vpy27 | 8cd00a49cadccd462276f685dfa30d51cfdfe3d6 | 57ae83d393c569cb632b1ad0bb093a13851e10ed | refs/heads/master | 2021-07-15T20:25:41.383490 | 2017-10-21T02:18:50 | 2017-10-21T02:18:50 | 107,623,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,153 | py | # -*- coding: utf-8 -*-
from classytags.utils import flatten_context
from django.conf import settings
from django.contrib import admin
from django.contrib.auth import get_permission_codename, get_user_model
from django.contrib.auth.models import AnonymousUser
from django.contrib.sites.models import Site
from django.cor... | [
"zf_sch@126.com"
] | zf_sch@126.com |
d9e14952e66e2cf27a24b198bdb252681cfbc12d | b8986464293fb7f59476b60a1f0ae69a8da7c0a9 | /src/ansiblelint/rules/run_once.py | ea49654bee033844e590763407af7fc8f9abb7db | [
"GPL-3.0-only",
"MIT"
] | permissive | utoddl/ansible-lint | e837bac16067888918b4d856c73a118fac28e347 | fd90545c4a2527e6ff4c76f0c1f69893da6cb200 | refs/heads/main | 2023-03-18T08:06:00.445840 | 2023-01-26T17:22:32 | 2023-01-26T17:22:32 | 234,972,838 | 0 | 0 | MIT | 2020-01-19T21:46:45 | 2020-01-19T21:46:45 | null | UTF-8 | Python | false | false | 2,795 | py | """Optional Ansible-lint rule to warn use of run_once with strategy free."""
from __future__ import annotations
import sys
from typing import TYPE_CHECKING, Any
from ansiblelint.errors import MatchError
from ansiblelint.rules import AnsibleLintRule
if TYPE_CHECKING:
from ansiblelint.file_utils import Lintable
... | [
"noreply@github.com"
] | utoddl.noreply@github.com |
8b79882dc6fd8a4f17eb7a20d608e983099ff59a | b9a9316e1fe7ca8b91ca30edd174d28de7a3c935 | /prac_04/quick_picks.py | 5519f49f497cdde43552085039929f2792c8cef2 | [] | no_license | NathanMarson/Pracs | 124f67d1568baf2c37dd9addec5c67da4defff74 | a3b9dc2b035c4f3afc28af14c85fe3b19f26b73d | refs/heads/master | 2021-03-19T17:30:07.624180 | 2017-09-21T00:55:43 | 2017-09-21T00:55:43 | 100,543,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import random
NUMBERS_PER_LINE = 6
MIN = 1
MAX = 45
amount_of_picks = int(input("How many quick picks? "))
while amount_of_picks < 0:
print("Invalid amount")
amount_of_picks = int(input("How many quick picks? "))
for i in range(amount_of_picks):
quick_pick = []
for n in range(NUMBERS_PER_LINE):
... | [
"nathan.marson@my.jcu.edu.au"
] | nathan.marson@my.jcu.edu.au |
283d776bbb65004616a973203db221b48b1cdbf7 | 21f9562a4e2614b47635eaae143affaa05726669 | /Python/List-1/common_end.py | 0d6450a21923221eefa2235687b52116ac15b449 | [
"MIT"
] | permissive | LucasHenrique-dev/exercicios-codingbat | a252dd0c683e4286497c01b5502a98fbbbc76e6a | ff92db10387757b9a2e3f72be6b7e51824b1ffa6 | refs/heads/main | 2023-08-22T17:49:56.932947 | 2021-10-05T16:45:31 | 2021-10-05T16:45:31 | 319,936,676 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | """
Dada 2 listas numéricas ("a" e "b"), retorne true se elas começarem com o mesmo
elemento ou terminarem com o mesmo. Ambas terão tamanho de pelo menos 1.
"""
def common_end(a, b):
return a[0] == b[0] or a[-1] == b[-1]
print(common_end([1, 2, 3], [7, 3]))
| [
"lucas.hneto@hotmail.com"
] | lucas.hneto@hotmail.com |
3b60f69fc3a7ea2875c479c1321722d627e63862 | 0df6e77e86ba66ea4c96a0801c9f4487411eff9b | /contest/myTeam88.py | 64edf31795c86931b053f782ce88cca98ed884ca | [] | no_license | victoriacuicui/AI | 493e377a05aea9a1623e03580c5d5e2b7c977079 | 734bd39dc5186597b982b74a0b292dd1df3e2c5f | refs/heads/master | 2021-05-24T15:39:40.737784 | 2020-04-06T23:16:41 | 2020-04-06T23:16:41 | 253,635,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,763 | py | # myTeam.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# At... | [
"noreply@github.com"
] | victoriacuicui.noreply@github.com |
e103eef8d534c592e958270e5f3e32b3c8dcd461 | 38b1a23208e1e9e3fe445328718b4d2bb1218051 | /gait_identification_res_net.py | 5b3f13f2eec438d91b01f4355c07e33cbb00666c | [] | no_license | aamirsahmad/gait-deep-learning | fe46e4ef2fbb20d1501aab66151e202feaa5a431 | e3be1d9333e0124fe38119c3a9752facc14ca0bf | refs/heads/master | 2022-11-21T13:40:08.265027 | 2020-04-25T15:04:20 | 2020-04-25T15:04:20 | 282,077,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,582 | py | # -*- coding: utf-8 -*-
"""resNet.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1yqHUQTtkjIiocgKejf1pW-WAp9EtIajE
"""
# Initialize runtime
import tensorflow as tf
print('***** TENSORFLOW version', tf.__version__)
if tf.__version__ == '1.15.0':... | [
"abid.hassaan@outlook.com"
] | abid.hassaan@outlook.com |
043f5668a55597a335e31d67e4e1e990eb98918c | 6cf7e3c06425d4c3e4c16dbb5a53faf736c81efe | /Hacker_Rank/Python/dsimpleknapsack.py | 25c2100d7599f9590ac0e1da58f72ae842438a7f | [] | no_license | neuralfilter/hackerrank | 0e44c75614e8ec0f502940739e44465368eaf885 | 564552a6d4334f5bb5924779a3f63827aa40ec4a | refs/heads/master | 2021-09-06T12:08:38.389623 | 2018-02-06T10:30:27 | 2018-02-06T10:30:27 | 110,924,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import sys
sys.setrecursionlimit(10000)
k = map(int, raw_input().split())
item = [map(int, raw_input().split()) for x in xrange(k[0])]
memo = [[0]*int(k[1]+1) for i in xrange(k[0]+1)]
def knapsack(items, capacity):
for i in range(k[1]+1):
for n in range(k[0]+1):
if items == 0 or capacity == ... | [
"Seiji.Sakurai@outlook.com"
] | Seiji.Sakurai@outlook.com |
8ec1d99f62a91ecaf19456ede3265b71fd1751b4 | 149e0ac3f80646b607dde340d1c4895b7d0bb027 | /Package/otRebuilder/Dep/fontTools/ttLib/tables/sbixGlyph.py | 7c273066fa93fe58f8b5534dba12c12f6d4e22fb | [
"MIT"
] | permissive | Pal3love/otRebuilder | e86780dbfc4d76e0e5b19f26968584b1d8fff959 | a1acf28a88696dbbe8f0d23e5d4cf20ba20c4941 | refs/heads/master | 2021-01-02T08:53:13.383424 | 2018-09-21T17:45:57 | 2018-09-21T17:45:57 | 99,083,999 | 58 | 4 | MIT | 2019-06-25T06:14:17 | 2017-08-02T07:05:26 | Python | UTF-8 | Python | false | false | 4,524 | py | from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import *
from fontTools.misc import sstruct
from fontTools.misc.textTools import readHex, safeEval
import struct
sbixGlyphHeaderFormat = """
>
originOffsetX: h # The x-value of the point in the glyph relative to its
# lo... | [
"hsydyj@hotmail.com"
] | hsydyj@hotmail.com |
451b171eedc679c5013c736a0918b085ca36b46c | fbea3e5d1ecab07b15887b321cd650349f22df95 | /peterklepec_webpage/cms/dashboard.py | 4df6b11b0df775c579e8ece440fb36e4e21e822a | [] | no_license | simonrakovic/peterklepec | 2e2004c04450898107da61314ec2ba03ee93bbe7 | 58114cfbd4f85d08a4749aa34492f52e11a9925e | refs/heads/master | 2021-01-21T07:53:35.429724 | 2016-09-21T12:34:52 | 2016-09-21T12:34:52 | 24,656,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,632 | py | """
This file was generated with the customdashboard management command and
contains the class for the main dashboard.
To activate your index dashboard add the following to your settings.py::
GRAPPELLI_INDEX_DASHBOARD = 'peterklepec_webpage.dashboard.CustomIndexDashboard'
"""
from django.utils.translation import ... | [
"simonrakovic@gmail.com"
] | simonrakovic@gmail.com |
0e913315c0881967655bfda56a7ad9bb57aafd09 | 527128dab34ecde00998fd31d592d007fceaf4f1 | /Programming Language/Python/Django/CRUD_EX/crud/movie/models.py | 1821d06205aecc773172b264c53d1dcd91c8108e | [] | no_license | Doyuni/TIL | b1f29cd75d764076e030cbd79999796ff94dc3b2 | faa4c5782b8dbab8336c7581fbdca62bfb844276 | refs/heads/master | 2020-04-13T13:39:20.749601 | 2019-08-27T12:10:47 | 2019-08-27T12:10:47 | 163,237,942 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from django.db import models
class Movie(models.Model):
title = models.CharField(max_length=1000)
director= models.CharField(max_length=1000)
actors= models.CharField(max_length=1000)
date= models.CharField(max_length=1000)
length= models.IntegerField()
score = models.FloatField()
genre = m... | [
"gdypc@naver.com"
] | gdypc@naver.com |
49045f74e2997064f0e98cef7f962cae04f94c58 | ece78bd2141b3ce31bb0e52b9298734b899eb05e | /Searching_and_Sorting/counting_sort.py | b9247f231a041871dc920954a4f6899045b36073 | [] | no_license | code-project-done/Algorithms_for_Competitive_Programming_in_Python | cf4cacbe7e3f170a454dce59949973e6152737b2 | fe13c90d1bc84e1a8858c83ea32c725182106616 | refs/heads/main | 2023-04-05T04:04:26.934540 | 2021-04-11T09:01:31 | 2021-04-11T09:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | """
Assume all elements of a sequence are between 0 and C*n
we can then sort in O(n)
"""
def counting_sort(aa, m):
counts = [0] * (m + 1)
for a in aa:
counts[a] +=1
ss = []
for i in range(m + 1):
if counts[i] > 0:
ss += [i]*counts[i]
return ss
#driving code
aa = [1,4,9,5,2,1,4,5,7,8,5,6,3,1,2,4,5,6,8,5,4... | [
"pierre.machine.learning@gmail.com"
] | pierre.machine.learning@gmail.com |
421f87fca9204ad25095fbf30160db01901d451d | 0e0b9039af1ffbca7fd48da7c98fb0eb997832d8 | /ShoppingCartApp/urls.py | bfce786564859c2c092b0f41b2214982dd5afc02 | [] | no_license | aplidinio/Le-Bon-Patissier | d8ce4007300f2e1d6f2040f81657cf9f2bca4211 | cc7d766dab06fbb560be019dea1cb07e9c558bcb | refs/heads/main | 2023-04-16T08:10:07.233988 | 2021-04-29T14:48:11 | 2021-04-29T14:48:11 | 362,854,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.go_to_cart, name="cart"),
path('', views.add_product, name="add"),
path('', views.delete_product, name="delete"),
path('cart/increment_product/', views.increment_product, name="increment"),
path('cart/decrement_produc... | [
"aplidinio@gmail.com"
] | aplidinio@gmail.com |
6b7b4949450b69759c774abf27c9e1022b88da90 | 97828714f67f3d170111906f3cc3498ef131d8bf | /gl.py | 826a1561b9ec71c79f6fc9f88e045576cb587217 | [] | no_license | juanferdeleon/Lab2-Shaders | 3cf5d89879d46ad81fd0d27bfb5a4eefa67add43 | 338f4d93952eb0e59dfc03670357575cf6f49dfa | refs/heads/master | 2022-12-05T10:12:01.662190 | 2020-08-25T02:03:13 | 2020-08-25T02:03:13 | 286,584,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,579 | py | '''
Lab2: Shaders
Creado por:
Juan Fernando De Leon Quezada Carne 17822
- Bitmap Class
'''
import struct
import collections
import math
import time
from random import randint as random
from random import uniform as randomDec
from obj import ObjReader
def char(c):
'''1 Byte'''
return struct.... | [
"dele17822@uvg.edu.gt"
] | dele17822@uvg.edu.gt |
e5a8e9cec4a29bc69e85ba8cb1bfe65d0755e916 | 111f74187adc8ad9911eab538c32527f0f6b6bec | /transformerdpp.py | 1560bd4370dac5a7723da14e39cda38c3b5d3087 | [] | no_license | yongjin-shin/t2t_project | c67960ffd5d5c12cf22b7f875e7ae8377abb7012 | b1e380ea583dd4db12e6b09bd48eaf52e96173da | refs/heads/master | 2023-04-03T13:22:05.247906 | 2021-04-14T11:57:01 | 2021-04-14T11:57:01 | 228,143,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,995 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from collections import namedtuple
import math
from statistics import mean
import torch
import torch.nn as nn
import torch.nn.functional as F
... | [
"yongjin.shinn@gmail.com"
] | yongjin.shinn@gmail.com |
9500c48e7a7fbda723ca05e82f6932e50a80cc2a | 53ba1c29d6122b8afeb6578f1a338621c61f507d | /FCCeeAnalyses/ZH_Zmumu/dataframe/plots.py | 1478a35a3cf293e86dc3db7e5dd11aed9830304d | [] | no_license | selvaggi/FCChhAnalyses | dd420f5bdba60147322cc16b49479ca200e8a54c | 8f397c77229c68ad87947e6912466da4b0a6654b | refs/heads/master | 2021-04-27T17:08:28.824726 | 2020-05-21T07:42:43 | 2020-05-21T07:42:43 | 136,484,120 | 1 | 0 | null | 2019-05-02T13:12:39 | 2018-06-07T13:49:23 | Python | UTF-8 | Python | false | false | 1,547 | py | import ROOT
# global parameters
intLumi = 5.0e+06 #in pb-1
ana_tex = "e^{+}e^{-} #rightarrow ZH #rightarrow #mu^{+}#mu^{-} + X"
delphesVersion = "3.4.2"
energy = 240.0
collider = "FCC-ee"
inputDir = "Outputs/FCCee/ZH_Zmumu/"
formats = ['png','pdf']
yaxis = ['lin','log'... | [
"clement.helsens@cern.ch"
] | clement.helsens@cern.ch |
983ebd7e879bf7254691eb140325136ad1219624 | a9bca0df6e7c3396f3b367b55eebedc6f02fe197 | /crm/admin.py | 9b5b8d04224c0d7b7e527c514e7a8c52af6fc53c | [] | no_license | jojotrujillo/maverick-food-services-crm | f53187b6cae8ca09c675b61a9903b0d4e1ea6372 | 87a3955c3284096dac6979bc29f5c510a695745f | refs/heads/master | 2022-04-16T06:47:47.040308 | 2020-04-16T22:07:21 | 2020-04-16T22:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | from django.contrib import admin
from .models import Customer, Service, Product
class CustomerList(admin.ModelAdmin):
list_display = ('cust_name', 'organization', 'phone_number')
list_filter = ('cust_name', 'organization')
search_fields = ('cust_name', )
ordering = ['cust_name']
class ServiceList(ad... | [
"56196564+jojotrujillo@users.noreply.github.com"
] | 56196564+jojotrujillo@users.noreply.github.com |
7e143995d7e137dcb1934363b26de9cf57999bab | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5040/404005040.py | 9579f1c988fb1681ddca7d2da3451a5a5e882284 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 3,935 | py | from bots.botsconfig import *
from records005040 import recorddefs
syntax = {
'version': '00504',
'functionalgroup': 'SR',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'ZC1', MIN: 0, MAX: 1},
{ID: 'BX', MIN: 0, MAX: 1},
{ID: 'BNX', MIN: 0, MAX: 1},
{ID: 'M3', MIN: 1, MAX: 1},
... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
5998b15a75ebaad20a7b1706fc64dc7e5b9ddbbc | 4d8095a63f935697d6fbfac43cd243f53abde937 | /test-lstm.py | bb777422ceb84cf4371a7bdfa8ef89dd4f03d33b | [
"Apache-2.0"
] | permissive | xuanhan863/clstm | d9bb36407d68a1e261497ec1fe432c0e527a1a2c | d67cbab3216fad75b71014e90358e436f310b693 | refs/heads/master | 2021-01-17T07:04:33.966030 | 2015-10-23T00:30:42 | 2015-10-23T00:30:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | #!/usr/bin/python
from numpy import *
from pylab import *
from numpy.random import rand
import clstm
net = clstm.make_net_init("lstm1", "ninput=1:nhidden=4:noutput=2")
net.setLearningRate(1e-4, 0.9)
N = 20
ntrain = 30000
ntest = 1000
print "training 1:4:2 network to learn delay"
for i in range(ntrain):
xs = array(r... | [
"tmbdev@gmail.com"
] | tmbdev@gmail.com |
54000c1f3749adf95d4eaa554253e54925cac65f | 9826c9d5d9e845a06ac33b80133f17eb3782bbdb | /1205_polymorphism.py | b79cb62b3efcfd1e0f5625cd2a7696654147524a | [] | no_license | sujitdhamale/Python | 0a33ec12fab88df3659e311ff606d79803249828 | 644ea529ed87b0fa4048157f79bfe18a2c156a0e | refs/heads/master | 2020-03-20T04:51:59.508929 | 2019-01-24T14:13:19 | 2019-01-24T14:13:19 | 137,197,180 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | #!/usr/bin/python
#1205_polymorphism.py by Sujit Dhamale
#to Applying polymorphism to classes
class india:
def citizen(self):
print("I am Indian citizen")
def language(self):
print("i speak Hindi")
class maharashta(india):
def state(self):
print("i am Maharashtrain ")
... | [
"noreply@github.com"
] | sujitdhamale.noreply@github.com |
df41d124547958669afd3d7ea5b16fa84c6e8a15 | 867f54b7ce0c5fb8a8a86d6b4c1703b0ef2dcde2 | /code/centralize_data.py | 4aaf1657d21eb0758b9440919c0413b292682533 | [] | no_license | lucy3/reddit-sent | 800dccb8eb0ceffa898e2d4175a20746387f8942 | d1cb144f0ac78d4a055ddd742bc6f0792274759f | refs/heads/master | 2020-03-16T23:59:07.248572 | 2018-10-31T23:13:24 | 2018-10-31T23:13:24 | 133,098,656 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,163 | py | """
Takes the original input files and creates
for each subreddit three files per month
- 1) bigram counts of words
- 2) unigram counts of words
- 2) a list of username \t num_comments
"""
from pyspark import SparkConf, SparkContext
import json
from collections import Counter
import time
import os
import string
import ... | [
"lucy3@stanford.edu"
] | lucy3@stanford.edu |
e6184f7d2d02d159763a29f3a82e470b14b4109a | 859ede6d97dc0c8a802f172aadaac13bac562be6 | /FaceReco/index/migrations/0012_auto_20191202_1010.py | 1372e036022894f82cb4863dca46c0accd98184f | [] | no_license | Zhora1337/diplom | b8c0725b3b299941e261c9b47f4e07903b108038 | 4c4909abaeea6c5c5061ef0a55047947a4a53ea4 | refs/heads/master | 2022-04-02T12:28:30.841442 | 2020-02-16T11:14:21 | 2020-02-16T11:14:21 | 233,037,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | # Generated by Django 2.2.7 on 2019-12-02 10:10
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('index', '0011_auto_20191202_1004'),
]
operations = [
migrations.AlterField(
model_name='us... | [
"zhora1337@protonmail.com"
] | zhora1337@protonmail.com |
51cf6cb246c8fc7206420f5ca0b4ca38daf503b7 | 9a2413b572c0f89b1f80899a10237657d9393bd6 | /sdk/python/pulumi_keycloak/generic_client_role_mapper.py | 7482298398ca25d54904f73e31411f577ced592b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jaxxstorm/pulumi-keycloak | 5c25363ece6af49dad40bd693ce07b1fa0dedd74 | 2fc7b1060b725a40d2ada745aa0d10130243a0b5 | refs/heads/master | 2022-10-10T13:11:04.290703 | 2020-06-05T19:11:19 | 2020-06-05T19:11:19 | 270,870,883 | 0 | 0 | NOASSERTION | 2020-06-09T01:08:56 | 2020-06-09T01:08:55 | null | UTF-8 | Python | false | false | 4,797 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from . import utilities, tables
class Generic... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
6dd3dd37611b504ca0edb6b8ca13703a61b50382 | e34632d5bd4f8ebd0cb8157422c532506a5bfbde | /Bagging/Distance_Classifier.py | f44a731458f47f13ec9bda98540a4f811f26c461 | [] | no_license | APM150/P-value_Research | 747240bf02e76edf7678832203bad47d9932696a | 1fd863cc1b9499f654f3c32658ead1d4928e464c | refs/heads/main | 2023-02-09T12:03:11.490176 | 2021-01-04T22:55:51 | 2021-01-04T22:55:51 | 326,827,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,132 | py | import pandas as pd
import numpy as np
from sklearn.neighbors import KDTree
from sklearn.preprocessing import normalize, StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.neighbors import RadiusNeighborsClassifier
import matplotlib.pyplot as plt
import math
from collections import default... | [
"xujohnathan021@163.com"
] | xujohnathan021@163.com |
65829eeb65794e19da467166a19446c84cae71ac | c495a029c258a2d4ad7b264aa80eb4285389d518 | /main_site/main_site/urls.py | 45742fbd1adc6be1517b3b50bece30511c047848 | [] | no_license | xliu59/weather-powered-email | 9c2cc65b64017f4cc9a4ca2f5e87e5380768866d | 0243886814768414e830899d1182cfc6f6881763 | refs/heads/master | 2021-03-30T21:06:23.900283 | 2018-03-13T14:27:54 | 2018-03-13T14:27:54 | 124,992,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """main_site URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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')
Class-bas... | [
"xiaoxiaoliu@Xiaoxiaos-MacBook-Pro.local"
] | xiaoxiaoliu@Xiaoxiaos-MacBook-Pro.local |
4c10cbd3c907d2b700a4587d67043ec7b66c5280 | f098c361ee79bb8b7a8402fcf20b37f17fb36983 | /Back-End/Python/Basics/Part -3- Hash Maps/04- Serialization and Deserialization/_04_JSON_singledispatch.py | 5bac467735833efd499c104e8e24e933427f5fe3 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | rnsdoodi/Programming-CookBook | 4d619537a6875ffbcb42cbdaf01d80db1feba9b4 | 9bd9c105fdd823aea1c3f391f5018fd1f8f37182 | refs/heads/master | 2023-09-05T22:09:08.282385 | 2021-10-31T11:57:40 | 2021-10-31T11:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,389 | py | import json
from datetime import datetime
log_record = {
'time': datetime.utcnow(),
'message': 'Testing...',
'other': {'a', 'b', 'c'}
}
def custom_json_formatter(arg):
if isinstance(arg, datetime):
return arg.isoformat()
elif isinstance(arg, set):
return list(arg)
print(json.dum... | [
"58447627+Koubae@users.noreply.github.com"
] | 58447627+Koubae@users.noreply.github.com |
e410730572e9364ca72db41147389438c4725f12 | 38c10c01007624cd2056884f25e0d6ab85442194 | /extensions/extensions.gypi | d7306813a707108e1338e08175390f6649ec65d3 | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 51,840 | gypi | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'extensions_common_constants_sources': [
'common/constants.cc',
'common/constants.h',
],
'extensions_common_mojo_s... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
590b9fd2ea6dfed86d269fba53a4565637c2103e | e25ecc8eccfdee66c718be9873c2c542a1f0a19d | /scripts/handle_excel.py | 2c2b7d74b832955bc206a75cd80f10c170538a06 | [] | no_license | yhusr/interfacework | 87cb0e14b5b46b2bbfac54f6c80394bc69a94992 | 7f177d36a25c680ddec4fa412e6175bc6c5e6576 | refs/heads/master | 2020-11-25T08:08:54.192931 | 2019-12-17T09:07:47 | 2019-12-17T09:07:47 | 228,568,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | """
Time:2019/12/14 0014
"""
import openpyxl
from scripts.handle_path import EXCEL_PATH
class ExcelObj:
pass
class HandleExcel:
def __init__(self, sheetname, filepath=None):
self.sheetname = sheetname
if filepath:
self.filepath = filepath
else:
self.filepath ... | [
"904239064@qq.com"
] | 904239064@qq.com |
3cd0764c9f5a7b5a555056774f3636ba504dd12a | 4b7a4235e6ad1afd04e0414a2260f2441c6f82a3 | /CIA 2 Project/Tweets and Survey datasets/Twitter Dataset and Code/Preprocessing.py | 3d654cd4c9fab7b7356286329599aa985ed8105b | [] | no_license | jonam-code/2MDS-Project- | 2c9c8d037ba1dd645d9b151343594eedc0ba3344 | ee2335950d50d1d8e360af54ee3c731a538c2960 | refs/heads/main | 2023-05-09T22:53:39.550194 | 2021-06-06T14:10:24 | 2021-06-06T14:10:24 | 367,129,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,516 | py | import tweepy
import GetOldTweets3
from textblob import TextBlob
import pandas as pd
import numpy as np
import re
import os
import string
import matplotlib.pyplot as plt
data = pd.read_excel("TN2021.xlsx" ,engine='openpyxl')
# Removing #,@ RT and hyperlink
def cleanTxt(text):
text = re.sub('@[A-Za-z0... | [
"noreply@github.com"
] | jonam-code.noreply@github.com |
3f9e4b13120e90d782172aec6e2e96cb6abacaf3 | 6647d0b08cb7613db150fa1f5c7b6b6aafc5e71b | /parsers/tests/test_fieldparser.py | 052fc9cf8161f884b0375edfbac6f638bc64c19f | [
"MIT"
] | permissive | mertsalik/faruk_bot | fb332cc13876e8eae169f68740d4b0e2aabf4e79 | cc7be67ad1d5468ef4f906541cc4c33faaa6d9d5 | refs/heads/master | 2021-09-03T05:58:55.595645 | 2018-01-06T04:15:39 | 2018-01-06T04:15:39 | 116,296,336 | 0 | 1 | MIT | 2018-01-06T04:15:40 | 2018-01-04T18:57:28 | Python | UTF-8 | Python | false | false | 1,584 | py | # -*- coding: utf-8 -*-
import os, sys
import unittest
from parsers.fieldparser import FieldParser
__author__ = "mertsalik"
__copyright__ = "Copyright 2018"
__credits__ = ["mertsalik", ""]
__license__ = "Private"
__email__ = ""
class TestFieldParser(unittest.TestCase):
def setUp(self):
dir_path = os.path... | [
"mertsalik.itu@gmail.com"
] | mertsalik.itu@gmail.com |
ae2983b7c1a49b7a841ae018dc45418c67d67c30 | 824de7f2bce18c06f2f02db955ad079b89a5ad33 | /Sakila/MongoDB/Models/rental.py | f666dc168afd4678c21f629ca23841b31c3dca08 | [] | no_license | mariadias143/BDNOSQL | 378156985dbfe433b04893f1ed0180af791aebb8 | dbb9dae341d92db5e17bb0bfe9ca444f27c94619 | refs/heads/master | 2022-03-26T09:20:42.553158 | 2020-01-14T01:07:42 | 2020-01-14T01:07:42 | 213,943,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | from datetime import datetime
class FilmRental:
def __init__(self,id,title,categories):
self.id = id
self.title = title
self.categories = categories
def toDic(self):
dic = {}
dic['film_id'] = self.id
dic['title'] = self.title
dic['categories'] = self.cat... | [
"diogosobral98@gmail.com"
] | diogosobral98@gmail.com |
76daed50724ba448496cf829ca671984cb8b47b7 | 0e6d2167a8e13c2040382a734ec3aadf221b6b61 | /model_test/model_test.py | 0bee584e1b7ec725e49146325a4d01cc12e5258d | [] | no_license | potatowagon/drangler | 2216fde0141fb9818374f70bf32443898fb565ee | fb22ff41cf0ec35c723ffff604e32162f9302786 | refs/heads/master | 2020-04-21T18:27:16.307947 | 2019-04-21T15:23:56 | 2019-04-21T15:23:56 | 169,769,966 | 0 | 1 | null | 2019-04-21T14:56:11 | 2019-02-08T17:07:20 | Python | UTF-8 | Python | false | false | 2,226 | py | import unittest
import numpy
import pandas
from sklearn.ensemble import RandomForestClassifier
from sklearn.neighbors import KNeighborsClassifier
from sklearn.preprocessing import normalize
from validation import ConfusionMatrix
from validation import LOOCV
from validation import KFold
from joblib import dump
class Te... | [
"th3bomberry@hotmail.com"
] | th3bomberry@hotmail.com |
cee671906f006b2298a9e9071b8bf2c43320fd39 | 5c7b6f96aef9a2c605c8e16eb0e3f6e2ab958947 | /settings.py | 454c3f98b426329036c61e8949009c6ba0b54d30 | [] | no_license | chapkovski/progressbaracrossrounds | 0137ce4a552edf9027eb092f1d9e0abde5cc6e8e | 62905f17d456fc6a7a57fa1fe91b510593740518 | refs/heads/master | 2021-07-03T20:53:58.758511 | 2020-09-03T22:19:49 | 2020-09-03T22:19:49 | 87,289,409 | 0 | 0 | null | 2021-06-10T20:38:02 | 2017-04-05T09:07:49 | Python | UTF-8 | Python | false | false | 1,797 | py | import os
from os import environ
import dj_database_url
from boto.mturk import qualification
import otree.settings
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# the environment variable OTREE_PRODUCTION controls whether Django runs in
# DEBUG mode. If OTREE_PRODUCTION==1, then DEBUG=False
if... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
13151916578e33525fc62cc87b57543a25f74961 | 621ef837693219b4bb39ebf38d92e9d966615234 | /Server/Server.py | da820090808f2e4695e33429950061de1db2f6cc | [] | no_license | nckspec/Robot | 3a7cde7e9bcadb3d0b1db1145f10f40eb3c01a70 | d7dfd6652e69f54fb589c070f0c5914291f47ae0 | refs/heads/master | 2020-05-01T19:06:29.355508 | 2019-06-24T04:30:59 | 2019-06-24T04:30:59 | 177,639,797 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pygame
import sys
import os
import pygame.display
import time
import pygame
from pygame.locals import *
import pickle
import struct
import socket
from CameraViewer import CameraViewer
from functions import recvall, keysPressed
# PROCESSING: Initialize pygame
pyga... | [
"nspectorit@gmail.com"
] | nspectorit@gmail.com |
7eb6576a8db4d87e29120d93a3ee3c45b38431a9 | 8f9e1e393124565370d8256abc477c7517124021 | /build/catie_test_scenario/catkin_generated/pkg.installspace.context.pc.py | cc832812d8ca90e4c36f80f50d47e28cda184f37 | [] | no_license | AlexToy/SimpleNavigationGoals | 8e5338d1ed0bdf1a8b344f9775e924a1fbb19ad3 | 5f756daa89218f267534197f3eacb8d2de25d39f | refs/heads/master | 2022-04-24T05:27:30.387576 | 2020-04-23T13:01:17 | 2020-04-23T13:01:17 | 254,588,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "catie_test_scenario"
PROJECT_SPACE_DI... | [
"alexandre.haristoy@gmail.com"
] | alexandre.haristoy@gmail.com |
8e51a0dfbfdf66b676078f02d1c490a4556b5378 | 71bdcd164d0ff23472ea5604c3290744ebd2064b | /C4 - Week2/bwmatching.py | 2cc439f72465e8e2a4032216f07889845687d470 | [] | no_license | JuhiSrivastava/Algorithms-on-Strings | cc3fd1cc7bc0e3a4fdfa8b3f3141caa04d2b8526 | ad285f6b1ad4dde8fbd98d185401946369116a8f | refs/heads/main | 2023-02-10T13:19:43.455082 | 2021-01-06T18:39:26 | 2021-01-06T18:39:26 | 327,399,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | # python3
import sys
def PreprocessBWT(bwt):
lastCol = [(val, idx) for (idx, val) in enumerate(bwt)]
firstCol = sorted(lastCol)
starts = dict()
occ_counts_before = dict()
CA = 0
CC = 0
CG = 0
CT = 0
occ_counts_before['A'] = [0]*(len(firstCol)+1)
occ_counts_before['C'] = [0]*(le... | [
"juhi2812@gmail.com"
] | juhi2812@gmail.com |
995d3364d9f1610b752d62d9502e69c61b685f68 | 1164dbd41b85a3f7e5849e1385fd53cd59701880 | /weathermonitor/__init__.py | 6c316d201844716dc841c271a40789b47305e222 | [] | no_license | scizorman/weather-monitor | 4f3bbd6d990a1e2b7e271d91d92ccf913cd5a59a | abc76a7a15e55e016764a59899526792eba49dd9 | refs/heads/master | 2022-12-15T10:22:52.127753 | 2018-12-04T13:17:05 | 2018-12-04T13:17:05 | 159,391,590 | 0 | 0 | null | 2021-06-01T23:06:39 | 2018-11-27T19:58:28 | Python | UTF-8 | Python | false | false | 127 | py | # coding: utf-8
from . import communicator
from . import core
from . import device
from . import exception
from . import utils
| [
"tueda1207@gmail.com"
] | tueda1207@gmail.com |
0bc03a6906489336817aebc3bd23c41f53bdff07 | 6db56dd65aacbc3313b9b54209459f8f7819295a | /code/featurization.py | 0c4fb9ae48f608df9a17437c031da969554eca58 | [] | no_license | shoshosho/test | bddc4bdf8597243d30988859554be1609d486a32 | 731ab8e863bb7a4f704d945addd35e627be4bc76 | refs/heads/master | 2021-01-19T11:45:20.686550 | 2017-09-09T09:35:40 | 2017-09-09T09:35:40 | 87,994,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py | import pandas as pd
import numpy as np
import scipy.sparse as sparse
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
try: import cPickle as pickle # python2
except: import pickle # python3
import sys
try: #python2
reload(sys)
... | [
"shoichi_tagu@r.recruit.co.jp"
] | shoichi_tagu@r.recruit.co.jp |
b19d4c48e98253f0c798e34a47492d4728a86040 | 440e4f13d6b3939f0290931bcd984591f191f9f9 | /demo/XmlResourceSubclass.py | 3ffb043f8b415e55275f9873d23bd8a36a423eb2 | [] | no_license | AlfiyaZi/Phoenix | b445e6906eb61d037c83957ce601d731dc04acfa | c524ed1a3794ec4d2baaba6b12d6d7ef37aa7695 | refs/heads/master | 2020-06-16T18:04:42.696173 | 2016-11-24T18:39:47 | 2016-11-24T18:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,717 | py | #!/usr/bin/env python
import wx
import wx.xrc as xrc
#----------------------------------------------------------------------
resourceText = br'''<?xml version="1.0"?>
<resource>
<!-- Notice that the class IS a standard wx class, and a custom
subclass is specified as "moduleName.ClassName" Try changing
... | [
"robin@alldunn.com"
] | robin@alldunn.com |
dcb8464506d3eb9dc51cf3f6fac3227e35f31256 | 932c30383a5a3b8f70f182fb160e172826531b2c | /tools/sapp/sapp/ui/tests/interactive_test.py | 88e66ed924672725b2e7e540da16bcbba6688a25 | [
"MIT"
] | permissive | fylux/pyre-check | 78581f8ed68764bb46be6f686d74cbbc25828556 | a675dc272a973972544e595c567bf432993c2b3a | refs/heads/master | 2023-01-01T23:38:11.453527 | 2020-10-24T17:14:28 | 2020-10-24T17:14:28 | 298,233,128 | 0 | 1 | null | 2020-09-24T09:36:45 | 2020-09-24T09:36:45 | null | UTF-8 | Python | false | false | 84,132 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
import os
import sys
from datetime import datetime
from io import StringIO
from typing import List
from ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
018303baac51bce1395bd7f696c5d62cd7c9eb0a | 33ef3ed340e727510ee4c2cd86d98519cf21cd81 | /models/grad_cam_net.py | 66a0c1111ced1c67417c9a50ce0ef5e430a6d1e7 | [] | no_license | yzhoulv/DC-ResNet | 389e4cee07547ac085dc9170f91f4dff830484b3 | 71b0f4a5236208eea0c2a2f0d5234d66d1b2199c | refs/heads/master | 2023-04-20T10:16:39.325083 | 2021-05-10T10:53:00 | 2021-05-10T10:53:00 | 365,207,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,763 | py | # -*- coding: utf-8 -*-
"""
Created on 18-5-21 下午5:26
@author: ronghuaiyang
"""
import torch
import torch.nn as nn
import math
import torch.utils.model_zoo as model_zoo
import torch.nn.utils.weight_norm as weight_norm
import torch.nn.functional as F
from torch.nn import Parameter
from config.config import Config as op... | [
"541306483@qq.com"
] | 541306483@qq.com |
407355a1562808da15e69bb8a69a193481bb59db | 4d33f3aa47dddca0928c68fc5d58c003ac64679c | /applesoranges/cc/migrations/0010_remove_numericdata_qualifiers.py | 11ad28c8d8ec59efe6a7f052ff19af2e6b41f174 | [
"MIT"
] | permissive | crpainter/contextual-comparatives | 66c2b817c912c9331639f276e41801697d1cdf2f | e46e3970d7ca1d9bd6d0366d01c34b9d4cf1deb2 | refs/heads/master | 2020-04-29T17:44:35.657470 | 2016-06-14T07:09:02 | 2016-06-14T07:09:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cc', '0009_auto_20160217_2215'),
]
operations = [
migrations.RemoveField(
model_name='numericdata',
... | [
"chaganty@stanford.edu"
] | chaganty@stanford.edu |
f907ff4ba829fa54dbcfe70929820da5e97f9185 | 6fd5dc76db76869e94484442096448fde405e41c | /dankmeme.py | 273471c5927d375de373eba2c26a6d43792fbff4 | [] | no_license | Rocksheep/lambot | 42151a86a08ff93b12ba147f7ef1136df6d050d4 | 578cd1a760d36306949949f1c5bdbaa32e3b14f9 | refs/heads/master | 2021-01-10T15:27:43.409817 | 2016-02-04T10:37:04 | 2016-02-04T10:37:04 | 51,068,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from configparser import ConfigParser
from imgurpython import ImgurClient
import random
cfg = ConfigParser()
cfg.read('config.ini')
client = ImgurClient(cfg.get('imgur', 'client_id'), cfg.get('imgur', 'client_secret'))
def get_random_dank_meme():
items = client.memes_subgallery('viral', random.randint(0, 3))
retu... | [
"rien@dailydialogues.nl"
] | rien@dailydialogues.nl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.