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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8c040bcc27e5e281cd4496ce81d4e54bdd56d799 | 52125c518edbad99f5bb76d662397e34c0c281db | /users/forms.py | 70f19ee26329d74b3bb5578e77871a3eb6c02ab6 | [
"MIT"
] | permissive | Mich45/geddit | 531a883e07ec282eaecc482591817ab6c9be77e2 | 6b985221d117e982b17dc48697bb8f611baa3366 | refs/heads/master | 2022-11-21T01:28:48.389908 | 2020-07-20T07:29:20 | 2020-07-20T07:29:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Profile
class UserRegisterForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
fields = ['username', 'email', 'first_name']
... | [
"arthtyagi7@gmail.com"
] | arthtyagi7@gmail.com |
6d0725c591adc561c92b70e30aa85c54b60ff22e | c43825a9c2e88edd36af5f2e6088eae5f0b30822 | /service3/__init__.py | 1408208fb651cc957765054f47331f765c1c360c | [] | no_license | NaailC/milestone | a7d218ec60a74679aa8ba9633d14b5e6dbcc3f40 | 28189ce4d521696876a80c7f4ad31edec94bdb04 | refs/heads/main | 2023-03-02T04:41:27.558763 | 2021-02-01T14:21:19 | 2021-02-01T14:21:19 | 334,973,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import logging
import random
from random import randint
import azure.functions as func
def main(req: func.HttpRequest) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')
numbers = ''
for _ in range(5):
numbers += str(random.randint(0,9))
return func.H... | [
"naailchoudhury@gmail.com"
] | naailchoudhury@gmail.com |
199f6cc9892da170451dd4f3f6f97aebd4b38111 | a582676e281e8bd490bce79f17880d6195d96b83 | /vote_site/settings.py | b803bffe6f7207c5ecaa63b42c223f78bfec2c91 | [] | no_license | kyledavelaar/django-voting-app | 1e435b85bed0891fe2a56715495e10cedabf6793 | c79aa8a723483a63bf0aae663c6eed3431b79f8a | refs/heads/master | 2021-06-27T20:17:52.850025 | 2017-09-09T21:24:13 | 2017-09-09T21:24:13 | 102,985,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | """
Django settings for vote_site project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | [
"kyle@Kyles-MacBook-Pro.local"
] | kyle@Kyles-MacBook-Pro.local |
934aee2b86464868a709c9fd85fcb5b54022c3bb | 0d88817307e26e3d4e5c26a0e6c8a1d5bf37711f | /stopp/stopp.py | aaace6eb13d18932db4d6d6b91b63be27f01183f | [
"MIT"
] | permissive | AbdelrhmanBassiouny/stopp | 12b406824d780dea56a20eed5a046ef8b56df258 | 2713d49e038f640e87ecf8513705651c0ee3e0d1 | refs/heads/master | 2022-06-15T08:04:56.196553 | 2021-08-01T12:57:54 | 2021-08-01T12:57:54 | 252,969,836 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,758 | py | import numpy as np
from .data_structs import RobotKinematics
from .joint_profile import ConstructJointProfile
from .trajectory_utils import EnsurePathHasOddSize, FindMaxJoint, SynchronizeJointsToTrajectory, ValidateRobotPath
class Robot:
""" define a robot with certain kinematic limits to be used when constructi... | [
"Bassio@programmer.com"
] | Bassio@programmer.com |
22ea3dfa2f6015821056ffa9d08c9af757802e96 | c845f20c02b44809cc4a514637f01de7770c9661 | /goods/生产许可证.py | 528cf03319bf36a2f89122ad11910d904f90d092 | [] | no_license | 20181105879/Student | 2c2e275cfb334decd36e74d7c35d268f6947f6e5 | 90c31298997ec2c9b88c9f6d8dafd90438c75c77 | refs/heads/main | 2023-05-04T05:16:19.773862 | 2021-05-23T14:28:58 | 2021-05-23T14:28:58 | 369,209,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py |
import requests
import json
if __name__=='__main__':
url='http://scxk.nmpa.gov.cn:81/xk/itownet/portalAction.do?method=getXkzsList'
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36'
}
idlist=[]
item... | [
"260575145@com"
] | 260575145@com |
b2fcc624e79ef9ef10c62818cb0c7d2d93c0d250 | 080bbe77da955b3917435c25fc63b90b0f3c724e | /botorch/utils/multi_objective/box_decomposition.py | e566f0c69e493acd4370a0a28582374334f572aa | [
"MIT"
] | permissive | irinaespejo/botorch | 3d15d962ff0f5bb34fbd11b2eb7549db755af705 | e4dcf603fdaf83f0e5f8b9b392f943c89dfff7eb | refs/heads/master | 2023-07-11T18:02:11.853790 | 2021-08-19T15:57:21 | 2021-08-19T15:58:12 | 316,017,084 | 0 | 0 | MIT | 2020-11-25T18:02:11 | 2020-11-25T18:02:09 | null | UTF-8 | Python | false | false | 744 | 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.
r"""
DEPRECATED - Box decomposition algorithms.
Use the botorch.utils.multi_objective.box_decompositions instead.
"""
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
48c1efe4bbfd4c809710895b5744853d0202dcf6 | b59d1471c918168da512f52c33ca18f02caf75e3 | /examples/mylexer.py | 2d7cfc728152e68cc6e687d7236873688a18dd16 | [] | no_license | lordmauve/dsls-talk | 0473fda93d1229aad3be27da3a0cc1f04df978a3 | 8cb0df9ecc0c84e472f774b681b499d8c4973853 | refs/heads/master | 2020-07-23T11:16:44.556189 | 2015-07-24T10:48:15 | 2015-07-24T10:48:15 | 207,540,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import ply.lex as lex
tokens = 'ADDOP MULOP LPAREN RPAREN NUMBER'.split()
t_ADDOP = r'[+-]'
t_MULOP = r'[*/]'
t_LPAREN = r'\('
t_RPAREN = r'\)'
def t_NUMBER(t):
r'\d+'
t.value = int(t.value)
return t
t_ignore = ' \t'
lexer = lex.lex()
| [
"lordmauve@users.noreply.github.com"
] | lordmauve@users.noreply.github.com |
187fe74df27234c89d53fd123734475bb1c8d243 | c1631ba56600424e5cc473ccf160b5d935b4301c | /demo/BDTB.py | 843840155faaf0525e85e266cbb4d22b3d9890f1 | [] | no_license | misasagi1988/webcrawler | 149155a6b5c1141722bcb9e06c13c93d862fbf58 | bf3a1ea732cef3830ecebd90a67bf34a448422d5 | refs/heads/master | 2020-11-29T14:51:26.137966 | 2016-08-29T05:49:31 | 2016-08-29T05:49:31 | 66,517,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,709 | py | # -*- coding:utf-8 -*-
import urllib2
import re
class Tool(object):
pattern_img = re.compile('<img.*?>| {7}')
pattern_addr = re.compile('<a.*?>|</a>')
pattern_line = re.compile('<tr>|<div>|</div>|</p>')
pattern_td = re.compile('<td>')
pattern_para = re.compile('<p.*?>')
pattern_br = re.compile(... | [
"meng_yujing@yeah.net"
] | meng_yujing@yeah.net |
a8569f82ed1a73ffbd59f8b49866754ec53e411d | 9dfb3372a1e4516d970a6e9d0a9fd8360580eae7 | /python pySerial/maping_data.py | feb9a76200b26899373a1eeba25711e6b4835877 | [] | no_license | clambering-goat/cameron_pyton | d1cd0e7b04da14e7ba4f89dcb4d973f297a4626c | df0b0365b86e75cfcfc2c1fc21608f1536a3b79f | refs/heads/master | 2021-07-14T20:37:37.021401 | 2019-02-28T07:52:11 | 2019-02-28T07:52:11 | 137,251,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import serial
y_points=[]
with serial.Serial('COM4', 9600, timeout=1) as ser:
for q in range(20000):
line =ser.readline()
x=line.decode("utf-8")
#print(x)
y_points.append(int(x))
import matplotlib.pyplot as plt
x_points=[]
for q in range(len(y_points)):
x_points.append(q)... | [
"camerondrain@gmail.com"
] | camerondrain@gmail.com |
664fef8dbbee5f880d4f0a0866edc6ccd5676737 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/Full_v6Production/template_seed/templates_jhchoi/MassPoints2018/List_MX.py | ca93c1c06e444ba9cee292c6bdab834fd117111f | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 396 | py | List_MX=[
115 ,
120 ,
124 ,
125 ,
126 ,
130 ,
135 ,
140 ,
145 ,
150 ,
155 ,
160 ,
165 ,
170 ,
175 ,
180 ,
190 ,
200 ,
210 ,
230 ,
250 ,
270 ,
300 ,
350 ,
400 ,
450 ,
500 ,
550 ,
600 ,
650 ,
700 ,
750 ,
800 ,
900 ,
1000 ,
1500 ,
2000 ,
2500 ,
3000 ,
4000 ,
5000 ,
]
if __name__ == '__main__':
#print('( '+" ".join(str... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
9dbcb505b639e22b90865fcb3eba2f55754885fd | 4ee88fa57d9bfe91032ef8b0ce8cce1e56bf728e | /api/content/test/test_router.py | 1b35b6dade56e0c4d493fb880b4e2793135df061 | [] | no_license | mnbbrown/contenter | b42198aa232d2fac6f3630f76e29319dac809ad3 | 3eda6777d1aae253afbde7a00fee362f61e45490 | refs/heads/master | 2021-05-21T19:07:05.140753 | 2020-04-03T15:01:33 | 2020-04-03T15:01:33 | 252,764,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import pytest
from api.content.models import ContentType, Entity
def test_list_content_types(client):
response = client.get("/admin/content/")
assert response.status_code == 200
def test_create_content_type(client):
response = client.post(
"/admin/content/", json={"name": "content type", "fields... | [
"me@matthewbrown.io"
] | me@matthewbrown.io |
145a90c675971039d677b9e3411c7b6f30d2cde6 | 59be93c710d9e1750d2767f1c98f347ed3dc635c | /elements/when.py | 308f8c8d7c8fbbc825abfaf9cd8a8914f92fd203 | [
"MIT"
] | permissive | artemZholus/elements | 802d14eb574be0c3f18a50fdbc87ee262fbcd01a | 21b4f27e854d91a65619e8fc81b3916386c5ef66 | refs/heads/main | 2023-07-10T05:21:28.947510 | 2021-08-18T18:02:05 | 2021-08-18T18:02:05 | 397,594,638 | 0 | 0 | MIT | 2021-08-18T12:35:49 | 2021-08-18T12:35:49 | null | UTF-8 | Python | false | false | 711 | py | class Every:
def __init__(self, every):
self._every = every
self._last = None
def __call__(self, step):
step = int(step)
if not self._every:
return False
if self._last is None:
self._last = step
return True
if step >= self._last + self._every:
self._last += self._ev... | [
"mail@danijar.com"
] | mail@danijar.com |
02e5bd573ae6af8746e876ded4b58af4d7b07a9d | 22f63ddb67d7b170754550fba80277461f90b23f | /Bump_attractor_network.py | 9e22e8d725be2bd8213bd0fe99b3aca36ca4ae10 | [] | no_license | HenriAton/CA6 | bd1745697af067b6e6751f4554275bf1b697563c | 18e5ccce0029cf3ac9cddc2b6fff751bf67aba52 | refs/heads/master | 2021-08-30T06:02:45.907256 | 2017-12-16T10:04:35 | 2017-12-16T10:04:35 | 109,322,073 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,953 | py | import matplotlib.pyplot as plt
import numpy as np
import scipy as sp
from scipy import signal
import os #to create directory if needed
## Define the parameters
#Parameters model
#Number of neurons
N=360
# All-to-all connectivity matrices
W0=1 #not given in the paper
# Strength of excitation
GEE=6... | [
"noreply@github.com"
] | HenriAton.noreply@github.com |
c949825bd197d7e4f5ac77c89814626a99bf58ae | d36546287721db2e97e0a4323e143163a14ce0b1 | /2017/20/particle_swarm.py | 9eec47de4d5275002ef18cae18495acda5fa59a1 | [
"Unlicense"
] | permissive | GeoffRiley/AdventOfCode | ca258edee05ad7a4b6e6db2e59b83e8879b48af0 | 567df9cb5645bc6cf4c22063a84a621039069311 | refs/heads/master | 2023-01-12T03:42:11.099541 | 2022-12-25T17:16:20 | 2022-12-25T17:16:20 | 225,139,440 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | import re
from collections import deque, Counter
from copy import deepcopy
from dataclasses import dataclass
from operator import add
from statistics import mean
from typing import List
@dataclass
class Particle(object):
id: int
pos: List[int]
vec: List[int]
acc: List[int]
@property
def dist(... | [
"gir6@ou.ac.uk"
] | gir6@ou.ac.uk |
84b5119f4a7da520c9709538e33f4b9ed1d635b2 | ab499e9d6927ded1e11874975bc12c21a107973b | /Code - Data_Cleaning_Analysis/taxi6/reduce.py | b486e29d2b0040c273bfc39d22674ae22a857757 | [] | no_license | adewin/NYC-Weather-vs-Taxi-analysis | 5dc6a6df5ba8007370b94cc5508387f13b8d0228 | 9b7718fed555adfa95be8bc4283f9f304c7e1627 | refs/heads/master | 2020-07-01T05:53:19.696772 | 2017-04-29T16:34:20 | 2017-04-29T16:34:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #!/usr/bin/python
import sys
oldKey = None
totalSum = 0
for line in sys.stdin:
data = line.strip().split("\t")
if len(data) != 2:
continue
thisKey, thisValue = data;
if oldKey and oldKey != thisKey:
print "%s,%i"%(oldKey,totalSum)
oldKey = thisKey;
totalSum = 0
oldKey = this... | [
"da1722@nyu.edu"
] | da1722@nyu.edu |
df04408ea19ba007c8c896dee247c69359930c60 | 7cd865dbf48dfdf9bfe7404b7046e6d026e24b87 | /tree/BST/Print BST keys in the given range.py | 29397ca31a77eca6c25a0344f7712e26834e7f32 | [] | no_license | rishikeshpuri/Algorithms-and-Data-Structure | 93e718f7f73cdf8eacfd56cb6de651dbe5ba0eec | 6d9d7e2003327461a8bc5ac00d2037bc0d61f3f3 | refs/heads/master | 2020-12-15T17:20:57.893997 | 2020-01-20T20:43:56 | 2020-01-20T20:43:56 | 235,192,251 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | class Node:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def print_range(root, k1, k2):
if root is None:
return
if k1 < root.value:
print_range(root.left, k1,k2)
if k1 <=root.value and k2 >= root.value:
print(root.val... | [
"noreply@github.com"
] | rishikeshpuri.noreply@github.com |
2c76743609405faec1c19b81f0f1195064f29b9a | 0672600aca6eecc0e2b51ec794063103f5effd43 | /jobads/migrations/0024_auto_20210112_2355.py | 8789a38c385842dcfb66e6a453d74d908cf1899a | [] | no_license | pxian/careercare | 871f22459e1544e3e78b71dea1ba393c5d6f3d03 | 91e483bb65affb9d415e53fb4142ec1e9b2dbccc | refs/heads/main | 2023-02-20T18:45:38.175948 | 2021-01-25T03:30:00 | 2021-01-25T03:30:00 | 330,128,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | # Generated by Django 3.1.3 on 2021-01-12 15:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('jobads', '0023_merge_20210111_2144'),
]
operations = [
migrations.CreateModel(
name='test_emplo... | [
"phooixian@hotmail.com"
] | phooixian@hotmail.com |
9155110a9ae58bc903e5e05dc9dfed7c7bdc4cea | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-1645.py | 4a5e725248f8e0b1a645420a84fb9273621ed52e | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,292 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
c07aa82c886d791ed37e80ecf66b26fe3ba26449 | f59860bb4d04007cf03258753aefcbf58e760db0 | /music/migrations/0005_song_datetime.py | a64764e5215f82e94025a21d14a4720153be91ab | [] | no_license | Arefeh902/station_49 | fc306d7668d64c68df7dba35adbdc25d5600544a | 3076e4ab616759f5aa0a973525c0436b603f942f | refs/heads/master | 2023-07-01T10:25:39.820956 | 2021-08-10T18:47:28 | 2021-08-10T18:47:28 | 391,368,241 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.1.9 on 2021-08-07 08:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0004_auto_20210807_0806'),
]
operations = [
migrations.AddField(
model_name='song',
name='datetime',
... | [
"alimahdiyar77@gmail.com"
] | alimahdiyar77@gmail.com |
b45e4c13c16af6af208d3b3e8386d1021777db67 | 685a0a66d6499849f9ccdbca59bf79f2f64a4203 | /manpy/simulation/applications/CapacityStations/CapacityStation.py | 3a8d13e57b5ff2e1a1bb870295e00da860ca0b75 | [
"MIT"
] | permissive | sunhughees/manpy | b05271f53875f8b0f5a09b2f0df01cc6c05df869 | 0056eb6e93cba3bf2a1061f9170aa2a1edf248f6 | refs/heads/master | 2022-12-14T10:06:59.334817 | 2020-08-20T17:31:30 | 2020-08-20T17:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,222 | py | # ===========================================================================
# Copyright 2013 University of Limerick
#
# This file is part of DREAM.
#
# DREAM is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Founda... | [
"pedro@datarevenue.com"
] | pedro@datarevenue.com |
5f7222976fb35436291dddf6bb8506aa13684468 | c6e2731a9d9757cb37c849266d7dd68ff8f1e879 | /accounts/migrations/0001_initial.py | c57fcbfff1355c533895c1fde4a2580a33ef48c5 | [] | no_license | lucaskruk13/dogfightWebsiteNew | aa989d344b87b050fd3691fcbb132c6050528c02 | d9a05efbdbb02b24ab5e9707aba1bc69e38f825a | refs/heads/master | 2020-04-17T05:49:09.325257 | 2019-01-17T21:16:43 | 2019-01-17T21:16:43 | 166,298,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | # Generated by Django 2.1.5 on 2019-01-17 03:19
import accounts.models
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable... | [
"skywalker@lucass-air.lan"
] | skywalker@lucass-air.lan |
2787877ab7c4b47fa32149dee05ec29535e288c6 | e52d1885191694c5098e17c10c6957a8222f753f | /PhotoStudio/views.py | 7681e1fbe834b88eaabe3df3f27b43cfee8076f9 | [] | no_license | LalitNath1221/pUkStudio | 17ea355ccca61ee59294706d142cbc83cb6cecd1 | 55ae04ddec8b30f6c2b0b09a981ad972fafb1337 | refs/heads/master | 2023-06-14T00:32:59.265234 | 2021-07-11T06:13:29 | 2021-07-11T06:13:29 | 384,870,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,693 | py | from django.http import HttpResponse, request
from django.shortcuts import render, redirect
from django.core.mail import BadHeaderError, send_mail, EmailMultiAlternatives
from django.conf import settings
from .models import Appointments, Queries
from socket import gaierror, timeout
from django.contrib import messages
... | [
"lalitgosai2002@gmail.com"
] | lalitgosai2002@gmail.com |
b563563bd985a3f9d737ea973f8314bd6fb8f40d | 9d2b33eb85fca3a81ccb7272422c41a08467a8c4 | /pdm/formats/requirements.py | 37c230c8eab420dab9e877204074086b6fe605a6 | [
"MIT"
] | permissive | skyoo2003/pdm | 9b9d20079f325c087855c7a37a4270d36fa71131 | 95a758ee259dff02f00f0a3eab79fa23e5d2aa97 | refs/heads/master | 2022-12-12T18:01:36.331560 | 2020-09-04T01:16:41 | 2020-09-04T01:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | import hashlib
import urllib.parse
from pip._internal.req.req_file import parse_requirements
from pdm.models.markers import Marker
from pdm.models.requirements import parse_requirement
from pdm.utils import get_finder
def _requirement_to_str_lowercase_name(requirement):
"""Formats a packaging.requirements.Requi... | [
"mianghong@gmail.com"
] | mianghong@gmail.com |
72171071e30159663bde7ae3c5659354955ca45c | 9aecf38356351986889b162fced066c1c4cf775a | /name.py | af29007a7745d852251fdf3d870d28d5904c987f | [] | no_license | Saitop/CS50.4_Python-JS_web_programming | 51c2c6e7911c28eb4ddf65c0c981fcb1d031db9f | c2ed428fda5dcecc713dfa91bf28c2e520109c37 | refs/heads/master | 2022-11-24T16:43:16.725590 | 2020-07-25T17:06:10 | 2020-07-25T17:06:10 | 282,488,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | print("please input your name:")
name = input("Name: ")
print(f"Hello, {name}")
| [
"saitoplam@hotmail.com"
] | saitoplam@hotmail.com |
c7718ce92c4ae61570c07bd6d5c0985424cb7b5d | 922da7c12b4f675c9a538c710e25752322918106 | /archive/mitsuscreenshots/mitsuscreenshots/main.py | 6823005f0611350fc5fbd93fc99407067fb1e29b | [
"Unlicense",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | NikaDark16/python-projects | 412b991086b4cde49576844792d0823415ef1aaa | 569dae888d3dbf05fc39b759de5635164a79922c | refs/heads/master | 2021-05-23T12:20:12.845526 | 2020-01-27T11:33:31 | 2020-01-27T11:33:31 | 253,283,491 | 3 | 1 | Unlicense | 2020-09-30T19:20:43 | 2020-04-05T16:45:22 | null | UTF-8 | Python | false | false | 907 | py | # !/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
import mitsuscreenshots.cli as cli
import mitsuscreenshots.gui as gui
import mitsuscreenshots.organize as organize
__author__ = "IceArrow256"
__version__ = '3'
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config', hel... | [
"icearrow256@gmail.com"
] | icearrow256@gmail.com |
eb1a62f56f2ffc107571e481f289733b9e687a09 | 5642ba9c9ba25768757e31f681eb8573c02e2e52 | /django/ws17/index/admin.py | 2940d331ae074237d884291b067a9e0922f74f0e | [] | no_license | intaekShin/TIL-c9 | f2ce3f857481feeb9de7f388d8e25cbdc11cacc5 | f63bb7b71601196e91303ff03a26c25f1e07b445 | refs/heads/master | 2020-04-17T17:17:57.184912 | 2019-05-02T03:09:08 | 2019-05-02T03:09:08 | 166,777,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from django.contrib import admin
from .models import Student
class StudentAdmin(admin.ModelAdmin):
list_display = ('name', )
# Register your models here.
admin.site.register(Student, StudentAdmin) | [
"sit921212@gmail.com"
] | sit921212@gmail.com |
bef3b9ad03bdc33f7171cc9b588f198ce873e861 | 62922a76e40003f3d3a7d02282853f9a2b76c6fc | /cv2/ch22/test1.py | 1172f8de48d2bc9bfba7168431a2727b16325054 | [] | no_license | cchangcs/ai_learning_record | a7d0d9c7fcdc1e97d8869aa7e63b535f8cf62df2 | 235a90ff5fe0205334376a927d462b8ae64e4e70 | refs/heads/master | 2020-04-01T16:59:31.203223 | 2018-11-21T11:12:34 | 2018-11-21T11:12:34 | 153,408,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # encoding:utf-8
'''
斑点检测SimpleBlodDetector()
斑点检测:默认检测黑色点,如果要检测白色的点需要设置bycolor为true,并且color数值为255
斑点通常是指与周围有着颜色和灰度差别的区域,在实际的图中,往往存在着大量这样的斑点,如一棵树是一个斑点,一块草地是一个斑点。
由于斑点代表的是一个区域,相比单纯的角点,它的稳定性更好,抗噪声能力更强,所以它在图像配准上扮演着重要的角色。
同时有时图像中的斑点也是我们关心的区域,比如在医学与生物领域,我们需要从一些X光照片或细胞显微照片中提取一些具有特殊意义的斑点的位置或数量
'''
import cv2
import numpy as n... | [
"752340690@qq.com"
] | 752340690@qq.com |
8023c70563e9521e74a25e84b2e0594f82363218 | 5357547a3d7eb14904c7a7c15f6d804e095cbca3 | /August 2019/09th August 2019/validateBinarySearchTree.py | 982ead0197bd3aee7e86e33b36c5a790a97b2508 | [] | no_license | MichaelOgunsanmi/dailyCodingChallenge | 3aaff98e07263dfde79192c5e040fc5f2523066b | 2ca318b2be10be6af5b7130dd14627047cf257e8 | refs/heads/master | 2023-03-16T13:57:07.998943 | 2023-03-09T10:38:15 | 2023-03-09T10:38:15 | 195,297,943 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | # Source: https://leetcode.com/problems/validate-binary-search-tree/
# Level: Medium
#
# Date: 09th August 2019
"""
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.
The ri... | [
"ogunsanmimichael@gmail.com"
] | ogunsanmimichael@gmail.com |
72467a52dc9e6ecba8e2954a405841694aeb43f4 | 6168968d8dd813a9070f87fb2309366852a1d627 | /run.py | 8271c3b793b6f476b9de2f50e899c0a9078d8f16 | [] | no_license | Edb83/love-sandwiches | 58d0b92dccc46b3738eb0a8b41b618020eebe83d | 6ac727b610d54ee31e48a98dce0d0dafdde7bc24 | refs/heads/main | 2023-07-29T19:09:46.819604 | 2021-09-08T18:13:08 | 2021-09-08T18:13:08 | 403,935,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,131 | py | import gspread
from google.oauth2.service_account import Credentials
from pprint import pprint
SCOPE = [
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive"
]
CREDS = Credentials.from_service_account_file('creds.json')
S... | [
"62900492+Edb83@users.noreply.github.com"
] | 62900492+Edb83@users.noreply.github.com |
b1d84ff6d8719c6d1cb346458bafaa88df886d86 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/nanoAODv5/v6_production/2017/NJET_biined_WJets/SKIM10/HMVar10_Full_ALL_var/MassPoints/structure_M1500.py | 006d035cd83abd3e70ffc306361571ee477e383b | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 1,725 | py | #['WW', 'ggHWWlnuqq_M1500', 'DY', 'DATA', 'WZ', 'ggHWWlnuqq_M125', 'ZZZ', 'ggHWWlnuqq_M900', 'vbfHWWlnuqq_M500', 'Wjets1j', 'QCD_MU', 'WZZ', 'vbfHWWlnuqq_M900', 'QCD_bcToE', 'Wjets2j', 'QCD_EM', 'ggHWWlnuqq_M500', 'ZZ', 'WWW', 'vbfHWWlnuqq_M1500', 'vbfHWWlnuqq_M125', 'WWZ', 'Wjets0j', 'top']
QCD_MU=['QCD_Pt-15to20_MuE... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
f8624618ec8af27c85fe2f7d142c1b79ab69ae1b | 66c0e47287c8e7737cf93adc6c42f84bf1dfe31c | /sagemaker/serve/utils_nlp.py | 48e18ef2ac7236d0fe3874a04a3e0ae489e663cb | [] | no_license | reneang17/deep-toxic-analysis | ed1c10e5631dbd2bd3255aea9ce2e51e2072fcb5 | b42147366f54aefa2009506b9e1498286624c59d | refs/heads/master | 2020-09-03T02:37:15.164813 | 2020-01-02T03:36:16 | 2020-01-02T03:36:16 | 219,363,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | import re
rep_numbers=re.compile(r'\d+',re.IGNORECASE) # Numbers
rep_special_chars= re.compile("[^\w']|_") # Special character but not apostrophes
def apostrophes(text):
return re.findall(r"\w+(?=n't)|n't|\w+(?=')|'\w+|\w+",
text, re.IGNORECASE | re.DOTALL)
def text_to_words(text):
text=r... | [
"ec2-user@ip-172-16-29-12.us-east-2.compute.internal"
] | ec2-user@ip-172-16-29-12.us-east-2.compute.internal |
4d8b9892b21dc06b532dbbcb1ec60eb0dfe5ef79 | a8de5fb308cc351cb84ff465c7619d25080d5cd5 | /s.py | f1b086e1387c8bd7b4f6800fc64b3a129e68b485 | [] | no_license | Anil2144/python-basics | 6ab4c3c7a77763a3f5fd7e71dc42d402ecea2d92 | 7ece9f9a58af0959eef19a99437a4b32b426d836 | refs/heads/master | 2022-11-27T06:27:04.344515 | 2020-07-21T07:22:20 | 2020-07-21T07:22:20 | 275,876,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | print("anil\treddy")
| [
"noreply@github.com"
] | Anil2144.noreply@github.com |
ad04f80a228f6453c99bb617772d78fcf7ed8e48 | 517ff269c8aaca5edf8b754dc81fbbdb37adde28 | /PatternCounting.py | 40c03215ec5a2c5feb9c15105d29891cf5726a20 | [] | no_license | Andrewwu73/BioInformaticsAlgorithms | 0d681bcc43b721dd743c1030042b2b19fbb04393 | e2bd4029ef60ee4fee96567b45e93f673eecc665 | refs/heads/master | 2020-06-24T18:43:20.462859 | 2020-02-27T00:30:11 | 2020-02-27T00:30:11 | 199,049,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | a = input("")
b = input("")
count = 0
for k in range(len(a)-len(b)+1):
if(a[k:k+len(b)]==b):
count = count + 1
print(count) | [
"andrewswu2000@gmail.com"
] | andrewswu2000@gmail.com |
622882398cd5c1e5077722f60c7aa9e77ef203af | 0ad8fc76aebe7ce22abe771fbeadf227e5b471cb | /app/productdb/tasks.py | 8cb6cd358ef178da1d7cd5290af4ab4a8389c040 | [
"MIT"
] | permissive | ppavlu/product-database | 354c6a1a3e9ebfdc931f2aacf8751ed0f149401c | 09610c09600c63eb91106c0b5a2fa995b134dbf4 | refs/heads/master | 2021-01-17T22:51:43.247027 | 2015-10-11T11:37:12 | 2015-10-11T11:37:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | from django_project.celery import app as app
from app.productdb.models import Settings
import app.productdb.crawler.cisco_eox_api_crawler as cisco_eox_api_crawler
import logging
logger = logging.getLogger(__name__)
@app.task(serializer='json', name="synchronize_with_cisco_eox_api")
def execute_task_to_synchronize_c... | [
"henry@codingnetworker.com"
] | henry@codingnetworker.com |
cdc7e016f9ad364f72d1571461759254c34eab98 | 8955cc12cc644b8ed1dbc59c6801242cf0824f87 | /edmshyft_code/GaussFit.py | 3bd05561fa9d37db0069313955d121bc9cb1faed | [] | no_license | mattbellis/Siena_College_Danielle_Berish | 565e76392c65c0be9b8fba294671bb00e08b8956 | 11eaef1dfc2e3d165f978f9014469a635a44d5bd | refs/heads/master | 2020-04-16T02:45:40.070587 | 2014-04-01T08:39:40 | 2014-04-01T08:39:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | #!/usr/bin/env python
from ROOT import TH1D, TH1, TCanvas
import ROOT
import numpy as np
import sys
import matplotlib.pyplot as plt
#################################################################################
# Read in the file from the command line
infile = None
if len(sys.argv) > 1:
infile = open(sys.arg... | [
"berish@serenity"
] | berish@serenity |
31e927f3c4978a6c84c65f9dd512111ab7794a3b | 34af993fb0c26e9b154effc01a3117e38a134ce7 | /esp32-micropython/sys/boot.py | 5089da4e1aa9574e20c3423bbaaa39057060fa80 | [] | no_license | dida1012/Edublocks_ESP32 | 467401c2c100a09acffd1afced80b8fa6956520f | b4d97afba499a303f7558c561484625b86e2b4b4 | refs/heads/master | 2023-01-22T07:29:23.147930 | 2019-11-17T22:02:45 | 2019-11-17T22:02:45 | 222,307,141 | 3 | 0 | null | 2023-01-12T05:57:25 | 2019-11-17T20:24:56 | TypeScript | UTF-8 | Python | false | false | 1,023 | py | import sys
import gc
import webrepl
from lib import screen
from lib import wifi
from lib import panel
try:
screen.fb.set_line_range_palette(0, 12, 0b1111100000011111, 0x0000)
screen.fb.set_line_range_palette(12, 24, 0b0000011111100000, 0xffff)
screen.fb.set_line_range_palette(108, 120, 0b0000011111111111,... | [
"daviddiener@outlook.com"
] | daviddiener@outlook.com |
e7c933c7739f81bba762a05bd13220dda275b7ae | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Wyx_w_M_w_Sob_to_Wz_focus/IN_Sob_k5_EroMore/Sob_k35_s001_EroM/pyr_Tcrop255_p60_j15/pyr_5s/L7/step09_5side_L7.py | 94ce9cec1f7924ce4d28ef2ca3b168732be84876 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399,932 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
a7a4d6e5592f92cb3623341644968b8963217700 | a80916c83c67cacb33d7d1a66ad3c6acb9b3cc32 | /SVM-examples/breast-SVM.py | 514cd4bcc742df07dcdd7b82e5822109d7ba86d6 | [] | no_license | brynelee/gk_dataanalysis_practices | 3f82255abd253fcdca0fedcc2fffba124ac55b70 | 723dac7592a55fe6b422c74c03684a11d869e72d | refs/heads/master | 2020-07-22T21:36:22.935095 | 2020-04-14T16:21:56 | 2020-04-14T16:21:56 | 207,335,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | # -*- coding: utf-8 -*-
# 乳腺癌诊断分类
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
from sklearn import svm
from sklearn import metrics
from sklearn.preprocessing import StandardScaler
# 加载数据集,你需要把数据放到目录中
data = pd.read_csv("./SVM-examples/da... | [
"bryne_lxd@sina.com"
] | bryne_lxd@sina.com |
43f563d0761110d21a9addf1d57a833d60af3c04 | e25f1cafc3e63e468d103918ebcf901867e3d786 | /Assignment2/q5-2.py | cbfaf8a06d698af1b5fab4edcd8104d4f56d406d | [] | no_license | lebrice/IFT6135 | 726ee55c4d331a3a632a2038af8cf81e207db510 | e0a28e21124718a59027ffce68c47b0cb4562aef | refs/heads/master | 2020-04-18T14:47:19.555720 | 2019-04-23T00:13:03 | 2019-04-23T00:13:03 | 167,597,823 | 0 | 0 | null | 2019-03-19T03:11:36 | 2019-01-25T18:57:37 | Jupyter Notebook | UTF-8 | Python | false | false | 2,427 | py | import torch
from torch import nn
import numpy as np
import matplotlib.pyplot as plt
from models import FullTransformer
from q5 import get_best_model, train_data, ptb_iterator, repackage_hidden, Batch, device
def run_batch(model, data):
model.eval()
if not isinstance(model, FullTransformer):
hidden = ... | [
"jerome-pl2@hotmail.ca"
] | jerome-pl2@hotmail.ca |
89c2127cdb13c6c6248abfba21d3cdb0eba90d73 | 3b9fdd117bfcfa86b1e354b2c193727e7567cb76 | /proxyuser17/proxyuser17/apps/myapp/models.py | 9a06f4b7a626979e8ea1971891cbd06fbebd22c1 | [
"BSD-3-Clause"
] | permissive | marcofucci/django-ticket-24506 | 84beb913b2db2993034e199c3a63c2cde60fa9aa | 88a36d792e77fb70c12224ea6a02774015ddbc84 | refs/heads/master | 2021-01-21T11:37:23.621884 | 2015-03-22T12:55:25 | 2015-03-22T12:55:25 | 32,672,309 | 0 | 1 | null | 2015-03-22T12:55:25 | 2015-03-22T11:11:24 | Python | UTF-8 | Python | false | false | 314 | py | from django.db import models
class FKUserModel(models.Model):
user = models.ForeignKey('core.User')
def __unicode__(self):
return u'%s' % self.user
class OneToOneUserModel(models.Model):
user = models.OneToOneField('core.User')
def __unicode__(self):
return u'%s' % self.user
| [
"marcofucci@gmail.com"
] | marcofucci@gmail.com |
f98b81c01d75af857e62bdb4215ea2e8bd610be9 | f3d7cdf664cd4dd17acb600871bcfab8d38dc6ba | /01_MCNN_Result/00_AES_HD/MCNN(org,ma100,pca).py | 450fac2c2f33b3ba0ab9e756ae2278193216d9c9 | [] | no_license | mitMathe/SCA-MCNN | 1bf2a8c6ec792bb96a6c1beae4ce4e06703c5fd0 | 0dafbfc1f9d57ff264bc961d31b092995e488117 | refs/heads/main | 2023-03-16T06:03:05.872179 | 2021-03-03T06:51:06 | 2021-03-03T06:51:06 | 343,676,120 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,175 | py | import os.path
import sys
import h5py
import numpy as np
from numpy import *
import random
from tqdm import tqdm
import matplotlib.pyplot as plt
import struct
from ctypes import *
import tensorflow as tf
import os
import time
import shutil
import sys
import binascii
import pickle
from keras.models impo... | [
"noreply@github.com"
] | mitMathe.noreply@github.com |
ab0cab89b2414d9573a94e530d85774ff67f6f5b | 7d8e74a400927fb3c9b9a37adb5802107d6184d9 | /airports/utils.py | ca7a3a757a903d1421454cebcff37aa9dc89af0c | [] | no_license | garytouchsoft/airports | 4c17dfd0cd5fb695e13feac33585bb2fb0d26828 | 46559a31f9e92de1e7303b830f653bbe6a6445fd | refs/heads/master | 2023-07-01T02:36:02.119495 | 2021-07-29T17:26:45 | 2021-07-29T17:26:45 | 390,801,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | from math import cos, asin, sqrt, pi
def find_airport(airports, latitude, longitude):
found = None
nearest = 100000
for a in airports:
lat1 = float(latitude)
lng1 = float(longitude)
d = distance(lat1, lng1, float(a.latitude), float(a.longitude))
if d < nearest:
... | [
"extgarykennedy@gmail.com"
] | extgarykennedy@gmail.com |
f1d925c52d0d73f77dbb39812e5db0b68f59cf6d | 84a65bb80441dea2e3b5d0e8b957e68762bd6c60 | /snowmass/snowmassSubmit.py | ba35c48d0c4dd000c9bb12338e9f1509a6d21285 | [] | no_license | jstupak/UserCode | cc559c04ebe074e6c3add08e1da95da08e73ff20 | 4a720642914b5f779de2bb02eaa41ef2927161a0 | refs/heads/master | 2021-01-19T18:10:56.212998 | 2013-06-29T20:14:34 | 2013-06-29T20:14:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,284 | py | #!/usr/bin/python
import os, sys
from datetime import datetime
from snowmassSamples import allSamples as theSamples
relBase = os.environ['CMSSW_BASE']
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Job config
doBackgro... | [
""
] | |
e34c717eb62a620f52cb209c03274c86b346ba74 | ccb17eaa277838efd23f8bd2522b5e69fda6ec5b | /hello_world/hola.py | ec5c538b8d0b8973338934effe253ab5f1235aca | [] | no_license | danilozte/learningC | 3c145869a3853c7ef56720ba076547ee3d6bb9ad | 4a994ac3f28e78023142a539c47afd4c0968dc1b | refs/heads/master | 2023-03-30T12:47:19.922288 | 2021-03-11T22:07:24 | 2021-03-11T22:07:24 | 346,822,840 | 0 | 1 | null | 2021-03-11T20:51:06 | 2021-03-11T20:03:25 | C | UTF-8 | Python | false | false | 100 | py | # este es el unico archivo.py
print("Python es lo mejor")
print("Python es mejor que c")
input(" ")
| [
"felipeagq99@gmail.com"
] | felipeagq99@gmail.com |
b4bf75c5fddbcf8887a7ebd127e00e1c3a3fcbfd | df190642c10d93a1ded605748245d2cff9daf337 | /MxNet/5-predict.py | ab191064e90eb33b462c6a2c24b04894a63c34e1 | [] | no_license | philloidin/AdvancedPythonForBio | fcb7a52bfc4f1fad85b17d89ee52790db81d6714 | 5d50664c78bc02228c59e8ccfe7a395d64f14a4e | refs/heads/master | 2021-09-22T17:45:59.915389 | 2018-09-12T21:40:11 | 2018-09-12T21:40:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | plt.imshow(val_img[0], cmap='Greys_r')
plt.axis('off')
plt.show()
prob = model.predict(val_img[0:1].astype(np.float32)/255)[0]
assert max(prob) > 0.99, "Low prediction accuracy."
print 'Classified as %d with probability %f' % (prob.argmax(), max(prob))
valid_acc = model.score(val_iter)
print 'Validation accuracy: %f%%... | [
"lynnlangit@live.com"
] | lynnlangit@live.com |
ce724e74bd828e57ea1364efbcb346377f4226af | da76317b35fa2848589ffd5b38fe0182c9de6f73 | /annotations/views.py | f3f7465ced5ba5e077a957dcc21598127eef84f5 | [] | no_license | hemagso/pokefind | d5a03d1767c70466c32d6c6577ebc4ea169681cf | 59bb8bb7e47771416a808cb1f828b85e64a4e46e | refs/heads/master | 2020-04-19T12:44:13.153254 | 2019-01-30T20:40:43 | 2019-01-30T20:40:43 | 168,198,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,559 | py | # Django boilerplate
from django.http import HttpResponse
from django.shortcuts import render
from django.db.models import Max
# Data models
from .models import Pokemon, Annotation, AreaAnnotation, Image, FAQItem, FAQGroup
# Standard library
from datetime import datetime
import json
import random
def index(request)... | [
"hemagso@gmail.com"
] | hemagso@gmail.com |
c3ca98e5d8c7a2b7a60bee0667267c57f753f0a6 | 6bf97e57103b9ddd639a91a0c371f86b3bce60d8 | /pure_ee/earth_engine_start.py | 48154028788ff39dfead3649a9176c9cbc69a261 | [
"Apache-2.0"
] | permissive | geosconsulting/gee_wapor | 655372722eed9e1c00ef7880870bd85c7953d64a | c3c451fcb21664172a74647fe5d9e56f312aa1df | refs/heads/master | 2021-01-13T05:01:37.233979 | 2017-03-01T14:09:08 | 2017-03-01T14:09:08 | 81,427,303 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 3 04:59:03 2017
@author: fabio
"""
# Import the Earth Engine Python Package
import ee
# Initialize the Earth Engine object, using the authentication credentials.
ee.Initialize()
# Print the information for an image asset.
image = ee.Image('srtm90_v4')
print(image.getI... | [
"geos-consulting@fastwebnet.it"
] | geos-consulting@fastwebnet.it |
c3c0fe953162e894aab721bf5e7817ed8b7c94ce | 16acbf7c73b172cf993a66ff8aa84376d12d1f19 | /migrations/versions/18552074ce1a_.py | d5cc3ea58f68331ac846a8a26c9167aafc1545dd | [] | no_license | apexkid/realive | e5c18c57f7aafd7f485db14a7055cac17b41db00 | eb31655478308195716e744b2531dcbc0e1510a6 | refs/heads/master | 2020-04-09T02:15:42.686539 | 2015-04-25T12:10:21 | 2015-04-25T12:10:21 | 34,567,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | """empty message
Revision ID: 18552074ce1a
Revises: None
Create Date: 2015-04-25 17:38:17.506401
"""
# revision identifiers, used by Alembic.
revision = '18552074ce1a'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###... | [
"aadi@0c4de9c6553e.ant.amazon.com"
] | aadi@0c4de9c6553e.ant.amazon.com |
6d32a6f67ce35aef72c121b3210ad72f27a32c9e | 98d34b4c9dec318f783c37bd3612a0f9a5a9b16d | /credit/migrations/0009_auto_20170929_1320.py | 6d099d0b2302c5c48c2ce44f0d99c2ef2f2ece34 | [] | no_license | Toweringweed/db | 5718792f3647c99232c3c48426b49b392a32e9c2 | 18109ce6ba15233b9ca27c1c2ea7e4ba21b92b21 | refs/heads/master | 2021-09-08T10:42:43.135989 | 2017-12-14T06:34:48 | 2017-12-14T06:34:48 | 107,344,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,332 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-29 05:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('credit', '0008_auto_20170928_1628'),
]
operations = [
migrations.CreateMode... | [
"xiaohou09@gmail.com"
] | xiaohou09@gmail.com |
6f89a5f67208f94eeef6c4be009c08ce1b707e3c | 7262436a2fbb5645318b8cca080572a6deb507ca | /lexical/tokenize.py | a9911d9fb8fb3e55b0b906aa0035725539fa731d | [] | no_license | lysine1217/lyspy | 2047ff117f7c778cd80d876a8d2f9e5e051d25e0 | c5356ea7c64b0b57773831c966aeb7c44ae895a6 | refs/heads/master | 2021-01-17T17:07:50.774709 | 2014-06-19T15:22:35 | 2014-06-19T15:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # -*- coding: utf-8 -*-
"""
simple sentence tokenizer
"""
from .string_tokenize import *
def tokenize(string_or_listofstring, tolower=False, remove_punctions=False):
if(isinstance(string_or_listofstring, str)):
return string_tokenize(string_or_listofstring, tolower, remove_punctions)
else:
... | [
"lixinjian@roo.nii.ac.jp"
] | lixinjian@roo.nii.ac.jp |
650e55b0150684558af4365f5f79147c34428123 | 3a3c3dd0265d9627857a8a1618a253ac74689bfc | /Bebras.py | c3903827c934863dd6e3fcd70fb38d5d4cc34889 | [] | no_license | YoEugene/BeBras | 5c8ca4fa7b2e9629d38393359d1447ea774eebd8 | 49a033ab1ce8e514470e13c5b59f7fc2a3c96017 | refs/heads/master | 2020-04-17T12:54:53.845048 | 2016-09-09T09:20:12 | 2016-09-09T09:20:12 | 67,782,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | #-*- coding: UTF-8 -*-
import requests
import urllib
from bs4 import BeautifulSoup
saved = []
while len(saved) != 45:
r = requests.get('http://bebras.csie.ntnu.edu.tw/main/?page=try')
soup = BeautifulSoup(r.text.encode("utf-8"), 'html.parser')
prob_id = soup.find(id="subform").attrs['action'].replace("?p... | [
"dreammacer.yo@gmail.com"
] | dreammacer.yo@gmail.com |
4248e63135d6e7f10c126f4a9b1d2bf034255994 | 829e69a4184e3be9e18ce4fbbfdb4939b8d028bb | /archdaily.py | 3e9a3d96fc17a68e6624698504e541cd8b6c2bd8 | [
"MIT"
] | permissive | busster/Archdaily_bg_info | 7c2eaf9a4ed99c33481fcdb0ed09e73a625a861e | c106d8dac62bd4b76739e6b29eac5fd5a35dad77 | refs/heads/master | 2021-01-20T20:14:26.878855 | 2016-08-09T22:56:56 | 2016-08-09T22:56:56 | 65,316,696 | 0 | 0 | null | 2016-08-09T22:56:57 | 2016-08-09T17:57:49 | Python | UTF-8 | Python | false | false | 3,157 | py | import requests, os, webbrowser, bs4
import urllib.request
import ctypes
import datetime
import time
from apscheduler.scheduler import Scheduler
import re
def downloadimage():
# Download archdaily's general projects page
res = requests.get('http://www.archdaily.com/search/projects')
res.raise_... | [
"jasonmbuss@gmail.com"
] | jasonmbuss@gmail.com |
b2516c9040789df5a0e98f754aab40508283b38c | c834c1b7ef5d0039a706f174ed3f7b0ab82fa2e5 | /optOnMysql/data2mysql.py | 5903606b3171c597649676ce4e1d13f00e79309e | [] | no_license | yangze01/Laws-Search-Project | 126ffc5ec1ad1c2e9d95c2490104e8e37e766ad4 | d1fff57a9298aa0d883a1b988aa98804d0ab00c1 | refs/heads/master | 2021-08-14T15:26:27.455518 | 2017-11-16T03:59:58 | 2017-11-16T03:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | #coding=utf8
import sys
import time
reload(sys)
sys.setdefaultencoding('utf8')
from optOnMysql.DocumentsOnMysql import *
from optOnMysql.DocumentUnit import *
import json
BasePath = sys.path[0]
def is_valid_date(str):
'''判断是否是一个有效的日期字符串'''
try:
time.strptime(str, "%Y-%m-%d")
return True
except:
return... | [
"858848101@qq.com"
] | 858848101@qq.com |
dc88abb3406c5bcfebb348f98a3bedeae0c3782b | f183e0624a02f02d3d4e225863a0357a5bf25a16 | /Assignment_3/lambda/Assignment_3/index-photos.py | b72073b98d4d7c374fbeafaefd20f67007a8c677 | [] | no_license | Wangwei0223/AWS-PhotoAlbum | 37611a892e8e4d6cd3c89258b79e759f6e98c26c | 57bf82c022fe7e4da5e987fb9fdf68b88e96b5f2 | refs/heads/master | 2020-03-31T20:05:18.974679 | 2018-12-06T20:49:57 | 2018-12-06T20:49:57 | 152,524,758 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | import boto3
import re
import requests
from requests_aws4auth import AWS4Auth
import time
region = 'us-east-1' # e.g. us-west-1
service = 'es'
credentials = boto3.Session().get_credentials()
awsauth = AWS4Auth(credentials.access_key, credentials.secret_key, region, service, session_token=credentials.token)
... | [
"291978313@qq.com"
] | 291978313@qq.com |
ee42c62ee368606b853eb33596799a966b0bffed | eedbd94d616246d8dbf5d3244101a3eb4f82a222 | /bicyclepartsproject/pipelines.py | 034b651caab27581430249bae8e982425be745fe | [] | no_license | dkasarov/bicycle_parts_spider | 0bc344c1e7e195d8139817092f1918fb900e1853 | 0288a2c3238026514c7fe564d3de9d2da73dcde0 | refs/heads/master | 2020-05-02T09:23:29.498541 | 2019-03-27T19:38:19 | 2019-03-27T19:38:19 | 177,870,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class BicyclepartsprojectPipeline(object):
def process_item(self, item, spider):
return item
| [
"31469124+dkasarov@users.noreply.github.com"
] | 31469124+dkasarov@users.noreply.github.com |
9ea362e7e23645d74ada3c82eae8bd8ed6962067 | 6f6b7e1a9837fb581cc5fed92b66b4ad12ea30f5 | /19-05-161_STOCK_profit_AIC_BIC_L500_github/4plot_profit_nh6.py | 4d358b74123f153c55f5113d35716f99896e3ac4 | [
"MIT"
] | permissive | danhtaihoang/stock | f7b4f4989ff0c2b267766761d402adc599fc893d | 9c3a3e467839dda095a0152055e347254abaf271 | refs/heads/master | 2020-06-10T01:35:59.136032 | 2019-06-24T17:13:35 | 2019-06-24T17:13:35 | 193,546,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import numpy as np
import matplotlib.pyplot as plt
#=========================================================================================
# average:
p1 = np.loadtxt('profit_cost_nhmax6.dat')
p2 = np.loadtxt('profit_AIC_nhmax6.dat')
p3 = np.loadtxt('profit_BIC_nhmax6.dat')
tmax = np.shape(p1)[0]
t = np.arange(0,tm... | [
"hoangdanhtai@gmail.com"
] | hoangdanhtai@gmail.com |
47ede167ba6a6ed1d51b168cb720119680f3ce58 | b4de314adaebdc238b05ff1e81c5f1d8304c4a86 | /.history/functionality_20211022152543.py | 6ca297f72695f8861201c7633ef2612b0bc81f67 | [] | no_license | Imprasna/signapp-login-automation | b36616de7a583ff4bdf35d907c30615b3ac48128 | f39fdd7b34966f263ea47da41d1e8aa0f57b95d8 | refs/heads/main | 2023-08-29T19:13:07.208590 | 2021-10-22T10:05:06 | 2021-10-22T10:05:06 | 387,170,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | from selenium import webdriver #we need to install webdriver #pip install selenium
from getpass import getpass #inbuild function
import pyautogui as pt
import os
import platform
from datetime import datetime
from threading import Timer
# import Scheduler
from apscheduler.schedulers.blocking import BlockingScheduler
... | [
"prasanna@sibbc.org"
] | prasanna@sibbc.org |
8ead5ead4b013cc7d4c232e05fdbb87bc51f7ce4 | 8fb60261b33abf1da575faa0ee4eac8e18f6a517 | /service1/app.py | f9757623edead27339cc1c17a848833096eda8d4 | [] | no_license | AndrewBarrett182/DevOps-Practical-Project | 6a17fa36c279d18a5b19b09ae7fec8c21c1e61e8 | 7962674352d8d1c779aee3c429d9c09ffb2c8122 | refs/heads/main | 2023-06-06T04:47:00.185664 | 2021-06-13T19:51:21 | 2021-06-13T19:51:21 | 374,668,538 | 0 | 0 | null | 2021-06-14T10:11:49 | 2021-06-07T13:04:29 | Python | UTF-8 | Python | false | false | 107 | py | from application import app
if __name__=='__main__': app.run(debug=True, host = '0.0.0.0', port = 5000) | [
"ABarrett@qa.com"
] | ABarrett@qa.com |
f67a9f32b5bc88c51b23c4f94c7ca1674316a0c1 | f6577ac3fd9f96ddba43560a03edae40556ea010 | /socket/chatbot.py | 638785e818fd714db60e1d1420ee47bdb48f3d95 | [] | no_license | UndergraduateProject/IotServer | 02379ac5c0544381b0a0c9a90f87b7ee74d3d8bf | ac3baba112c85c2ac81d841ff37f07c4e2d33e57 | refs/heads/master | 2023-08-23T17:21:11.822574 | 2021-10-30T14:47:34 | 2021-10-30T14:47:34 | 352,904,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | import os
import dialogflow
from google.api_core.exceptions import InvalidArgument
import requests as rq
import socketio
src = 'http://140.117.71.98:8000/api/Humidtemp/'
#socket
sio = socketio.Client()
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = './reactpageagent-rehl-e8f6c376b8ef.json'
DIALOGFLOW_PROJECT_ID = 'r... | [
"s2012439@yes.my"
] | s2012439@yes.my |
1798b56c0d7d2318a548568f32e627aef2ad2acb | 5b1039a15a0b9478cd1c92e95370299673711b0c | /dao/influence_dao.py | 546d21b00fbd89f1bfafdae5a98bf5cf348c6065 | [] | no_license | seraphlnWu/weibo_dao | 298bf7a5f06a034b8dded436b5da770e617af9ef | 22836290dfe19677137e2faf391fcf3edbbfda59 | refs/heads/master | 2020-05-19T00:25:45.808804 | 2013-01-22T03:13:49 | 2013-01-22T03:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # coding=utf8
from utils import MONGODB_INSTANCE
from utils import today_datetime
from datetime import timedelta
def get_cur_influence(uid):
'获取用户可变属性。eg:影响力,粉丝数,微博数'
inf_list = MONGODB_INSTANCE.influence.find(
{'id': uid}
).sort('date', -1).limit(10)
for cur_inf in inf_list:
if any... | [
"wubin@admaster.com.cn"
] | wubin@admaster.com.cn |
f1e23193458c9b501d74f917876d60949e706428 | 09cbf5ce3a600e8475971223acc2fce565ac24bb | /count_swear/helper_functions.py | b1c108a197e83419666a3f05b35d941df0eb3317 | [] | no_license | fednem/python_reddit_test | e28e201ef567a921bef627b7b110b152cc5247a7 | 7e94af1d43326351b9e302ba66dff451cdf7456c | refs/heads/master | 2021-03-19T05:59:37.205929 | 2018-04-12T15:02:32 | 2018-04-12T15:02:32 | 123,020,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 14 09:16:27 2018
@author: federico nemmi
"""
import praw
import regex
from nltk.corpus import stopwords
#for the moment it only take the top submission
def create_list_of_submission_from_subreddit(reddit_instance,subreddit):
list_of_submission = [submission for subm... | [
"federico.nemmi@gmail.com"
] | federico.nemmi@gmail.com |
4c47c7daef2fbb8028129b0b5c7eb9118ed2ecf2 | 8b8b3e959a86a5bd468110e0ab3b688628b46f40 | /analyser/complex_type_analyser/text/text_utils.py | 79233226624e8e5771ba4795fa3210c6ced78fa5 | [] | no_license | sebneu/csvprofiler | 18a027f152d31a0b59eeeae6abb29228ced5876c | e8eab970af326dc9a101d905700589d8dc196c12 | refs/heads/master | 2021-06-02T01:17:36.607468 | 2021-01-05T10:02:00 | 2021-01-05T10:02:00 | 39,006,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,936 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
'''
Created on May 19, 2014
@author: max
'''
import re
import unittest
import unicodedata
import urlparse
SERVER_URL = 'http://spotlight.dbpedia.org/rest/annotate'
# 'http://localhost/rest/annotate'
date_regex = '^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|... | [
"seb.neumaier@gmail.com"
] | seb.neumaier@gmail.com |
77d0baf93da1adb6871816e657d76373586457b6 | e888171a028d297dca5120fc748d5816d47b3be6 | /cnn_aenc_genome_tr_seq_ld.py | f308c777e60d45798dccb97140661fecf67188a6 | [] | no_license | AmirUCR/CRISPER-CAS9 | f130a3a2c1df1f6f7e7082ed05b869d0421ffce0 | 4207b794662acfefa82077a88be5fcd3afd0ef41 | refs/heads/master | 2023-04-27T01:24:51.956009 | 2021-05-27T23:45:26 | 2021-05-27T23:45:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | from collections import OrderedDict
import os
import sys
import warnings
import argparse
import logging
import h5py as h5
import numpy as np
import pandas as pd
import scipy.io
import six
from six.moves import range
import matplotlib.pyplot as plt
#from dna import *
from sklearn.metrics import roc_auc_score, confusi... | [
"dbais001@dipankar.cs.ucr.edu"
] | dbais001@dipankar.cs.ucr.edu |
02b93dce874ce5992260b941b28517299197121c | f38faa56731cbbae07fa7cadf3941bd3942c356e | /Project/backend/manage.py | abfc4d721b8c7a3d7c0ec6a5b94bddbbf73e7206 | [] | no_license | faisalsial/2018latestversion | b4f14eaf70e3884547a3930174b4f8a9f4299bac | aca58d22030ea40e04d2cde07f1886fd56b33245 | refs/heads/master | 2022-12-09T17:39:04.815723 | 2019-01-07T10:35:46 | 2019-01-07T10:35:46 | 215,658,770 | 0 | 0 | null | 2022-12-08T01:50:10 | 2019-10-16T22:56:28 | Java | UTF-8 | Python | false | false | 543 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gratelancer.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. ... | [
"umutoztunc@gmail.com"
] | umutoztunc@gmail.com |
5fe9b2191e2862a97b4b0500d3c4777c88eab68c | 56e96acad654d7480d17d5cae7402a2bc6cbaa76 | /share/py_module/dataset.py | fc4a162fa0c59a4f2c53f521c749910a52a91ef4 | [] | no_license | LitingLin/VehicleDC | 641b1e25c22cac2ffb1dcba519b1af5ac7d9f2c8 | 2ac0b8ad708f033b59c0bc924ca7ec169e86b063 | refs/heads/master | 2020-05-17T19:30:00.556691 | 2019-07-12T16:21:12 | 2019-07-12T16:21:12 | 183,916,512 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,885 | py | # coding: utf-8
import os
import re
import numpy as np
import torch
from torch.utils import data
from torchvision import transforms as T
from PIL import Image
color_attrs = ['Black', 'Blue', 'Brown',
'Gray', 'Green', 'Pink',
'Red', 'White', 'Yellow']
direction_at... | [
"linliting06@live.com"
] | linliting06@live.com |
fb01c0af695a570da4062568c7325f57d59a9a2a | 943a4976ff506dc674b685aaf0525405b0a92f1b | /kinguilahoje.py | 538517e5a0f90293133f665bac572de7e66c9020 | [] | no_license | maapinho/webscraping_play | c68ea119dbb5bdbe83cc180250b0c5d746b117a1 | eb05e75e3870956be0a84eb2e3e30693896c8e78 | refs/heads/master | 2021-05-26T18:00:54.405772 | 2020-04-13T01:26:36 | 2020-04-13T01:44:32 | 254,143,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from gazpacho import get,Soup
from pprint import pprint
import json
from datetime import datetime
#current date time object
dt=datetime.now().replace(microsecond=0)
print(dt)
print(dt.isoformat())
# Datetim in ISO 8601
# datetime.datetime.now().replace(microsecond=0).isoformat()
URL='http://www.kinguilahoje.com/'
h... | [
"maapinho@hotmail.com"
] | maapinho@hotmail.com |
b3db901f568db3d311f39131427c789d20d2b786 | 9a1a0b47b59e55e3f2043ad32d5d58455e69425d | /0708/listas/ej233.py | 9089219b5ce46da511c1c457bd8a33c211a40db2 | [] | no_license | piranna/asi-iesenlaces | dcabc0213791c04a8b6b4ccb850d5bda78292ae1 | cf35cbea732065e09a58604a93538a9b9dca875f | refs/heads/master | 2016-08-06T05:09:44.270637 | 2008-06-15T09:00:27 | 2008-06-15T09:00:27 | 32,416,588 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # -*- coding: utf-8 -*-
# $Id$
# elimina números pares de una lista
"""
Eliminamos elementos de una lista con del().
Cuidado al eliminar elementos de una lista.
Si eliminamos un elemento de una lista, estamos
modificando su tamaño
"""
lista = [1,2,3,4,5,6,7,8,9]
i=0 #índice para recorrer la lista
while i < len (... | [
"morillas@f86dea77-7e2e-0410-97ea-a74e350978e6"
] | morillas@f86dea77-7e2e-0410-97ea-a74e350978e6 |
cf1f21a13c39529187755f3f9be3a26fdbd963c2 | 413cb01c0fa276ebf0263b5f853fac704d2b4a38 | /scripts/notebook-hash.py | 6943c47a564af788273a54525322b64d9d41a7d6 | [] | no_license | dergachev/iruby-docker | 15f5824f5e6ce90194c5b1e5512b509db46b8dd4 | 987905ea6342749aa5ae5111d262f17137086001 | refs/heads/master | 2021-01-10T11:56:05.652262 | 2016-01-21T17:51:25 | 2016-01-21T17:51:25 | 50,068,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # adapted from https://github.com/jupyter/notebook/blob/master/notebook/auth/security.py
import getpass
import hashlib
import random
from sys import argv
# Length of the salt in nr of hex chars, which implies salt_len * 4
# bits of randomness.
salt_len = 12
def passwd(passphrase):
h = hashlib.new('sha1')
sal... | [
"alex@evolvingweb.ca"
] | alex@evolvingweb.ca |
6321392e8ea506f89ad8138de98709a7d3aeef3a | e5f1befb7c7ca0072747b33086fc6569a6befd01 | /old/flaskold/json/008.py | f4caad8db1b8d37bfc3909c746dc3bac66210760 | [] | no_license | nepomnyashchii/TestGit | ae08d8bb1b7d2ab9389a309fd1dc9e24729b019c | c7abf4ab08ee3c2f3ea1fb09a1938bff7a3e0e5c | refs/heads/master | 2020-04-28T23:41:51.053547 | 2020-01-24T12:22:40 | 2020-01-24T12:22:40 | 175,666,093 | 0 | 1 | null | 2019-03-15T13:44:03 | 2019-03-14T17:08:58 | null | UTF-8 | Python | false | false | 147 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "test"
if __name__ =="__main__":
app.run(debug=True)
| [
"nepomnyashchii@gmail.com"
] | nepomnyashchii@gmail.com |
72559b751060487570099698b89a7507b4c4babd | c8c34805443b574c6dbd2338fba148b9f0ff953b | /freqbased.py | e94fef83458b348109adebc694e5660a670c508f | [] | no_license | Amarjyotkaur/Stemly-Automatic-Exploratory-Data-Analysis | 632370e2dd4cac2deabcc1beccd925aa0ee50426 | d3ca880423a9360d08c820452a0ae26ee66dad77 | refs/heads/main | 2023-03-22T04:30:36.850286 | 2021-03-22T14:48:21 | 2021-03-22T14:48:21 | 350,379,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,354 | py | import pandas as pd
from .builtin import quantile, iqr
"""
Functions:
1. min_freq
2. max_freq
3. mean_freq
4. median_freq
5. variance_freq
6. stdev_freq
7. range_freq
8. mean_abs_dev_freq
9. coef_of_var_freq
10. outliers_freq
11. outlier_c_freq"""
#Minimum
def min_freq(colDa... | [
"noreply@github.com"
] | Amarjyotkaur.noreply@github.com |
fee4e4dfa383d20a8d34a381be6e30b2f7fb0bd2 | 468378e1e85033b790c980f0c89f93907caadd86 | /deepspeed/runtime/state_dict_factory.py | 46efed7dc219930bc4668828714ab72a6cf04672 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Distributed-AI/DeepSpeed | 0e2e7f17a0a35e5a89416eaf7cba18d6356b36f8 | edb6964603b04cdd8c8fe2d1134ee83e110f13e6 | refs/heads/master | 2023-07-31T12:34:06.227771 | 2021-09-26T21:42:59 | 2021-09-26T21:42:59 | 409,327,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,703 | py | '''
Copyright 2020 The Microsoft DeepSpeed Team
'''
import torch
import os
import copy
import collections
import json
from abc import ABC, abstractmethod
from deepspeed.utils import logger
from .weight_quantizer import WeightQuantization
AUTO_MODULE_KEY = 'auto'
class SDLoaderFactory:
@staticmethod
def get_... | [
"noreply@github.com"
] | Distributed-AI.noreply@github.com |
105ccae1d666281b62ba6b9043fac68fcb1651e2 | 83b41f8ba0959f3ab3094869670920bdef92d0db | /df_test.py | 99b6eda66b317c936570c534d41f9875f5ca88ff | [] | no_license | kumarchintu/aws-trainning | 9157da4496d0894eefe39bb4303c32c362af517f | 34ff156c74216abd039f24267107b60f0586460f | refs/heads/master | 2021-01-26T07:40:38.693976 | 2020-05-01T04:06:57 | 2020-05-01T04:06:57 | 243,369,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import pandas as pd
dfObj = pd.DataFrame(columns=['User_ID', 'UserName', 'Action'])
print("Empty Dataframe ", dfObj, sep='\n')
dfObj = dfObj.append({'User_ID': 23, 'UserName': 'Riti', 'Action': 'Login'}, ignore_index=True)
dfObj = dfObj.append({'User_ID': 24, 'UserName': 'Aadi', 'Action': 'Logout'}, ignore_index=... | [
"noreply@github.com"
] | kumarchintu.noreply@github.com |
b270564b58d3fcdb665fa602738083d04173c420 | 2dfa1822a5d3006187c47f383bb67ab4e202e417 | /GraphicsView.py | ea34878b4a0a92f448f3cf3ec2a7c6addf7005b4 | [
"MIT"
] | permissive | amandashack/QDmapping | 254c2754634b072161e0f1232089a25440c5228d | ee93dc693ebc8e6cfd378d5b69367c5293d232be | refs/heads/master | 2020-04-16T16:14:55.137660 | 2020-03-26T23:46:27 | 2020-03-26T23:46:27 | 156,276,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,661 | py | from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import Qt, QPoint, pyqtSignal, QRect
from PyQt5.QtWidgets import QMainWindow, QApplication, QGraphicsScene, QGraphicsView, QRubberBand
from PyQt5.QtGui import QPixmap, QPainter, QPen
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.Qt... | [
"ajshack4@gmail.com"
] | ajshack4@gmail.com |
50e9870739673efcfa7b101e2a5fab4d46cee95a | e0b7fb64e57823d24ad6b8ca4e130c657ba437a4 | /analysis/yields/plot.py | 1c98b8833d00a74347fe5b76ba3b506ff8435f4a | [] | no_license | cfangmeier/FTAnalysis | 66644189f02ddf43dadb8e029e4709950572e7cf | 6612f40b67689d6d946866710ad2e0256b790821 | refs/heads/master | 2021-09-11T00:16:35.222837 | 2018-01-09T22:26:50 | 2018-01-09T22:26:50 | 106,859,187 | 0 | 0 | null | 2017-10-13T18:23:23 | 2017-10-13T18:23:23 | null | UTF-8 | Python | false | false | 24,136 | py | import os
import sys
import ROOT as r
import sys
sys.path.insert(0,'../../')
from common.Software.dataMCplotMaker.dataMCplotMaker import dataMCplot
from analysis.limits.runLimits import get_lims
from analysis.limits.singleBinLimits import get_singlebin_limits
from analysis.limits.makeScan import make_scan
from analysis... | [
"amin.nj@gmail.com"
] | amin.nj@gmail.com |
306520d5560d414aa3f79d54ccb155169016b9d7 | 78da0ab05436ac61232e6cc8b055ad992f42cbf0 | /placidity/interpreter.py | 1ea774d0a2476734bd84e01cd080726410b74a5c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bebraw/Placidity | 82dc0710b41b1148f48eec826a31a0ad3bd8bc2f | 944b69dadb613fc8c2f7e10c0b84facd6363b404 | refs/heads/master | 2023-07-10T03:54:47.517107 | 2011-11-16T08:14:21 | 2011-11-16T08:14:21 | 462,544 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | import inspect
class Context:
owner = None
def claim_for(self, owner):
self.owner = owner
def release(self):
self.owner = None
class Commands(list):
def __init__(self, commands=None):
commands = commands if commands else []
if not hasattr(commands, '__iter__'):
... | [
"bebraw@gmail.com"
] | bebraw@gmail.com |
37e4054dcb4b679729433a6b236355c800064f7c | 774dc27fe5192e81dfbcbf6ac9ddfa6a68ee06ae | /__temp_migrations/FW_disaster/0001_initial.py | ff2a5fcb6ad90e0646f8e93a98dc055d29d5bcb2 | [] | no_license | akrgt/gotree | 1540ebca65c7372489622d81b15943db1b20c383 | 93e9ed432b23518fd1dfde6d6f9761d313c06611 | refs/heads/master | 2021-06-19T00:12:32.769202 | 2020-01-27T03:18:50 | 2020-01-27T03:18:50 | 149,593,711 | 0 | 0 | null | 2021-06-10T20:49:49 | 2018-09-20T10:41:50 | JavaScript | UTF-8 | Python | false | false | 25,161 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-06-29 17:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import otree.db.models
import otree_save_the_change.mixins
class Migration(migrations.Migration):
initial = True
... | [
"goaki@me.com"
] | goaki@me.com |
c819076050d722cded9659553a0f62ca4aa3fd36 | 2e80eb0e44bc3ce05373b047a22bfb220ce6ff7b | /name/foo.py | e55411fd75037a2eddbaaf03dd96423e7f72827f | [] | no_license | Jorge-Hoyos/python-workshop | 07fcda929270604827148b871a6352a92a0b21b4 | a182f2b77d372ae31a324ba8c498729bbb26a08a | refs/heads/master | 2023-02-09T02:03:21.722897 | 2021-01-04T16:19:32 | 2021-01-04T16:19:32 | 284,469,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # Suppose this is foo.py.
import math
print(__name__)
print("before import")
print("before functionA")
def functionA():
print("Function A")
print("before functionB")
def functionB():
print("Function B {}".format(math.sqrt(100)))
print("before __name__ guard")
if __name__ == '__main__':
functionA()
fun... | [
"jorhoyos@bancolombia.com.co"
] | jorhoyos@bancolombia.com.co |
6766670e972169da5ec57df6ba4c07ab94b8415f | d5eee852fafc803ed24353f59ac0d2b8d0538200 | /django_backend/notifications_react/migrations/0001_initial.py | ade7b003c869215b4a80574c7d6174272e17e907 | [] | no_license | jande48/ComeWithNotificationFeatures | ca69edf2fb5e36fcf64b81864f6f6ef1cc818d09 | 13a24165ff33829b8ffe505b31163eec13130d72 | refs/heads/master | 2023-03-04T06:34:18.009327 | 2021-02-15T09:31:26 | 2021-02-15T09:31:26 | 337,786,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # Generated by Django 3.1.6 on 2021-02-10 21:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Notifications',
fields=[
('id', models.Auto... | [
"jacob.anderson10@gmail.com"
] | jacob.anderson10@gmail.com |
5bc0c700daa377d54f09a5f669fc0520f96b3bd7 | 20d1787feaf42b8aee5aeabad9b295d29c837152 | /kiwitrains/__init__.py | afc72c30259bf270ce6493711a19cca3d1573b5e | [] | no_license | simonblack/kiwitrains | c2d41a04b6c8802db7481780ec3581bc52feff99 | 2f4b6999d75def75d8b38f3e17e421965d675992 | refs/heads/master | 2021-04-15T10:49:08.365913 | 2018-03-25T06:12:30 | 2018-03-25T06:12:30 | 126,666,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | #!/usr/bin/env python3
"""
Kiwiland Railroad Transit library
"""
from .lib import *
__version__ = '1.0.0'
__author__ = 'Simon Black'
__email__ = "mail@simon.black"
__status__ = "Production" | [
"simon@cerneo.org"
] | simon@cerneo.org |
2a2f0eadfad2350dc050d895f631d7c1ddbcd4f2 | c12bb52375c3c6938f55488c66abe991e0d5c456 | /app3/urls.py | 0a2359c59156413fca51dd1bb1f65e0efc1a1db8 | [] | no_license | kamleshn19/navy1 | a011178e02ceac9282096bed8f087b7c4e3ae710 | 8ea3e1d8104408aa090245066cb2d5ed328c4b3e | refs/heads/master | 2021-01-02T07:56:41.286090 | 2020-02-10T17:13:57 | 2020-02-10T17:13:57 | 239,557,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """hello_world URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-b... | [
"kamleshn19@yahoo.co.in"
] | kamleshn19@yahoo.co.in |
0cff05c6b6bf735c8bf8d40bc3c5f8a0e2528232 | 8110196da9c11de7fd6cac1be3f8f17efbda126a | /pastSlavePi/slavePi3/pastFiles/manualPic_capturePhotos.py | 469e9657b840b3be0f8ddfc94a9e8e44cf606245 | [] | no_license | msit18/UrbanFlows | d57a5f2e0cbc8e804df163ef85f22b7f62309911 | 1f2e98a324def24838d1ab1dd6bf6d60e6e74f63 | refs/heads/master | 2020-05-21T12:27:56.429774 | 2017-07-24T19:21:36 | 2017-07-24T19:21:36 | 34,413,160 | 0 | 1 | null | 2015-10-26T20:46:01 | 2015-04-22T20:09:51 | C | UTF-8 | Python | false | false | 4,756 | py | #/!/usr/bin/python
#Written by Michelle Sit
#wORK IN PROGRESS
#Edited from manualPic4.py. Takes pictures on
#one thread and on another thread moves/removes them to the server. Picture resolution,
#fps, and time are controlled by inputs
#Update: also provides updates every twenty minutes (CURRENTLY SET TO EVERY 10... | [
"msit@wellesley.edu"
] | msit@wellesley.edu |
7db676908bf5ec1405df15a1265dc9b8d577bb96 | 378d4be9048dab93a130489a74e82fda02e53de3 | /ml_algorithm/demo_data.py | 636433197e56c018c4a1979de55bebb75ae794b1 | [] | no_license | geekieo/iMpLement | 167f86fd4ff24efad0f503256c31cc1f342b5d2d | f3df6664e4115a0301b4a8ba5e72d9e6f63b6f98 | refs/heads/master | 2023-07-24T08:13:43.091659 | 2023-07-14T02:20:07 | 2023-07-14T02:20:07 | 87,257,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | # -*- coding: utf-8 -*-
import numpy as np
import utils
import matplotlib.pyplot as plt
import time
def create_train_data1(size):
mu,sigma=0,2.4
rarray=np.random.normal(mu,sigma,size*2).reshape(size,2)*10
return rarray
def create_train_data2(size):
mu,sigma=5,1.0
rarray=np.random.normal(mu,sigma,size*2).reshap... | [
"geekieo@hotmail.com"
] | geekieo@hotmail.com |
57cec0f730cf6763d39090ab33bed1567ec463f9 | 4df98b871e8bdf94d8841ec1f6d7a3b4150b4dcc | /adaline-classifier/adalineSGD.py | 998031d6324fdf5a573c0eb9251c19969f9d79aa | [] | no_license | samrod13/Machine-Learning | ee026067710e8798befb332bd18a097acbd79775 | 080de188a73703c49dd83bbb3212699f36a348f0 | refs/heads/master | 2021-01-18T04:22:30.269977 | 2016-11-06T20:14:26 | 2016-11-06T20:14:26 | 67,274,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,068 | py | from numpy.random import seed
import numpy as np
class AdalineSGD(object):
"""ADAptive LInear NEuron classifier.
Parameters
------------
eta : float
Learning rate (between 0.0 and 1.0)
n_iter : int
Passes over the training dataset.
Attributes
-----------
w_ : 1d-array
... | [
"rodriguezs466@gmail.com"
] | rodriguezs466@gmail.com |
2b1e005dac468057714ac833d3332fca0078eef9 | 0975b4d581c4f6364f541b299b639dcc6f65a9f6 | /apps/dataviz/migrations/0001_initial.py | 5d7708031478be2ae0526a8f4e925a5efeb5903d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Sasha-P/dataviz | 40af1f440a66e1c8454a812d40f5caa8be570d4f | ccef27b41636ce30bc9abbe8ae47a5ec807e2712 | refs/heads/master | 2021-01-11T06:03:54.308225 | 2016-10-06T22:31:26 | 2016-10-06T22:31:26 | 70,165,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-02 11:46
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"sasha.pazyuk@gmail.com"
] | sasha.pazyuk@gmail.com |
a49bed0ad6fb441cd8b332aad95442e6b04774ed | 84bad7d10540d988e0a68051c0b9ff75a8a40b72 | /agrigo/manage.py | 329e08312ab6214c529e78643d9fb30594c0cd60 | [
"BSD-3-Clause"
] | permissive | cmdrspartacus/agrigo | cd22bac9c301c980259de65e71c60154c6a3f5f9 | de6ae4980786ca29ff4ab743f64b1759016e1f57 | refs/heads/master | 2016-09-13T03:09:51.420817 | 2016-05-16T13:14:34 | 2016-05-16T13:14:34 | 58,933,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Management script."""
import os
from glob import glob
from subprocess import call
from flask_migrate import Migrate, MigrateCommand
from flask_script import Command, Manager, Option, Server, Shell
from flask_script.commands import Clean, ShowUrls
from agrigo.app import... | [
"tobiasorlando@gmail.com"
] | tobiasorlando@gmail.com |
496a84c1d1d106e52d4af6fdde5b9432b262f5e0 | da23df96d1d93d9b3526f7576e76e0a3d87aa17e | /exercises/3.tuple_exe.py | 8e4471dac512ab7f5e17fea3b6f3488c06d2c834 | [] | no_license | zhoucong2/python- | 3d27b9290cefc04d0179808d0c6b34bc6623eaef | 3d0aa0ea1235c73b75b87742eda7d356cda1250c | refs/heads/master | 2023-01-30T16:47:23.992700 | 2020-12-10T10:05:46 | 2020-12-10T10:05:46 | 312,167,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | tuple1=(1,2,3)
x,y,z = tuple1#元组解包
tuple2 = x,y,z#元组封包
print(x,y,z,tuple2)
| [
"505614943@qq.com"
] | 505614943@qq.com |
f4f95db04d1c22ec1a024380dac59917668cfa2d | d39eabbd338b6ad565c411784c62ba6cacbd88cc | /alfred/server/CommandLineInterface.py | 5acd514f5a166f9d39c669de08dfe1d5f0b48557 | [
"MIT"
] | permissive | nakul225/alfred | f4d8680c614146c87824b14aedb7901a21e97136 | 0dfc90b830ca06403102db2de27c3f70607e976c | refs/heads/master | 2021-01-01T06:03:27.866914 | 2017-07-17T01:37:19 | 2017-07-17T01:37:19 | 97,346,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,611 | py | '''
Created on Mar 20, 2017
@author: nakul
'''
import traceback
import sys
class CommandLineInterface:
# Implementation that provides cmd line input/response interaction
def __init__(self, providedLife):
self.life = providedLife
def _show_usage(self):
print "\n============================... | [
"nakul225@gmail.com"
] | nakul225@gmail.com |
eabc4c1e37dc5cde8f65a964309ab319a2938e79 | 0862289d532ee9750d461e12b62583494987b39f | /run.py | 3ace771921d0de564ec78e562f8654082c9f2aa5 | [] | no_license | habibah-adam/uyghur_school | 71d99ce44b25e36fdf57c7ec23e88de5d47bea2d | 9a93e1adb12820f7611a790d8bc108412dc39017 | refs/heads/master | 2023-03-23T19:49:31.458789 | 2021-03-13T02:02:53 | 2021-03-13T02:02:53 | 345,954,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from school_app import create_app, db
app = create_app()
if __name__ == "__main__":
app.run(debug=True) | [
"hebibe2s@gmail.com"
] | hebibe2s@gmail.com |
a039247a947488efd56abfaec5d0e514192661ef | 5c34abe10630b23da8ba7d1cbce38bda53a4b6fa | /calibGenACD/python/ParseFileListNew.py | acf59a483c6f81fe4fa16b4b31a6de0eb090bd39 | [] | no_license | fermi-lat/GlastRelease-scons-old | cde76202f706b1c8edbf47b52ff46fe6204ee608 | 95f1daa22299272314025a350f0c6ef66eceda08 | refs/heads/master | 2021-07-23T02:41:48.198247 | 2017-05-09T17:27:58 | 2017-05-09T17:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | #!/usr/bin/env python
#
# Copyright 2007
# by
# The Board of Trustees of the
# Leland Stanford Junior University.
# All rights reserved.
#
__facility__ = "calibGenACD"
__abstract__ = ... | [
""
] | |
f4a850cce56f0f8cf0a4527768d60ba75d2eb5df | e06ff08424324ac5d6c567ae9cd6954290ff9bd4 | /Yudi TANG/axe/KNN/KNN_dating.py | ba4684b05e29ddc86468b5905cf90baf69208d11 | [
"Apache-2.0"
] | permissive | JKChang2015/Machine_Learning | b1bdfcf9ea43a98fc7efd5c0624bbaf5d9dbf495 | f8b46bf23e4d1972de6bd652dd4286e9322ed62f | refs/heads/master | 2021-06-06T19:18:16.596549 | 2020-05-03T22:28:18 | 2020-05-03T22:28:18 | 119,390,891 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,671 | py | # KNN_dating
# Created by JKChang
# 29/01/2020, 10:20
# Tag:
# Description: dating people recommendation
# Feature: 1. Number of frequent flyer miles earned per year
# 2. Percentage of time spent playing video games
# 3. Liters of ice cream consumed per week
# classifies:1. doesn't like
# ... | [
"jkchang2015@gmail.com"
] | jkchang2015@gmail.com |
669334c48eb971bb65dac2a7beec7cfd408c959f | 38686e0da040e3aef0bba63ebe99ee3e7dceea4f | /doc/conf.py | ef17133c0332186ec287ae1fbc16bc566fb0496d | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | oubiwann/bundes | ae6daf042c1d8738007063f9acd40ffe1e987113 | 4388e1935c822517969b40e796d16e0838caba37 | refs/heads/master | 2021-04-15T15:02:17.617919 | 2016-02-17T10:06:53 | 2016-02-17T10:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,201 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# bundes documentation build configuration file, created by
# sphinx-quickstart on Thu May 28 16:23:40 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | [
"pyr@spootnik.org"
] | pyr@spootnik.org |
b5131dfd5ec3d93cfb93ae353873b30d8f0cf541 | 5eb51cc393c35be33d8faca9548df0170c29bfc7 | /base/getMeminfo.py | c728252269b1408de3315cb285df3750bb113edc | [] | no_license | wxpokay/autogui | 965f3dc1aa908ab62347f6872365f54c84eb9ea9 | 3f128b663bff61428f344579faab62668281a1a9 | refs/heads/master | 2021-01-22T17:22:38.663439 | 2016-03-14T08:46:38 | 2016-03-14T08:46:38 | 49,067,292 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | # -*- coding: utf-8 -*-
'''
Created on 2016-3-7
@author: Administrator
'''
import os
import time
import subprocess
script_dir = os.path.dirname(os.path.realpath(__file__))
print script_dir
result = "F:\\workspace\\autogui\\meminfo\\"
#获取系统当前时间
now = time.strftime('%Y-%m-%d-%H_%M_%S', time.localtime(time.time()))
d... | [
"wuxiaoping1120@126.com"
] | wuxiaoping1120@126.com |
29307944764273393298ed15682e1772ffc0005a | eea7adb1221e39e949e9f13b92805f1f63c61696 | /leetcode-04/solutions/python3/0026.py | cffe5152560aba1f85e3de6977536a78c4a951fd | [] | no_license | zhangchunbao515/leetcode | 4fb7e5ac67a51679f5ba89eed56cd21f53cd736d | d191d3724f6f4b84a66d0917d16fbfc58205d948 | refs/heads/master | 2020-08-02T21:39:05.798311 | 2019-09-28T14:44:14 | 2019-09-28T14:44:14 | 211,514,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
if len(nums) <= 1:
return len(nums)
j = 0
for i in range(len(nums)):
if nums[i] != nums[j]:
j += 1
nums[j] = nums[i]
return j + 1
| [
"zhangchunbao515@163.com"
] | zhangchunbao515@163.com |
55c78f9adc431c314924891a2846056a21118d3d | f5ddc6122e361e9a6508ced36a3ebfc3c0814356 | /beanstalkd/south_migrations/0001_initial.py | 0feafbae89dbb4b68ad52f1d1664693fbbc7e076 | [
"Apache-2.0"
] | permissive | baitcode/django-beanstalkd | 84c920bd8860a0af4fbbf1f06137f73390594c43 | 27696832fd5bffcabe96f787d2608fb1fbb0ec5a | refs/heads/master | 2021-01-24T06:04:53.263333 | 2014-10-30T11:41:03 | 2014-10-30T11:41:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,995 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Tube'
db.create_table('beanstalk_tube', (
('id', self.gf('django.db.models.fi... | [
"ilya@ostrovok.ru"
] | ilya@ostrovok.ru |
f8d2154649e59afa419b79b4777684cdda82eb5c | 56b4d00870af18752b4414495b08e2ec3adf3ae4 | /src/clims/api/endpoints/process_assignments.py | c5fd2f83c03d0928f0637275f0b82856ee822b26 | [
"BSD-2-Clause"
] | permissive | commonlims/commonlims | 26c3f937eaa18e6935c5d3fcec823053ab7fefd9 | 36a02ed244c7b59ee1f2523e64e4749e404ab0f7 | refs/heads/develop | 2021-07-01T17:20:46.586630 | 2021-02-02T08:53:22 | 2021-02-02T08:53:22 | 185,200,241 | 4 | 1 | NOASSERTION | 2021-02-02T08:53:23 | 2019-05-06T13:16:37 | Python | UTF-8 | Python | false | false | 1,028 | py | from __future__ import absolute_import
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from sentry.api.base import Endpoint, SessionAuthentication
class ProcessAssignmentsEndpoint(Endpoint):
authentication_classes = (SessionAuthentication, )
permission_cla... | [
"costeinar@gmail.com"
] | costeinar@gmail.com |
6c4853e5d42f5a96aabcd2f6bac19abb11fe102f | 7d5738e9713ddae056138217238e39eb093574dd | /deeplearning/imagenet_labels.py | 67f92e88da0d85045b9e0274a723db2b1d4c046c | [] | no_license | tanle2694/deploy_deeplearning_model | 1093fa7f7e7567540e8ac9863477906666332b97 | 7c5473feb4cc5a67b5f3b9626ddcbcf5091e5ecc | refs/heads/master | 2022-10-12T20:13:42.699632 | 2020-06-10T08:04:24 | 2020-06-10T08:04:24 | 270,533,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,201 | py | labels = ["tench",
"goldfish",
"great white shark",
"tiger shark",
"hammerhead shark",
"electric ray",
"stingray",
"cock",
"hen",
"ostrich",
"brambling",
"goldfinch",
"house finch",
"junco",
"indigo bunting",
"American robin",
"bulbul",
"jay",
"magpie",
"chickadee",
"American dipper",
"kite",
"bald eagle",
"vulture",
"... | [
"tanlm@datascience.com.vn"
] | tanlm@datascience.com.vn |
fb1dc48dad15f690de8d830e797d4ab28dc0f404 | e247ce1a6e98772ad1fd7593f01d21971da7e738 | /AlgorithmTest/Test/MatplotlibTest/TestMatlab.py | 5706795c7c76e2b650e1c9ce131fc42f51dcb704 | [
"MIT",
"Apache-2.0"
] | permissive | A666666685A/Multi-constrainedQoSRouting | a394d82d3acd71032918a8ffd651e42934f49baa | 8ea2bd2a8602ed51379c7a89ea1fdf370b8f1ca7 | refs/heads/master | 2023-08-11T19:57:59.550777 | 2021-09-19T04:01:41 | 2021-09-19T04:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | s=raw_input("Input your age:")
if s =="":
raise Exception("Input must no be empty.")
try:
i=int(s)
except ValueError:
print "Could not convert data to an integer."
except:
print "Unknown exception!"
else: # It is useful for code that must be executed if the try clause does not raise an except... | [
"yueludanfeng@gmail.com"
] | yueludanfeng@gmail.com |
1186de1cba914cdcc904a0e0a09520080aa16289 | 46492cc7429c83fe362b0ed566fc54982e52c46e | /pitches/main/forms.py | bb9c5b6a6c3f20f413c47970a696323c03307838 | [
"MIT"
] | permissive | jakhax/pitches | 15c8d87825c879b56cd931d26d398e736636134f | e56358d00089bd46addd54192220bcca0478e0da | refs/heads/master | 2020-03-18T00:36:09.254870 | 2018-05-20T14:48:14 | 2018-05-20T14:48:14 | 134,102,974 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,399 | py | from flask import current_app, session
from flask_babel import lazy_gettext
from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, BooleanField, SelectField, SubmitField, IntegerField
from wtforms import ValidationError
from wtforms.validators import DataRequired, InputRequired, Length, Email, ... | [
"jackogina60@gmail.com"
] | jackogina60@gmail.com |
454eb93dccb38e7fc7963f055b5cbdc78b1c6663 | 95544e6ac0847dd7b21e6ec180d31a1bc5dedaed | /H4/TypeX/WatchingApp(TYPEX)-H4/env.py | 37bb28626a2cdaf685df1d5954a74e8c1c6c963b | [] | no_license | meanJustin/Real-Time-Trade-Watching-app | f965731da8e01bb81b8517c2080506246073c78c | 867dde7a5a8ad2f67c2a19b46b15283720884678 | refs/heads/main | 2023-01-04T13:27:54.179141 | 2020-10-23T02:05:30 | 2020-10-23T02:05:30 | 306,504,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py |
#assign the source filepath
FILEPATH = "C:\\Users\\VMAK CAPITAL\\AppData\\Roaming\\MetaQuotes\\Terminal\\CEA95A93FC8D185DD2235895C53A5FFF\\MQL4\\Files\\"
#FILEPATH = ".\\Assets\\"
#assign the mastersheet filepath
MASTERFILEPATH = ".\\Assets\\"
#the measure is second
CYCLE_TIME = 3600 * 4
#the period of every index ... | [
"69616732+meanJustin@users.noreply.github.com"
] | 69616732+meanJustin@users.noreply.github.com |
eef750f84f81a27c35f5f451faf9e9a1b93c1cc4 | 4c117ea3617a576ddd07d8ea8aaab1a925fc402f | /bin/individualization/VennPlot.py | 18f444e66a82a4f9f64427b83e18f591f031b0f6 | [] | no_license | 452990729/Rep-seq | 7be6058ba3284bea81282f2db7fd3bd7895173ba | e217b115791e0aba064b2426e4502a5c1b032a94 | refs/heads/master | 2021-12-11T14:27:46.912144 | 2019-06-04T03:49:40 | 2019-06-04T03:49:40 | 190,124,555 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | #!/usr/bin/env python
import os
import sys
import re
import matplotlib
matplotlib.use('Agg')
import venn
from matplotlib import pyplot as plt
def HandleFq(file_in):
base = '_'.join(re.split('_', os.path.basename(file_in))[:2])
list_tmp = []
m = 0
with open(file_in, 'r') as in1:
for line in in... | [
"452990729@qq.com"
] | 452990729@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.