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
bed65b63e3e76b76da344efd1ac584c64822f539
ab8b338fe5c7b522241feb4f7bb71950509c7a06
/python/p61.py
e93fb6ba564833d919ab32cc86b9422c44f872a5
[]
no_license
amomin/proje
5d111fa413a493809356cafecb3a2c017bc29f21
480f08b028cd56eb99a1c3426508d69ffe578f05
refs/heads/master
2016-09-06T18:18:28.652006
2015-02-28T20:26:28
2015-02-28T20:26:28
24,754,823
0
0
null
null
null
null
UTF-8
Python
false
false
1,401
py
# only need to check the octagonal numbers from 19 to 58 import math def getPoly(symbol,i): if symbol==3: return i*(i+1)/2 if symbol==4: return i*i if symbol==5: return i*(3*i-1)/2 if symbol==6: return i*(2*i-1) if symbol==7: return i*(5*i-3)/2 if symbol==8: return i*(3*i-2) def inRange(f,x): if (...
[ "amomin@evermight.com" ]
amomin@evermight.com
0b932e715a494e4c49568f1ef587818d13da9347
dc197104eb160fbeae1d2b62ec3cb909714b0152
/COMET/misc_plugins/Ueye_camera/pyueye_gui.py
141316d645e8bd951c00c22309973b7dd3816a0f
[ "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only" ]
permissive
Chilldose/COMET
810ecec6f0fe7f544ae8207c25b2176a0145f56b
121e5c0530f5195a8f7c6b8de96a1653322f6e48
refs/heads/master
2021-06-04T10:07:08.830370
2021-05-11T07:37:09
2021-05-11T07:37:09
143,392,965
0
2
MIT
2020-06-05T07:51:01
2018-08-03T07:22:11
Python
UTF-8
Python
false
false
4,915
py
#!/usr/bin/env python # ------------------------------------------------------------------------------ # PyuEye example - gui application modul # # Copyright (c) 2017 by IDS Imaging Development Systems GmbH. # All rights reserved. # # Redistribution and use in source and binary forms, with or without #...
[ "dominic.bloech@oeaw.ac.at" ]
dominic.bloech@oeaw.ac.at
9fee9893560dd85c45e7f6e69482defc369f6656
918dbe6a4840e46bae0207d0bb62b8563db595c0
/setup.py
0fbc3dbf0f87014563a70114aee186fd26cee2c2
[ "MIT" ]
permissive
leaprovenzano/yabump
1846ea87346eeed1805c4ff4e0099116f231b610
ceab6ffdd36167e511c3bd7b6b064346e3ce3e2e
refs/heads/master
2020-12-03T07:05:09.728621
2020-01-01T20:06:12
2020-01-01T20:06:12
231,236,247
0
0
null
null
null
null
UTF-8
Python
false
false
1,377
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('requirements.txt') as f: requirements = f.read().splitlines() test_requirements = ['pytest'] setup( author="...
[ "leaprovenzano@gmail.com" ]
leaprovenzano@gmail.com
25c0e065a6e294880f37e9b19cf3dcd53692e8bd
d9dc062bac568fd2df5ad327a74049d21dce8dcf
/app/modify.py
3cc743d190ada0a8c9ed3328e6c0b550d9108715
[]
no_license
saschavv/ProjectExplorer
7975f0bbe0425d354e3f6b996f1e2d5b9f452477
6d5853c6dbec1097b0bdbe56d5a136dc502131cb
refs/heads/master
2022-07-13T16:03:02.748821
2020-09-22T08:12:06
2020-09-22T08:12:06
190,183,702
0
1
null
2021-03-20T01:06:29
2019-06-04T10:56:19
JavaScript
UTF-8
Python
false
false
833
py
import shutil from app.models import * def copyTestOutput( locator, test ): srcDir = locator.srcdir tstDir = locator.testdir baseTest = test.split('/')[-1] srcFile = os.path.join( tstDir, test + ".dir/" + baseTest + ".new" ) destFile = os.path.join( srcDir, test + ".res" ) copyTxt = 'cp ' + srcFile + ...
[ "saschavv@gmail.com" ]
saschavv@gmail.com
694c27356be2599a64a8f60afce851dbb984aa19
11c2e1b6fada746b71e0bd9575f5936a352f14df
/Compare.py
d815227a2fcbf91b0d4faed9af68ce50ace23ec5
[]
no_license
Eglopez/Python-GUI
6e3e49f25ebb9f60b41d1981c46d6852f5a5eb51
05d7c71206d293aea2e8a32a21809f06d9fdcb2c
refs/heads/master
2020-07-05T08:34:26.338755
2019-08-20T00:55:45
2019-08-20T00:55:45
202,592,236
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
class Compare(): def __init__(self): self.alphabet = "!@#$%&/()=?¡¿¡[]{*}012345678890abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVwXYZáéíóúÁÉÍÓÚüÜ" def compare(self,obj1,obj2): obj_1 = "" obj_2 = "" if(type(obj1) == 'int'): obj_1 = "%s" % obj1 i...
[ "eduardolopezlainez2001@gmail.com" ]
eduardolopezlainez2001@gmail.com
f338508b43ff286c18818c649354e6ab8c88919d
c87727a77d17eef2afebc72c29e3ee347d05737c
/task3_1.py
930e5fa01a350f9dbb1fc7fb34787ec805a133bf
[]
no_license
ikosolapov1983/Homework3
5331d8e2afec69e2752b74317187ddb0883e81d0
20482824f134fae66e46a8b03a48c0df486d4de5
refs/heads/master
2020-08-05T00:45:59.740475
2019-10-05T12:14:08
2019-10-05T12:14:08
212,337,544
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
x = 0 while x <= 10: print(str(x) + "!") x += 1
[ "ikosolapov@hotmail.com" ]
ikosolapov@hotmail.com
1134bd350cd0de3c935b8bc8e1ae7403c7749842
5de046cc4849f52a5737c2591b2c0144b9981103
/policy_gradient.py
b724c24eca9a498c044fd4cd71ec650f38370df7
[]
no_license
lionelblonde/cartpole-pg-intro-tf
36300d015c1e328103b45d5c76283f4249424dfa
1c896c991d6b758a379685708f6348ffc1115537
refs/heads/master
2020-03-06T18:48:44.028750
2018-03-27T16:31:15
2018-03-27T16:31:15
126,859,614
0
0
null
null
null
null
UTF-8
Python
false
false
8,489
py
import gym # from gym import wrappers # import math import random import numpy as np import tensorflow as tf # since we now use gradients import matplotlib.pyplot as plt # This function is useless here: tf provides tf.nn.softmax() def softmax(x): # x is a vector # substract by the max for num stability - mathem...
[ "lionel.blonde@gmail.com" ]
lionel.blonde@gmail.com
5d978145f8d58e4ca97c9537773c5ee11431fccb
539f531d07faf4d86ccc548e2b6dae706056a906
/Environnement/dags/Batch_Longueur_Chaine.py
baf53e3917fcb9dd10dc3761bebaa8cf8db98556
[]
no_license
Allan06/TPT-Airflow
f9c7202982fcd63a402584ae6569254b1cf43cfe
8461684e8f6c6c1923d1681e417e483a20a67a9b
refs/heads/master
2023-04-10T23:40:36.397472
2021-04-18T01:19:02
2021-04-18T01:19:02
350,856,214
0
0
null
null
null
null
UTF-8
Python
false
false
5,546
py
from airflow import DAG from airflow.operators.python import PythonOperator from airflow.operators.bash import BashOperator from airflow.utils.dates import days_ago from airflow.providers.mysql.operators.mysql import MySqlOperator import pandas as pd import numpy as np import glob import os # ======================...
[ "allanpajany@hotmail.fr" ]
allanpajany@hotmail.fr
5f4ec956ecc9f97de26bd14d818836655e018107
ba9d6e33133709eb8ef9c643e50646596f8ab98b
/utils/image_drawer.py
31b9ccd24961ea020c922262bd1a61d9c0f6e9bd
[]
no_license
otniel/computer-vision
2eb5588d7662ada0999001083e5562e3c3e69fd1
82430fd60c21d3f6c6609b429b051b25526b0102
refs/heads/master
2021-01-25T07:07:51.592712
2015-05-18T17:29:10
2015-05-18T17:29:10
29,542,857
1
0
null
null
null
null
UTF-8
Python
false
false
879
py
from Tkinter import Tk, Canvas, Frame, BOTH, NW import Image import ImageTk class ImageDrawer(Frame): def __init__(self, window, image_path): Frame.__init__(self, window) self.window = window self.image = Image.open(image_path) self.image_width, self.image_height = self.image.size...
[ "otnieel.aguilar@gmail.com" ]
otnieel.aguilar@gmail.com
06987544b5a7feb1dbbc7995c0edfea534eb7a34
34fb963c4c942d7d9e64d91deb97f58136f32861
/resources/viewmodels.py
5826fdc12d9d76b81598bc85be256eef22c9d94a
[]
no_license
dalelicious/iwantremote
180ca95429fdf9af305c40aeaaf43c0bce5ac52c
70509125e9981a2624c4d05f8de60ead194db154
refs/heads/master
2023-06-01T08:40:42.238496
2021-06-24T10:37:03
2021-06-24T10:37:03
209,974,773
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
# Django from django.utils import timezone # Resources from . models import Resources class ResourcesViewModel(): def get_blog_by_name(self, blogTitle): """ Get blog by id """ blog = Resources.objects.get(slugTitle=blogTitle) return blog def get_blog_list(self): """ Get all blog """ blog_li...
[ "dale.torre@ubiquitygs.com" ]
dale.torre@ubiquitygs.com
7c856f3effb8ea92ca241b2013673a63a53dd7ef
dfdb55ae1a05edada92d3840c67dec7e2d4da1e9
/realEstate/listings/views.py
171dc2333876d55e475fbc872e423f7d2047e42a
[ "MIT" ]
permissive
OmarSalah95/Django-Toy
17ee3646665c9e1bcc8ecbb354142f8dadd74ed5
4899b5f9e30dae0623aa9a3a134e375cacccea10
refs/heads/master
2023-04-27T12:06:05.813683
2019-11-18T00:49:59
2019-11-18T00:49:59
222,306,035
0
0
MIT
2023-04-21T20:47:56
2019-11-17T20:15:03
CSS
UTF-8
Python
false
false
281
py
from django.shortcuts import render # Create your views here. def index(request): return render(request, 'listings/listings.html') def listing(request): return render(request, 'listings/listing.html') def search(request): return render(request, 'listings/search.html')
[ "42569856+OmarSalah95@users.noreply.github.com" ]
42569856+OmarSalah95@users.noreply.github.com
50e30b493faf1d7f25e8435890ae0d3625daa2f5
d0dcc77793433e31adda34b0a9989da694b61f19
/caffe_visualization_tools/visualization_tools.py
b9d1fea0d025e807465ef4f5541ed1d1c48d94af
[]
no_license
MagicSen/python_tools
0bac702a31ad5b8b742fe809e63f027891783d4c
296b375cb3807f8436ce6b7c8a661daeecd975c1
refs/heads/master
2021-09-02T15:57:59.758341
2018-01-03T14:10:17
2018-01-03T14:10:17
116,134,861
0
0
null
null
null
null
UTF-8
Python
false
false
5,681
py
## # @file visualization_tools.py # @brief This tools is for caffe model visualization. # @author Yang Sen, magicys@qq.com # @version 1.0.0 # @date 2017-01-04 # Copyright(C) # For free # All right reserved # import numpy as np import matplotlib.pyplot as plt import sys import caffe import os import pylab # set the p...
[ "syang@usens.com" ]
syang@usens.com
4d7a7650d95d9418c7a99e03149894a0c5c686dc
bbe447a740929eaee1955bd9c1517cf760dd5cb9
/keygrabber/adwords/adwords_api_python_14.2.1/adspygoogle/adwords/zsi/v200909/CampaignService_services.py
f1101c95aafb53ba4c75e90dcf48c195df9f883f
[ "Apache-2.0" ]
permissive
MujaahidSalie/aranciulla
f3d32e7dd68ecfca620fe4d3bf22ecb4762f5893
34197dfbdb01479f288611a0cb700e925c4e56ce
refs/heads/master
2020-09-07T02:16:25.261598
2011-11-01T21:20:46
2011-11-01T21:20:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,176
py
################################################## # CampaignService_services.py # generated by ZSI.generate.wsdl2python ################################################## from CampaignService_services_types import * import urlparse, types from ZSI.TCcompound import ComplexType, Struct from ZSI import client import...
[ "vincenzo.ampolo@gmail.com" ]
vincenzo.ampolo@gmail.com
c63339a1a53f68331bf60b14c7938e6240219f5a
826e10209af5462022e3aff1511f1e48842d32a4
/promoterz/representation/oldschool.py
99a894122cd5eb447a3eeae0a2347854961cdb4b
[ "MIT" ]
permissive
IanMadlenya/japonicus
0309bbf8203525770e237b2b385844ef4a3610ae
112aabdd3362ca6259ddbe57440cdd583a674022
refs/heads/master
2021-04-15T12:06:15.027249
2018-03-20T22:23:43
2018-03-20T22:23:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,645
py
#!/bin/python import random import json import os from copy import deepcopy from .import Creator from deap import base from deap import tools from deap import algorithms import numpy as np from .import Creator from . .import parameterOperations def constructPhenotype(stratSettings, individue): # THIS FUNCTION...
[ "gabriel_scf@hotmail.com" ]
gabriel_scf@hotmail.com
1a90032ae1d4bb24c7395045105044791c01642b
81f73066919c22cb5649a9095233d2edf92f4a1b
/data_process/data_process/data_process.py
afdb638cd5e3ec846c817eb74167fb8e5288886d
[]
no_license
jity16/Campus_Network_Management
20d4ea2d2ae29f1bad9f3dfe1c85e7158ec7c371
bff5f8897dc7fa36e96bc963d22524a9cd2bbcde
refs/heads/master
2020-06-17T12:30:39.428441
2019-07-09T03:30:03
2019-07-09T03:30:03
195,925,194
1
0
null
null
null
null
UTF-8
Python
false
false
2,256
py
class Host(): def __init__(self): self.state = "" self.ip = "" self.portlist = [] class Port(): def __init__(self): self.id = "" self.state = "" self.name = "" import os import pickle from xml.dom import minidom def get_attrvalue(node, attrname): return n...
[ "jity16@mails.tsinghua.edu.cn" ]
jity16@mails.tsinghua.edu.cn
b083604a03c1f5064d2aff52934739fa3325be94
fa639f7fd14c4b860c06eb0ae5b66217bb83a585
/lambda/main.py
3acd167a5537af6bb63c5b27aabbd3810e0474c3
[]
no_license
Lcmkey/aws-cdk-serverless-deep-learning-inference
c007331b25237eefbadb065571e18e6bc572c042
2b56c8c527669d93ef76b36347f742de138b7b58
refs/heads/master
2023-02-26T09:06:53.946495
2021-02-01T14:01:57
2021-02-01T14:01:57
322,429,748
0
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import sys import os # Setting library paths. efs_path = "/mnt/python" python_pkg_path = os.path.join(efs_path, "tensorflow/lib/python3.8/site-packages") sys.path.append(python_pkg_path) import json import string im...
[ "lcmkey@gmail.com" ]
lcmkey@gmail.com
56799809ff84f9be3ec51a12f546d1c89424b975
d305e9667f18127e4a1d4d65e5370cf60df30102
/tests/ut/python/dataset/test_random_crop_and_resize_with_bbox.py
2727325e007ba40b6bb6c02558a5846a078903a1
[ "Apache-2.0", "MIT", "Libpng", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "AGPL-3.0-only", "MPL-2.0-no-copyleft-exception", "IJG", "Zlib", "MPL-1.1", "BSD-3-Clause", "BSD-3-Clause-Open-MPI", "MPL-1.0", "GPL-2.0-only", "MPL-2.0", "BSL-1.0", "LicenseRef-scancode-unknow...
permissive
imyzx2017/mindspore_pcl
d8e5bd1f80458538d07ef0a8fc447b552bd87420
f548c9dae106879d1a83377dd06b10d96427fd2d
refs/heads/master
2023-01-13T22:28:42.064535
2020-11-18T11:15:41
2020-11-18T11:15:41
313,906,414
6
1
Apache-2.0
2020-11-18T11:25:08
2020-11-18T10:57:26
null
UTF-8
Python
false
false
9,546
py
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "513344092@qq.com" ]
513344092@qq.com
6c6dfcc9661470d7e551972b314a494d43f7f4b6
01082af86cad0824cbc33b87320adea3eef6ac11
/classstatd/admin.py
7ad1845474bee7eb57607c77f98e1cd6ad0263d4
[]
no_license
hanul500/dreamy
224f259665aed64db05ad773d3b1403899c59183
26927c771ec3735d07363696153d4e4fa23ce56b
refs/heads/master
2020-12-04T22:34:25.100751
2020-01-05T19:07:38
2020-01-05T19:07:38
231,923,912
0
0
null
2020-01-10T17:31:54
2020-01-05T13:47:14
JavaScript
UTF-8
Python
false
false
189
py
from django.contrib import admin # Register your models here. from .models import * admin.site.register(Classstatinfo) admin.site.register(stat_mat_rel) admin.site.register(stat_tool_rel)
[ "hanul500@naver.com" ]
hanul500@naver.com
ca13d2b3191f5ff4ffcec89c122903e1a5f6e3c7
1ee27a7d9d01d707f0a61b6f3aab7c5c88cd8e20
/9/OPcenter-verifyCode/webmoni/migrations/0004_auto_20180509_1134.py
7fd30d54c41c527bab0803efd4f9378b14f557c1
[]
no_license
lin-zh-cn/1test
6dbdd9a042b70d6131dec3ab1b980ee8c6a917bf
1e6ccdde7b5d18c70bba06a79f186952f6f02072
refs/heads/master
2020-03-19T07:42:00.634669
2018-06-21T10:34:57
2018-06-21T10:34:57
136,140,954
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2018-05-09 11:34 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('webmoni', '0003_auto_20180509_1031'), ] operations = [ migrations.RenameField( ...
[ "scr_memory@foxmail.com" ]
scr_memory@foxmail.com
305be6d509218ff7f44913a393a6d3dd1e53e492
9d8ab91c052ec637b396d07862225d331b3084e3
/find_uid.py
d4122bff071adcfc72a9c1d04f092405b1b5f916
[]
no_license
yazdipour/security-assignments
13ed50cf2b081ad63bd11920491dc00995e2c30d
30b49442bc0bb5b415f200e1202e4b0f40439a57
refs/heads/master
2022-11-29T02:30:53.200737
2020-08-03T14:03:09
2020-08-03T14:03:09
261,142,088
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
import struct import subprocess uid = subprocess.check_output('id -ur', shell=True) iuid = int(uid) xuid = hex(iuid) print xuid ##0x3e8 buid = struct.pack("I", iuid) #'\xe8\x03\x00\x00' print buid
[ "shahriar.yazdipour@outlook.com" ]
shahriar.yazdipour@outlook.com
a582cff63bfa1208999424ac532f639d57e4946c
ce6fc44470dcb5fca78cdd3349a7be70d75f2e3a
/AtCoder/Grand 039/A.py
2ec2212c13eebe7ef3a938d8513f35a3b69c6e01
[]
no_license
cormackikkert/competitive-programming
f3fa287fcb74248ba218ecd763f8f6df31d57424
3a1200b8ff9b6941c422371961a127d7be8f2e00
refs/heads/master
2022-12-17T02:02:40.892608
2020-09-20T11:47:15
2020-09-20T11:47:15
266,775,265
0
0
null
null
null
null
UTF-8
Python
false
false
546
py
S = input() K = int(input()) import random import string def count(string): total = 0 i = 1 while i < len(string): if string[i-1] == string[i]: total += 1 i += 1 i += 1 return total if S == len(S) * S[0]: res = (K * len(S)) // 2 elif S[0] == S[-1]: ...
[ "u6427001@anu.edu.au" ]
u6427001@anu.edu.au
2bea257ba29d7d3568169cd2499598f98eebd812
8255dcf7689c20283b5e75a452139e553b34ddf3
/app/views/dashboard/items/index.py
b38bac919cd8357f3585cc1c835d0bce2c8762e2
[ "MIT" ]
permissive
Wern-rm/raton.by
09871eb4da628ff7b0d0b4415a150cf6c12c3e5a
68f862f2bc0551bf2327e9d6352c0cde93f45301
refs/heads/main
2023-05-06T02:26:58.980779
2021-05-25T14:09:47
2021-05-25T14:09:47
317,119,285
0
1
null
null
null
null
UTF-8
Python
false
false
4,654
py
from flask import render_template, redirect, url_for, request from flask_login import login_required from flask_paginate import get_page_args from app import db, logger from app.controllers.dashboard_controller import dashboard_controller from app.controllers.pagination import get_pagination from app.forms.dashboard_i...
[ "devwern@gmail.com" ]
devwern@gmail.com
1e589a1a4cc05b5d9810004cab44e34774d06d70
f1bdc509d64633fde353b58bd283b9c06da6a71c
/plot.py
ae52d8c562bb832b7b9b2d11a7977af1bca1d816
[]
no_license
Fersol/tcp-congestion-ns3
503b1829808814e224a150bfd9f890e1d9c5b203
b181311fb24ba53e9acf582b3d6f9467eb131311
refs/heads/master
2022-04-16T19:54:33.586905
2020-04-15T19:47:02
2020-04-15T19:47:02
255,039,380
1
0
null
null
null
null
UTF-8
Python
false
false
781
py
import pandas as pd import matplotlib.pyplot as plt import argparse def parse_args(): parser = argparse.ArgumentParser(add_help=True, description="Files to plot") parser.add_argument("-files", "--files", nargs="+", required=False, default=('cwndVegas.tr', 'cwndNewReno.tr', 'cwndBic.tr')...
[ "alex-2011.s@yandex.ru" ]
alex-2011.s@yandex.ru
fdd25e91bdb09e58d4f219ef3803e81fd78e0545
6493bc4fdf2618b401c7c2acf6e04567a27a1b00
/klearn/kernels/__init__.py
1a14748333710a3cb0f1405360498e01722b3acd
[]
no_license
mpharrigan/klearn
75dc5bfea65ed7018fd42d7eb502b32c4ff7a007
697e62993cf3a42444cc9115f8fea0425950fec2
refs/heads/master
2021-01-16T00:31:34.616280
2014-05-21T22:50:10
2014-05-21T22:50:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
from .baseclasses import AbstractKernel from .dotproduct import DotProduct from .polynomial import Polynomial from .gaussian import Gaussian
[ "schwancr@stanford.edu" ]
schwancr@stanford.edu
30d736d8402f7e58e7668fb6e6c5636bb1ed7d5a
c2fe2b45ca6c1372596834af4686e84f66ce6f0b
/apps/files/forms.py
796d381fd3e7f45cbfe5ccb264168e64033df360
[]
no_license
seun-otosho/DjModelProject
9cecf18fac66ad729f0bde88cccb18d224928b06
75aa0d1dc465556f3afa31abce6e6f51f04e5671
refs/heads/master
2023-05-13T04:00:24.787683
2021-05-31T02:17:43
2021-05-31T02:17:43
369,716,916
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
from django import forms from . import models class submissionForm(forms.ModelForm): class Meta: model = models.submission fields = [ "file_name", "file", "object_id", "content_type", ]
[ "seun@kolacredit.com" ]
seun@kolacredit.com
5adb1a7c3497fb7477cdb13de87de36dbe2cfa4e
531bb144a2027f0db257bf2e7166e9231bb475ec
/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi
5ea2a9787107a20e60bdc2bbc75271e0fb9dd77d
[ "Apache-2.0", "MIT" ]
permissive
Rmoore424/reciprosity
bd4e5bb806ce1f7000baccf92695b6cd6e02fa53
b264ab4a0c310066338cec66aa4661e2be6a8f9f
refs/heads/master
2021-03-12T22:12:15.738135
2015-02-07T21:39:30
2015-02-07T21:39:30
30,359,899
0
0
null
2015-02-07T21:39:30
2015-02-05T14:39:00
JavaScript
UTF-8
Python
false
false
3,270
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "clang": 1, "host_arch": "x64", "node_install_npm": "false", "node_pref...
[ "Rmoore424@gmail.com" ]
Rmoore424@gmail.com
60188d8b70ac88226e0b5c0c47a462c35d280a1f
fe281868b9321c3b8e186f5349bd022e2a082e07
/实验2_垃圾邮件过滤/贝叶斯多项式算法/main.py
9869ce07a319ff0c6b8b06560ecc49d34868459d
[]
no_license
LastCigarete/infosecurity
c51d381276a05d3e7f82769cd286e9958ee2fb15
780c088d7c139bfe1bdf09445ff773ef53ac8156
refs/heads/master
2023-03-15T18:15:04.080890
2020-05-06T03:15:46
2020-05-06T03:15:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,277
py
#coding=utf-8 import os from collections import Counter import numpy as np import random import re import matplotlib.pyplot as plt plt.rcParams['font.sans-serif']=['SimHei'] def getFileDiv(): hamFile = './/email//ham' spamFile = './/email//spam' hamEmails = [os.path.join(hamFile,f) for f in o...
[ "1029076560@qq.com" ]
1029076560@qq.com
73063d99ce9277f02182be41df4226b158411a0a
147e37057d507c499d9474204d8b9ec01aa048ba
/backend/src/blog/models.py
61a2677cc07905135442778699d2d7e8eb4d0d6d
[ "MIT" ]
permissive
andebor/overflow
de4cc231a95cfabba48aeda7a0de20c5c0d6ccb5
b4860bade3587ae233422a973c6ffb8fae6031b7
refs/heads/master
2020-05-19T20:30:15.110110
2019-05-05T21:25:12
2019-05-05T21:25:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
from django.contrib.auth import get_user_model from django.db import models from django.utils.text import slugify class Tag(models.Model): name = models.CharField(max_length=256) def __str__(self): return '{}'.format(self.name) class Post(models.Model): title = models.CharField(max_length=256) ...
[ "myth@overflow.no" ]
myth@overflow.no
46951ff9e914c649aac2882ba5d1e640deded76e
866182bc8950cf851c412777871a4157f7bf2fff
/smsp/schema_utils.py
7f3c16ace73070a087c653aa6d254ad8d6263ee0
[ "MIT" ]
permissive
elementechemlyn/pysmsp
f8170e51e28feaeb24b252cd6d442e13ce8199b4
a6ddea5068bfc67dbeb94d73a9290f12ec726d46
refs/heads/master
2021-09-02T10:18:56.306691
2018-01-01T20:45:29
2018-01-01T20:45:29
115,945,966
0
0
null
null
null
null
UTF-8
Python
false
false
26,141
py
import sys import re as re_ import base64 import datetime as datetime_ import warnings as warnings_ try: from lxml import etree as etree_ except ImportError: from xml.etree import ElementTree as etree_ Validate_simpletypes_ = True if sys.version_info.major == 2: BaseStrType_ = basestring else: BaseStr...
[ "emlyn@blue" ]
emlyn@blue
7933f46b513502a6a56250aef30b1525cc20a4e3
a15b9fe01e2edb0c126d926e2f5ad4d0e2e5c33f
/listings/urls.py
9bdb96448ff8143ffb269c01e05598c474c24417
[]
no_license
zohaibk22/realestate-with-django
6abea13e49156ef4fba7a4918bd34dd54c07c3c4
ff0ab708a36b058adf02632f3a5ec3db0b94703c
refs/heads/master
2023-05-05T07:28:45.241477
2021-05-28T02:38:36
2021-05-28T02:38:36
347,839,604
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
from django.urls import path, include from . import views urlpatterns = [ path('', views.index, name='listings'), path('<int:listings_id>', views.listing, name='listing'), path('search', views.search, name='search' ), ]
[ "zohaibk1111@gmail.com" ]
zohaibk1111@gmail.com
479ea80a853b8988ea10248c71a04b9972d837aa
7f99c0d6fd03ac7388efc9713a311040989fda59
/Python/script_runner/test/db.py
fe2e2691172da8431f2d67aad803d1f27425c0cc
[]
no_license
helver/Alliances
35b688513e9030751d33d9d0b17adeb3ed5f1aa8
4e85e3453fac3484d293208db5bf7dc44518cc14
refs/heads/master
2021-01-15T16:29:30.158420
2015-04-30T14:09:45
2015-04-30T14:09:45
34,855,302
0
0
null
null
null
null
UTF-8
Python
false
false
3,447
py
import string import twisted.internet.defer as defer import twisted.internet.reactor as reactor import mir.models as models import re import mir.identity as identity database = "/usr/lib/python2.5/site-packages/mir/script_runner/test/" job_script = file(database + "data/job_scripts/basic_agent_1.xml").read() job_sc...
[ "ehelvey@gmail.com" ]
ehelvey@gmail.com
5022b25cb069afe810d84ff795b402a89157ac94
20eb79521bfd5103dd088ef9ddd7b0e654b3e3f9
/Binary_search.py
4f3e93a7ce7e39189c0e13633c67fa90a8e0103d
[ "Apache-2.0" ]
permissive
Sourav4yogi/Python
dfec0403b22f3d3df95397926b560889fad63d6c
53284da8982a76638bff230f3230c3adee5195d8
refs/heads/master
2023-05-26T11:54:49.872038
2023-05-20T14:47:12
2023-05-20T14:47:12
263,278,082
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
def binary_search(array,item): high=len(array)-1 low=0 while high>=low: mid=int((high+low)/2) guess=array[mid] if guess==item: return mid if guess>item: high=mid-1 else: low=mid+1...
[ "noreply@github.com" ]
Sourav4yogi.noreply@github.com
1099e40b6a420049aa66c9efe1dffc09c240475a
a960f0f01beab623e4ce1c21382284ff409ad2cd
/Python/venv/Lib/site-packages/pmdarima/model_selection/_validation.py
cd715ad44cbb9b94ae10578b535aa5bdb5b804d5
[]
no_license
eoeroglu/grad-proj
e343c0266de1768417aa8724a6440cb088f9d014
3cef3383e5dd0f9937c18512fe8c6dc3b00e7729
refs/heads/master
2022-11-19T11:06:42.429979
2020-07-20T06:25:24
2020-07-20T06:25:24
257,416,646
0
0
null
null
null
null
UTF-8
Python
false
false
12,442
py
# -*- coding: utf-8 -*- """ Cross-validation for ARIMA and pipeline estimators. See: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/model_selection/_validation.py """ # noqa: E501 import numpy as np import numbers import warnings import time from traceback import format_exception_only from sklearn ...
[ "eoeroglu@gmail.com" ]
eoeroglu@gmail.com
d1e9592a5372de64fff11d1be0fd0d8c24210af6
39add6f458ca28dcc5cf4dbe3afde986cedd8648
/VAE.py
1a1275a0108f1d04db5cfcacc6c45ff5aaa7c30f
[]
no_license
ArifulIslamPreence/Radio-link-failure-prediction-drafted-obsolete
1e219919280d4160678c68b6dddd8220e81b8a70
5c85f76a8731530f8a7b06a774c87cbd8bb7c049
refs/heads/master
2023-06-25T17:52:25.359385
2021-07-12T17:38:43
2021-07-12T17:38:43
385,331,534
0
0
null
null
null
null
UTF-8
Python
false
false
6,016
py
'''Implementation of Variational Autoencoder Network for dataset reconstructing into normalized form. The whole combined dataset is fed into model by spliting batches''' import csv import numpy as np import pandas as pd from sklearn import preprocessing import seaborn as sns from sklearn.model_selection import train_...
[ "noreply@github.com" ]
ArifulIslamPreence.noreply@github.com
09e278b839107b839c504a7ee39854da665cd9f9
394072f7fd3e2a226aeed78bf0a4f587f4c4e383
/lambdaExpr/pick_lambda.py
eb8c2306a372907e577c942ccd5c5b4e7827dcb3
[]
no_license
LeonCrashCode/DRSparsing
ec5cca079a2c73eb512444e1ac86215722e6503a
c7e92beb8878ff2386bc6789e6c17f0d35bf1277
refs/heads/master
2020-03-16T09:52:11.217219
2019-01-17T14:20:16
2019-01-17T14:20:16
124,549,958
0
0
null
null
null
null
UTF-8
Python
false
false
932
py
import sys import types import json def ascii_encode_dict(data): ascii_encode = lambda x: x.encode('ascii') if isinstance(x, unicode) else x return dict(map(ascii_encode, pair) for pair in data.items()) def tostring(expre): assert type(expre) == types.DictType re = [] re.append(expre["type"]+"(") if len(...
[ "jmliunlp@gmail.com" ]
jmliunlp@gmail.com
c721a92ac5444111678c7fa54101abe580bfdaa5
d4cd0a2c56c697bf7637ac8941d694eb515dce96
/CTDLGT_Python/bt12_cài_đặt_đồ_thị_vô_hướng.py
0d9839adbc3724a3e61301d0eeea656835c57726
[]
no_license
ldthinh220802/THI_CTDLGT
d456796321d9377201916e84211f8f9ae255406e
2c1c6865a9d5d59b83d983de46289323ecbb75b7
refs/heads/main
2023-06-25T15:53:38.180421
2021-07-19T06:21:27
2021-07-19T06:21:27
384,970,288
0
0
null
null
null
null
UTF-8
Python
false
false
931
py
# -*- coding: utf-8 -*- """BT12. Cài đặt đồ thị vô hướng Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/github/ldthinh220802/cau_truc_du_lieu_va_giai_thuat/blob/main/BT12_C%C3%A0i_%C4%91%E1%BA%B7t_%C4%91%E1%BB%93_th%E1%BB%8B_v%C3%B4_h%C6%B0%E1%BB%9Bng.ipynb ...
[ "noreply@github.com" ]
ldthinh220802.noreply@github.com
b5c2d29c6ec32dea08c50833b0043f0b3d64b696
e8c0f3c3ef2c1476b3e2af01ba63fea3cd993787
/tools/google_activity_parser.py
2902242ccfe5702ac057657d1d7c41559b3197b4
[]
no_license
hal2001/machine_learning
05ff47a2fe08fa7267a673b54c84f939c3ef565c
39c857fa937b3301d42624ef9b264ab04b49c3dc
refs/heads/master
2020-03-11T15:28:01.434296
2018-02-15T18:53:22
2018-02-15T18:53:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,865
py
# -*- coding: utf-8 -*- """ Parses "My Activity" from Google, specifically for Google Search Author: Aaron Penne Example input of a single Google search: <div class="outer-cell mdl-cell mdl-cell--12-col mdl-shadow--2dp"> <div class="mdl-grid"> <div class="header-cell mdl-cell mdl-cell...
[ "noreply@github.com" ]
hal2001.noreply@github.com
df824d5307b1a45d4bdaaf6834c8633efa3b5d87
0a14400b5df85592b9732ef00c893f62a458554b
/src/main.py
aee09a0a7404ad5eb0498de67c44241deb38229f
[]
no_license
a1rwulf/movlibgen
c193e19110164806b017074462079c43eb5ad8fc
b66c5c7e76084383846ef51d77b3ff60162bcb7c
refs/heads/master
2020-06-14T05:53:50.781062
2019-10-07T09:28:33
2019-10-07T09:28:33
75,224,771
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
import tmdbsimple as tmdb import configparser import time import os from datetime import datetime config = configparser.ConfigParser() config.read('movlibgen.cfg') x = 'abcdefghijklmnopqrstuvwxyz' path = config.get('CONFIG', 'PATH') samplefile = config.get('CONFIG', 'SAMPLE') tmdb.API_KEY = config.get('CONFIG', 'API_K...
[ "haupt.wolfgang@gmail.com" ]
haupt.wolfgang@gmail.com
7b68ba9a1d655a781e41cb1aeb3c4390cd69e5fa
3cf379c79764a0aa8bdd556b90ad3b1c287f8bba
/models/base/model_base.py
6afb121d0034490558d0d5ff5d81325b16c4d7fc
[]
no_license
alexnwang/SketchEmbedNet-public
b2c5924ba02e0d01343e1adbbae63529d3a1c78a
a98b212f91c459b575546edebf127c7ade85fb4e
refs/heads/master
2023-01-10T00:14:03.945769
2020-11-06T19:59:27
2020-11-06T19:59:27
285,636,393
11
1
null
null
null
null
UTF-8
Python
false
false
2,015
py
import os import tensorflow as tf class BaseModel(object): """ Basic model """ def __init__(self, base_dir, model_id): self._base_dir = base_dir self._dir = os.path.join(base_dir, model_id) self._summary_dir = os.path.join(self._dir, "tfsummary", self.__class__.__n...
[ "alexn.wang@mail.utoronto.ca" ]
alexn.wang@mail.utoronto.ca
7888c84676fc0e2cc852fcbafaf9c206231c3e44
04f2b23dc29b024711b297104eb57e8b7943ac28
/dmdashboard/migrations/0006_auto_20170615_2130.py
99c42c4fd3c2b250b02a890b2c808fef51245575
[]
no_license
acaggiano/dmtools
9e6e2609ae7e63369c4339b43bf17225c49f51db
e0969955ccdc0a45ff18bfe7ddca79283b408c65
refs/heads/master
2022-12-16T03:02:43.734781
2019-07-11T18:36:00
2019-07-11T18:36:00
94,246,208
1
0
null
2022-12-08T05:18:47
2017-06-13T18:44:51
JavaScript
UTF-8
Python
false
false
697
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-16 01:30 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dmdashboard', '0005_auto_20170615_2122'), ] operations = [ migrations.Alter...
[ "onaiggaca@gmail.com" ]
onaiggaca@gmail.com
e7a41ab6ff5efcaeebafaabd9037e6b8f9d2cadc
55cc60ae22e27b121383098aae7c7ab36f2bb64f
/exercices/045/solution.py
e87f5aab9db144e93f73f4b0492504c664388865
[]
no_license
lnarbona/hackinscience
6ad804faa2a6ce0a9d14d070f1808b6851fcafa3
1497c33e29a4cfe8ac009ae1894661aacc95e5c3
refs/heads/master
2021-07-07T00:13:33.986964
2015-12-15T10:38:08
2015-12-15T10:38:08
43,556,220
0
0
null
null
null
null
UTF-8
Python
false
false
43
py
def sqrt(numero): return numero**(0.5)
[ "lara.narbona@cri-paris.org" ]
lara.narbona@cri-paris.org
cad9054648026ec7176604a02079681b1fb1d29b
0e1bfd89a58f679490a7bc03c113bd37b4cb3ec0
/SVAGP/kernels.py
32c351e0503f025993845fc7a605ea9896a72c2b
[ "Apache-2.0" ]
permissive
UCL/SVAGP
8014f47954ea7d2c210c8fd9a73cc459d0433c74
d8a9d9d4b87f317ef9b3c74aa39a2b30a488ab35
refs/heads/master
2021-01-23T10:35:53.170429
2017-06-01T17:14:24
2017-06-01T17:14:24
93,076,432
7
0
null
null
null
null
UTF-8
Python
false
false
8,921
py
# Copyright 2016 James Hensman, alexggmatthews # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
[ "vincent.adam87@gmail.com" ]
vincent.adam87@gmail.com
67496ec447aca5bf4189dab19f0983fcd1386567
ed410a1af46f1c52a7803eb23c64b396b9eb952b
/google-gcp/automl_sample_code/automl-detect.py
f945c0cc3ad01bcf6b2af444309bdb06602b9926
[]
no_license
vaibhavpatil123/reference-architecture
0afbe2a0635b77d9d0ca60d8afaf2d83e3079016
2d9dfb57f2bb87bef297b6bbcac6f3184f26843b
refs/heads/master
2022-03-04T23:07:19.741351
2019-10-28T14:06:00
2019-10-28T14:06:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,359
py
#!/usr/bin/env python # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
[ "jorwalk@gmail.com" ]
jorwalk@gmail.com
29e38aed9818dbd98fd36c0f4dcf2c39bf1a9e2d
4261f5ed5e3401ae9bc8ad09149d6d3529afbefb
/models.py
5b53597c87c0f81ed624d13c39cdcf1330c0589c
[]
no_license
lrivallain/survey
165c928d4f830fbda161eee40644f8385d2b0c23
798a3732cda854b22ae73e3ecf85c736ea2bede0
refs/heads/master
2021-01-10T07:38:04.692743
2019-05-19T07:14:47
2019-05-19T07:14:47
36,890,080
0
0
null
null
null
null
UTF-8
Python
false
false
2,619
py
from django.db import models from django.contrib.auth.models import User import random import string from django.utils import timezone from datetime import datetime, timedelta # Tocken settings TOKEN_LENGTH=20 TOKEN_REF_SETS=string.ascii_letters + string.digits # Generate a random token with TOKEN_LENGTH characters fr...
[ "ludovic.rivallain@gmail.com" ]
ludovic.rivallain@gmail.com
f0532a41a963e81aeff001bdd8f8af1e6ba68351
d7be95f0099bc32bf6fd45589fda8dd7b1b0337f
/mysite/urls.py
34d5b8ae8dd9e842f55e6be355e7d438682581ce
[]
no_license
Rafael-Wassoaski/projetoProntodePPi
5c3df7b53ea51ed63f3b5d558a3e414ab8f23e0c
e73618e2d3ec761a7964523d6a552e1a7cbd5947
refs/heads/master
2022-11-27T17:41:13.300843
2019-06-25T20:05:46
2019-06-25T20:05:46
193,741,206
0
0
null
2022-11-22T02:23:52
2019-06-25T16:05:39
Python
UTF-8
Python
false
false
1,296
py
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
[ "meireles200@hotmail.com" ]
meireles200@hotmail.com
4234da45fec98149194742c6fe4d1dea150fa8dc
ea7ae0d383b3d97cde7995eaeda9651afc2496c4
/main.py
b4923bbcd52ab065f981cfbd83b98da0734a3416
[]
no_license
Brucejy/Human-Protein-Atlas-Image-Classification
7abef1a42c5f9fd683cfbf2f781d24ae2957a925
0eb4e502db291e2a863ea1a2818d6f72242c6b93
refs/heads/master
2020-05-23T02:11:25.619370
2019-05-18T07:29:41
2019-05-18T07:29:41
186,598,838
0
0
null
null
null
null
UTF-8
Python
false
false
6,133
py
# coding: utf-8 import keras from keras import backend as K from keras.models import Model from keras.layers import Activation, Dense, Input from keras.optimizers import Adam import os, cv2 import numpy as np import glob import pandas as pd from keras.preprocessing.image import ImageDataGenerator from sklearn.model_s...
[ "b25940965@gmail.com" ]
b25940965@gmail.com
81c76479930f2493db07e52dad0cb747a679b934
2dc23883f2cf91176907316fbeb5e95517e9c878
/Experiments/main.py
55fe2be1326b7866e37028f38f002253398951c1
[ "Apache-2.0" ]
permissive
nour-mubarak/eye-gaze-dataset
835f53542f256bbe646d6a0fa200aedeaa859878
82f2427541a54e3d5e20cc7850ed75c84d80988f
refs/heads/master
2023-05-03T00:49:01.117203
2021-05-21T03:12:04
2021-05-21T03:12:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,449
py
import os import argparse import torch import sys import random import logging import numpy as np import torch.nn as nn import torch.optim as optim import matplotlib.pyplot as plt from visdom import Visdom from datetime import datetime from torchvision import transforms from imgaug import augmenters as iaa from torch.u...
[ "Ismini.Lourentzou@ibm.com" ]
Ismini.Lourentzou@ibm.com
0b2eda8e021bc7530e43f336462b37a03d23ece8
604d1065eb2f098a4873fd9470cc7850d5bde86a
/datet.py
f8b4297fa2705d8337f2755419924f8bd3c5cf1b
[]
no_license
rjayajadhav/Python-code
a05117a339b3b8591141374aa061700109de4577
c734fa83696779c9eb2a893b593813369eb84e10
refs/heads/main
2023-07-15T11:27:16.997616
2021-08-28T16:12:42
2021-08-28T16:12:42
392,303,401
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
import json # some JSON: x = '{ "name":"John", "age":30, "city":"New York"}' z = '{ "name":"Jaya", "age":35, "city":"Pune"}' # parse x: y = json.loads(x) n= json.loads(z) # the result is a Python dictionary: print(y["age"]) print(y["city"]) print(n["age"])
[ "noreply@github.com" ]
rjayajadhav.noreply@github.com
cd5fc1a0531d8ded0b2c72c3befd66f483a78b86
f0151c7e52ac2c88e9bdf74767f1f1727f6789d0
/pieces.py
6b2894e5936438d720a7e3afc081530fb70187d7
[]
no_license
lyulka/NFTSOI-Chess-Engine
fcb7e3e37e7d8d79456c9c1b0a84f6d1c49dddb2
c566f1e64a210ae67635107b3cd273fa9aba04cc
refs/heads/main
2023-01-23T10:21:08.646569
2020-11-28T19:38:16
2020-11-28T19:38:16
316,014,695
0
0
null
null
null
null
UTF-8
Python
false
false
6,422
py
from move import Move from coord import Coord class Empty: def __str__(self): return u'\u25c7' class Piece: def __init__(self, color): self.color = color def is_enemy(self, other: 'Piece'): if type(other) == Empty: return False return self.color != other.color def is_friend(self, othe...
[ "strelka@connect.hku.hk" ]
strelka@connect.hku.hk
07b373d67b8a0825866ba2663627a162bf88e47e
abb94cfc69c7d83842fd4213d0ce16b33c8e9a3d
/venv/Scripts/easy_install-3.7-script.py
cc213bc4edb9eaa8697344a69f26ff68584ab052
[]
no_license
TigranMelkonian/PersonalWebPage
5bc93ee7e17aa496ac1c84fd5f12a92fd05f9148
d975fba7dc1f665836bd3b19572862719e60099d
refs/heads/master
2020-09-17T07:52:17.410856
2019-11-25T21:26:37
2019-11-25T21:26:37
224,039,983
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
#!C:\Users\pete\PycharmProjects\MyFirstPythonWebApp\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-...
[ "tigran@spotted.us" ]
tigran@spotted.us
ba5b5c54db62dfe9833b5715954dced8bc4760f2
ad53e0cb71d59c1a6708c84cbb5e712c2c695fa9
/weblog/app/models.py
a1da6f3223631c7b533278a246c784ec1a87915b
[]
no_license
lyn233/DOBlog
304e1d030c2f05d94753584954321775ee4be764
2c827c0363d86dcb04c82f7bd9ae43da9a60fea9
refs/heads/master
2021-01-10T07:41:48.801034
2017-12-07T05:59:58
2017-12-07T05:59:58
45,041,629
0
0
null
null
null
null
UTF-8
Python
false
false
5,356
py
# -*- coding:utf-8 -*- from weblog.app import db from flask_login import UserMixin from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from werkzeug.security import generate_password_hash, check_password_hash from flask import current_app,url_for import bleach from markdown import markdown fr...
[ "daiguanlin@126.com" ]
daiguanlin@126.com
67b4fdb18932e728d619611ee41d81e11eb82f6e
02c6b39399c1cfb434ad718c90bed3d8e6310ed0
/symbolic/symbolic_interval/__init__.py
a05b1f606a6c61911dc1a5c02ffb66d08e5ade09
[]
no_license
phate09/SafeDRL
09b8924fa91aa43cf543ea5727ebe4cc8e13c0a5
3d4278eaaabb046a90fc1cebd1b5862d63dc5894
refs/heads/master
2022-09-17T05:12:28.529329
2022-08-29T08:21:32
2022-08-29T08:21:32
204,663,981
8
3
null
2021-12-02T14:13:46
2019-08-27T09:07:04
Python
UTF-8
Python
false
false
97
py
from .interval import Interval, Symbolic_interval from .symbolic_network import Interval_network
[ "phate09@hotmail.it" ]
phate09@hotmail.it
222904f660559d82269ebc7563fc3be1f7d00b69
9e0f5fac5711e69477770deb30dbaa53e8a5b961
/example.py
ffc8c0c13b85f4c356e40945cbce0754de887eb8
[ "MIT" ]
permissive
qerty123/Vector
b462813f106e4e2c0a888e2c980dded442c3e2cb
9f065d34b0aa8f4a0ffb6c85c32ed941009c3960
refs/heads/master
2020-12-11T12:45:59.747431
2020-02-08T09:51:19
2020-02-08T09:51:19
233,853,963
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
# Copyright (c) 2020 Kapitonov Stanislav <delphi.troll@mail.ru> from vector import Vector2d, Vector3d v1 = Vector3d(3, -1, 2) v2 = Vector3d(-1, 2, 1) v3 = Vector3d(0, -2, 1) v4 = Vector3d(-1, 1, 3) dif = v3 - v4 # Find projection of vector v3 - v4 for vector v2 pr = dif.project(v2) print('Projection of vector v3 - v...
[ "delphi.troll@mail.ru" ]
delphi.troll@mail.ru
1060e48d0bb83bb3216ccdf445a1b5b2cea8077e
303b3e0447e66c22471d82395ec1302ba6622a92
/python/query-stub.py
1dc5ac8bc7597200fd71af77e2354c39e42a126c
[]
no_license
shuque/getdns-examples
b83b2feaab9fa7cb58033184b40be9f7b2091281
735c4a356f13ece075b27112d54caf1af8359452
refs/heads/master
2021-01-10T03:16:30.982938
2016-02-01T18:09:28
2016-02-01T18:09:28
47,571,878
1
0
null
null
null
null
UTF-8
Python
false
false
518
py
#!/usr/bin/env python import getdns, sys hostname = sys.argv[1] ctx = getdns.Context() ctx.resolution_type = getdns.RESOLUTION_STUB extensions = {} results = ctx.address(name=hostname, extensions=extensions) if results.status == getdns.RESPSTATUS_GOOD: for addr in results.just_address_answers: print(ad...
[ "shuque@gmail.com" ]
shuque@gmail.com
0b036f6d5d139798df7f73985ec061a219bf7a22
fcfbe523bb3d7cb6d36822a7f01d0a59410972a0
/7kyu/Help Bob count letters and digits.py
41ea21297356a09afde2a2c545289164dced0a3f
[]
no_license
HighHopes/codewars
6239803d5255a9ab81c50222b1b1bc9293bc2fd9
65bcda121ec09d6d141cdf682ed17d223a0eee4e
refs/heads/master
2020-04-28T19:21:47.217399
2020-03-11T17:25:33
2020-03-11T17:25:33
175,502,287
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
"""Bob is a lazy man. He needs you to create a method that can determine how many letters and digits are in a given string. example: "hel2!lo" --> 6 "wicked .. !" --> 6""" import re def count_letters_and_digits(s): if s == None: return 0 return len(re.findall("[a-zA-Z0-9]", str(s))) print(count_letters...
[ "oprisaalin@gmail.com" ]
oprisaalin@gmail.com
3d5e6311fe9aa6c00f6660d25bea7056cf7cb256
e48e655f69466f8a4a1bff0cf2f51d7f4fe48065
/venv/Scripts/pip3-script.py
bb18517866e77e527bae5f4fec198eac2aec8783
[]
no_license
Panoramikes/Lista2
38f6d364a0ece07d432a04078dc9d079552fca83
752b5bf32282ef2aa9af3765c2770273c0535b2e
refs/heads/master
2020-04-30T12:09:27.352950
2019-03-20T21:29:57
2019-03-20T21:29:57
176,819,599
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#!C:\Users\panor\PycharmProjects\Lista2\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0...
[ "panoramikes@gmail.com" ]
panoramikes@gmail.com
d8b44b3e7c654ab09fe42ab83ec0937b19133d4d
cabc3bcc0f6fedc7e8f2cd011892e43f1fb80a92
/CustomErrors.py
ecfb6c9725bb7bb3f8dbe91be0e6e30e94c76627
[]
no_license
nikist97/CodingChallenge
a3c87d33bab1b8d2fd4f46cdfeda78bffedbcfd7
db26c2473d8478386a6625b88b17cd2648a94131
refs/heads/master
2021-08-11T13:09:30.049882
2017-11-13T19:07:01
2017-11-13T19:07:01
110,493,182
0
0
null
null
null
null
UTF-8
Python
false
false
1,213
py
class InvalidPriceError(ValueError): """ a custom type of error raised when there is an invalid price for a ticket, e.g. negative number for price """ def __init__(self, msg): """ the constructor for the error calls the parent's (ValueError) constructor :param msg: the msg of th...
[ "nikist97@abv.bg" ]
nikist97@abv.bg
8ac0480670678ce2f641aae18ee7719838e5f722
d30c6d691a34fc9181fb71e9712b9505384422ec
/数字,日期和时间/分数的计算_P96.py
be37c7b9b724074146f45662cb34e480751597bf
[]
no_license
shishengjia/PythonDemos
cef474eb01ee9541ba0c70fc0750ee48a025f42f
c0a857b1cacdbb2b6b727a84f95f93b6e86d60c2
refs/heads/master
2021-01-01T16:15:19.593635
2017-10-26T07:18:46
2017-10-26T07:18:46
97,797,104
1
0
null
null
null
null
UTF-8
Python
false
false
328
py
""" fractions模块 """ from fractions import Fraction a = Fraction(1, 2) b = Fraction(3, 4) print(a + b) # 5/4 c = a + b print(c.numerator) # 5 分子 print(c.denominator) # 4 分母 print(float(c)) # 1.25 转化为小数 print(c.limit_denominator(8)) x = 0.625 print(Fraction(*x.as_integer_ratio())) # 5/8 小数化分数
[ "shishengjia1@live.com" ]
shishengjia1@live.com
2185d6664cc16b654ee558a6645234eab7ea8521
a3fdebd406a37da34561969f37ea7a5feb14f236
/src/testMorphology.py
df8d5f39a001e32fe92548e49e0c52c0abdc1df0
[]
no_license
nikifaets/pointsProcessing
e076976914f2dbd51fbb64fa57194b47a3c56f87
74f2422c9a2117fc40bad6650cf97110f3b29c40
refs/heads/master
2021-09-12T10:39:13.233534
2018-04-15T19:32:02
2018-04-15T19:32:02
107,880,295
0
0
null
null
null
null
UTF-8
Python
false
false
1,599
py
import cv2 import numpy as np import extractor as ext import findLines as fl import laserFindPoints as lfp import time cap = cv2.VideoCapture(0) cap.set(3,240) cap.set(4,320) projecting = False while(True): millis = int(round(time.time() * 1000)) ret, img = cap.read() thresh,grayscale = lfp.threshImage(im...
[ "nikifaets11@gmail.com" ]
nikifaets11@gmail.com
82d22436bd0102102ac1d19ba37f0005304c2064
3ba314ca88e89dded85a3448e730e215c47f3ceb
/allSkyImagingModule/skyImaging/rfiPlotter.py
38081ce03fd7f192a1d9ce79da8cfc9a93ddbbf7
[]
no_license
David-McKenna/allSkyImaging
9f3dc5984541a6d39617dd5fd583654d0901d685
e20a4bb48cca7814c32326177c121e149664764c
refs/heads/master
2021-07-06T11:28:58.345222
2019-02-06T13:21:06
2019-02-06T13:21:06
166,459,844
0
0
null
null
null
null
UTF-8
Python
false
false
2,970
py
"""RFI Interative plot handlers. Originally ported to Python by Joe McCauley, slightly modified for this module. The source contained the following header: @author: Joe McCauley (joe.mccauley@tcd.ie) Written for Python 2.7 Based on a translated matlab script originally from ASTRON for processing xst data from an int...
[ "mckennd2@tcd.ie" ]
mckennd2@tcd.ie
c5e700d40f7b620b11f50fed1069337c0eda7ee2
07eb32060101b438934954d6f705305d54296380
/sorts.py
856dc7ab65436defd4947e49211a0610e84b7e39
[]
no_license
pragmaticarun/algo_n_datastructures
e6742c48bbba22b2b1d2db52862c77d9c60566fc
bb359afb77df957dddfac9b476094e9ecb39e50e
refs/heads/master
2020-08-11T14:45:40.477662
2020-02-02T14:27:50
2020-02-02T14:27:50
214,582,354
0
0
null
null
null
null
UTF-8
Python
false
false
2,539
py
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ a = [4,9,1,-1,3,22,11,18] for i in range(len(a)): for j in range(i,0,-1): if a[j] < a[j-1]: a[j-1],a[j] = a[j],a[j-1] else: break #print(a) b = [90,75,42,1,3,22,27,65...
[ "pragmaticarun@gmail.com" ]
pragmaticarun@gmail.com
0ce4d0fdfbcbdcb08fd020f84fdb01abca1796f9
42685605f569e9d0afadc358ace6ce212e86bf1c
/1_Zadania/Dzien_3/5_Virtualenv_biblioteki/ddd.py
63411dd73ff18565b3727122a9f9e1681374153c
[]
no_license
Danutelka/Coderslab-Podstawy-Python
e6bdbbd9dc2031cf9ec5d9d3eeba717d22e9ecd7
eed6a957f081e488ae3c94298718f7b93e17a93c
refs/heads/master
2020-08-04T15:21:28.058433
2019-04-07T19:24:54
2019-04-07T19:24:54
212,181,477
0
0
null
null
null
null
UTF-8
Python
false
false
62
py
import requests r = requests.get("http://onet.pl") print(r)
[ "kawecka.d@gmail.com" ]
kawecka.d@gmail.com
4941b887741964e84f7b9663a1aee8aac7b087db
ed3c56e4d78142c4bc73a90fbc32d7ee48747fe0
/chainerV2による実践深層学習/test-mt.py
cb5d2d94e6e6900ee29fc92ee0ef45e6ae859db5
[]
no_license
johne-numata/chainertest
6ca2332778f35f826a160125e08c922dd26293b2
c05cdcf0f13dcc75890258290404af35ce18ac0c
refs/heads/master
2021-04-15T05:51:01.745898
2018-08-17T04:29:11
2018-08-17T04:29:11
126,454,662
0
0
null
null
null
null
UTF-8
Python
false
false
3,115
py
#!/usr/bin/python # -*- coding: utf-8 -*- import numpy as np import chainer from chainer import cuda, Function, Variable, optimizers, serializers, utils from chainer import Link, Chain, ChainList import chainer.functions as F import chainer.links as L jvocab = {} jlines = open('jp.txt').read().split('\n') for i in ra...
[ "hideo.numata@toshiba.co.jp" ]
hideo.numata@toshiba.co.jp
434f569b0c237c070439c7b30b69de0e7e04c549
21f3162b80f5edd4e0be3f5bee04142f397b8e26
/tutorial/tutorial/spiders/img_spider.py
65a56601eecaf68bc2181c23e7cc2941f24fdb37
[]
no_license
jiangbingo/scrapy-house
e599e02f2e42d598d3bce1e052d55d68211b9379
533e98a56a5c869f45928ded512b0a12f4894965
refs/heads/master
2020-04-09T17:32:50.701832
2016-12-01T14:25:23
2016-12-01T14:25:23
67,988,718
1
0
null
null
null
null
UTF-8
Python
false
false
8,865
py
#!-*-coding:utf-8-*- __author__ = 'PD-002' import os import json import scrapy from hashlib import md5 from tutorial.items import DmozItem, TestItem class DmozSpider(scrapy.Spider): """ for test """ name = "img" allowed_domains = ["img.org"] start_urls = ["http://newhouse....
[ "jiangbingo@hotmail.com" ]
jiangbingo@hotmail.com
a7ebc45ec08fa90f7be4d3ab92e042f19fa0326a
cd74536e8403400675e8b54fa64ee6466400370f
/bot.py
6b6baa487ed1d5d668d9476a1b22feac1766868a
[ "MIT" ]
permissive
volskaya/norman
1feff41d91ba64de714f0a37e041d4bba8b0c515
dc414b0b661cce3b8c9fd06c50c52c5c7f6cf0b9
refs/heads/master
2022-02-21T00:36:01.611059
2019-09-19T13:40:45
2019-09-19T13:40:45
141,054,561
0
0
null
null
null
null
UTF-8
Python
false
false
19,349
py
#!/usr/bin/env python """ Copyright (C) 2018 github.com/volskaya Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
[ "roolaav@gmail.com" ]
roolaav@gmail.com
db55e22cfc6843e012dc04ca9c723fc8cb0b1c89
418e7f374c0b344cc8eb988eefda6e2a6e910251
/iss-rnns/ptb/ptb_word_lm.py
0dad35ef3346aaa52b21fd3f8d8656e4afabd589
[ "Apache-2.0" ]
permissive
feiyuhug/SHS_LSTM
9e66d009ddb298d40df9f6704e9b410f1cc128f7
230888785c8c06733cac7649a162b505ea6bdc2c
refs/heads/master
2020-05-29T23:27:27.820331
2019-05-30T15:31:40
2019-05-30T15:31:40
189,436,064
0
0
null
null
null
null
UTF-8
Python
false
false
31,327
py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "yuniange@gmail.com" ]
yuniange@gmail.com
a211852f23f82de502629246d40e8e38a13b64de
96fe253e9a740b51dcd7f83d6ab01bb248c2bf4b
/patrones_arquitectura/DDD/value_object/prueba_cuenta_bancaria.py
013e69c83e8ab92979a1390c08af8ed518910598
[]
no_license
vvalotto/Patrones_Disenio_Python
7574470752a5f14214434a927c2c5e0faaa592ba
7ab6a74e9b008c3434af0a56d4c2b6b7de3617bf
refs/heads/master
2021-04-28T19:16:21.535998
2018-10-21T14:05:36
2018-10-21T14:05:36
121,891,812
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from DDD.value_object.cuenta_bancaria import * mi_dinero = Dinero(100, Moneda.Pesos) print(mi_dinero.moneda) print(mi_dinero.monto) mi_cuenta = CuentaBancaria(1, mi_dinero) print(mi_cuenta.balance.monto) print(mi_cuenta.balance.moneda)
[ "vvalotto@gmail.com" ]
vvalotto@gmail.com
b0e19c15084f07ee5e146abca8e1ab776d778910
57e8a41e63af3ef94001c03f07beacf39e340f0d
/cse_udub/cse_415_AI/hw3/ui.py
ae82ccb2a4d1982121f085a48ddff517f32e6a15
[]
no_license
zhy9036/cs_2016_fall
0e5f9f1f84777729b1761675cfb27086269c2358
c35c0cf64038dda3888e48ca63e92c67dc9ad346
refs/heads/master
2020-04-10T03:55:45.688046
2018-02-17T19:26:49
2018-02-17T19:26:49
68,164,378
0
0
null
null
null
null
UTF-8
Python
false
false
9,911
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'all.ui' # # Created: Sat Apr 26 22:09:41 2014 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeE...
[ "zhangyang9036@gmail.com" ]
zhangyang9036@gmail.com
6506ce4fe77bbd8e8505bbda7a0e1ca97a15f9a8
4fe825814efae31cc777295f1d3e059dfbdedbfe
/train.py
d1a22ea06b036799cae0457e12673be7701ef5e4
[]
no_license
gokulpch/gender-estimation-model
045b292956a36e35c1a30f42d7d5571cad77c688
aadbe6ff8765cada9bc3b68d3acef181c1935ffc
refs/heads/master
2020-06-10T12:28:50.789389
2019-06-25T06:11:37
2019-06-25T06:11:37
193,645,374
0
0
null
null
null
null
UTF-8
Python
false
false
3,268
py
# import necessary packages import matplotlib matplotlib.use("Agg") from keras.preprocessing.image import ImageDataGenerator from keras.optimizers import Adam from keras.preprocessing.image import img_to_array from keras.utils import to_categorical from keras.utils import plot_model from sklearn.model_selection import ...
[ "gpurnach@cisco.com" ]
gpurnach@cisco.com
8dff565e4a3145736f3847daf00e0a91801c7e21
a4275e529b564c3ec5c084fb360c2f4207068477
/src/montague/validation.py
9a20e422a8c17d2122978e27db86e67d8d0db92f
[ "MIT" ]
permissive
rmoorman/montague
aacc11837016400e37b69e18b2461a3246c2052c
423a2a5a773e975fa27f7b61627cc706fb084984
refs/heads/master
2020-12-29T01:41:17.262828
2015-06-18T00:46:45
2015-06-18T00:46:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,702
py
from __future__ import absolute_import import collections import types def validate_montague_standard_format(config): for key in ('globals', 'application', 'composite', 'filter', 'server', 'logging'): assert key in config assert isinstance(config[key], collections.Mapping) def validate_config_l...
[ "jon@inklesspen.com" ]
jon@inklesspen.com
ffc7cf8cd00d31e3bf1693cd8ac482e0f6bdc78e
7dab00e63b7193010344a0f05e0cc641d7091f5f
/students/Zhengtang_Yang/lesson07/Activity/populate_job.py
b7cce248e766d043f66bf5f3457c618ce6bd910c
[]
no_license
aurel1212/Sp2018-Online
9307e872c14c5ddd795bdc738b325de087895d55
263685ca90110609bfd05d621516727f8cd0028f
refs/heads/master
2020-04-05T18:35:49.761140
2018-06-19T18:24:27
2018-06-19T18:24:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,124
py
""" Learning persistence with Peewee and sqlite delete the database file to start over (but running this program does not require it) populate the DB with data """ from peewee import * from v00_personjob_model import Person, Job, Department import logging def populate_db(): """ ...
[ "zyang888@uw.edu" ]
zyang888@uw.edu
d34d3f80e71ecef1c4524423b84ab098accdcfb4
e6b5790c886f651e142260571fe0d20eb5629f48
/datacamp/statistical-thinking-python/01_02_variance_and_std.py
c142b338bdf8399336cf420c9598677de42670c9
[]
no_license
anderalex803/nuwara-online-courses
23dda7997a7659ca32dd0d82a571ec609c0dff0c
12ff31f5f88b0632319025eabb13aad375534590
refs/heads/master
2022-12-18T10:24:17.510602
2020-09-09T15:07:41
2020-09-09T15:07:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
" Compute variance step-by-step and using build-in function np.var" # Array of differences to mean: differences differences = versicolor_petal_length - np.mean(versicolor_petal_length) # Square the differences: diff_sq diff_sq = differences**2 # Compute the mean square difference: variance_explicit variance_explicit...
[ "noreply@github.com" ]
anderalex803.noreply@github.com
553ab201ccf7e1ce364dc3f6956d2b9849fcd972
b341adbf938239c37c7c2cfe1c295ad1396d339b
/week06/geojson_worked_example.py
562600cf296ecf90f15138f9bdce5102d79e63d1
[]
no_license
sunda-y/UsingPythontoAccessWebData
c84025f1b724a2c10a5932c9a574ddde0079715f
964deed29b531a8a5a79f24d234ae5329b25dd44
refs/heads/master
2021-01-24T08:11:54.277570
2018-03-04T15:37:27
2018-03-04T15:37:27
122,972,524
0
1
null
null
null
null
UTF-8
Python
false
false
951
py
import urllib.request, urllib.parse, urllib.error import json serviceurl = "http://maps.googleapis.com/maps/api/geocode/json?" while True: address = input("Please enter location: ") if (len(address) < 1): break url = serviceurl + urllib.parse.urlencode( {"address": address} ) ...
[ "SundaySunxiran@gmail.com" ]
SundaySunxiran@gmail.com
275a0a4f256f1d54872f57ef1f6b4f51287f4070
38a868d3a4605e32739efe49343642c1bb84d924
/data_loader/unet_data_loader.py
4e69011b1a973a87589d5655d3b556dc71b29f19
[]
no_license
ferraric/Semantic-Segmentation-of-Histopathological-Slides
c505c7f9e0710f04f23b50b0a3d563c979e1bef6
5461ec858c875f1e5463193466c82c48358cba9c
refs/heads/master
2023-07-03T15:33:56.048279
2021-07-30T11:18:13
2021-07-30T11:18:13
391,037,842
0
0
null
null
null
null
UTF-8
Python
false
false
7,264
py
import tensorflow as tf import os import math import numpy as np from PIL import Image AUTOTUNE = tf.data.experimental.AUTOTUNE class UnetDataLoader: def __init__(self, config, validation=False, preprocessing=None, use_image_augmentations=False): self.use_image_augmentations = use_image_augmentations ...
[ "ferraric@student.ethz.ch" ]
ferraric@student.ethz.ch
7c378f7c5a01b084095dc622f0eca72997914d5e
b3b3ac6bef90834d3c02858b243afc84a30f35ab
/api/migrations/0003_container_prev_art.py
b71622eb2aef9f4cb99810b841bd3e3859fba695
[ "MIT" ]
permissive
sinofeng/edgy-controller
ce17eff41a75e099260d58e5c2fe5f685fb1d197
140bf952fcc43bbba344f169c782132d500e1343
refs/heads/master
2023-07-25T00:18:31.879146
2020-12-31T10:45:42
2020-12-31T10:45:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-04-24 14:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20180424_1428'), ] operations = [ migrations.AddField( ...
[ "avgeris.marios@gmail.com" ]
avgeris.marios@gmail.com
4599ace703ad37d50d4e3e1ee36e57491d12aebf
6b5b3396ebf5c1af4f6f14cbeb03fc9bc4570a23
/www/Webserver.py
f703d55dccf3102a6d3ac6083df3373cec870017
[ "CC-BY-3.0", "OFL-1.1", "MIT" ]
permissive
william-stearns/E_ink_dashboard
0f5b03ec2da1a54a5941a35f2b957b7e3d62abb0
1625b213baef336833497c4593157485cfffdad4
refs/heads/main
2023-02-03T21:20:00.375604
2020-12-13T10:36:02
2020-12-13T10:36:02
323,455,960
0
0
MIT
2020-12-21T21:52:08
2020-12-21T21:52:07
null
UTF-8
Python
false
false
9,334
py
from flask import Flask, render_template, request from dashboard_forms import Dashform #import create_pickle as p_j import json import os app = Flask(__name__) app.secret_key = 'dash_flask_key' creddir = os.path.join(os.path.dirname( os.path.dirname(os.path.realpath(__file__))), 'credentials/dash_id.json'...
[ "noreply@github.com" ]
william-stearns.noreply@github.com
a09754bd46ba1e705aa2818cb0065461ffc04a4b
77088306e65adb0ae131b51a9c6acf799ec669bc
/train.py
922a433af50334f9d448a3c2ec1397361f4ddead
[]
no_license
NeerajTulsani/ChatBot
452285c979957c3788684956b796b85351e1a835
0db1f6c908d032ee15f2abf013af55ce4f78b5d4
refs/heads/main
2023-04-26T23:35:51.674944
2021-05-25T05:13:00
2021-05-25T05:13:00
328,322,624
1
0
null
null
null
null
UTF-8
Python
false
false
2,561
py
import numpy as np import json import torch import torch.nn as nn from torch.utils.data import Dataset, DataLoader from nltk_utils import bag_of_words, tokenize, lem from model import NeuralNet with open('intents.json', 'r') as f: intents = json.load(f) all_words = [] tags = [] ab = [] for intent in intents['i...
[ "noreply@github.com" ]
NeerajTulsani.noreply@github.com
501ed856db70e2877ac34046453bf4981788b2b1
4c6c1e729e5d9ae2908ee2d580d91c60fc6b76ff
/accounts/urls.py
dafa5bc491d2bf87f8b6421b49992da951d61faa
[]
no_license
vcrl/P13
6e098733bdd06a2c0a97835570d314ba9e758587
365c973a07326b71bf5ef9d16cbb9770edcfd415
refs/heads/master
2023-06-17T06:37:33.381796
2021-07-16T13:37:33
2021-07-16T13:37:33
364,944,840
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
from django.contrib import admin from django.urls import path from . import views urlpatterns = [ path('signup/', views.signup, name="signup"), path('signout/', views.signout, name="signout"), path('signin/', views.loginuser, name="loginuser"), path('profile/', views.displayprofile, name="profile"), ...
[ "vruel@pm.me" ]
vruel@pm.me
20b8d239d8fca159e12fc334016dc66ab721cc89
d3092656c078cc461f7d80f74bfc51340be98bed
/KerasFuzzy/experiments/digit-recognizer-2.py
b2261336559d2aea92172341a6913acfdb491f0a
[]
no_license
kenoma/KerasFuzzy
d7beadfe770bf93c20a9b8f6f561b31b4e54fe94
679db95dc74af91175f811c0bf21af880213e2a4
refs/heads/master
2023-01-11T06:02:19.772627
2023-01-07T08:14:23
2023-01-07T08:14:23
126,618,152
21
5
null
null
null
null
UTF-8
Python
false
false
13,144
py
#%% import sys sys.path.insert(0, 'D:/projects/KerasFuzzy/KerasFuzzy/layers') from fuzzy_layer_2 import FuzzyLayer2 from defuzzy_layer_2 import DefuzzyLayer2 from defuzzy_layer import DefuzzyLayer import pandas as pd import numpy as np import datetime import matplotlib.pyplot as plt np.random.seed(2) random_seed = 2 ...
[ "bghati@yandex.ru" ]
bghati@yandex.ru
185d7e4291d29d014020b6b40ebfb2d8398b5f8c
cf444d07d8056416dfba34e73bba128567b7c692
/readandloadperfpadbenchasof.py
fd9df58a4e0df4d295b906d84dace758c8374d5d
[]
no_license
rtstock/scriptsvapp01
cf9e993e5253e9a60dc191cca5e34532fa559ee1
7c2db888f0dcd92de62c031f9867e1c5cb4cbc0e
refs/heads/master
2021-01-23T00:29:11.267852
2017-03-21T19:24:34
2017-03-21T19:24:34
85,737,024
0
0
null
null
null
null
UTF-8
Python
false
false
6,756
py
import ftplib class perform: #def __init__(self): # print 'class initialized...' # #self.DataFilePathName = [] # #self.BuildFilepaths() def __init__(self,p_datafilepathname): print 'initialized readandloadperfpadbenchasof.py' self.DataFilePathName = p_datafilep...
[ "noreply@github.com" ]
rtstock.noreply@github.com
a1b6fb392741e41deadbff3e6f9ad7e1f8c4f790
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/63/usersdata/158/31530/submittedfiles/swamee.py
2c5e1ac2906cab6729e807c9e54f3c38de172e65
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
# -*- coding: utf-8 -*- import math f=float(input('digite f:')) L=float(input('digite L:')) Q=float(input('digite Q:')) deltaH=float(input('digite deltaH:')) v=float(input('digite v:')) g=9.81 E=0.000002 D=((8*f*L*(Q)**2)/((math.pi)**2*g*deltaH))**1/5 print('D é:%.4f'%D) Rey=(4*Q)/(math.pi*D*v) print('Rey é:%.4f'%Rey) ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
04a6fc2e76234c2cc09fd5a634d68cf9561700ee
9cd8c0e01d6197c77b15d24ea46be2c4c5ea2e73
/src/justchat/urls.py
0b81a21cf0a8ec353944f20feceae33376d0644b
[ "MIT" ]
permissive
vaibhav0000patel/Chat-Application-Django-Channels
6a0ecfb7b80505ed452ac2e8336aa2d3adbcf72d
7470ecf8e22951e72081d344d8123e768a75b0b0
refs/heads/main
2023-03-06T20:13:15.323707
2021-02-23T14:08:17
2021-02-23T14:08:17
341,572,031
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
from django.contrib import admin from django.urls import path,include urlpatterns = [ path('admin/', admin.site.urls), path('chat/', include('chat.urls',namespace='chat')), ]
[ "vaibhav0000patel@gmail.com" ]
vaibhav0000patel@gmail.com
912732738030d84355aa57768facc7293bf43a88
187a6558f3c7cb6234164677a2bda2e73c26eaaf
/jdcloud_sdk/services/clouddnsservice/models/HostRRlb.py
a70c1c23618e54df92e3c0396719c63ee09311d7
[ "Apache-2.0" ]
permissive
jdcloud-api/jdcloud-sdk-python
4d2db584acc2620b7a866af82d21658cdd7cc227
3d1c50ed9117304d3b77a21babe899f939ae91cd
refs/heads/master
2023-09-04T02:51:08.335168
2023-08-30T12:00:25
2023-08-30T12:00:25
126,276,169
18
36
Apache-2.0
2023-09-07T06:54:49
2018-03-22T03:47:02
Python
UTF-8
Python
false
false
1,141
py
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
[ "oulinbao@jd.com" ]
oulinbao@jd.com
afe7b68eebc859166be1c5e13503095b75df042c
3527ff6346f98a5b7c51ce3c58428227f4bc8617
/acwing/800.py
3e10fbf147a1197999a55e116c697baa1c94510e
[]
no_license
ShawnDong98/Algorithm-Book
48e2c1158d6e54d4652b0791749ba05a4b85f96d
f350b3d6e59fd5771e11ec0b466f9ba5eeb8e927
refs/heads/master
2022-07-17T04:09:39.559310
2022-07-13T15:46:37
2022-07-13T15:46:37
242,317,482
0
0
null
2020-10-11T14:50:48
2020-02-22T09:53:41
C++
UTF-8
Python
false
false
277
py
n, m, x = map(int, input().split()) A = list(map(int, input().split())) B = list(map(int, input().split())) i = 0 j = m -1 while i< n: while j >= 0 and A[i] + B[j] > x: j -= 1 if j >= 0 and A[i] + B[j] == x: print(f'{i} {j}') break i += 1
[ "ShawnDong98@gmail.com" ]
ShawnDong98@gmail.com
fca6944ac17fdb848882685b614c20e6f19803df
fb594bf2cd33157a1d1d486e25c8014d6463fe9b
/project-1/expriments/plot-hidden-num.py
c3c6e7a2d5a09c0a704fe067d167cd044bdddd80
[]
no_license
ShirleyHan6/CZ4042-Assignments
6469d2977b07302c5496eb9f83b360e6e5f06500
915b2e53008575741627333103bafbef1a91d600
refs/heads/master
2020-08-14T00:01:36.843411
2019-11-16T05:57:25
2019-11-16T05:57:25
215,060,266
0
2
null
2019-11-16T05:57:27
2019-10-14T14:05:58
Python
UTF-8
Python
false
false
489
py
import pickle from utils.utils import plot_batched_accuracies, plot_train_val_accuracies with open('val-accs-hidden-num.pickle', 'rb') as f: val_accs_dict: dict = pickle.load(f) with open('train-accs-opt-hidden-num.pickle', 'rb') as f: train_accs: list = pickle.load(f) with open('val-accs-opt-hidden-num.pickl...
[ "yli056@e.ntu.edu.sg" ]
yli056@e.ntu.edu.sg
25c35446e2c1e506709da0324a51c48114a589fb
fab8b89c723caf54ed49e2f0da8be592243d21ee
/Matlab/Stepping-Stones_msg_gen/catkin_ws/src/morpheus_skates/src/calibration_arduino.py
98f7a24660c9f498b08d643c37d9f31ccb94fcf0
[]
no_license
saunair/Stepping-Stones
97752f5b9dad10cbe8cb4a208b99fefe99b7be05
177c9e884779227beaa725efb1f061d1a52db751
refs/heads/master
2021-06-20T16:12:46.651961
2017-07-27T16:46:46
2017-07-27T16:46:46
72,512,384
0
0
null
null
null
null
UTF-8
Python
false
false
12,395
py
#!/usr/bin/env python # license removed for brevity import rospy import time from std_msgs.msg import UInt16 import yaml from morpheus_skates.msg import skate_feedback import os import rospkg #config_file = '~/catkin_ws/src/motor/config/calibration_values.yaml' #config_file = '/home/stepping/mrsd_team_H/Stepping-Sto...
[ "bfactor@andrew.cmu.edu" ]
bfactor@andrew.cmu.edu
93111d9e9273607e9c92ad7799985e969cb48408
e97434a363fc559d070ba7439abf07ee975e3415
/IPL/pointstable/serializers.py
e86338f7da56852b5574166e3f0737de70b88165
[]
no_license
vipulpathak113/iplbackend
2c9311b5869018be9b4fc8e1c50f66d8d444e0f6
7be4c3cfe2c21ed4aef2634de0fbeb4a2e85142c
refs/heads/master
2020-07-30T21:30:23.578815
2019-09-23T13:38:22
2019-09-23T13:38:22
210,364,946
0
1
null
2020-07-21T22:00:00
2019-09-23T13:40:32
Python
UTF-8
Python
false
false
265
py
from rest_framework import serializers from .models import PointsTable class TeamlistSerializer(serializers.ModelSerializer): class Meta: model = PointsTable fields = ('id', 'team_name', 'played', 'won', 'lost', 'no_result', 'points', 'nrr')
[ "vipulkumarpathak@ASDP1740PO02529.qait.com" ]
vipulkumarpathak@ASDP1740PO02529.qait.com
226f2dde2e7f83c6d967dd639b88280ff249582c
661c0a56baddaa344c9c06cfd70ad60e776efe41
/textminer/extractor.py
179f5e65114a098feb217ba40014a2dd301cf8de
[]
no_license
lancekrogers/textminer
c6426bb519ac3d46c3fd6ec2dc2ac9ffa30562f9
21a24dc17e06d90d8df4ae785c72cbdc2a768dd3
refs/heads/master
2021-01-14T08:51:09.045553
2015-07-22T20:09:36
2015-07-22T20:09:36
37,545,282
0
0
null
2015-06-16T17:29:19
2015-06-16T17:29:19
null
UTF-8
Python
false
false
136
py
import re def phone_numbers(text): return re.findall(r"\(\d{3}\).\d{3}.\d{4}", text) # hard mode def emails(text): pass
[ "lancekincaid1994@gmail.com" ]
lancekincaid1994@gmail.com
3b3b4383ef951f3c0055d62bc0357e73dea7e020
c85a766dca16877993cc4477e5da3c117851aa1d
/src/recaptcha/client/captcha.py
7a54cbad28f130fe454ad497335e9b257cdf4ae8
[]
no_license
iguzu/banian
467ddebbb65126b3611dc9a7d4acf6a03c1d0287
9158d7036061400f262ddfa79210fe9f5710097a
refs/heads/master
2021-05-28T10:53:07.819656
2010-03-09T03:55:24
2010-03-09T03:55:24
532,806
0
0
null
null
null
null
UTF-8
Python
false
false
3,653
py
import urllib from google.appengine.api import urlfetch """ Adapted from http://pypi.python.org/pypi/recaptcha-client to use with Google App Engine by Joscha Feth <joscha@feth.com> Version 0.1 """ API_SSL_SERVER ="https://api-secure.recaptcha.net" API_SERVER ="http://api.recaptcha.net" VERIFY_SE...
[ "sbl@iguzu.com" ]
sbl@iguzu.com
67c14f9b85a6fc763604cad2949acf2dbcbbab72
00c3f5934ba4e674c8f01ab1fc2d30f7eb9a803d
/Performance_Metric_Functions.py
61f8f2501d66a75e12708503079a7b8a7bc81b5e
[]
no_license
alexanderbooth/Prattle_Interns
a67224ba82bafe661f95d7f8443fabbf009c3a03
a97c65596af89feee6e6db7be281ce08f0a5f459
refs/heads/master
2020-12-31T01:48:31.110739
2015-07-06T21:44:36
2015-07-06T21:44:36
37,205,087
0
0
null
2015-06-10T15:20:47
2015-06-10T15:20:46
Python
UTF-8
Python
false
false
5,587
py
# coding: utf-8 # In[2]: import dateutil.parser import json import matplotlib.pyplot as plt import numpy import pandas as pd import pandas.io.data import requests import datetime import math import operator import scipy import requests import calendar import statsmodels.api as sm # In[3]: #NEEDS COMMENTS FROM AL...
[ "jacob.cavner@gmail.com" ]
jacob.cavner@gmail.com
a1f08199e9d65120982277c5b73430048437c363
e751c59ca3c98c8f6a98b7c6fc7167fe615aa1b0
/streamz/orderedweakset.py
82136ecdea1138314b8cd2277154f13f468712af
[ "BSD-3-Clause" ]
permissive
yutiansut/streamz
a10e0d2beefd450b5d19cb7d78b4c8a333ebcd48
e51f0397d27957f8b3bfc78ecdb946cbfbac21b6
refs/heads/master
2020-07-10T15:23:35.567092
2019-12-24T07:07:43
2019-12-24T07:07:43
204,297,562
1
0
NOASSERTION
2019-12-24T07:07:44
2019-08-25T13:24:35
Python
UTF-8
Python
false
false
977
py
# -*- coding: utf8 -*- # This is a copy from Stack Overflow # https://stackoverflow.com/questions/7828444/indexable-weak-ordered-set-in-python # Asked by Neil G https://stackoverflow.com/users/99989/neil-g # Answered/edited by https://stackoverflow.com/users/1001643/raymond-hettinger import collections import weakref ...
[ "mrocklin@gmail.com" ]
mrocklin@gmail.com
ae5543276e6ec4f6dc0823885d5ba0a303c5e818
cfc3fa658f826d02308453e557d82758895399c2
/datasets/covid_qa_deepset/covid_qa_deepset.py
d43c1e5924c54b5a73b245220e1e6d2c37d225e1
[ "Apache-2.0" ]
permissive
meehawk/datasets
cac530ec0e17514c01cdff30302521d6303ed93b
b70141e3c5149430951773aaa0155555c5fb3e76
refs/heads/master
2023-03-29T12:51:54.700891
2021-04-08T17:22:53
2021-04-08T17:22:53
355,996,122
9
0
Apache-2.0
2021-04-08T17:31:03
2021-04-08T17:31:02
null
UTF-8
Python
false
false
4,607
py
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
[ "noreply@github.com" ]
meehawk.noreply@github.com
b9c66f7ddec07dd1b3c1c83bccd25902d510d6a9
d149fc886482603e0cb3c7788284e9de16cc6edd
/DecisionTree/studentMain.py
e478aded910070a35d93dd1d66ab7e69c31be287
[]
no_license
lishengxu/ud120-sklearn
12451eac1ad06ef0999980182ed7577db1c2e5bf
b831a944410a5e503255cba524499d87b1f9e820
refs/heads/master
2020-03-28T13:38:15.602433
2018-10-15T12:12:35
2018-10-15T12:12:35
148,413,023
0
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
#!/usr/bin/python """ lecture and example code for decision tree unit """ import sys from class_vis import prettyPicture, output_image from prep_terrain_data import makeTerrainData import matplotlib.pyplot as plt import numpy as np import pylab as pl from classifyDT import classify features_train, labels_train, fea...
[ "lsx1@meitu.com" ]
lsx1@meitu.com
58ecd20ff1982f1c16f54d7e4aab822e9e33c351
b7a8cedcd7df9a70eda8432866bdbe8a33833dab
/Day 54 Web Dev/decorator.py
ca01adc8d724b84b07f1ce8739267057526e763c
[]
no_license
shidoken/100DaysofPython
55bcd703382fa2ca875e428aee902652efaf4d27
3808560893dc7097d82fd59c545d647278415c8f
refs/heads/main
2023-04-03T18:10:08.202986
2021-04-16T07:12:16
2021-04-16T07:12:16
329,128,523
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
import time def c_time(): current_time = time.time() return current_time def speed_calc_decorator(function): def wrapper_function(): # Do something before function() function_name = function.__name__ time_1 = c_time() function() time_2 = c_time() d...
[ "noreply@github.com" ]
shidoken.noreply@github.com
5d9d6c025131f2a3f97852b760a240950735157f
46eb22dbe3514fc586ca57dd5e9a2ef1e486ed7e
/src/lanyon/parser.py
5e43a9d5db751938ac34fd688b085ebb43fc5d44
[ "BSD-3-Clause" ]
permissive
arthurk/lanyon
06d37d2e96358a190f8926a65f9f8df00db09393
d4c319cc5659c50aa3e356cbf74e976ba82acc4b
refs/heads/master
2021-01-17T07:41:28.518803
2011-04-16T11:37:06
2011-04-16T11:37:06
804,624
5
2
null
2016-06-06T13:33:41
2010-07-29T06:45:49
Python
UTF-8
Python
false
false
6,056
py
import datetime import re from os.path import splitext class ParserException(Exception): """Exception raised for errors during the parsing.""" pass class Parser(object): output_ext = None def __init__(self, settings, source): self.settings = settings self.source = source self....
[ "arthur@arthurkoziel.com" ]
arthur@arthurkoziel.com
9daa5c6e9687c22774d2f1effd501abdaf003b84
2412ab2a7fdefe1d165a6ec63292fdbe965c5131
/run_GOseq.py
0cd6278fe2ee1279bbe8a15bc3b07ebb23156e13
[]
no_license
cfc424/NGS
e7651d9cbd1309821f5251c3ab3c9c7ba9e19352
a7fd0631adc7365d358e49f407e2ebe796163443
refs/heads/master
2023-03-21T14:36:05.877307
2019-11-13T01:09:13
2019-11-13T01:09:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,447
py
#!/usr/bin/env perl use strict; use warnings; use Getopt::Long qw(:config no_ignore_case bundling pass_through); my $usage = <<__EOUSAGE__; ############################################################################################### # # --factor_labeling <string> tab delimited file with format: factor<ta...
[ "root@zinc.(none)" ]
root@zinc.(none)
987b92e6df6ed00e5ca4fb6ce748e467405a8347
f4434c85e3814b6347f8f8099c081ed4af5678a5
/sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22/aio/operations/_certificates_operations.py
4fdc763e3e5033ecae73c8337024f88ac2e80684
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
yunhaoling/azure-sdk-for-python
5da12a174a37672ac6ed8e3c1f863cb77010a506
c4eb0ca1aadb76ad892114230473034830116362
refs/heads/master
2022-06-11T01:17:39.636461
2020-12-08T17:42:08
2020-12-08T17:42:08
177,675,796
1
0
MIT
2020-03-31T20:35:17
2019-03-25T22:43:40
Python
UTF-8
Python
false
false
23,167
py
# 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) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
yunhaoling.noreply@github.com
8efe16a04e801c369c14cae73a57768ce018fca8
7ada9e1ede668f402ae9598bc1e5c3caa17658d5
/app.py
8a289bef4395897b72277d2ebdd8646b27963cf4
[]
no_license
nikolaskarta/Information_Systems_Project1
a2db2e838a824c2b0b62a340a782bd20b9ba9c5c
d6f325c73af0a3b835827da07ed78941bd36e100
refs/heads/main
2023-05-05T09:14:22.117293
2021-05-16T20:43:26
2021-05-16T20:43:26
367,971,791
0
0
null
null
null
null
UTF-8
Python
false
false
10,748
py
from pymongo import MongoClient from pymongo.errors import DuplicateKeyError from flask import Flask, request, jsonify, redirect, Response import json from bson import json_util import uuid import time # Connect to our local MongoDB client = MongoClient('mongodb://localhost:27017/') # Choose database db =...
[ "noreply@github.com" ]
nikolaskarta.noreply@github.com
69977fa0a2c06e8ff76915a512f98a4297e62f81
bb607ff53fba9fe657291f6249c2c22abda2db4c
/settings.py
abb0840405d3700432a6d955f107a180498f66fb
[ "MIT" ]
permissive
AdrianSosaUV/pacman
0c2442913f3b62fe42b19eb1e32e213ed8bd55e2
09865179cf0d92bab0f0276a3dfe49a6727c9bb4
refs/heads/main
2023-07-02T18:45:33.439762
2021-08-01T22:17:17
2021-08-01T22:17:17
381,440,147
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
import pygame import random import sys from pygame.math import Vector2 as vec ##### SCREEN SETTINGS ##### TOP_BOTTOM_BUFFER = 50 WIDTH, HEIGHT = 610, 670 MAZE_WIDTH = WIDTH - TOP_BOTTOM_BUFFER MAZE_HEIGHT = HEIGHT - TOP_BOTTOM_BUFFER FPS = 60 COLS = 28 ROWS = 30 ##### COLOR SETTINGS ##### BLACK = (0, 0, 0) ORAN...
[ "adrsosa@uv.mx" ]
adrsosa@uv.mx
64a3215ec3906affa3702053fa372ce9684ba680
60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24
/IronPythonStubs/release/stubs.min/System/Windows/Media/Animation_parts/Timeline.py
fc7d6ac0df9229690da3777f143d98381abde625
[ "MIT" ]
permissive
shnlmn/Rhino-Grasshopper-Scripts
a9411098c5d1bbc55feb782def565d535b27b709
0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823
refs/heads/master
2020-04-10T18:59:43.518140
2020-04-08T02:49:07
2020-04-08T02:49:07
161,219,695
11
2
null
null
null
null
UTF-8
Python
false
false
14,492
py
class Timeline(Animatable,ISealable,IAnimatable,IResource): """ Defines a segment of time. """ def AllocateClock(self,*args): """ AllocateClock(self: Timeline) -> Clock Creates a System.Windows.Media.Animation.Clock for this System.Windows.Media.Animation.Timeline. Returns: A clock for this System.Win...
[ "magnetscoil@gmail.com" ]
magnetscoil@gmail.com