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
f14acc9a228a0a7f5084dd0ecd4364f8fdac0641
5d984b4ece241bf5006a6a36029b2ef0776e643c
/main.py
9d481483b571993648607e4b9db4fdf7dd4fa53d
[]
no_license
teros0/SimpleHTTPServer
596350481f6ce6a12ed0a8cc919f3b724f0243e0
0eaa0f879b66ea0b732d1bbeb0e9f90580b7d574
refs/heads/master
2021-01-19T01:28:59.686423
2017-04-08T09:11:06
2017-04-08T09:11:06
87,244,585
0
0
null
null
null
null
UTF-8
Python
false
false
2,795
py
import os import sys import socket import mimetypes from functools import lru_cache class SimpleHTTPServer: def __init__(self, host, port): self.host = host self.port = port self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.bind((self.host, self.port)) ...
[ "best.guess.oni@gmail.com" ]
best.guess.oni@gmail.com
6714b04c2f025639a4022ead1621dce971eb5047
44721e45f5d2c8fcfd37e11cf246b9b25939976a
/images_fetcher/main.py
b3480aefa50d013c311532d381614d75c00e407d
[]
no_license
pehovorka/street-object-detection
5e86c9fa2c2721875ddbed05b2f54e2df0445f3c
7501ebaf44596689a05c99bddbbe4494a1853c8f
refs/heads/master
2023-06-08T05:46:23.978260
2021-06-20T21:11:32
2021-06-20T21:11:32
378,380,271
0
0
null
null
null
null
UTF-8
Python
false
false
2,261
py
import urllib.request import urllib.parse import json import base64 import os from datetime import datetime from zoneinfo import ZoneInfo from google.cloud import storage def get_images_from_all_cameras(): cameras_list_url = "https://bezpecnost.praha.eu/Intens.CrisisPortalInfrastructureApp/cameras?format=json" ...
[ "pehovorka@gmail.com" ]
pehovorka@gmail.com
f6b761abaee5b80a9b12e42bbd686bac6e18ac1e
50b01425d7542e5c37c1f6d43041337b8fca1aaf
/testMockDirac/StatusOperation.py
9525fe5f60a7bc20e0bd58f44c17c331aa1de97a
[]
no_license
coberger/PythonTestCern
98f0d05447a9e3987f2d41463447b5ea5a97e874
c45bc6c3102dcf08d6675d3967d733028e860b67
refs/heads/master
2021-01-13T02:02:40.042771
2015-09-09T12:39:40
2015-09-09T12:39:40
33,874,240
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
class StatusOperation (object): def __init__( self, lfn, status ): self.lfn = lfn self.status = status
[ "corent.berger@gmail.com" ]
corent.berger@gmail.com
3a24fc4e4e2066ac18fd2bf58725d03a2817ee1f
c8a1424dd8b46636b4e739ad2d3ad77afe9c8b86
/set.py
08f6953ae90f9e6cda8c694fdc294e77f0930df6
[]
no_license
tanakan2544/myscript
b2b504dc3f7c8025776d2523034fc591890e86b8
f390fd72e481a14fa43596bb33cf2d49c6096000
refs/heads/master
2020-07-25T09:00:43.287349
2019-09-13T10:05:36
2019-09-13T10:05:36
208,239,343
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
zoo = ( "Kangaroo" , "Leopard" , "Moose" ) print( "Tuple:" , zoo , "\tLength:" , len( zoo ) ) print( type( zoo ) ) bag = { "Red" , "Green" , "Blue" } bag.add( "Yellow" ) print( "\nSet:" , bag , "\tLength" , len( bag ) ) print( type( bag ) ) print( "\nIs Green In bag Set?:" , "Green" in bag ) print( "Is Oran...
[ "noreply@github.com" ]
tanakan2544.noreply@github.com
2a8ac94bf969597c274ffb429ddc98534f770588
f538212bf4cc14ccab8eeee87cce3c714045e7fa
/tkproj.py
dee2fe8bd9d235e0539288b86db2c2e4d0f74c41
[]
no_license
Hayden-Neilson/Gui-with-python
956e43cfc49e015b4b171c5e0a6b71514d56fdf4
d0a49e46fa1f745e7f69934100c06e35552cae2a
refs/heads/main
2022-12-30T07:25:35.176051
2020-10-19T00:56:17
2020-10-19T00:56:17
304,502,418
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
from tkinter import * window = Tk() def km_to_miles(): miles = float(el_value.get())*1.6 txt1.insert(END, miles) but1 = Button(window, text="Execute", command=km_to_miles) but1.grid(row=0, column=0) el_value = StringVar() entry1 = Entry(window, textvariable=el_value) entry1.grid(row=0, column=1) txt1 = T...
[ "haydenneilson5@gmail.com" ]
haydenneilson5@gmail.com
591ecbab60adab9ab6407ec13de044b44a65615e
5af138ff15567814de34b1014f359c998bb9684e
/problem with if3.py
b92eed51b3968cb5983dbbc394f816bc38ed4926
[]
no_license
MariannaBeg/homework
a1bae0c8086922d769896d10ea1606d344ae241b
5e418e5a73495e8f34b1ef7acbdaead89c16f3ce
refs/heads/master
2020-07-25T13:51:03.947515
2019-10-25T20:33:42
2019-10-25T20:33:42
208,312,280
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
print("Please insert a word or sentence") user_input=input() if " " in user_input: print("it is a sentence") else: print("it is a word")
[ "mbeglaryan9@gmail.com" ]
mbeglaryan9@gmail.com
ded444c5ef21501ca65e58e3e231f59360fd4b45
49d3e0c50b940773a5c57986a1c222ffd519c2bf
/programs/4_HackTools/Quantum_Listener/key_logger/key_logger.py
3e49ec5a012d4a846d37b839c2f211882255f504
[]
no_license
HelpMeFinishPhD/Qcamp2019
6ff1344471bb6a071ddba67384adcc24d38a1ba9
8d42615bc5838edbbefb6fc5e2d74aafb64d1cd5
refs/heads/master
2021-10-24T15:32:43.919150
2021-10-21T08:37:18
2021-10-21T08:37:18
187,752,697
3
3
null
2019-06-20T14:16:06
2019-05-21T03:10:46
Python
UTF-8
Python
false
false
2,181
py
#!/usr/bin/env python2 ''' Python wrapper program to log the measurement result for Eve This version will log from two devices: Arduino (serial1) and powermeter (serial2) Author: Qcumber 2018 ''' import serial import sys import time import datetime # Serial 1 serial_addr1 = '/dev/ttyACM0' # Arduino # Serial 2 ser...
[ "anuutama@gmail.com" ]
anuutama@gmail.com
74292104dd0ffdaadc0625c511ab93c18939e9d0
ebea625962d5864821d7e7b9c63670f4f238efd3
/Contests/Week of Code 28/Boat Trips/boatTrips.py
0a105684bee08ab33772b2afe05e0a2e9a569372
[]
no_license
ThiagoAugustoSM/hackerRank
68ddbee48d2a26e6c0cb9c3f58476c0424feaf85
15d19f1013f7742d6d2587d56f4e2f0ef3579c77
refs/heads/master
2021-08-11T18:52:30.041716
2017-11-14T02:45:56
2017-11-14T02:45:56
78,483,488
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
#!/bin/python3 import sys n,c,m = input().strip().split(' ') n,c,m = [int(n),int(c),int(m)] p = list(map(int, input().strip().split(' '))) if m * c >= max(p): print("Yes") else: print("No")
[ "martinsthiagoaugusto@gmail.com" ]
martinsthiagoaugusto@gmail.com
29a2473d9b631c2d0c10c2d692539b428748fa59
3731cdf1609a8fe5fa0da5aaadf1c92ebc1f2410
/Vampire extension/get_bdprops_v3b.py
ad2997117dc1d93f6dc83fb8b2eed2259ea0733f
[]
no_license
kukionfr/miscal-codes
19c3bac88769eb05315918a1926d9131eee5e235
56bb822a5a0f7ce365404a201dafe21642ab384d
refs/heads/master
2021-01-08T08:18:33.191412
2020-02-24T17:21:14
2020-02-24T17:21:14
241,968,079
0
0
null
null
null
null
UTF-8
Python
false
false
1,749
py
#! C:\Python27 import numpy as np import os import pandas as pd import time from get_curvature2 import * from get_shape import * from scipy.io import loadmat def get_bdprops_v3b(Bd = None): np.set_printoptions(precision=5,suppress=True) pnum = len(Bd) out_rph = np.zeros((pnum,38)) out_cva = np.zeros(...
[ "kyuhan14@gmail.com" ]
kyuhan14@gmail.com
deca3b4423f1e25bc5462950883b449a6943fd75
ef8ea9272d876453b99a22db20fb50ecbef39bf1
/LevelTwo/py_math.py
06b6ca2d748a8f61bea51cd9faa58a3f942ab473
[]
no_license
lalchand-rajak/Python-Learn
b8b3581c2ff8b134900ecae4f73bc4eab07e6412
651b088532e63daddbfd5c718ee4ffa29ad65cdc
refs/heads/master
2023-03-22T04:22:26.413616
2021-03-04T13:24:13
2021-03-04T13:24:13
342,789,679
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
import math print(abs(-45)) print(abs(45)) print(math.fabs(-45)) print(math.ceil(-45.88)) #ceil function chooses nearest highest value print(math.ceil(200.12)) print(math.floor(-45.88)) #floor function chooses nearest lowest value print(math.floor(200.12)) print(max(10,20,40,99,100,205)) print(min(10,20,40,99...
[ "lalchandrajak05@gmail.com" ]
lalchandrajak05@gmail.com
7e669347a9821defbb6f31f33633400c6b3a81f1
51d9838e2810c3ac37a514f1fadbf18d1cae395b
/Apps/Predict/myPredict.py
822fc97e6b02dcf7509a693333a86d19fd4afe4d
[]
no_license
player39/TestMLPipLine
2e04ae575afac14d703c4117d61a2061d8779df8
7077d493f83e7eab8809f9a475153adfc8e62942
refs/heads/master
2020-07-29T05:26:36.383679
2019-09-20T02:10:35
2019-09-20T02:10:35
209,684,020
0
0
null
null
null
null
UTF-8
Python
false
false
51
py
from Apps.Model.HEDModelV1 import generateClass
[ "wangyucong95@gmail.com" ]
wangyucong95@gmail.com
0f04619c39ba64983e7e79537e3443ea4a1bcd0f
23834bba08b8cba7d383e76bfe77f519b5dd0961
/Spark/11_word_frequency_sort.py
6b99c466b6b47994c9afadb7e4c4ac271c6ad3e6
[ "MIT" ]
permissive
jsainero/SparkvsDask
4d656b07ac624c1cbf1e34860939cd9cfdbd5373
109c2e9b5b15f1cb13c65ebdeeb0c0627a08a635
refs/heads/master
2022-11-28T07:41:46.117205
2020-07-15T12:21:25
2020-07-15T12:21:25
279,263,558
0
0
null
null
null
null
UTF-8
Python
false
false
1,139
py
# -*- coding: utf-8 -*- from pyspark import SparkContext import sys import string import time def replace(word): for a in string.punctuation+'¿¡«»': word = word.replace(a, '') return word def main(sc, filename): data = sc.textFile(filename) t0 = time.time() datanp = data.map(replace) ...
[ "noreply@github.com" ]
jsainero.noreply@github.com
44ba51191c44e24175419dfd2f44a582f3d362b0
aed2854bbb656b5618a19eb065a41180caa47c4f
/src_lib/models_hub/crop_classifiers.py
bb316fd5b1c53aab22f683dc680de908c5b85961
[]
no_license
rishabhraaj17/MastersThesis
ef20e5c92698b830963d43d873ed007773379daf
6b4e7bac9c1e780723e202fecd27a5d0e12e6729
refs/heads/develop
2023-08-23T00:51:01.413365
2021-09-23T16:39:24
2021-09-23T16:39:24
409,666,585
0
0
null
2021-09-23T16:39:25
2021-09-23T16:30:27
Python
UTF-8
Python
false
false
5,578
py
from typing import Tuple, List, Optional, Callable, Union import torch from mmcls.models import ResNet_CIFAR, GlobalAveragePooling, LinearClsHead from omegaconf import DictConfig from torch import nn from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.utils.data import Dataset, DataLoader from src_lib.m...
[ "noreply@github.com" ]
rishabhraaj17.noreply@github.com
24d38b1c79dc504b389b64276c398a8a39f2423d
d7016f69993570a1c55974582cda899ff70907ec
/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2022_02_01_preview/aio/operations/_operations.py
2a6e7c95997bb3ead85375c355f3241e726885e6
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
4,963
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
06592bbd733bf700a6951202c02f4f34307e9454
94790bb61891f99cf0a6bea9ea7c052c6f6c6ed0
/zhaoping/zhaoping/middlewares.py
ec5e29e68f380a29b7d82c2600f6b26169214425
[]
no_license
huazhicai/Douban_scrapy
1ddaac9a1414099aaa00b9813dd93618c64e6199
846adb26b7f52904f056ec6b4d0ea9b2255eed0d
refs/heads/master
2020-03-21T02:42:22.124741
2018-07-14T14:53:38
2018-07-14T14:53:38
138,013,256
0
0
null
null
null
null
UTF-8
Python
false
false
2,982
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals import random import time class ZhaopingSpiderMiddleware(object): # Not all methods need to be defined. If a method is ...
[ "zhihua cai" ]
zhihua cai
c972411fa5a6af06b18b1f3009f29e7584e09189
40f5f2a5df486aa9074148d3e3ab22752b52bfa5
/cogs/help.py
308339492064e59f26898aa0d2e936c384a3a346
[]
no_license
NikosSiak/uniwa-discord-bot
f59f667e53b21efa6e0977fe2cc6da9b5599a487
f367cf91ad50f462964204f64936f3e7f46fa4df
refs/heads/master
2021-07-01T01:43:01.767804
2020-12-02T13:41:37
2020-12-02T13:41:37
200,112,722
5
1
null
2020-12-02T13:41:39
2019-08-01T20:08:39
Python
UTF-8
Python
false
false
5,974
py
import time import asyncio import discord from discord.ext import commands class Help(commands.Cog): def __init__(self, bot): self.bot = bot def n_embed(self, ctx, page: int, pages, cogs, cogsD): embed = discord.Embed( description=f"Prefix: `{ctx.prefix}`\n`[argument...
[ "spyrosr1@gmail.com" ]
spyrosr1@gmail.com
e9d6a9e74ae41588308338c09581de2615802eed
26b50d07e15bbbb216dd4e7091a48be9e92a2b78
/In Progress/fast_individualtimeEElimited.py
f176b36ad1cae5977a8cd19d6ad3bc0eefff6e53
[]
no_license
kchang2/pi0-analysis
1ffb2546a674422207688666b917a69d6ee501d2
db4504ad9e24e0bdb3c50bfc8b1e3e8f95e1af15
refs/heads/master
2020-05-30T18:57:21.415496
2015-12-23T16:09:20
2015-12-23T16:09:20
39,848,825
1
1
null
2015-11-21T02:05:43
2015-07-28T17:43:39
Python
UTF-8
Python
false
false
4,441
py
## ## Tutorial for drawing a histogram plot (2D) from tree variables ## in the endcap region. We want a general time resolution to see ## which sections are affected the most. ## ## Updated as of 07/27/2015 ## Running as of 07/27/2015 ## import ROOT as rt import sys, random, math import time import os import stackNfit...
[ "kchang2@caltech.edu" ]
kchang2@caltech.edu
a892ef66293e61892f089fdb096b5545ddbb5d4a
633acc13e138832b0e5e65e91d5c92f2c5cef273
/zhihu/pipelines.py
b665512b1c4d27c1580bb8e9e61e6462f447a204
[]
no_license
xwj-scarf/zhihuSpider_v1.0
9a6325b5c610ea9a6b4011554e0640247c9601d3
9cf0d5ed677dba3b01794ca8827c26123279410a
refs/heads/master
2021-01-23T16:30:09.971180
2017-06-04T08:27:05
2017-06-04T08:27:05
93,299,929
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import pymongo class MongoPipeline(object): def __init__(self,mongo_url,mongo_db): self.mongo_url=mongo_url ...
[ "xwj_scarf@163.com" ]
xwj_scarf@163.com
3d1c874248f328ff324676aff6d647db8ba2e075
79bd668684d8ed38927e20cc46bd1c461dce436d
/blog/views.py
ae4e641314b9deea2feabd12664b8b3be932847d
[]
no_license
BagirThohir/Tugas-2
a0f6890fd0f6def2c5eff8c2125cdec6ababb0fe
1fec92d497cee820e024db42bf8ed72788bc7871
refs/heads/master
2023-03-28T07:47:01.740862
2021-03-26T12:24:01
2021-03-26T12:24:01
351,765,772
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
from django.shortcuts import render from .models import Artikel def index(request): context = { 'articles' : Artikel.objects.all().order_by('-created_date') } return render(request, 'blog/index.html', context) def details(request, article_id): context = { 'article' : Artikel.objects.ge...
[ "muhamadbagir99@gmail.com" ]
muhamadbagir99@gmail.com
6cf72e66f2d69c945cf6c8dd2011b157d8cf60a4
b99e2869af7a70d4d847c6efafe8b599db27ab0a
/vDjBook/Scripts/pildriver.py
29eebc94ac25dff1835cab607fbc1f7c35983cde
[]
no_license
Covee/site_practice1_Django
a24fcf9f0122a93132ccc5d2ab3cad19e2988f77
3f824222b4f53ba4a5fc5f3484f0825aa8bc7903
refs/heads/master
2022-12-26T09:39:16.649844
2017-09-26T10:19:40
2017-09-26T10:19:40
104,064,752
0
1
null
2022-12-10T11:28:50
2017-09-19T11:12:22
Python
UTF-8
Python
false
false
15,541
py
#!c:\python~2\blog_p~1\vdjbook\scripts\python.exe """PILdriver, an image-processing calculator using PIL. An instance of class PILDriver is essentially a software stack machine (Polish-notation interpreter) for sequencing PIL image transformations. The state of the instance is the interpreter stack. The only method ...
[ "unittop91@gamil.com" ]
unittop91@gamil.com
e03dd7cf9f30096a3fcd724160094c5729decd0e
7949f96ee7feeaa163608dbd256b0b76d1b89258
/toontown/coghq/DistributedBanquetTable.py
a40dee6c0601918967b38ce75552be557387627e
[]
no_license
xxdecryptionxx/ToontownOnline
414619744b4c40588f9a86c8e01cb951ffe53e2d
e6c20e6ce56f2320217f2ddde8f632a63848bd6b
refs/heads/master
2021-01-11T03:08:59.934044
2018-07-27T01:26:21
2018-07-27T01:26:21
71,086,644
8
10
null
2018-06-01T00:13:34
2016-10-17T00:39:41
Python
UTF-8
Python
false
false
50,791
py
# File: t (Python 2.4) import math import random from pandac.PandaModules import NodePath, Point3, VBase4, TextNode, Vec3, deg2Rad, CollisionSegment, CollisionHandlerQueue, CollisionNode, BitMask32, SmoothMover from direct.fsm import FSM from direct.distributed import DistributedObject from direct.distributed.ClockDel...
[ "fr1tzanatore@aol.com" ]
fr1tzanatore@aol.com
7a09d275bc7d4ff865c287dc116481e4ede3ca2d
563d5bdcdb0f3b40893d0ada11bf68e7338c283c
/datastructures/arrays/python/algorithms/two_sum_2.py
94961b3d8296997633588ee7eedb357551e028a6
[]
no_license
llenroc/interviews-1
8a1342102f2deede2a569d63eb8fbbf9055fcd26
e5f55e48c2b9a4b06a81693b57d3cec65c2d91e9
refs/heads/master
2023-09-06T10:18:40.490289
2021-11-22T18:19:58
2021-11-22T18:19:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
def twoSum(numbers, target): i = 0 j = len(numbers) - 1 sum = 0 while i < j: sum = numbers[i] + numbers[j] if sum > target: j -= 1 elif sum < target: i += 1 elif sum == target: return [i + 1, j + 1] return [-1, -1] def main(): ...
[ "andrei.visan@kpn.com" ]
andrei.visan@kpn.com
23f9781ac175c426b2b801b257618ed97b8661f7
a437d23c87b0b4be0db8be378a09b56cf138d1ff
/gallery/settings.py
c385f8e6ecb3737e00d29f9ed47868695ef381cb
[]
no_license
dsipakou/django_gallery
7647462f462745eb4e934fc9759e18489c4e9448
15d242148b653324e79efac2e773f0b9f46a7de2
refs/heads/master
2021-06-23T17:33:27.043687
2017-08-31T15:54:13
2017-08-31T15:54:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,340
py
""" Django settings for gallery project. Generated by 'django-admin startproject' using Django 1.10.2. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os...
[ "denis.sipakov@pandadoc.com" ]
denis.sipakov@pandadoc.com
8c347b056cb36c0e390a877ccfc8d7cb252c58d5
6b10fb82c07ba126669990c55b5d8556e0aa7e30
/ushauri/settings.py
0b2aadbf5643c28aafaec2b587b2f96a36daf20a
[]
no_license
chepkoy/ushauri
1c224e7d8a9025f199ac4b5676f3a5df50507d2b
f2ad5ffaa55b9d7ad619bee8568f62cb1312353d
refs/heads/master
2021-05-15T03:40:38.741790
2017-11-08T19:57:56
2017-11-08T19:57:56
110,023,812
0
1
null
null
null
null
UTF-8
Python
false
false
3,143
py
""" Django settings for ushauri project. Generated by 'django-admin startproject' using Django 1.11.7. 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 os...
[ "allankiplangat22@gmail.com" ]
allankiplangat22@gmail.com
9b1ebc326055fd2ddc035181577347d831af00ad
d3a82e7576945619973b1314aaaa1bf9897e74a8
/OnlineShop/main/eshop_accounts/urls.py
2c73f07e5f264ce9146fa6491025990f3e952398
[]
no_license
zahrafarrokhi/learning_django_1
7b0a2b96f251d14ac5f8468d677c95a5eb420905
031a4fb99df74745df8f972df158aed1a17a4862
refs/heads/main
2023-07-06T11:58:33.725572
2021-08-09T06:52:17
2021-08-09T06:52:17
393,140,344
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
from django.urls import path from . import views app_name = 'eshop_accounts' urlpatterns = [ path('login/', views.user_login, name='login'), ]
[ "zahrafarrokhi2017@gmail.com" ]
zahrafarrokhi2017@gmail.com
c0077791487a7cdd2f840ea70b68c6dc292acbd2
d9520da6139352f8e8b7ba8b1722938ff7967ebb
/miniflow/nn_sigmoid.py
a4632dfe814df259aa4c3dc34ef9f7d982a2a4e0
[]
no_license
k26dr/sdc_coursework
aa5720da1e559b79a40d2dda7995320cc5725482
71d1e2536b21c9e226bc343cc3aaaff32e151d18
refs/heads/master
2021-01-13T15:03:13.541224
2016-12-30T02:17:25
2016-12-30T02:17:25
76,284,145
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
import numpy as np from miniflow import * inputs, weights, bias = Input(), Input(), Input() f = Linear(inputs, weights, bias) g = Sigmoid(f) x = np.array([[-1., -2.], [-1, -2]]) w = np.array([[2., -3], [2., -3]]) b = np.array([-3., -5]) feed_dict = {inputs: x, weights: w, bias: b} graph = topological_sort(feed_dic...
[ "kedarmail@gmail.com" ]
kedarmail@gmail.com
c86adca0a5e98f145fd2d56300d83f383f4b36d6
c8dba5315ff0f20395c08a34f1cc27797e052c61
/150050085_lab1/cal-year.py
b7ac53900a1f4ee829204eec3ac47dc9e3d3aea1
[]
no_license
AthletiCoder/PointerLanguageCompiler
27e51b80ad789fc46fe69d3aa1081ead4d1b9776
b530aadae58cc3e55277c5c51ddfc1c424034b94
refs/heads/master
2021-05-03T06:30:02.699452
2018-04-07T05:22:18
2018-04-07T05:22:18
120,595,662
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
import sys yearly = sys.stdin.readlines() row = [0]*3 cal = [0]*35 for i in range(35): cal[i] = list(map(''.join, zip(*[iter(yearly[i+1])]*22))) print(yearly[0]) for j in range(3): for i in range(8): print(cal[i][j]+" "+cal[i+9][j]+" "+cal[i+18][j]+" "+cal[i+27][j]) print("")
[ "noreply@github.com" ]
AthletiCoder.noreply@github.com
a5d16596b2c10dda91ff06d79b767fd2d9c2ae72
69f03048347f0746f089ae6755dcf8c4a2c9d108
/manage.py
51c8cf30e0e27192a8bb6bc357f88da59ae5df8d
[]
no_license
allanraafael/django-react
7625c05c9bd6c2a63c88e941c53fc90cedd38cc7
21c2237da01c1e0ff513b29ec7b24ec610f097ed
refs/heads/master
2023-03-24T13:56:25.214065
2021-03-16T01:30:34
2021-03-16T01:30:34
348,175,700
2
0
null
null
null
null
UTF-8
Python
false
false
570
py
#!/usr/bin/env python import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.core.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure ...
[ "allanrafaelfo@gmail.com" ]
allanrafaelfo@gmail.com
74b341d63a32b49d9cba4ce501dbbd8f5a11fc8e
97399f2976443cc41329c4b289e89db8c895ddb4
/venv/bin/symilar
8647cc903f86267d342557e67697147f20c65454
[]
no_license
kinitkumar1801806/TouristHelperApi
c55393adf2df4c517961f416db0098a73e93c361
d873a9bffd7b8bd681ff600e62243bd9ec656707
refs/heads/master
2023-02-21T08:41:13.656401
2021-01-20T10:39:19
2021-01-20T10:39:19
323,374,394
1
0
null
null
null
null
UTF-8
Python
false
false
263
#!/home/kinit/PycharmProjects/TouristHelperApi/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pylint import run_symilar if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run_symilar())
[ "www.kinitkumar@gmail.com" ]
www.kinitkumar@gmail.com
c0b823399038ecc6f70a653d7263714212019101
579250ce2d68382393394d59e8b930718c23870f
/lesson6/67_commandline.py
f7fcd57f4b545562525fa5e95734d10f19484c1b
[]
no_license
Kazzuki/study_python
3fb2a2e387e3dc22dd4b0bf31dcad2d6d940e8d7
e0f78efc9b22866bb4b2398071ff2c403ed2feb0
refs/heads/master
2023-02-26T23:42:57.003100
2021-02-12T12:21:54
2021-02-12T12:21:54
264,119,745
0
0
null
null
null
null
UTF-8
Python
false
false
1,419
py
# コマンドラインの引数が利用できる! """ import sys print(sys.argv) for w in sys.argv: print(w) """ #moduleの話 """ ・関数を読み込むんでなくて、moduleを経由して読み込むこと!(コンフリクトや関数の特定に困る) ・フルパスで読み込みなさい!っていうルールを持つ会社もある ・asをつかってしまうと、どんなモジュールかわからなくなる可能性もある! """ #その①_フルパスで書いてあげる(サードパーティや他のチームが開発したものでも区別がつく!) """ # pakage.moduleの関係(酒井先生はこう読んでいる) import les...
[ "madakazuki@icloud.com" ]
madakazuki@icloud.com
b47c9a85013089dec45758e6489eb731972070ee
4ece3041f2ed0cd312dc70fd3c7c240924dbb6ae
/pyathena/__init__.py
8335fb21281d596d87e5bc8a90d091895483fde9
[ "MIT" ]
permissive
ivssh/PyAthena
175c5dfff0289a7ceccfe9a47ac490985535f669
156c51f19b46ea2f89612b3383937d78942bc990
refs/heads/master
2020-03-27T13:07:58.417397
2018-07-21T13:08:41
2018-07-21T13:08:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,351
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals import datetime from pyathena.error import * # noqa __version__ = '1.3.0' # Globals https://www.python.org/dev/peps/pep-0249/#globals apilevel = '2.0' threadsafety = 3 paramstyle = 'pyformat' class DBAPITypeObj...
[ "laughingman7743@gmail.com" ]
laughingman7743@gmail.com
c118e85ded20e430fa7da66fad7017d4f57958c3
da056df6c920d35de8aebb33985a8fdcce3bd29d
/q0797.py
8977c3170b981c176292e36451e3c48017d81605
[]
no_license
iEuler/leetcode_learn
d27e30d9de29e2396da8448c30d6ce82680de1bf
91a170aa1e6712a1d120c1646db048a97c583049
refs/heads/master
2021-03-28T12:20:56.406970
2020-10-19T12:14:26
2020-10-19T12:14:26
247,863,009
0
0
null
null
null
null
UTF-8
Python
false
false
1,481
py
""" 797. All Paths From Source to Target Medium https://leetcode.com/problems/all-paths-from-source-to-target/ Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n - 1, find all possible paths from node 0 to node n - 1, and return them in any order. The graph is given as follows: graph[i] is a list of a...
[ "48609238+iEuler@users.noreply.github.com" ]
48609238+iEuler@users.noreply.github.com
6430ad985b5c08e8f0e7f98428386d3713eb65b2
c45c9e74ffafcceebf395cc1c5f5d31659988c19
/answer_search.py
ff4bf3d7d7e148d57a000bb5cd58779991814eb8
[]
no_license
tedrepo/QABasedOnMedicalKnowledgeGraph
f68ca297254218c72ef18a26c98f1910610f7154
f690b80e2a7fb85455b45d3829b6998be9ebc739
refs/heads/master
2020-03-30T23:14:39.416415
2018-10-05T04:12:19
2018-10-05T04:12:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
#!/usr/bin/env python3 # coding: utf-8 # File: answer_search.py # Author: lhy<lhy_in_blcu@126.com,https://huangyong.github.io> # Date: 18-10-5 from py2neo import Graph,Node class AnswerSearcher: def __init__(self): self.g = Graph( host="127.0.0.1", http_port=7474, user=...
[ "lhy_in_blcu@126.com" ]
lhy_in_blcu@126.com
142b4edaf5e0cb5022cd5869f8cbdf4542e77689
a4df0ee67d0d56fc8595877470318aed20dd4511
/vplexapi-6.2.0.3/vplexapi/models/health_state.py
819d13f492a6fb68862c506a14264a4633267ac3
[ "Apache-2.0" ]
permissive
QD888/python-vplex
b5a7de6766840a205583165c88480d446778e529
e2c49faee3bfed343881c22e6595096c7f8d923d
refs/heads/main
2022-12-26T17:11:43.625308
2020-10-07T09:40:04
2020-10-07T09:40:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,553
py
# coding: utf-8 """ VPlex REST API A defnition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class HealthState(object): """NOTE: This class is auto ...
[ "anil.degwekar@emc.com" ]
anil.degwekar@emc.com
fdc137c38ddcc4d02f6616631ac20050ede866f4
40c9408be0b2b9d6eb11b94ef8edbdc3ef7ee7fa
/LOB_simulation/read_json.py
deb98ce3312244f53f7f52eff41be8f8990a036b
[ "MIT" ]
permissive
Izidorf/exchange
ffff6e8414b4943c94f724b01b8dcae30e302577
9c5bae3091f24b832fc7acba979075013492c97a
refs/heads/master
2021-01-15T12:03:44.041923
2016-09-19T18:32:53
2016-09-19T18:32:53
68,633,067
0
0
null
null
null
null
UTF-8
Python
false
false
4,642
py
import numpy as np import matplotlib.mlab as mlab import matplotlib.pyplot as plt import pandas as pd def JSONStream(fd, buffer_size=4096, decode=None): ''' Decodes distinct JSON objects from a stream (a file-like object) Returns a generator that yields sequential JSON objects as they are retreived from the strea...
[ "izidorflajsman@tests-MacBook-Pro-2.local" ]
izidorflajsman@tests-MacBook-Pro-2.local
2a012620dfe09c0f6c1c04320e49696991285bed
8e6203db7383475f1c24a590f0456330b969bb4b
/optbinning/binning/distributed/plots.py
dba20f0cab79a00b42588937c020ed96d925680e
[ "Apache-2.0" ]
permissive
guillermo-navas-palencia/optbinning
6fdfc764a214052b4d7d8e0b59114f0a63e6d5a8
73aee82008ebe88b732430e7c5764da57fb4d3ae
refs/heads/master
2023-08-28T13:33:43.536143
2023-08-22T19:20:18
2023-08-22T19:20:18
231,076,826
377
91
Apache-2.0
2023-09-05T20:14:14
2019-12-31T11:17:44
Python
UTF-8
Python
false
false
1,370
py
""" Binning sketch plots. """ # Guillermo Navas-Palencia <g.navas.palencia@gmail.com> # Copyright (C) 2020 import matplotlib.pyplot as plt import numpy as np def plot_progress_divergence(df, divergence): n = len(df) n_add = df.n_add n_records = df.n_records div = df.divergence mv_div_mean = div...
[ "g.navas.palencia@gmail.com" ]
g.navas.palencia@gmail.com
75d2c7f495c3d1e8921a7eca9f3573f46656c52a
122496927f93d9715d55812180fff8c599c77e09
/whatsapp.py
e04ef58fd25c0634fd14e37b87857e4ca850aa32
[]
no_license
blauner5/whatsapp-monitor
a1d182ea55d4342350764652aff3278753382313
cc18938c40ec4734bc3fd8b2daa75f8263097f38
refs/heads/master
2020-08-01T02:14:24.610558
2019-09-25T22:19:38
2019-09-25T22:19:38
210,824,567
0
2
null
null
null
null
UTF-8
Python
false
false
2,691
py
from urllib.parse import quote from time import sleep from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.common.exceptions import NoSuchElementException import datetime import mysql.connector mydb = mysql.connector.connect(host="HOST", user="USER", passwd="PASS", databas...
[ "riccardociprini@gmail.com" ]
riccardociprini@gmail.com
05f98c995114c13d415121f855678ae770c9123b
d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4
/AtCoder/ABC-D/107probD.py
261c5013ca5189665dd06803268802f1623a399f
[]
no_license
wattaihei/ProgrammingContest
0d34f42f60fa6693e04c933c978527ffaddceda7
c26de8d42790651aaee56df0956e0b206d1cceb4
refs/heads/master
2023-04-22T19:43:43.394907
2021-05-02T13:05:21
2021-05-02T13:05:21
264,400,706
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
# 足す時は0~iまで一律に足し、返すのはi番目の値 class imosBIT(): def __init__(self, N): self.N = N self.bit = [0 for _ in range(self.N+1)] def __str__(self): ret = [] for i in range(1, self.N+1): ret.append(self.__getitem__(i)) return "[" + ", ".join([str(a) for a in ret]) + ...
[ "wattaihei.rapyuta@gmail.com" ]
wattaihei.rapyuta@gmail.com
6c28dcf942f472f991296fca7296a7efb8fd6587
967fd4117c72c56000d779970f2c85cc8b661cfe
/BasicSyntax
c0013026d02294c840c2012b10d46212db3662ca
[]
no_license
akrai37/Python-programs
afe0761eb56c81e36bba926b69cc571ad9ac6d62
866fdd585f5c69de28a900e068818d635201fc44
refs/heads/master
2020-05-16T11:24:59.229346
2019-06-04T18:08:41
2019-06-04T18:08:41
183,015,646
1
0
null
null
null
null
UTF-8
Python
false
false
284
skill_completed = "Python Syntax" exercises_completed = 13 #The amount of points for each exercise may change, because points don't exist yet points_per_exercise = 5 point_total = 100 point_total += exercises_completed*points_per_exercise print("I got "+str(point_total)+" points!")
[ "noreply@github.com" ]
akrai37.noreply@github.com
5f033902c9de105ad251faa24d395812abd56674
c1ea35519cf44101b873cd752e9eebef9e491813
/zi.py
02d17cfb7465f9a2cfed9d157f9ddcfedd4c8241
[ "MIT" ]
permissive
appendixisu/chooseZi
9aa4190b9e9bfa8ceb211427edeb723469a7af71
579dce0948fb652919eb19931b5af9ed5ebed065
refs/heads/master
2023-04-05T22:14:02.444096
2021-03-30T07:23:48
2021-03-30T07:23:48
287,963,730
1
1
MIT
2020-08-17T11:49:11
2020-08-16T14:49:40
JavaScript
UTF-8
Python
false
false
2,906
py
# !/usr/bin/python # coding:utf-8 # import requests # from bs4 import BeautifulSoup # import io # import time # def sleeptime(hour,min,sec): # return hour*3600 + min*60 + sec # url = "https://shufa.supfree.net/raky.asp?zi=%BF%C9" # resp = requests.get(url) # soup = BeautifulSoup(resp.text, 'lxml') # print(soup.p...
[ "andy10189911@hotmail.com" ]
andy10189911@hotmail.com
75a15a27dd983c7914437cc5b9cb7b8699823b7a
69117d2879189663a31c5f642e33cf9d1dd6d6a3
/apps/staff/urls.py
59d0c436ac2bba32ab6fb3544f235afca1a42493
[]
no_license
code-axassin/risha-professional-studies
70f35052cd7237d50982e6a7a7efa3130588b9c7
550ff690fb62b2eda241094394e580336a9ad416
refs/heads/main
2023-06-11T13:55:55.893574
2021-07-05T11:45:56
2021-07-05T11:45:56
382,754,489
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
from django.urls import path from apps.staff.api import api_delete_staff from apps.staff.views import AllStaffListView, add_staff, view_staff, edit_staff, StaffUpdate, StaffCreate, staff_search urlpatterns = [ path('', AllStaffListView.as_view(), name="all_staff"), path('add/', add_staff, name="add_staff"), ...
[ "76621558+code-axassin@users.noreply.github.com" ]
76621558+code-axassin@users.noreply.github.com
722c725f1db986f213a767b15664d2a33ca6efd9
0cf1f386f8e396f1ef0b1d558feb42a1c4c9c281
/myapp/store/__init__.py
dafe5cb4e9d3af981a278a59fdf4144ccdfa739d
[]
no_license
leomorpho/flask-website
5583add9cef929c012c830c9b9006432496b35fb
4ca91a37f1424c5f8bcdddc7d1e4ef5b97f86605
refs/heads/master
2023-05-13T10:32:27.734249
2019-06-17T20:36:50
2019-06-17T20:36:50
191,808,022
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
from flask import Blueprint bp = Blueprint('store', __name__) from myapp.store import routes
[ "leonard.audibert@pm.me" ]
leonard.audibert@pm.me
0e3b552414f8ead8c3344be3c90ef387fb41e9b2
8f359c04efb43034f2aa2fa3aa96beaa407d45bb
/ps1/house_hunting_partC.py
57443545924dbcd413a2ffa20249216d5c4cdb75
[]
no_license
Clark229Kent/mitocw6.0001
d6f89692d0c90113e1e8ed06176c4de584d6dd8f
b29a3b6a72433e18374475a50790da91049a020f
refs/heads/main
2023-01-20T22:09:30.366720
2020-11-29T01:27:33
2020-11-29T01:27:33
313,934,081
0
0
null
null
null
null
UTF-8
Python
false
false
1,747
py
total_cost = 1000000 semi_annual_raise = 0.07 annual_return = 0.04 starting_salary = float(input("Enter your starting salary: ")) portion_down_payment = total_cost * 0.25 current_savings = 0 epsilon = 100 number_of_months = 0 def three_year_savings(current_savings, guess, semi_annual_raise, a...
[ "noreply@github.com" ]
Clark229Kent.noreply@github.com
adcaf241cc21e8b53902c8fd088e45563c540721
68f3146c44a4ef775cddd7418c31a14f5d4d3232
/cc_gen.py
74ae5ff090f2bb2b97b544da50127ca7ffc30d53
[ "MIT" ]
permissive
geixD/jardingUWU
1e4c2aa73226d8ab08ea72c33d433dbce78042fb
f45f852f1a3f7073e10ab55b4d2b70e47960c16d
refs/heads/main
2023-04-02T00:18:01.718837
2021-04-18T03:06:34
2021-04-18T03:06:34
358,755,309
0
0
null
null
null
null
UTF-8
Python
false
false
4,854
py
import os, time, sys, datetime from random import randint from huepy import * __version__ = "1.3.6" def cc_gen(bin): cc = "" if len(bin) != 16: while len(bin) != 16: bin += 'x' else: pass if len(bin) == 16: for x in range(15): if bin[x] in ("0", "...
[ "noreply@github.com" ]
geixD.noreply@github.com
3400d334de7ddd40dbc556d74bff6700ddc27be6
f43b592a338700e872a862a3fcf9e45bc3cd8c89
/paramtools/tree.py
d4a8b6f1477def6aed6d6e0766ca36ca262b221b
[ "MIT" ]
permissive
MaxGhenis/ParamTools
14f316cb6c6aef4b3edb4df07489acba9c90d7af
73ccc4eed917ded10b183014e8e08189f13d32a8
refs/heads/master
2022-11-08T10:23:43.321951
2020-06-29T14:05:07
2020-06-29T14:05:07
275,851,495
1
0
null
2020-06-29T15:14:37
2020-06-29T15:14:36
null
UTF-8
Python
false
false
10,574
py
from collections import defaultdict from typing import List from paramtools.exceptions import ParamToolsError from paramtools.typing import ValueObject, CmpFunc class Tree: """ Builds a tree structure for more efficient searching. The structure is: label --> label value --> set of...
[ "henrymdoupe@gmail.com" ]
henrymdoupe@gmail.com
56b442f8b7bfc47ef533d1a9d1c90373518ecca3
df7736726d5b041e46b490e409a1d4481ef8c7f1
/tools/rosmaster/src/rosmaster/threadpool.py
1261e2f5e4aa3947450c12ff477e0830735e537e
[]
no_license
strawlab/ros_comm
62f5d2bc68d6cbe85c071eabb7487164d6c328be
6f7ea2feeb3c890699518cb6eb3d33faa15c5306
refs/heads/master
2020-05-18T02:26:43.463444
2012-08-05T07:10:58
2012-08-05T07:10:58
5,301,610
13
31
null
2019-09-24T22:49:12
2012-08-05T07:10:44
Python
UTF-8
Python
false
false
8,088
py
# Software License Agreement (BSD License) # # Copyright (c) 2008, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above...
[ "strawman@astraw.com" ]
strawman@astraw.com
1dadfb379c81c86bb5dc817f66cd29c2fda380ad
e00d41c9f4045b6c6f36c0494f92cad2bec771e2
/programming/language/python/python-importlib_resources/actions.py
039be24d23edfb7a60cf2f14d2e783d0ae5ac760
[]
no_license
pisilinux/main
c40093a5ec9275c771eb5fb47a323e308440efef
bfe45a2e84ea43608e77fb9ffad1bf9850048f02
refs/heads/master
2023-08-19T00:17:14.685830
2023-08-18T20:06:02
2023-08-18T20:06:02
37,426,721
94
295
null
2023-09-14T08:22:22
2015-06-14T19:38:36
Python
UTF-8
Python
false
false
383
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import shelltools from pisi.actionsapi import pythonmodules shelltools.export("SETUPTOOLS_SCM_PRETEND_VERSION","1.5.0") def build(): pyth...
[ "bluedevil@sctzine.com" ]
bluedevil@sctzine.com
9afa4e20081e1cfa380b6474b33c811305e13c9a
29623d43b2ab99e55a5d102e8d718015053073a3
/aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/QueryCensorJobListRequest.py
8bb5ce2996660555cc680f7e5f65657a90cfa511
[ "Apache-2.0" ]
permissive
zxsted/aliyun-openapi-python-sdk
ed41e1d93c63557ecfbcffb6c84f87d4ed2a7f59
a539d6e268fc07f314c5114c21ced4c8ead51dee
refs/heads/master
2021-05-13T19:58:10.000697
2018-01-09T11:16:55
2018-01-09T11:16:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,894
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "haowei.yao@alibaba-inc.com" ]
haowei.yao@alibaba-inc.com
3cda1ae2b4cd6cb0ed54b4906fae385788620fcd
1e652f1ef9b9a3688d1f8eafc0c7858a698b70e8
/01_Replication/03_Motifs/Motifs.py
472e4eb1497abd0018f802686bea6c846bb0878d
[]
no_license
mtleis/Bioinformatics-Specialisation-UC
2f269f60d2a8dbfbcef7663eb807a5f2a22c954d
aa7485d841f26b290276f209936f11a1af8e6e1c
refs/heads/master
2020-04-25T12:40:35.240960
2019-05-28T07:31:51
2019-05-28T07:31:51
172,785,299
0
0
null
null
null
null
UTF-8
Python
false
false
2,129
py
def Count(Motifs): count = {} k = len(Motifs[0]) for symbol in "ACGT": count[symbol] = [] for j in range(k): count[symbol].append(0) t = len(Motifs) for i in range(t): for j in range(k): symbol = Motifs[i][j] count[symbol][j] += 1 ret...
[ "m.tleis@liacs.leidenuniv.nl" ]
m.tleis@liacs.leidenuniv.nl
007d6bb2431b517f4505925708b3e6528096adbd
cd5e93bc606960495287976c0d2c8e5df3c6375d
/main.py
f44f31b7b751ef252ac839a6fb5030b02dd53661
[]
no_license
luluiz01/ProjetoMineradorVagas
f5defb2eecfa2f7f291816ff5d2adcf7e7e99079
b89bf8c1b182017165f5a5a9d90b3756aa23060f
refs/heads/master
2020-09-05T03:07:10.075306
2020-01-25T18:15:20
2020-01-25T18:15:20
219,964,498
0
0
null
null
null
null
UTF-8
Python
false
false
897
py
import funcoes as f import bot import telepot import pprint import scraping as sc #print(soup) # url = 'https://www.apinfo.com/apinfo/inc/list4.cfm' # soup = f.pega_pagina(url) # print(soup) minerar = True if minerar: nome_arquivo = 'apinfo_pagina_1.html' soup = f.carrega_html(nome_arquivo) titulo = f.filtrarPel...
[ "luiz.pventura@gmail.com" ]
luiz.pventura@gmail.com
807c1bda878f4fd044b408e7ea19357e343ca3ec
73eb133e8f7a167d13c02f3db96274ae5e7152e7
/a.py
14dff844ad05865bc4737459fb420fd4b68ca83b
[]
no_license
yunhom/TestGit
1479ccb7976a97cc5d3ce18ff9f9afde8643ad5e
d6f915f04417a349312b71c1da30e4d01af87f6c
refs/heads/master
2021-01-17T17:46:25.283114
2017-12-28T19:40:14
2017-12-28T19:40:14
61,826,147
0
0
null
null
null
null
UTF-8
Python
false
false
2,833
py
import urllib.request from urllib import error from bs4 import BeautifulSoup import os.path import re import operator # 通过中国气象局抓取到所有的城市编码 # 中国气象网基地址 weather_base_url = "http://www.weather.com.cn" # 华北天气预报url weather_hb_url = "http://www.weather.com.cn/textFC/hb.shtml#" # 获得城市列表链接 def get_city_list_u...
[ "noreply@github.com" ]
yunhom.noreply@github.com
16526d6d991321e879d46e8d8cd308ef7e4677b9
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Difference/trend_MovingMedian/cycle_5/ar_/test_artificial_1024_Difference_MovingMedian_5__20.py
f424dd4077963cad7c75f615bce42289c823621a
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
274
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 5, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
5f8ceb5c2e60994ad6cc254a9719b424f114dd9f
76452f3645acad331878a9dfa6ca3021515cd155
/utils.py
f1916adb742815d9dd6f82fa39919ad1d9311909
[ "MIT" ]
permissive
nishatdhillon/CarND-Behavioral-Cloning
6b436136612512e36cd30e977c4b183225a821c2
0c5cdd253436799e5590a14d7f843f7108b50d90
refs/heads/master
2021-01-25T11:14:50.478986
2017-04-10T00:38:55
2017-04-10T00:38:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,211
py
import numpy as np from scipy.misc import imread, imresize def read_imgs(img_paths): imgs = np.empty([len(img_paths), 160, 320, 3]) for i, path in enumerate(img_paths): imgs[i] = imread(path) return imgs def resize(imgs, shape=(32, 16, 3)): """ Resize images to shape. """ height,...
[ "matthew_cooper@brown.edu" ]
matthew_cooper@brown.edu
3ec19460ce437a87592c19e706dffcfc90cf10ba
70b1c91530b28d86e0fe8f46187b33322a6b9228
/backend/manage.py
00289a0b69ac55cbdc207727fa8d516788743952
[]
no_license
crowdbotics-apps/satsuscreen-dev-1528
34fd3d6a3c4a717dcc657eb8ef055e736f33b70d
9b910435fc4ef034efe521985446055c688d52d7
refs/heads/master
2022-04-04T20:58:24.447428
2020-01-21T17:16:51
2020-01-21T17:16:51
235,398,078
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'satsuscreen_dev_1528.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
b261ab4e92228c3878cdd7b320205880aa010143
6659b5530db19461f32456903da617cb2f819526
/House.py
1f27accd8fb3070e9f00f3131a9d10533eb1282a
[]
no_license
Blikhmania/Draw-using-pyton
5365358533bdb44aa18696350bf6625411214f33
ebeb10642094ec76f1daf4fee9a696d274410f87
refs/heads/master
2022-12-15T23:44:33.865870
2020-09-12T14:06:53
2020-09-12T14:06:53
294,934,630
0
0
null
null
null
null
UTF-8
Python
false
false
2,318
py
import pygame, sys from pygame.locals import * pygame.init() # set up the window DISPLAYSURF = pygame.display.set_mode((500, 400), 0, 32) pygame.display.set_caption('Drawing') # set up the colors #COLOR R G B AQUA = (000, 255, 255) BLACK = (000, 000, 000) BLUE = ( 0, 0, 200) GRAY = (128,...
[ "noreply@github.com" ]
Blikhmania.noreply@github.com
9a732ee14213ecf26239bb68f65c2699680d42d1
ff1b5b1ea9b9b67cd611458c962b19ba40294368
/codingdiagnostic/codingdiagnostic/buyLotsOfFruit.py
2eadf001f0f649c900b9237ac79a33f148220f31
[]
no_license
mahmoudbadawy243/AI-sheet-Dr-hossiny
05569bbf50dd70522c90f88fb4a396385a0a617f
12a17d162e080f9a1c7a9977a2efe4193c78816c
refs/heads/main
2023-08-27T18:14:16.341875
2021-10-28T05:13:38
2021-10-28T05:13:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,638
py
# buyLotsOfFruit.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.berk...
[ "noreply@github.com" ]
mahmoudbadawy243.noreply@github.com
ecacb54265cd97d2192d5166ef0b87a3f1f27cb8
48cfcd07d07919da95d666c26d30f1b979666b1e
/env/bin/pilfont.py
8ea7d0d895cf1f35459b989947995924c3d97857
[]
no_license
asfcarter/vvm
4d390047ae77ec3030d7b64773f7f0bf519a3c7d
dd072dadc8794fc4354700285759571441758351
refs/heads/master
2021-01-20T09:01:37.222878
2015-05-05T10:18:53
2015-05-05T10:18:53
34,862,426
0
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
#!/home/asfcarter/vvm/env/bin/python # # The Python Imaging Library # $Id$ # # PIL raster font compiler # # history: # 1997-08-25 fl created # 2002-03-10 fl use "from PIL import" # from __future__ import print_function VERSION = "0.4" import glob, sys # drivers from PIL import BdfFontFile from PIL import PcfFon...
[ "asfcarter@yahoo.co.uk" ]
asfcarter@yahoo.co.uk
6383999b044cd69bf47c5f63f9a4dd3dc82f14b0
0cac657be64b0e01b20a6c8283ed89ad03a1deeb
/Capitulo 10/final.py
d65a4c1cf80720c3324fa26595a84926ea742d4a
[]
no_license
RenanMarcell/Intro-programacao-python
5b493cdfbed5a97e74e1be7bc60ef192e700b308
f1827d8ad52a83d0241f1fd408415d9c5f950f8a
refs/heads/master
2021-09-03T09:09:57.461812
2018-01-07T23:16:44
2018-01-07T23:16:44
114,700,062
0
0
null
2018-01-07T23:16:45
2017-12-19T00:08:33
Python
UTF-8
Python
false
false
8,539
py
import sys import pickle from functools import total_ordering from listagem_10_13 import ListaUnica from nome import Nome from tipotelefone import TipoTelefone from telefone import Telefone from agenda import TiposTelefone, Agenda, DadoAgenda, Telefones def nulo_ou_vazio(texto): return texto is None or not texto....
[ "renanm@outlook.com" ]
renanm@outlook.com
6c93602e8ac313fc510dc327883b106814e788e8
aa2d3f731f1ebe09578e828e30f6f2b4a9ad75fd
/bhaskara.py
ee4e467c7ebf44467676f08a9dc74fd83cb9737e
[ "Apache-2.0" ]
permissive
cleuton/pythondrops
2d980f4975dbd36c4e4fe18929b62a87925e1982
297f38b2f358ea7621befe9c82a4415243c2978f
refs/heads/master
2022-05-01T01:14:33.758024
2022-04-16T11:55:40
2022-04-16T11:55:40
126,306,109
11
6
Apache-2.0
2020-10-13T12:23:08
2018-03-22T08:48:06
Python
UTF-8
Python
false
false
443
py
import math def calc_delta(a,b,c): delta = b**2 - 4 * a * c return delta a = float(input("a: ")) b = float(input("b: ")) c = float(input("c: ")) delta = calc_delta(a, b, c) if delta > 0: x1 = (-b + math.sqrt(delta)) / (2*a) x2 = (-b - math.sqrt(delta)) / (2*a) print(f"x1: {x1} e x2: {x2}") ...
[ "cleuton@tecgraf.puc-rio.br" ]
cleuton@tecgraf.puc-rio.br
25e655d40a6d42517ef5ad9c8bd1badf7733d0dc
3c5754bd81702ab1fa560111a75dae7052ef0df6
/mst(minimumSpanningTree)/prim_adjacancyMatrix.py
4550b8bf1c1f8b8f4d8f19e012bacc3fda763459
[ "MIT" ]
permissive
vsjadhav/DSA_python
e62a8ea970a6f26a8a77cbb07a54c1fef7fcce6f
1dd71b418bb604ebfd561c3dc9b8e123486ad8ef
refs/heads/main
2023-08-17T14:44:32.030375
2021-09-15T12:34:34
2021-09-15T12:34:34
406,753,969
0
0
null
null
null
null
UTF-8
Python
false
false
1,454
py
class Graph: def __init__(self,numberOfVertices, vertices): self.v = numberOfVertices self.vertices = vertices self.graph= self.createGraph() def createGraph(self): g= [] for i in range(self.v): row = [0]*self.v g.append(row) r...
[ "noreply@github.com" ]
vsjadhav.noreply@github.com
45e4c604a1abb9e87a512ebd9f76d9b0f9c3b196
ac5eb7df8515fb92071f9e0f64d1cf6467f4042d
/Python/rob2.py
f3a88519ae1128202362e9a689cbe3ddc705f124
[]
no_license
Litao439420999/LeetCodeAlgorithm
6ea8060d56953bff6c03c95cf6b94901fbfbe395
9aee4fa0ea211d28ff1e5d9b70597421f9562959
refs/heads/master
2023-07-08T06:17:20.310470
2021-08-08T08:12:23
2021-08-08T08:12:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
983
py
#!/usr/bin/env python3 # encoding: utf-8 """ @Filename: rob2.py @Function: 打家劫舍 II 动态规划 @Link: https://leetcode-cn.com/problems/house-robber-ii/ @Python Version: 3.8 @Author: Wei Li @Date:2021-07-16 """ class Solution: def rob(self, nums) -> int: def robRange(start: int, end: int) -> int: fi...
[ "weili_yzzcq@163.com" ]
weili_yzzcq@163.com
b6c63959eba8dbb8c0b937893309c42ae2c5647d
84bf3311d6b4977c1a86b9224e06092a9df5ab40
/solutions/circus.py
1bab03b6e6018fe7e0f56ad643ddd850c27bdc72
[]
no_license
walshification/advent-of-code-2017
ce2416d0121b085e43a6915938455be81db46bb0
afb5ea837af8a2e1a9f681f675172707452ef70c
refs/heads/master
2021-09-09T22:00:28.712406
2018-01-09T02:41:02
2018-01-09T02:41:02
112,861,940
0
0
null
2018-03-20T00:21:40
2017-12-02T17:25:31
Python
UTF-8
Python
false
false
4,107
py
import re from collections import defaultdict import yaml class Program: def __init__(self, program): children = [] if '->' in program: program, supports = program.split(' -> ') children.extend(supports.split(', ')) name = re.search('\w+|$', program).group() ...
[ "walshification@gmail.com" ]
walshification@gmail.com
bcaf40cdeb60c459304ff421cdf6b8ff1a525c1c
4ec1590f65fd7dc1326455876bff3c0b4cb8d7a6
/Lib/site-packages/sqlalchemy/testing/profiling.py
b034dafbf78cbc612521cffcc0e7f4377700c706
[]
no_license
Raja3131/JobsFastapi
b67950cc2e4560f6c76a4008f3052187afafb4b8
b56cf4cbaa3fcb09ad873fd91467923ff67d705b
refs/heads/main
2023-07-24T14:18:16.137728
2021-08-31T05:10:18
2021-08-31T05:10:18
401,579,190
0
0
null
null
null
null
UTF-8
Python
false
false
9,018
py
# testing/profiling.py # Copyright (C) 2005-2021 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Profiling support for unit and performance tests. These are specia...
[ "kingraja673@gmail.com" ]
kingraja673@gmail.com
e93c5f49793bfebeb2025b28d96715deb5ef9d47
accb3a97a376a4d0f52f74a134ddf1f19680d655
/week10_homework_ls/app.py
8434e390e248efc151c9d49fa5a3bf0d8e14baab
[]
no_license
luis-sauceda/bootcamp
5eddf3037cfb77a13975705e9bbacb04841d093a
498320af5c73ca19584cbf4b9fa8ee1ca5c5dcbe
refs/heads/master
2020-06-16T05:42:12.908872
2019-09-28T16:06:34
2019-09-28T16:06:34
195,493,080
0
0
null
null
null
null
UTF-8
Python
false
false
6,622
py
from flask import Flask, jsonify import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func import numpy as np import pandas as pd import datetime as dt ################################################# # Flask Setup ######...
[ "luis.alfonso.sauceda@gmail.com" ]
luis.alfonso.sauceda@gmail.com
2bba30e05df174ce2a696b492bde945a1261ad21
cf302b8399ebfaf8af0baf905b2e928af604095d
/pages/migrations/0003_auto_20200523_0946.py
2be20337d701ddb85d4f3d33fbda1370b16183b3
[]
no_license
FabiolaLa/Webempresa
2dbec95417b218b89a85c819173e03f3c9ebe355
5f8786732be82371262632e511151989b1dd81f8
refs/heads/master
2022-08-26T00:21:24.654470
2020-05-23T19:24:21
2020-05-23T19:24:21
266,407,188
1
0
null
null
null
null
UTF-8
Python
false
false
422
py
# Generated by Django 3.0.3 on 2020-05-23 14:46 import ckeditor.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('pages', '0002_auto_20200522_1859'), ] operations = [ migrations.AlterField( model_name='page', name='...
[ "“fabi20laureano@gmail.com”" ]
“fabi20laureano@gmail.com”
c3f07911afb0807ce05def959386ca7075cc8770
78ffdfdeb9a56ba77136f2e9923f6b532332ff30
/Template14/hinderedRotation.py
a99c6bd5f6f9387708ca7997a1a197891ecb5dad
[]
no_license
whm9167/Templates
ae96b1645c4414d17fb0b04118d6a52fe4765043
5195e7833fd1ca53c4e5d20ac8c31c312d6fba15
refs/heads/master
2021-05-01T20:45:25.206459
2015-04-19T07:59:04
2015-04-19T07:59:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,796
py
# READING-------------------------------------------------------------------------------------- import numpy as np from xlrd import * from xlwt import * import pyExcelerator from xlutils.copy import copy import re import os import shutil import matplotlib.pyplot as plt import phys import fourier import chem import la...
[ "hetanjin@163.com" ]
hetanjin@163.com
6b067efcd0dbc5af3028f691554b9724604944e8
e4652af89da12753710eb225e3905497032486e8
/Conditional Statements Advanced/fruit_and_veggie.py
8239a683f2d336092c6788f9439037a22d85f02f
[]
no_license
paunovaeleonora/SoftUni-Python-Basics-2020
6ef6654aafcc30f8d0d81811f617b808d2f86d85
2f82efa99ba9e0be9c4811c26de5b1543c3fe0bf
refs/heads/master
2023-08-28T17:42:13.261923
2021-10-22T17:14:46
2021-10-22T17:14:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
item = input() is_fruit = item == 'banana' or item == 'apple' or item == 'kiwi' or item == 'cherry' or item == 'lemon' or item == 'grapes' is_vegetable = item == 'tomato' or item == 'cucumber' or item == 'pepper' or item == 'carrot' if is_fruit: print('fruit') elif is_vegetable: print('vegetable') else: p...
[ "nora.paunova@gmail.com" ]
nora.paunova@gmail.com
9a822e8ca6f1905ffc8bfe053be72103d6bdd50d
16574605a55cf3539e171f66f03938807065d8d9
/ptocr/model/architectures/det_model.py
0f915139bba09c8bf06175ff908b4ba344daae57
[]
no_license
simplew2011/OCR_ZOO
7a0e83cf0c7630f469aaac8994144a5bf13bbab6
8d1da013a9aa9ca53272dc030c8bfcbf25db6738
refs/heads/master
2023-01-12T10:06:53.125201
2020-11-02T10:00:06
2020-11-02T10:00:06
308,555,691
1
0
null
null
null
null
UTF-8
Python
false
false
5,764
py
# -*- coding:utf-8 _*- """ @author:fxw @file: det_model.py @time: 2020/08/07 """ import torch import torch.nn as nn from .. import create_module class DetModel(nn.Module): def __init__(self, config): super(DetModel, self).__init__() self.algorithm = config['base']['algorithm'] self.backbon...
[ "simplew2011@163.com" ]
simplew2011@163.com
74975e6fc6ed6ea9be93456c6a6a2415df374dcd
a9069fb302c4dc5bb01db2c519dec4762e5d4ce5
/fastAPI_SQL/sql_app/models.py
d45b8ef99f5e00019acffd5245179fb2aad17ea6
[]
no_license
hhsu15/advanced_python
123c73110c2c811895257320ffb639688a8f6a46
cf4a5647814a3a63b67c970e992ae50cafd30265
refs/heads/master
2021-06-10T14:07:20.343336
2021-03-13T02:46:50
2021-03-13T02:46:50
139,370,162
0
1
null
null
null
null
UTF-8
Python
false
false
794
py
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship from .database import Base class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True, index=True) email = Column(String, unique=True, index=True) hashed_password = Column(S...
[ "hsin@Hsinhengs-MBP.fios-router.home" ]
hsin@Hsinhengs-MBP.fios-router.home
2d5a531c90bdd9e612a4c53e4dd5fb5bb4137892
970f44beabdbf6df534f7c5ca9d30dd0056e098b
/deep_ch/projections.py
73d8e536e04c7a8bfb64e16e5048f65d4e740289
[]
no_license
AkivaSinai/DeepCognitiveHierarchy
d8c3e05f5ea6dc7feaa61b6aa634c7d6126c1b1f
7c66673275e8019a0414e8066cdebd613351dd6c
refs/heads/master
2020-09-17T19:41:54.315829
2017-04-06T21:32:35
2017-04-06T21:32:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
import numpy def get_operator(name): if name == 'simplex': return project_simplex elif name == 'bound': return bound else: raise NameError, 'Unkown operator %s' % name def bound(x, a=0., b=1.): return numpy.clip(x, a, b) def project_simplex(x): """ Project an arbitary vector onto the simplex. S...
[ "jasonhar@cs.ubc.ca" ]
jasonhar@cs.ubc.ca
823bdba8b566f0e5d31459c3e6942b77fac8fbb2
705bdeb17c8732ec5bf6653e34a37f149e1656fd
/orders/migrations/0005_auto_20170610_2147.py
b1e7946a8851b2965ea13e91f3e7ea32fae6a4ed
[]
no_license
igrv4/coilzone
79092ee2792b18c9c5f90f1a0ed138ffee2b3e63
1d7ca77ec3156169284b0dd97caaff44d4cbac84
refs/heads/master
2021-01-21T21:18:46.582108
2017-06-20T19:28:38
2017-06-20T19:28:38
94,809,440
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-06-10 18:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0004_productincart'), ] operations = [ migrations.AddField( ...
[ "artur.bykov94@yandex.ru" ]
artur.bykov94@yandex.ru
357f34d7579b60591d6308fc473f39d7d0ddb46c
5f0ffab428b304eb644e54f047ef092cc13c1885
/ex024.py
1512b953a7ddc240df106c9356aa55eb2233f619
[]
no_license
alamyrjunior/pythonExercises
a93ca2301ed8d6a02f452a67318baac6d7c8ac02
bad1860519bf1e62333d2350b706e3dddd350a4d
refs/heads/master
2022-11-17T12:20:28.603351
2020-07-11T22:04:37
2020-07-11T22:04:37
275,353,387
0
0
null
2020-07-05T14:37:41
2020-06-27T10:58:12
Python
UTF-8
Python
false
false
141
py
cidade = str(input('Digite o nome da sua cidade: ')).strip() split = cidade[:5].upper().split() santo = 'SANTO' in split[0] print(santo)
[ "noreply@github.com" ]
alamyrjunior.noreply@github.com
beff490e394e8a5b7b6882f0b03e90a9aafaad28
87f91ccf1ee28679aad24041ac29423c8d393d38
/Python_code/src/chapter13/爬虫/爬虫2.py
2221e0f771180c661f3e55525b1d30df167e3d7a
[]
no_license
FirMoveBrick/MoveBrick
382673ed63cfbf00b43e011eb8f76e0457771f62
ee0effb7bc74ec6fd2fe1184744cf4fce2066805
refs/heads/master
2020-05-07T08:08:28.475439
2019-11-22T13:16:12
2019-11-22T13:16:12
180,308,890
0
0
null
null
null
null
UTF-8
Python
false
false
2,203
py
# -*- coding:UTF-8 -*- import requests, json, time, sys import urllib3 from contextlib import closing class get_photos(object): def __init__(self): self.photos_id = [] self.download_server = 'https://unsplash.com/photos/xxx/download?force=trues' self.target = 'http://unsplash.com/napi/fee...
[ "945184211@qq.com" ]
945184211@qq.com
419fd0e93a51cee00b17feeb01639772907b12a8
ad02dbf1bd48e408c7584e3c5b4f2a6649fb988e
/production/Leonid_Smirnov_todoapp/userapp/views.py
f2a9dd73fcc4cd9dc577e4231c95d539c36ed033
[]
no_license
Leo-droid-maker/REST_API_Project
b795857de3269e2c9bb402804488ebba3cb27799
c49cd303908100a098072441e9e1ca21f82f93e1
refs/heads/master
2023-08-30T02:19:17.896759
2021-10-15T09:26:18
2021-10-15T09:26:18
398,198,247
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
from rest_framework.viewsets import GenericViewSet from rest_framework import mixins from userapp.models import User from userapp.serializers import UserModelSerializer, UserModelSerializerWithStaffInformation class UserCustomViewSet(mixins.ListModelMixin, mixins.RetrieveModelMixin, mixins.UpdateModelMixin, mixins.Cr...
[ "jwabeljr@gmail.com" ]
jwabeljr@gmail.com
b8093a8f605a4b25b1ab786c82386a1b447f02f8
bbe282e2f2e3b6ba560eb4a5bac677e832c6aca9
/apps/LOGIN_APP/views.py
142b20af0b9a759b78a0af551638d6ec63cd45b3
[]
no_license
jhoney92021/djagno_favoriteBooks
20edaa66b6dce1f158fcd8584615105f43e17aaf
013919d4be60976d69c36d78bdfc865628cfecc8
refs/heads/master
2021-06-25T12:30:59.415140
2019-07-17T21:33:43
2019-07-17T21:33:43
197,466,361
0
0
null
2021-06-10T21:43:55
2019-07-17T21:34:37
Python
UTF-8
Python
false
false
2,229
py
from django.shortcuts import render, HttpResponse, redirect from django.contrib import messages from apps.LOGIN_APP.models import Users import random, datetime, bcrypt def index(request): #MAIN INDEX IE LOGIN INDEX return render(request,'LOGIN_APP/index.html') def processRegistration(request): #REGISTRATION PROCE...
[ "51093828+jhoney92021@users.noreply.github.com" ]
51093828+jhoney92021@users.noreply.github.com
de08487599db59ec42c8411a915504fbb20fb953
16e25b85246531216c57d5eb7fe1d4198aa41ce7
/django_todo/urls.py
2efbb05ba8c0cd2dc0e117a6e855929c968c9f29
[]
no_license
StuChapman/Code-Institute-fsf-hello-django
0b22318a32c6d9477658cd70869a1ada376868b0
341a916dad8f58244df266774e16180d206f47d6
refs/heads/master
2023-08-17T10:43:59.185573
2021-01-09T12:40:03
2021-01-09T12:40:03
326,421,544
0
0
null
2021-09-22T19:42:04
2021-01-03T14:07:24
HTML
UTF-8
Python
false
false
1,062
py
"""django_todo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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...
[ "chapman.stuart@sky.com" ]
chapman.stuart@sky.com
1998e1e9d8928d96af20aee40277325353c1fbd7
89be85809bcc134c5ae144e0307e839e3c3a7187
/HelloWorld/bin/easy_install-2.7
fbbcf615a5e8f7037ecfaac475771e1737e2044c
[]
no_license
eugenechia/python
e0d51f8c26b8223052f2f4f045089d27b80922d1
b32b796f21a6caaa5938159a0011998047579356
refs/heads/master
2021-01-23T06:58:40.382740
2017-01-31T06:56:50
2017-01-31T06:56:50
80,498,519
0
0
null
null
null
null
UTF-8
Python
false
false
270
7
#!/home/eugenechia/001HelloWorld/HelloWorld/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "eugeneckk@yahoo.com" ]
eugeneckk@yahoo.com
2d9579c4f46e697e49c1ff2919d1f2e549706639
51305c54f8a316b6878a4462e1ba58a55c8e320f
/manager/thumbgen.py
49950650252902242789d77d34a36ed34f1f3ad4
[]
no_license
coinmenace/gck
5b15b460335c0b52925f1875ccb4fecd416008e7
fade84780cda218291cb2066808310c4871a06c8
refs/heads/master
2020-03-27T06:58:54.878353
2018-10-22T12:32:20
2018-10-22T12:32:20
146,153,068
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
from PIL import Image, ImageFile import glob, os from threading import * ImageFile.LOAD_TRUNCATED_IMAGES = True class Thumbgen: def __init__(self,file,fullname,identifier): sizes = [(32, 32),(64, 64),(128, 128),(256, 256),(512, 512),(1024, 1024),(2048, 2048)] self.generateThumb(identifier,file,fulln...
[ "webframes@gmail.com" ]
webframes@gmail.com
263b24f9d47303128b0b13be8f3eb6f5571bb848
db8ac9c3a3a3176574bfdd53b91683684f0ca24c
/phase_space_test.py
bcc4d769431883f2b95efe07cdece55c493dc1f0
[]
no_license
skostogl/GPU-Tracking-code
05247364d17987ee17cea696db67589a1a4979d2
41577514021edf3119ddee2673c57a8ce1a097ca
refs/heads/master
2020-12-24T10:58:46.607065
2017-03-16T11:17:55
2017-03-16T11:17:55
73,206,822
2
2
null
2016-11-10T17:42:27
2016-11-08T16:47:41
C++
UTF-8
Python
false
false
1,851
py
import pickle from modules.tracker import * from modules.naff import * from modules.grid import * from modules.tune_resonances import * from modules.FMA import * from mpl_toolkits.axes_grid.anchored_artists import AnchoredText import matplotlib.pyplot as plt import numpy as np from matplotlib.pyplot import cm lattice ...
[ "sofia.kostoglou@cern.ch" ]
sofia.kostoglou@cern.ch
ff04d53e4dd4235eb7334cc856b400d44b802eb2
0d1377c871764252fe2f44e2e6b784c49f18df62
/0x0F-python-object_relational_mapping/model_city.py
2b10f600b8123223e444e6e037e51bc805ba9a23
[]
no_license
ElianaGomez2020/holbertonschool-higher_level_programming
a0ecba588091fe5bae0f529f3fb321cd3c4c7329
53754d496e561fec26ae56ba6f38d07cc3968914
refs/heads/master
2023-03-28T15:19:24.082338
2021-04-02T16:11:06
2021-04-02T16:11:06
291,766,013
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
#!/usr/bin/python3 """contains the class definition of a City""" from sqlalchemy import Column, Integer, String, ForeignKey from model_state import Base class City(Base): """City class""" __tablename__ = "cities" id = Column(Integer, primary_key=True, autoincrement=True, nullable=False) name = Colum...
[ "elianagomez.s@outlook.com" ]
elianagomez.s@outlook.com
a4b433b288892409b40316cf2edd73f31e98e343
903784f4ebc68012041d6f2cfeb903c6b37837a6
/pydenji/userproperties/overrider.py
e581afc404a864e3e30d7e3c8e71a8387c9e2361
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
alanfranz/pydenji
25a45aea5f03f496fe03bf9e4f0f135b9cae4a37
a922f1456e0d698b3e9e0674d980ede746fc2835
refs/heads/master
2020-04-05T12:34:36.629505
2017-07-10T16:20:46
2017-07-10T16:20:46
95,158,029
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # (C) 2010 Alan Franzoni. from configobj import ConfigObj from pydenji._aop.intercept import intercept # TODO: change this name, I don't like it. class override_with(object): def __init__(self, configobj_source, *other_co_srcs): self._co = ConfigObj(configobj_s...
[ "username@franzoni.eu" ]
username@franzoni.eu
2e6f64de93dc287b2fb60da10ae8273cc7d6b585
25e33d1b4e3546239310514b2c34de10f5390b50
/image_patch_files/system_python_path/site-packages/cloudinit/__init__.py
a2d016e9e8daeb44205b8bac8c9374c23fd5d8e5
[ "Apache-2.0" ]
permissive
jgruberf5/bigiq-cloudinit
8961e261c5fcf41647f8fa881484a3871fbbd12f
d5ef898c3970bdc5822fa6c74938e9959a5e098f
refs/heads/master
2021-10-24T15:35:08.923810
2021-10-14T18:23:45
2021-10-14T18:23:45
212,141,905
2
1
null
null
null
null
UTF-8
Python
false
false
210
py
config_modules = [ 'cc_configdrive_defaults', 'cc_ibm_vpc_gen2_defaults', 'cc_set_passwords', 'cc_bigiq_configdrive_openstack', 'cc_bigiq_static_mgmt', 'cc_bigiq_dhcpv4_tmm', 'cc_bigiq_playbooks' ]
[ "jgruber@f5.com" ]
jgruber@f5.com
bf851c29b826417e4b89cc581539ab78bec35eb2
55ce104faddb4a723567ced94dd93e88e40781cf
/week5/w5d5/w5d5exercice1/rock-paper-scissors.py
21e027e3a5ff852576e14728ada20523cba74785
[]
no_license
leasoussan/DIpython
134cd7549e424837189f84cfd063db4db60a044e
1eb83fe9ea53a4881f73cd60ae9b5161b4fb1e20
refs/heads/master
2023-02-08T02:57:21.091078
2020-12-15T21:35:18
2020-12-15T21:35:18
305,334,529
0
0
null
null
null
null
UTF-8
Python
false
false
3,526
py
from game import * # Rock-Paper-Scissors.Py : Create 3 Functions # get_user_menu_choice() - this should display a simple menu, # get the user’s choice (with data validation), and return the choice. No looping should occur here. # print_results(results) – this should print the results of the games played. # It shou...
[ "leasoussan@hmail.com" ]
leasoussan@hmail.com
f393a262dfa4a67a83872bd7ce0ff658f6611d3d
cfad0044a5d50be42ff78651b1f1460f3dadb014
/python/prac1x2.py
99af3e89abf2be043bd42d376502cc4651d227f0
[ "Unlicense" ]
permissive
sourabh48/python
4c41db76bd6eddf73be8e76e10a782e247373f39
5fbda23133dad1ca0b73d4600b4e00cb6b5e3331
refs/heads/master
2020-05-07T16:19:46.369631
2019-04-10T23:20:22
2019-04-10T23:20:22
180,677,552
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
a = int(input("Enter number 1: ")) b = int(input("Enter number 2: ")) c = int(input("Enter number 3: ")) d = (a+b+c)/3 print("The avarage of 3 numbers are: " ,d )
[ "30088198+sourabh48@users.noreply.github.com" ]
30088198+sourabh48@users.noreply.github.com
82a203f3a27ae3767dc8c58441b3f4644e5a1399
a2e607593dcbe5feaeedd9e9bd4caeaf06e46733
/tests/ui/menus/test_opmenu.py
464f5422d23c0778525972d3ce32d53d5aa537af
[]
no_license
all-in-one-of/Houdini-Toolbox
dd05b2c869e663b185c1997d326bfe7548fbf55f
c10663c46c0f1249a9b3c6b32d4384a4399849ed
refs/heads/master
2020-06-13T01:10:11.832715
2019-08-30T07:24:47
2019-08-30T07:24:47
194,484,242
0
0
null
2019-06-30T06:42:17
2019-06-30T06:42:17
null
UTF-8
Python
false
false
1,738
py
"""Tests for ht.ui.menus.opmenu module.""" # ============================================================================= # IMPORTS # ============================================================================= # Python Imports from mock import MagicMock, patch import unittest # Houdini Toolbox Imports import ht.u...
[ "captainhammy@gmail.com" ]
captainhammy@gmail.com
61a95e5589b6dfb0bbd3e318f3d3bad8468e78cd
d32c1163bbfb27049df0f0f0485cdf5bb5224b92
/src/handelsraad_bot/util.py
8e56e0875e136f89426a48b4d6def23ff5abba6c
[]
no_license
joostsijm/handelsraad_bot
4804453e015260d9d191e93d999ce9fe01b3f471
658fd447c00e411c8ee40212178fae2a64aae2ca
refs/heads/master
2023-08-11T16:43:28.256240
2021-09-26T12:38:31
2021-09-26T12:38:31
355,955,150
0
0
null
null
null
null
UTF-8
Python
false
false
3,153
py
"""Common utilities""" from rival_regions_calc import Value from handelsraad_bot import LOGGER, TESTING, database def check_permission(update, roles, action): """Check permissions""" executor = database.get_user_by_telegram_id( update.message.from_user.id ) if not executor: e...
[ "joostsijm@gmail.com" ]
joostsijm@gmail.com
887b6f8377d30ac3566801c749b99e332531ccd3
fc0a6f131b8c805d635a6a623bbcb7bf39911765
/contrib/bitrpc/bitrpc.py
07d12d85798f7c8d6f4e5c80e826bd65b0a7fa0d
[ "MIT" ]
permissive
tpccoin/tpccoin
ac6cf0510a356e1ff1410e03fb202eb018b96a07
a47e4d5b45a8c59aa82e0f0d55454cb8353af087
refs/heads/master
2021-09-10T16:15:50.570215
2018-03-28T13:07:26
2018-03-28T13:07:26
115,604,426
1
0
null
null
null
null
UTF-8
Python
false
false
7,836
py
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:9662") else: access = Ser...
[ "ubuntu@ip-172-31-19-239.ap-south-1.compute.internal" ]
ubuntu@ip-172-31-19-239.ap-south-1.compute.internal
167fad9e892a205acf7896cdaf131a41ea63ec1f
2427bf2ec03b9fc9a01c39962acefdcabd822f9d
/movies/domain/allCombined.py
cd11c57fbc854de2459aaa56647e63d264c2d05b
[]
no_license
adso514/Assignment-2-235-adso514
6cf56125531b5790960d7c8cf3ba458985419cb9
a37d2e48399edf9ee6220d1c267306888733ce0b
refs/heads/master
2023-01-04T15:12:15.191374
2020-10-27T00:39:30
2020-10-27T00:39:30
307,074,504
0
0
null
null
null
null
UTF-8
Python
false
false
8,627
py
from datetime import date, datetime class Actor: def __init__(self, actor_full_name: str): if actor_full_name == "" or type(actor_full_name) is not str: self.__actor_full_name = None else: self.__actor_full_name = actor_full_name.strip() self.__colleagues_list = [] ...
[ "adso514@aucklanduni.ac.nz" ]
adso514@aucklanduni.ac.nz
6679ecf0979fc944496c2a7be40579a31f7d9871
a32133131ec1153ec9cb1537c757881124cd46b9
/trainers/create_batch_benchmark.py
01624d83c71a94e88b7e1a0be542df83e9b3a867
[]
no_license
yli5/bdtaunu_hadron_learning
d9130bb4ff3f2f10c7f4b5b9c4953a7e8a2e66d6
6d09f3388494afe7ca15663bca21652ac55361ab
refs/heads/master
2021-04-15T17:33:26.378184
2018-05-07T18:13:46
2018-05-07T18:13:46
126,240,103
0
0
null
2018-05-04T20:44:21
2018-03-21T21:00:57
Jupyter Notebook
UTF-8
Python
false
false
6,141
py
import sys import time import numpy as np import bisect import matplotlib.pyplot as plt from os import path lib_path = path.dirname(path.dirname(path.abspath(__file__))) sys.path.append(lib_path) from preprocess.PreProcess import PreProcess, load_data from util.resampling import binary_downsampling, binary_upsampling ...
[ "jaehongkim86@gmail.com" ]
jaehongkim86@gmail.com
3853830172a806ca1b206d3c30233458d10f564f
9eba2beecc6b36c20b8a120e5109368e7e6e0b36
/unique_paths.py
5c047a2652a17429a1ad1d87fe8dad96b42dc8ed
[]
no_license
yuriybash/leetcode-solutions
dfc499da5d2b8adda1b40da359a854fbd4362585
4d62be6980b8d58f1d9875cbd4dbb05493548f0d
refs/heads/master
2020-03-23T22:47:20.631681
2019-03-18T14:51:58
2019-03-18T14:51:58
142,197,708
1
0
null
2019-01-30T23:30:44
2018-07-24T18:27:47
Python
UTF-8
Python
false
false
1,349
py
# Definition for singly-linked list. class ListNode(object): def __repr__(self): return "ListNode <%s>" % self.val def __init__(self, x): self.val = x self.next = None class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode :type l2:...
[ "yuriybash@gmail.com" ]
yuriybash@gmail.com
45733874fe84b5e216c9c12f97d47074eb2cfdaf
83c7fc1aeff81e95412ef0ec284e2c86a3aea448
/pragmatic/urls.py
8f8a97a6a04abf2284d18531925cec72c2f1f043
[]
no_license
diegomazorra1/pragmatic
044b90c94ffc129073c5b1e4212368a287f60db9
94639a161eb1c822802729c415f562832232435d
refs/heads/master
2020-12-04T09:29:13.042970
2020-01-10T20:54:01
2020-01-10T20:54:01
231,711,356
0
0
null
null
null
null
UTF-8
Python
false
false
1,418
py
"""pragmatic 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-bas...
[ "ingenierodiegomazorra@gmail.com" ]
ingenierodiegomazorra@gmail.com
513aabeda3fbedd3d9ad6a34425876eadfa090df
71ccaeab06b9917fed3179da995a8d473f569b6e
/aco10.py
56661365b29062169b20eb75ab5d5cd1aba2834c
[]
no_license
Ssebi1/AdventOfCode
383753a8f2853f4948e342efb44928e5ed9ff5d1
e6ecd21a6a20faef652738923f957d9ebc245c32
refs/heads/master
2023-02-02T17:55:03.625537
2020-12-21T07:27:19
2020-12-21T07:27:19
318,271,349
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
f = open('input.txt') v = [0] v += [int(x) for x in f.readlines()] v.sort() v.append(v[-1]+3) print(v) f.close() DP = {} def dp(i): if i==len(v)-1: return 1 if i in DP: return DP[i] rez = 0 for j in range(i+1,len(v)): if v[j]-v[i]<=3: rez+=dp(j) DP[i]=rez r...
[ "noreply@github.com" ]
Ssebi1.noreply@github.com
fa94471cd06199be23e4374750a7306dbe4a4ea4
996702dd74bfb1a0c025a61ed99de3dcdbefab82
/rover/adpcm.py
bd5482505cd3a510aebfff80dcc5791bbeaae2f4
[]
no_license
mpcrlab/TF_Rover
57bde83aab9681d5c2a7cd308d6efc4711625187
35522b4720ccba11b1dbf78cc107206fe9450a71
refs/heads/master
2021-01-25T06:25:12.470006
2018-10-04T22:09:39
2018-10-04T22:09:39
93,570,516
6
2
null
null
null
null
UTF-8
Python
false
false
1,803
py
_indexAdjust = [-1, -1, -1, -1, 2, 4, 6, 8] _stepTable = [ 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 23, 25, 28, 31, 34, 37, 41, 45, 50, 55, 60, 66, 73, 80, 88, 97, 107,...
[ "noreply@github.com" ]
mpcrlab.noreply@github.com
f226ecd710abd15e52e47a41bb94ec641d607bef
b2a1813da144ba4a86f6db5378c55eca8fc91e7a
/jump7.py
b1dcc6172f9ad6463ff9c9e86e1e791a26186a70
[]
no_license
yongzhiji/shiyanlou-code
bc201d24fbfd39cb006849394121cfc58ff24d2c
e3061f50014f43f75ad6b26eb3e7d2b42d1410d0
refs/heads/master
2022-03-31T19:46:58.191232
2020-02-15T07:50:21
2020-02-15T07:50:21
240,661,613
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
for x in range(1,101): if x%7==0 : continue elif x%10==7 or x//10==7: continue else: print(x)
[ "985302188@qq.com" ]
985302188@qq.com
012ee645b66bdf19e05e944be0e68d6bbf38c7d0
59934c214dc37e916042a9ef95004cdec59fe461
/image_simplifier.py
11ed7a060c544182169ee7c80fac34dbccd9e868
[]
no_license
thomcchester/boxifier
a27101aaa690ae1f04bc3e6cabe0bd3cf3495f46
48fa1e634374468f73f138ea79c09dbd480ee8ca
refs/heads/master
2020-05-18T15:44:29.672575
2019-05-03T05:15:48
2019-05-03T05:15:48
184,506,776
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
import numpy as np ## This file is just for simplifying the image into constiuent parts #This is a function to flatten value to 0 or 1 for array. I also flipped the values since I wanted to use one as black #and 0 as white, mainly as a preference but also because ones look like lines. The idea is simple, and a bit of...
[ "thomcchester@gmail.com" ]
thomcchester@gmail.com
ae9ede43176766cad126da49ce7f815e6dd9e550
3f9e97a3af477b5076c43c9d80737e4872924ff6
/view/view4_welcome.py
1b7bdb0ec956a6987ea032979d52344257472b6c
[]
no_license
EmilieM71/Projet_5-Version-3
936efcbe2e0878ec970860d5a05d2ac6ddbc29f2
e197f8c1abd60a89d3b38ab502ee685cf1b2aebd
refs/heads/master
2020-09-25T01:36:08.545528
2020-01-09T08:20:39
2020-01-09T08:20:39
225,889,793
0
0
null
null
null
null
UTF-8
Python
false
false
2,578
py
from view.manage_view import ManageView class ViewWelcome(ManageView): """ This class displays the elements of the 'welcome' view """ def __init__(self, cont): """ :param cont: ControllerWelcome """ self.controller = cont self.frame_welcome = None def create_fram...
[ "martelemilie@hotmail.fr" ]
martelemilie@hotmail.fr
201bfe5c7dc0bad1c20ba462e06fb93848253015
758bdc11c72f5348afec8c3bb47549bf85c4d4ca
/levelup/levelup/wsgi.py
09e3b66a6e7905052aed184d814ccb7eea595d85
[ "Apache-2.0" ]
permissive
claudiaw111/cs411project
39020ada1bd2991810f6e4ffd6403ef9e411839d
e1bad3836d932a92deb0297dfc83b1c014ea4f00
refs/heads/master
2021-01-10T13:41:52.207969
2015-12-08T20:31:44
2015-12-08T20:31:44
45,619,629
0
0
null
2015-12-08T20:31:45
2015-11-05T15:19:19
Python
UTF-8
Python
false
false
391
py
""" WSGI config for levelup project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
[ "yfwang10@bu.edu" ]
yfwang10@bu.edu
c4db54872f01cdbf61c781d4bffff7eea689d74b
a08a95129f1e976ea6e8e4dd9a2c17260a7f0ef1
/models/CosineClassifier.py
d134b20d6804c930bbcfc2769178e43c17336f44
[]
no_license
UCSD-SVCL/SSLT
9c7b0f6f46ad4f9f000d548d7f275ebbd10f2f8f
2de03dbb3d4c0c38eeeb0d00dffac870df19c51a
refs/heads/main
2023-05-26T18:09:38.950195
2021-06-10T00:28:00
2021-06-10T00:28:00
374,817,518
0
0
null
2021-06-07T22:38:14
2021-06-07T22:38:14
null
UTF-8
Python
false
false
499
py
import torch import torch.nn as nn from torch.nn import Parameter import torch.nn.functional as F class CosineClassifier(nn.Module): def __init__(self, num_classes=1000, feat_dim=2048): super(CosineClassifier, self).__init__() self.weight = Parameter(torch.Tensor(feat_dim, num_classes)) s...
[ "boliu@eng.ucsd.edu" ]
boliu@eng.ucsd.edu
3bc1140e3b9b50ae817a9c8bd15e35782302945a
bcaa4a9d2dbbe9747f3caa5199c54640fb40e718
/copmuters/apps.py
66d8756e3cc2d566b4cfee17f218e4ffe0e46eae
[]
no_license
makdenis/Django-app
2fe94a59ecd6625239513df7aa806529bf0de233
1b8ab35df70c01540a05b4be3b1c141428ff41c1
refs/heads/master
2018-09-08T09:24:43.193396
2018-06-04T22:43:40
2018-06-04T22:43:40
123,619,056
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
from django.apps import AppConfig class Lab5AppConfig(AppConfig): name = 'copmuters'
[ "makdenis.1997@gmail.com" ]
makdenis.1997@gmail.com
d01f5a0b3a6c9c52f71e06b9afc329a03f2478f4
db0897e096ac79d1b253d952ffc1f3a0d91eef1e
/setup.py
7d0ccac253b7e92bdc3e589bc4b1b4e74301f3e1
[ "Apache-2.0" ]
permissive
DanDani33/esbmc-wr
ebbdc2407f22bf0436e4092b50856f8f015d1e6e
b10521a1f36e3c8c08799c05bed710263d7c1df6
refs/heads/main
2023-06-23T10:18:55.978666
2021-07-23T03:38:58
2021-07-23T03:38:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,758
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pipenv install twine --dev import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = 'esbmc-wr' DESCRIPTION = 'A ESBMC...
[ "thales.tas@gmail.com" ]
thales.tas@gmail.com