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
182d9a411739da176612a6672b3f4c33eae6a55a
5a3cc933e73acc7da83e702402918bd687dd99b0
/Python_scripts/stitchjoints.py
79b2035ce6617648c703a5a3c4cb43ba25e616eb
[]
no_license
tuxicon/Interactive-puppets
392f343d8857192ecf984bf03ae3eecbccc28607
f52b94137d5aa5de9fb3cf6b742d72312e7cd316
refs/heads/master
2021-01-20T17:37:06.706294
2014-03-24T18:15:16
2014-03-24T18:15:16
15,418,293
0
1
null
null
null
null
UTF-8
Python
false
false
3,100
py
import bpy import re def union_test(first,second): modifier = first.modifiers.new('Modifier', 'BOOLEAN') modifier.object = second modifier.operation = 'UNION' bpy.ops.object.modifier_apply() #scene = bpy.context.scene #scene.objects.unlink(second) i= 0; def mesh_prepare(mesh): if mesh is n...
[ "ganesai@gmail.com" ]
ganesai@gmail.com
4aa998fe271c571ce96348a29280f27c93e19487
afcd61147064315de5430506bb2a0978e1dd32c4
/Eshop/store/views/login.py
bd7c00d2c74439b228f7773747828a603bb41e01
[]
no_license
shreywadmalwar/E-Shoppin_Site
874b895878eaf90fcbb8a689a981b2d4b6009345
5437b7db9387e4d18b80cea82d31243e23d26cbe
refs/heads/master
2023-07-10T06:07:31.919795
2021-08-03T20:25:27
2021-08-03T20:25:27
392,431,435
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
from django.shortcuts import render, redirect, HttpResponseRedirect from django.contrib.auth.hashers import check_password from django.views import View from store.models.customer import Customer class Login(View): returnUrl = None def get(self, request): Login.returnUrl = request.GET.get('return_url...
[ "sdwadmalwar@gmail.com" ]
sdwadmalwar@gmail.com
0d3b98c7ff725b42131918d94dd15c9ce1b8a9c1
d21cabccf9c7adcdd5d4a9d70f0d8e8eb3fb1e59
/accounts/views.py
f32c200985e19928da98d4ead21ae92ac47a10cb
[]
no_license
noelquirke/Athena-Envy-Milestone4
1a14e78cb5b960bfbed84d7fdcfd25542f42c28e
3b6162fa4a559cef0cab7490d3a1d12ac8e49f28
refs/heads/master
2022-12-09T00:02:23.931436
2020-08-26T23:11:46
2020-08-26T23:11:46
290,197,814
0
0
null
null
null
null
UTF-8
Python
false
false
2,307
py
from django.shortcuts import render, redirect, HttpResponseRedirect from django.contrib import messages, auth from django.urls import reverse from .forms import UserLoginForm, UserRegistrationForm from django.template.context_processors import csrf from django.contrib.auth.decorators import login_required # Create yo...
[ "noelquirke900@hotmail.com" ]
noelquirke900@hotmail.com
db1269295a5cbf37e808efbc1ec836700383198f
e856c3b147a56814b9c77dff7a1a15bffec7d39e
/parsetab.py
b267a31ec09ae3aabd72e573a720782b59ea6e5b
[]
no_license
pmarcosfelipe/compiladores
134e38006a2e539aba1a8ee08a58241940f68e24
a58672ca27ee963f9a0833330cb236be215107f2
refs/heads/master
2021-01-22T04:28:34.849241
2017-08-01T00:07:26
2017-08-01T00:07:26
92,466,743
0
0
null
null
null
null
UTF-8
Python
false
false
24,443
py
# parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'rightTERN_IFleftOU_LOGICOleftE_LOGICOleftIGUAL_COMPDIFERENTEleftMAIORMAIOR_IGUALMENORMENOR_IGUALleftPLUSMINUSleftTIMESDIVIDEleftNEGACAOID LPAREN RPAREN LCOL RCOL LCHAVES RCHAVES VIRGULA PONTOV...
[ "p.marcosfelipe@gmail.com" ]
p.marcosfelipe@gmail.com
2f65fe4f2c3cc9e6c7ff7d64a34b062893cf9099
453ab9db8bdd1f791ef6a50aa5f3bbf071da1982
/tools/noms/pushd.py
c8f718a4407c849393e18579fe0175739a08142f
[ "Apache-2.0" ]
permissive
julio-lopez/noms
eae7099cc5913e66b5b494a9810c9dd6ba7a768f
29afecdad4085b0df71a19d3fdf488754b38c512
refs/heads/master
2023-03-16T14:46:41.666891
2023-03-14T07:29:55
2023-03-14T07:29:55
118,852,085
1
1
Apache-2.0
2023-03-14T07:39:51
2018-01-25T02:39:58
Go
UTF-8
Python
false
false
335
py
#!/usr/bin/python # Copyright 2016 Attic Labs, Inc. All rights reserved. # Licensed under the Apache License, version 2.0: # http://www.apache.org/licenses/LICENSE-2.0 import os from contextlib import contextmanager @contextmanager def pushd(path): currentDir = os.getcwd() os.chdir(path) yield os.chd...
[ "noreply@github.com" ]
julio-lopez.noreply@github.com
651e175ce02760c437c476d4da00728624c568ae
2b924899cf0cc2977426906264d50d1ce33c5451
/enginesdk/v1/schemas/settings.py
7747c1737059b8130589a5e975313c53a5239af6
[]
no_license
kaepler/EngineSDK
358c4c0951e4fdb48d53a26921ea61582e814fb9
ce275f73a6d6fd663e2e77f1d93ec9b3ff09e547
refs/heads/main
2023-04-11T22:37:39.359392
2021-04-07T06:45:09
2021-04-07T06:45:09
353,343,112
0
0
null
2021-04-05T10:42:35
2021-03-31T12:07:47
Python
UTF-8
Python
false
false
427
py
from os import getenv from pydantic import BaseModel class Settings(BaseModel): ENGINE_NAME: str = getenv("ENGINE_NAME", "Kaepler Engine") ENGINE_SLUG: str = getenv("ENGINE_SLUG", "kaepler-engine") VERSION: str = getenv("VERSION", "v1") REVISION: str = getenv("SHORT_SHA", "local") API_KEY_NAME: st...
[ "trouni@gmail.com" ]
trouni@gmail.com
281cd463e9c867cd397521f91a804bf5446d4916
6ed141b0c151becae06487e4e8095076efc54a66
/components/screencapture.py
261586b10e6ba40dff7eae9288bc794f6e3a08b9
[]
no_license
thomas64/pyRPG2
1a8231c29aa106002f1ddc5550caae004df75615
2df885395229297d574906bcc9bbe57ff0f6361d
refs/heads/master
2020-04-12T06:21:47.158454
2019-06-28T12:14:59
2019-06-28T12:14:59
58,064,228
4
1
null
null
null
null
UTF-8
Python
false
false
967
py
""" class: ScreenCapture """ import pygame import pygame.gfxdraw BACKGROUNDTRANS = (0, 0, 0, 224) # 1-255 hoger is zwarter BACKGROUNDCOLOR = pygame.Color("black") class ScreenCapture(object): """ Maak een schermafdruk en maak het wazig. """ def __init__(self, black_background=False): ...
[ "mail@t64.nl" ]
mail@t64.nl
c6fefc0d9cd14428c2fecf957fb3004e2681e8c1
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Quantization/trend_Lag1Trend/cycle_12/ar_12/test_artificial_32_Quantization_Lag1Trend_12_12_20.py
eb6deb2d6bbd89999096af776def00111e27d043
[ "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
273
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "Quantization", sigma = 0.0, exog_count = 20, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
a24e3d2988d721e3a85a11289891a1e214d61df2
44d7cf9dffd9336b44701950908a622192ffc723
/ros/src/twist_controller/dbw_node.py
ac2e79bb101da5bb582e55097d9dd1c30ed895f4
[ "MIT" ]
permissive
smiht/Self-Driving-Car-Capstone-Project
588ceefba5cb782a4a7a2ea97b6a2f5cebfded86
f3538af6e9794f67c1455dd81880994730c6585c
refs/heads/master
2021-09-23T19:56:43.848170
2018-09-27T03:08:10
2018-09-27T03:08:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,092
py
#!/usr/bin/env python import rospy from std_msgs.msg import Bool from dbw_mkz_msgs.msg import ThrottleCmd, SteeringCmd, BrakeCmd, SteeringReport from geometry_msgs.msg import TwistStamped import math from twist_controller import Controller ''' You can build this node only after you have built (or partially built) th...
[ "kathan@Kathans-MacBook-Pro.local" ]
kathan@Kathans-MacBook-Pro.local
1f27eab884bd636bc95d14472f2d2994da77afc5
cbdf42eaf2f3ee908999fb1317d3fe90fa255f42
/kusinwolf/matplotlib_basic_example.py
d0014c854711d058981fbcaa02dbf9b69357aa25
[]
no_license
tdyhacker/pythonexploration
47c4e8a96d541428d4cf1d6c558a29e48f5fc22c
4b360ef2b61fb565c7e2f82ff31e848776cd649a
refs/heads/master
2021-01-10T02:51:34.245002
2010-11-28T02:31:36
2010-11-28T02:31:36
47,951,520
0
0
null
null
null
null
UTF-8
Python
false
false
1,156
py
#!/usr/bin/env python """ Show how to make date plots in matplotlib using date tick locators and formatters. See major_minor_demo1.py for more information on controlling major and minor ticks """ import datetime from pylab import figure, show from matplotlib.dates import MONDAY, SATURDAY from matplotlib.finance import...
[ "kusinwolf@c446d5ca-c62c-11dd-92e3-e3085bfe42ca" ]
kusinwolf@c446d5ca-c62c-11dd-92e3-e3085bfe42ca
b73adfc4e78f36353c33d77a822512ccf0be43fd
fbef8f0555151521c96df2f6abddeab5192ac4c9
/app.py
d513dc5359e41c5cbdd9e685c71d6636bd74accd
[]
no_license
Azaz3L2/curso-openshiftpublic
2b46e35642e181265e071f218ded463d6ac39584
cc6b039e4e3e9fadcc7344745fa473c11d8cd5ed
refs/heads/master
2022-11-06T01:48:50.123492
2020-06-23T09:55:50
2020-06-23T09:55:50
274,336,474
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
import os from flask import Flask app = Flask(__name__) @app.route("/") def main(): return "Bienvenido v6!!!" @app.route('/como estas') def hola(): return 'Estoy horroroso, gracias' if __name__ == "__main__": app.run(host="0.0.0.0", port=8080)
[ "noreply@github.com" ]
Azaz3L2.noreply@github.com
4f58e11e6d3006d75c64a4af4da9ea4792b0bd65
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_detain.py
3dfe8ec171cbb2f81c8c7242a587dcbea4b45df8
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
#calss header class _DETAIN(): def __init__(self,): self.name = "DETAIN" self.definitions = [u'to force someone officially to stay in a place: ', u'to delay someone for a short length of time: ', u'to keep someone in prison for as long as the courts feel is necessary'] self.parents = [] self.childen = [] ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
49280964f5b14f4c064679a0e25ccf98e39907cf
a7d245c8b3149f25f9c2038c4cbcf7d334596d98
/telemetry/TrailerValues.py
91f905ef49e5c29e9cf3c01024958b4713c45eff
[ "MIT" ]
permissive
SnipsMine/ETS2-Speedrun-Tool
4eb03bab9c293333b53950d30d38fa9d13ae7490
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
refs/heads/main
2023-02-15T18:08:56.871494
2021-01-19T14:33:29
2021-01-19T14:33:29
330,236,070
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
from telemetry.WheelValues import WheelValues from telemetry.WheelConstants import WheelsConstants class TrailerValues: damage = None attached = None position = None id = None wheel_values = None wheel_constants = None acceleration_values = None class AccelerationValues: line...
[ "micha@snippe-mail.nl" ]
micha@snippe-mail.nl
5fae97d9c12b1463434ad60de838f3401f1d9e85
7d0d25d963166fd9b893857ae4a588f32cadc94f
/src/Extended-PV-Doc2vec-full-yell-fixed-size-lstm-all-levels-one-step.py
b77b763b120432433ce21176e3406a5ffc8253c1
[]
no_license
yngcan/thesis-benchmark
bf5cdcf14fc83664ded0b53ec43500b488d08004
c3db59166cf897239fbab4eb3a389e0b13ff86d1
refs/heads/master
2021-06-15T19:20:29.527553
2017-04-27T16:29:45
2017-04-27T16:29:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,905
py
# coding: utf-8 # In[ ]: # Classification of fixed size paragraph vectors using LSTM #should be able to deal with all levels using the PARTS_LEVEL param # In[1]: import json import nltk from nltk.tokenize import RegexpTokenizer import string import math import os import time from collections import namedtuple, de...
[ "shalaby@yell.dbs.ifi.lmu.de" ]
shalaby@yell.dbs.ifi.lmu.de
fd8ed3a75dca376e8d0523b9c1913aeb43585369
d305e9667f18127e4a1d4d65e5370cf60df30102
/scripts/update_onnx_weight.py
eaff46f61b3bafc13431d6b903dee7bce0b5030e
[ "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
2,557
py
#!/usr/bin/env python3 # coding=UTF-8 # 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 r...
[ "513344092@qq.com" ]
513344092@qq.com
835a8b55edd1cd8ae7f9e2839194ed39293ff4f0
836d229563a469a0014ab901cbc71237b1c99cb8
/day_of_year_number.py
c017e3681a143d4a9142297633a2173983cd4eb5
[]
no_license
JIsernhagen/Python_Programming_Zelle
f9766ad21ce70000b3277ff9e4301dc97f5522fe
091ffc833f3fa34b70e58824e624b9afeb1f7bc8
refs/heads/master
2023-01-03T10:25:07.947720
2020-10-25T12:30:17
2020-10-25T12:30:17
254,511,712
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
def leap_year(year): if year%4 == 0: if year%400 == 0: leap_year = "is not" else: leap_year = "is" else: leap_year = "is not" return leap_year def date_valid(month, day, year): if 1<=month<=12: if ((month in [4, 6, 9, 11]) and (1 <= day <= 30)) or...
[ "KA0SWHgh" ]
KA0SWHgh
1833db93802e5f9f077ea673781f51aa73596958
d200ed5aeb8f6c4c94b2ec9cebe554a3f2c07979
/apps/django projects/classproject/onlineapp/forms/marks.py
a590544fc9f790cb8ee8a55095a9a9ddf1b9b5d3
[]
no_license
sanjaybalagam/summer_2019_gvp_balagamsanjay
d3b58fb6089ac3e540248d40e4c020e2f948c2f5
d32d14d25a16f4dd8eb312257b5d87cbc1d3c48b
refs/heads/master
2020-06-03T15:27:38.138419
2019-06-18T08:57:09
2019-06-18T08:57:09
191,628,779
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
from onlineapp.models import * from django import forms class Marksform(forms.ModelForm): class Meta: model=MockTest1 exclude=['total','student'] widgets={ 'problem1': forms.NumberInput(attrs={'class':'input', 'placeholder':'enter problem1 marks' }), 'problem2':for...
[ "balagamsanjay@gmail.com" ]
balagamsanjay@gmail.com
da7149cf9275852bce60c61bc06a346c39ce5fe1
b53911e82376875079173b79dc84058e43e9d424
/cinder/volume/drivers/fujitsu/eternus_dx_iscsi.py
0070e47f2932b4d3b737fbf6f3165724dcf88e24
[ "Apache-2.0" ]
permissive
isabella232/cinder
ae6d55677f73aee50651ae4f1e13fb6e23e79515
bd70ce6f4dd58ba904a7c941700cdce54e5a705e
refs/heads/master
2023-03-23T09:59:30.091106
2016-02-12T06:00:24
2016-02-12T06:00:25
349,980,166
0
0
Apache-2.0
2021-03-21T11:38:24
2021-03-21T11:37:45
null
UTF-8
Python
false
false
7,657
py
# Copyright (c) 2015 FUJITSU LIMITED # Copyright (c) 2012 EMC Corporation. # Copyright (c) 2012 OpenStack Foundation # 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 Licen...
[ "hayashi-yusuke@jp.fujitsu.com" ]
hayashi-yusuke@jp.fujitsu.com
beee513841627bd6d819f91b1f43aae44f9ab6cf
f2421df9b4b385b7afbaf35fdf3cabf0e82c509a
/Linear Search.py
6ce107f159c92df4aaca537bc5671b66f3e28ff6
[]
no_license
44858/lists
7409801767a3448222f1fdc69e803a644e322796
dcd0fff3975c888a0daea5634bacc65c05194d59
refs/heads/master
2021-01-01T16:39:37.145960
2015-01-16T14:28:21
2015-01-16T14:28:21
27,891,543
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
#Lewis Travers #09/01/2015 #Linear Search search_list = ["person 1", "person 2","person 3", "person 4", "person 5", "person 6"] def details(): search_item = input("Please enter the item that you would like to search for: ") return search_item def linear_search(search_list, search_item): found ...
[ "44858@PC004142.coll.lr.local" ]
44858@PC004142.coll.lr.local
2f10b5fae2b950dddd80f15b74840d3901bc80ad
f188306c78b3df309ece7042dc2838fbf73c9957
/large.py
f021ad2665f573eedadfe411bea6547879678f73
[]
no_license
AbhijithReghu/python-workshop
b7f1fb94008ccffbc3cb928cdb07016bb9a2e6e5
6ca01ddd0f4280eab0a4df860fa082be5f838cd5
refs/heads/master
2020-04-26T23:43:42.392679
2019-03-06T23:41:20
2019-03-06T23:41:20
173,911,771
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
a=30 b=9 c=3 if(a>b): if(a>c): print(a) else: print(c) else: if(b>c): print(b) else: print(c)
[ "hariunni08@gmail.com" ]
hariunni08@gmail.com
eba3a2806c3af846fb6de7adfb2a57d894c6d863
6cf5c3a9a6310cc1ca9389bc0ee205f363f68698
/markov.py
bc06e8dc68ecb210cd455607df81a9aaa31bf43e
[]
no_license
bhawnam/markov-chains
6002421bf44be69aa132733d0d949aff6dd19801
824517fcfd5335f44cee3a2cdf4fd5ccb9096cde
refs/heads/main
2023-04-02T14:36:52.911657
2021-04-03T01:02:53
2021-04-03T01:02:53
354,127,923
0
0
null
null
null
null
UTF-8
Python
false
false
2,172
py
"""Generate Markov text from text files.""" import sys from random import choice def open_and_read_file(file_path): """Take file path as string; return text as string. Takes a string that is a file path, opens the file, and turns the file's contents as one string of text. """ contents = open(fil...
[ "bhawna.bm@gmail.com" ]
bhawna.bm@gmail.com
cad483cb6bc5045e6421960432de8618dedcba0d
1c41d5f6890f88a43e53cbd43871534aba7d3292
/blog/migrations/0001_initial.py
c8c9e85fe0c2dc21ab2a5aa5e75fa554dd657e6b
[]
no_license
egepsihora/blog
ea09504c313b55f627d8d86dbc67a2d72cea9df5
b96e86bf0975ff6fa2ed71cc3891a15d975eb629
refs/heads/master
2023-06-30T09:52:18.397826
2021-08-09T16:38:02
2021-08-09T16:38:02
394,290,653
0
0
null
null
null
null
UTF-8
Python
false
false
989
py
# Generated by Django 3.2.6 on 2021-08-09 12:45 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "zeland18@ukr.net" ]
zeland18@ukr.net
2e3cbd12c794908b6fbb20c081811fafad6b6abe
80de22bad856405592347961258a3116ddfffd29
/game/models.py
286f5b8edbd9ebc31d62e447ce84c2ed7b8e21b3
[]
no_license
lzake/click-clash
16ebc99306f8bddd4fd0e7f04a02f7cdcb42bebc
88f5790c37624f9f5e5ab1ab4b6ac02b332d8f7d
refs/heads/master
2020-03-13T17:34:37.069149
2016-07-15T19:23:46
2016-07-15T19:23:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
from django.db import models from django.conf import settings class Counter(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL) count = models.IntegerField(default=0) def __str__(self): return str(self.count)
[ "mike.brown@excella.com" ]
mike.brown@excella.com
af793b098cfdd6264834330742a7f5922b36a8dd
f6f7669019bfe3f9999dad49cac19250b5e94e88
/migrado/db_client.py
4147a4b8e069592248d46d97f8b7dd10f3dcb482
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
protojour/migrado
0d0e0b02bf13e4effffa23473476f6eaa9ec095a
b74f9c1b1e929712cd78fd2eebccbdccc024535a
refs/heads/master
2023-08-03T23:26:43.662797
2023-07-21T00:07:46
2023-07-21T00:07:46
196,373,678
11
3
MIT
2023-07-20T23:30:53
2019-07-11T10:31:28
Python
UTF-8
Python
false
false
6,474
py
""" Migrado database client Copyright © 2019 Protojour AS, licensed under MIT. See LICENSE.txt for details. """ import subprocess from arango import ArangoClient from arango.exceptions import TransactionExecuteError from arango.http import DefaultHTTPClient from arango.response import Response class HTTPClient(Def...
[ "eirikkr@gmail.com" ]
eirikkr@gmail.com
5e84340ce88cc2e4c8bbd898f49c2252c294829c
b756fac12094915d4b4c3b2f88eff0812b3cc0ae
/geekshop/mainapp/context_processors.py
7b9a4d41af4284dae39a0cd1eaf8e8df471b24ef
[]
no_license
GarbGitHub/django-geekshop
6312c6ba42d702f00277325764d6750a9c81073c
43937c082d20e32b95b0c73d0a24fcac5aa33923
refs/heads/master
2023-08-24T07:58:52.497149
2021-10-20T17:48:29
2021-10-20T17:48:29
370,262,919
0
1
null
2021-10-20T17:48:30
2021-05-24T07:19:02
Python
UTF-8
Python
false
false
905
py
from authapp.models import ShopUserProfile from basketapp.models import Basket def basket(request): basket = [] if request.user.is_authenticated: # basket = Basket.objects.filter(user=request.user) basket = request.user.basket.select_related() return { 'basket': basket, } ...
[ "garbich@gmail.com" ]
garbich@gmail.com
81da98fb3ca775a664d7ebd08e9df9fb3e052c49
c6d0c3def4e0142c65ccbff5779da8093744f918
/stringsplitter.py
456dd363fe43b2b3ee1e8ec19d612b4953e7accd
[]
no_license
AkshayKJha/Python-basic-programs
9afbb03fdec2c52de075130f5293f495457bdf5c
38dccf974dd80b2e955ab543f7f62f203389c46d
refs/heads/main
2023-03-09T08:06:37.899357
2021-02-22T10:06:52
2021-02-22T10:06:52
341,149,109
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
string_entered=input("Enter an odd length string:") middle_position=int(len(string_entered)/2-0.5) print("Middle character:",string_entered[middle_position]) print("First half:",string_entered[:middle_position]) print("Second half:",string_entered[middle_position+1:])
[ "akshayjha@Akshays-MacBook-Air.local" ]
akshayjha@Akshays-MacBook-Air.local
11be4e6632d5036cf165b20409f85c054fc6a903
6a20102b13ef5ea1371c2600b0d7fb25013065a7
/recognition/FaceRecognizer.py
66cf4d0807431457cfa52f6603ed391a58367167
[]
no_license
freefly518/UniversalFaceRecog-TF2
bc52d977bc1c2faa4877544f1a9f0fc8c39b1147
7621842e1ba3a31510d62161be74db93c9976ec0
refs/heads/master
2023-07-25T10:50:10.018049
2020-09-27T07:58:55
2020-09-27T07:58:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
import json import nmslib import numpy as np from recognition.face_embedder_network import FaceEmbedder class FaceRecognizer: def __init__(self, index_path, mapping_path, embedder_weights_path): with open(mapping_path) as f: self.mapping = json.load(f) self.index = nmslib.init(method='h...
[ "stanislas-bertrand@hotmail.fr" ]
stanislas-bertrand@hotmail.fr
a2128caca1644b75adf130da014bb25cf06cc955
77cde32e18bc3fbea545711e68f2772452da6c62
/python_intermediate/Cleaning and Preparing Data in Python-351.py
899c29c535a0a8c2fa78b3aee241cc699904d519
[]
no_license
braden-holgate/Dataquest-Missions
6bc30c4e6aa96b80a6f98de58bd03a3b63782d7c
c7c543f97f08fac55e126a12e125c335cb98b572
refs/heads/master
2022-02-23T06:52:16.087360
2019-10-08T03:21:27
2019-10-08T03:21:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,893
py
## 1. Introducing Data Cleaning ## # Read the text on the left, and then scroll to the bottom # to find the instructions for the coding exercise # Write your answer to the instructions below -- the list of # lists is stored using the variable name `moma` num_rows = len(moma) ## 2. Reading our MoMA Data Set ## #...
[ "bradenholgate@live.com" ]
bradenholgate@live.com
fef9ef7c89c31e2f2b730da346370bd670fe44e3
5c461543aaf7e4166cddf395d501d07b8d6cea58
/shared_schema_tenants_custom_data/helpers/custom_tables_helpers.py
968b9a61055c18ea26405292f57b121eb8cea839
[ "MIT" ]
permissive
hugobessa/django-shared-schema-tenants
5d748696083c8c80a2a7525be458079f2959a0ab
ed3bcddf80a7838979fe1be2045dfa16b545beed
refs/heads/dev
2023-01-16T04:35:58.509835
2018-07-24T10:25:15
2018-07-24T10:25:15
98,757,299
21
9
MIT
2022-12-26T20:29:26
2017-07-29T20:30:43
Python
UTF-8
Python
false
false
1,250
py
def get_custom_table_manager(table_name): from shared_schema_tenants_custom_data.models import TenantSpecificTable, TenantSpecificTableRow from shared_schema_tenants_custom_data.managers import TenantSpecificTableRowManager table = TenantSpecificTable.objects.get(name=table_name) manager = TenantSpeci...
[ "hugo@bessa.me" ]
hugo@bessa.me
30ac2f9462c95f38c23cc0d47c2c32259ccf1897
2e5a29dddcfe2a36013c9c4489cd7de9914ae497
/miapp00/urls.py
a6a025ce908243d042ecabe6f895c397d9f97072
[]
no_license
bryangj23/miappp00
c1aa437edb265b18b46ede3d4fa80f67f2850037
3622d72a3466858fd53efc16c80b93e36d6aca11
refs/heads/master
2023-07-06T15:22:47.727204
2021-07-27T09:50:03
2021-07-27T09:50:03
389,806,612
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
"""miapp00 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "brayanguardodiaz0@gmail.com" ]
brayanguardodiaz0@gmail.com
8b4a954a07fa5f54dcb39b9b49383f6a35213935
08681a11a68de7d367c00078025f5837a0ee2a6f
/tutorial/snippets/views.py
cc6c0ce7f7f5e4f93bd55eee7e764f89ab606d46
[]
no_license
Areckki1985/tutorial_api
395de0e6e863dfcc1c0d438f13be1f24e4941adf
c14010af0e419c2df06e3b06931392075c29c6b3
refs/heads/master
2020-07-07T12:09:21.426760
2019-08-21T09:04:02
2019-08-21T09:04:02
203,343,542
0
0
null
null
null
null
UTF-8
Python
false
false
1,690
py
from snippets.models import Snippet from snippets.serializers import SnippetSerializer from django.contrib.auth.models import User from snippets.serializers import UserSerializer from rest_framework import permissions from snippets.permissions import IsOwnerOrReadOnly from rest_framework.decorators import api_view f...
[ "arkadiusz.gluchowicz@gmail.com" ]
arkadiusz.gluchowicz@gmail.com
71849c114b7d1d8ead819825eda9f52b82011539
c24ca4bf76229b92ecf2cb2c0db99a7be452aef7
/generator/test/test_enum_builder.py
33b1ddd240a3078c711622b56373c59fc12927fe
[ "MIT" ]
permissive
design-ops/localizable-googlesheets
ebf02e1989d9f746fa122424c89dd567be0aa0dd
f6ab345ff481cd0c9be291a2df66d729e052b2e6
refs/heads/master
2021-04-21T21:49:47.486337
2020-03-24T21:18:08
2020-03-30T13:03:51
249,819,063
0
0
null
null
null
null
UTF-8
Python
false
false
2,335
py
import unittest from unittest.mock import patch from datetime import date from tempfile import gettempdir from os import path, remove import filecmp from localisation.output.enum_builder import output_enums from localisation.output.template_helper import TemplateGenerator from localisation.output.csv_builder import bu...
[ "atomoil@gmail.com" ]
atomoil@gmail.com
1caae2df6407d549a3216cd97e5c4ac5d8e4eb12
f4ca1c4ab4a1c1d468e1a0574f0c466925b0cc3e
/final/commands/clear_data.py
6f1ee0a71e8a3e292ec46607d2e5fb3406d50a9e
[]
no_license
TsunamiMonsoon/InternetProgramming
f2d3262b085a2908496a2dce9991ce2f1de9c7e7
ea7776920d769bf508b2fed685c28b0121ae3e77
refs/heads/master
2023-03-02T10:10:48.718011
2021-02-13T21:30:54
2021-02-13T21:30:54
272,563,372
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
__author__ = 'faculty' from measurements.models import Courses, PreRequisite from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = "adds sample entities to the application" def handle(self, *args, **options): Courses.objects.all().delete...
[ "noreply@github.com" ]
TsunamiMonsoon.noreply@github.com
cee5af220e2385cf344e159ba2a334f7edf7b963
bc58745546e49b4bf77f7b054f665651a273ec5c
/fastai2_extensions/_nbdev.py
d0ca5bd9f8a56551d0caacf5ff82cf31ec88e9a4
[ "Apache-2.0" ]
permissive
polyrand/fastai2_extensions
047f805a83ea4db005900068ab0644bf2baac96c
445114c7da0c060ec2be4d1c6cb66a1b61f84956
refs/heads/master
2022-09-20T15:18:26.709548
2020-05-29T06:41:50
2020-05-29T06:41:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,024
py
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"ClassificationInterpretationEx": "01_interpret_classification-interpretation.ipynb", "intersection": "02_interpret_compare-models.ipynb", "compare_venn": "02_interpret_compare-models.ipynb"...
[ "rsomani95@gmail.com" ]
rsomani95@gmail.com
866dab80225e7a4e1115865b8250b4aec2265fd4
207cdfe1d9873d3751af8a2065aade13aad9272e
/aws/ondemand/status-server.py
e881213b583a30b383a3522854103be7aabcded0
[ "MIT" ]
permissive
hhvm/packaging
8340c7ade9f7a78dc604463e111653efa524ee12
ed49e8868e1982c30a30ca647aa6bb0c9f8668a1
refs/heads/master
2023-07-20T11:05:13.367796
2023-05-02T23:43:12
2023-05-02T23:43:12
15,297,877
45
45
MIT
2023-07-12T02:40:31
2013-12-19T00:34:41
Shell
UTF-8
Python
false
false
810
py
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import datetime import socket import sys s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(('', 4242)) while Tru...
[ "jjergus@fb.com" ]
jjergus@fb.com
0363760b0b7547d13c12a84111ceb39db5a60bfb
5da5c76bf679b8aa458cd9ddb7c0798afe66a5bc
/wechat/migrations/0002_auto_20180828_1102.py
dd68f1aacb3043ee143f4b13c45586bc63bac41e
[]
no_license
2240831304/pythonserver
83601ba35137c657e97320c424913b07a140653e
a213a2ff408b8da8d1961b3135b24d08f7dac7e0
refs/heads/master
2022-12-10T01:05:50.875941
2019-11-13T06:49:00
2019-11-13T06:49:00
251,175,315
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-08-28 03:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wechat', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "cj@obook.com.cn" ]
cj@obook.com.cn
e17a7f5ab8165c304892b7ccde5780fd06ad2c59
7164b9a694ba5b321ddbc7914ba88edfb48c616e
/backend/restapi/APIDocResource.py
aa82ec48e94077deef7d0b60615ac0ecb1c6dc27
[ "MIT" ]
permissive
xiliangMa/AuthServer
0b861a549d4f4732efd2e351d6c45a689b9029a2
7f1deeae804104f53ec3963e39d690c9d296283c
refs/heads/master
2020-04-07T10:05:54.040735
2019-12-02T07:29:06
2019-12-02T07:29:06
124,202,551
1
1
null
null
null
null
UTF-8
Python
false
false
277
py
# -*- coding: utf-8 -*- __author__ = 'xiliangma' from flask.ext.restful import Resource from FlaskManager import app from FlaskManager import httpAuth class APIDoc(Resource): @httpAuth.login_required def get(self): return app.send_static_file('index.html')
[ "maxl@cloud-times.com" ]
maxl@cloud-times.com
c7ebab521acef2581282d84fe3c78b369dfb1fd9
311e1bbb15ceef42f87009c1092d69c6dd4c4f22
/app/settings/apps.py
0fcfdea00909e1a287db50640e517e3db1a26e3b
[]
no_license
MarcMeszaros/snapable-api
9780b9ccddb9198a21c81ce1503b13abc71f576b
a2b8edf3fe64144efefa5fd67aa735664a003f55
refs/heads/master
2021-01-19T14:46:44.505212
2017-03-29T23:25:57
2017-03-29T23:38:47
86,636,920
0
1
null
null
null
null
UTF-8
Python
false
false
685
py
# -*- coding: utf-8 -*- from .django import DEBUG ##### Django Applications ##### # Prerequisite applications PREREQ_APPS = [ # django related 'grappelli', 'django.contrib.admin', # required for admin 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'djan...
[ "marc@snapable.com" ]
marc@snapable.com
cad20c4f51279f76807c6255440f61e50af0a57c
8af0d7b795aee26814c2cb41e2bcd60918252bb7
/__pycache__/my_sol.py
e5f8eb3fd56eafc0e0d86eeaa103748f5fa10b76
[]
no_license
BYU-ACM/warm-up-day-1-dslunde
8676194f34197fce659eff123c299700f5017720
00ed7aab0731ab687739d5b6d8504e44c6dd1932
refs/heads/master
2021-01-13T12:51:34.157089
2017-01-12T17:30:50
2017-01-12T17:30:50
78,466,764
0
0
null
null
null
null
UTF-8
Python
false
false
701
py
def Newtons_Method(func, func_prime, x_0, iters=100, tol=1e-5): """A direct implementation of Newton's Method (For sanity assume that func and func_prime define there own division correctly, that is, don't cast anything to a float) params: func: a function, fuc_prime: its direvative ...
[ "lukenelson1298@gmail.com" ]
lukenelson1298@gmail.com
24cb6c3a67ae7bc19c1ae3f84687dc2139f3fe08
728137c559764eb29bb65fe639c034c80260c452
/get_taobao.py
f1d285a38eef8ec6c3dd785b44e1b6195036f578
[]
no_license
2335904825/grap_taobao
6af328804c54f394d29756f351d727a73b2351e9
ced17bdb189490ecdd4e8c9a0c235d6baf41364a
refs/heads/master
2022-01-20T21:20:55.502113
2018-11-14T02:04:35
2018-11-14T02:04:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
# 访问页面 from selenium import webdriver browser = webdriver.Chrome() # 声明Chrome对象 browser.get('https://www.taobao.com') # 访问淘宝,获取源代码 print(browser.page_source) # 打印淘宝页面源代码 browser.close() # 关闭浏览器
[ "noreply@github.com" ]
2335904825.noreply@github.com
c80f305da8e406595a7bbbb1704800c5e8a18ee3
3b03ddc20c42c2216a250fb5b200332f0f4e8542
/pps_kurs/register/migrations/0008_auto_20190513_2055.py
2463c7589286ef17e24479914b21763fe560e712
[]
no_license
nicolre239/NicosTinder
8482d3f33ec4a38c31091138d4dca6b7ed867a8b
e3cb8a372d103f24a3f507af403f5dc1db8aa15d
refs/heads/master
2020-05-23T16:56:11.747723
2019-05-15T15:54:29
2019-05-15T15:54:29
186,858,180
1
0
null
null
null
null
UTF-8
Python
false
false
1,987
py
# Generated by Django 2.0.2 on 2019-05-13 17:55 import django.core.validators from django.db import migrations, models import re class Migration(migrations.Migration): dependencies = [ ('register', '0007_auto_20190513_1715'), ] operations = [ migrations.AlterField( ...
[ "noreply@github.com" ]
nicolre239.noreply@github.com
fab333189b8e123f6d48aa71e671acf10d5c5066
cc1f5838f4b5055b400a502c161f68418bbfbd3f
/main.py
1b6d2a31108f518e59f1d178eb7504930c0a715c
[]
no_license
AntoCat93/HW5_G26
9d1580147cde8863b83b423c27d9828e2234a8a3
cc34f1bc263a128509ca95f257df323a75086253
refs/heads/master
2020-09-29T07:30:02.824026
2019-12-24T19:05:59
2019-12-24T19:05:59
226,987,212
0
0
null
null
null
null
UTF-8
Python
false
false
2,978
py
import pandas as pd import networkx as nx import numpy as np import functionality1 as f1 import functionality2 as f2 import functionality3 as f3 import functionality4 as f4 import create_graph def getFunction(i): if i == 1: print("functionality 1 called\n") functionality1() elif i == 2: ...
[ "noreply@github.com" ]
AntoCat93.noreply@github.com
14caeee5c4cf7465a4be45c330290977d7bd01f1
fe7c9fdbab89c7e2ba9eb21455590097700d396c
/Community_Management_Applets/web/message.py
dff6b02ee9c5d57e3c7d143d50f8b370ee559009
[]
no_license
Alien-Leon/Community-Manage-Applet
b2e1696747e2e6980c3374abe9bc694282226531
0a567a424880b8dd33dd4ebc37ad75d6eaafc2b3
refs/heads/master
2020-03-08T02:22:40.633513
2018-04-18T08:05:21
2018-04-18T08:05:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
import json from django.http import HttpResponse, JsonResponse from django.core import serializers from web.user import decodeToken import logging from web.models import User, Message from django.utils import dateformat logger = logging.getLogger('django') # 新建消息,request中提交 需要通知的人 def createMessage(request): pass...
[ "305141121@qq.com" ]
305141121@qq.com
ec8ecf9c1634b200fa162ab6b6ba5afabffcb667
820170fe46d3035c67da7bcf7e524f8a95648301
/src/models/algorithms_/cv.py
5a07c740fbf264bdcefd67df595e5f16a46943d4
[ "MIT" ]
permissive
voyagewsr/rice-elections
5e6504652a3645b40eaf01b6816c18e5cc38ac71
f9210ce456ecf3f8cf4becf6c764a419df9c937f
refs/heads/master
2020-04-05T19:04:30.121380
2015-10-03T19:32:12
2015-10-03T19:32:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,233
py
""" Cumulative voting algorithm for the app. """ __author__ = 'Waseem Ahmad <waseem@rice.edu>' import logging def get_counts(ballots): """ Returns the number of votes for each candidate in the ballots. """ counts = {} for ballot in ballots: for candidate, votes in ballot.items(): if candidate not in counts...
[ "waseem@rice.edu" ]
waseem@rice.edu
fc414fb234cdb876b860f8c4fd4b21388b380bfd
6f761775e3c7bc9470491c0920e5275e344296a0
/data/data_bogota/join_vid_labels.py
f4f58e19020d5cdba0583c820107bd1b6f76ad51
[ "MIT" ]
permissive
tebandesade/Detectron.pytorch
6da394bbbc7fd8d6bf847e1467338c865c43548d
b442cda4a415d47abf6bcf40261b6c9bd72bd6dc
refs/heads/master
2020-04-16T00:11:27.654572
2019-01-10T21:23:45
2019-01-10T21:23:45
153,905,492
0
0
MIT
2018-10-20T12:54:57
2018-10-20T12:54:57
null
UTF-8
Python
false
false
2,148
py
import argparse import os import sys import json def parse_args(): parser = argparse.ArgumentParser( description='Convert a Bogota labels into one label file') parser.add_argument( '--dir_json_files', dest='directory_json_file', help='Pretrained network weights file path', defa...
[ "esteban.galvis@rappi.com" ]
esteban.galvis@rappi.com
c4d070d30d24b5a4810b47a01dc3f3ad18de75f7
bb0203eb2960a33b2fc2b84eab7c69ff5ba15d8b
/3itemsets_step3_reducer.py
8a66b2f33e9bcfc626071b62d11e21c057444dd6
[]
no_license
vikassable/Frequent-Itemset-Mining-using-Hadoop-MapReduce-framework
1340cb7695802674a50068496eeee75bff4ade0c
c0c99f7f787656da3ce6098325ed69e5101b08e0
refs/heads/master
2021-01-25T05:56:36.003203
2017-02-02T08:26:26
2017-02-02T08:26:26
80,706,398
0
0
null
null
null
null
UTF-8
Python
false
false
1,301
py
#!/usr/bin/env python import sys current_item_1 = None current_item_2 = None current_item_3 = None current_count = 0 item_1 = None item_2 = None item_3 = None # input comes from STDIN for line in sys.stdin: # remove leading and trailing whitespace line = line.strip() # parse the input we got from mapper.py item...
[ "vikassable2009@gmail.com" ]
vikassable2009@gmail.com
869cbcd717d4522fce402db11a0f1460e1bfc621
5ff8cefa68d52d2427bb3d35320cd8bd0d072968
/Python/StringExample1.py
7a0151c415f069ae83b964413dd1a6c11c307e85
[]
no_license
gsudarshan1990/PythonSampleProjects
a65a111454f8dc551f1cd29901cead0798ad6dc3
3c1a5174c5f966b0eed2828221add76ec0d019d5
refs/heads/master
2020-05-09T16:02:37.743568
2019-07-14T06:22:55
2019-07-14T06:22:55
181,255,262
1
0
null
null
null
null
UTF-8
Python
false
false
1,550
py
string1='banana' print(string1[1]) print(string1[0]) index=0 while index<len(string1): print(string1[index]) index=index+1 for char in string1: print(char) s='Monty Python' print(s[0:5]) print(s[6:len(s)]) fruit='banana' print(fruit[:3]) print(fruit[3:]) #count of 'a' in banana count=0 fruit='banan...
[ "sudharshan.govindarajan@ey.com" ]
sudharshan.govindarajan@ey.com
c179ea5e7b470f608af5d12e7412e8280985256f
34b5dcc6be47b044eabeb38f5536c74076663ff5
/xplane_data/src/Python/src/basicExample.py
9b516bf4d38dff804e12f1b6cf80e9cd100c3ecf
[]
no_license
vegaf1/xplane-acasx
daadc73016ce875f152716d41bd1c2280d76b468
74644f1b0e5e9b1b40a84671eae90f57d8be836a
refs/heads/master
2022-12-13T06:51:57.215205
2020-09-16T23:53:10
2020-09-16T23:53:10
291,315,887
1
0
null
null
null
null
UTF-8
Python
false
false
2,300
py
from time import sleep import xpc def ex(): print "X-Plane Connect example script" print "Setting up simulation" with xpc.XPlaneConnect() as client: # Verify connection try: # If X-Plane does not respond to the request, a timeout error # will be raised. c...
[ "noreply@github.com" ]
vegaf1.noreply@github.com
2ada90a18970f546e92eedfb10c54a5882736e64
9e78a4bbd1303ad3c6e4ecc11b262ba2e2dbc755
/mail/migrations/0001_initial.py
9e520ed5c7e124897de811aecf837176cf07f3ca
[]
no_license
MarceloArraes/mail
ef7c00ae8b3269e7256da0515540a6c6ebafa221
5f72b46dcb3a02b3dfa1e148cf462f52fdd8600f
refs/heads/main
2023-05-13T15:53:54.096783
2021-06-01T20:23:57
2021-06-01T20:23:57
372,915,256
1
0
null
null
null
null
UTF-8
Python
false
false
3,883
py
# Generated by Django 3.1.7 on 2021-05-24 10:11 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True ...
[ "marcelo.arraes@gmail.com" ]
marcelo.arraes@gmail.com
1ef0b87773f8868ffdcb8fadf7a6abb0bd04b56e
855af02c0dbf44580f7a66f5c21cbf307ed030e7
/customer.py
e04fcbe7d06f6a227bc4ce0a386004e28858c953
[]
no_license
CMolitoris/SodaMachine
d11096bfecc956dff3c4ecfbdbd4fd2e3690cadc
d66da854e2920cbee5201fe450cf7314a1a861dd
refs/heads/main
2023-07-28T00:44:02.809053
2021-09-15T20:25:30
2021-09-15T20:25:30
406,826,321
0
0
null
null
null
null
UTF-8
Python
false
false
2,848
py
from wallet import Wallet from backpack import Backpack import user_interface class Customer: def __init__(self): self.wallet = Wallet() self.backpack = Backpack() def gather_coins_from_wallet(self, selected_soda): """Method allowing user to choose coins from wallet for payment""" ...
[ "60626007+sfodd1@users.noreply.github.com" ]
60626007+sfodd1@users.noreply.github.com
fa36cd8066bd7e0de99c2ce8ac611f1c57fefe9b
7ba43c6d8e1dfb983ea931a84c32a61b4fac3e17
/db_connect.py
f3f55520cf936c835208b5ade06790e802234499
[]
no_license
NandaKrishnaAchar/Virtual_Tour_Guide
b2a96b437ba8fc3bb0b6e2611963b53c1fc8ced4
8dbc2710427e424d933306fa42dfd2a8e0f7662f
refs/heads/master
2020-12-06T07:46:55.620647
2020-01-21T08:35:20
2020-01-21T08:35:20
232,396,785
0
0
null
null
null
null
UTF-8
Python
false
false
11,816
py
import mysql.connector from math import sin, cos, sqrt, atan2,radians from mysql.connector import Error def read(key): try: connection = mysql.connector.connect(host= "ec2-13-233-208-238.ap-south-1.compute.amazonaws.com",port=3306,database="tour_guide",user= "ec2-user@13.233.208.238",password= "Hello123@")...
[ "ec2-user@ip-172-31-39-28.ap-south-1.compute.internal" ]
ec2-user@ip-172-31-39-28.ap-south-1.compute.internal
03add3c2b431e10d9db6a9da1e3ac33ba5a3f9bb
7661c9f14a749f7ffd4e78299ded5dd72b46553e
/test_drone.py
555351b679c7013106ce8ca6a8237ee6fb42ec65
[ "MIT" ]
permissive
ysbsb/dqn
8ae4edff0f900fd1efcda6d0378d1f313d88b673
e1b9175a5c9dc2fb7b633b4df54c33fbba7e1e15
refs/heads/master
2020-05-22T14:35:43.135505
2019-05-14T04:48:59
2019-05-14T04:48:59
186,390,590
1
0
null
null
null
null
UTF-8
Python
false
false
283
py
import setup_path import airsim quad_state = client.getMultirotorState().kinematics_estimated.position print(quad_state) quad_vel = client.getMultirotorState().kinematics_estimated.linear_velocity print(quad_vel) collision_info = client.simGetCollisionInfo() print(collision_info0)
[ "subinlab.yang@gmail.com" ]
subinlab.yang@gmail.com
cca4f326881b15371850888934377eecf1fcedaf
51404fbeaa7d9206ecbe391c51bce1e3d326c343
/tcapi/TrueCallerApp/models/ResponseModel.py
9237cce97d063bb5674c1564cdb17f2feeebf463
[ "MIT" ]
permissive
sumansaurabh-hl/TrueCallerAPi
d9cdf3145f95fa6f656d1677221032e12a4db8f4
cc436bc9e449d1e3fd631b917ce660621c31aa02
refs/heads/master
2021-01-22T16:26:23.265240
2015-12-17T21:45:22
2015-12-17T21:45:22
48,216,271
0
0
null
2015-12-18T05:30:18
2015-12-18T05:30:17
null
UTF-8
Python
false
false
260
py
''' Created on 18-Dec-2015 @author: Suman Saurabh ''' """Models for Reposne""" class ResponseModel(): def __init__(self, status, status_code, data): self.status = status self.status_code = status_code self.name = data
[ "ss.sumansaurabh92@gmail.com" ]
ss.sumansaurabh92@gmail.com
fcb79f278a8f1e5d249d575d5ed6236be4a75657
a16017afee12414548861868dd37df6b67bd92dd
/funciones.py
373d85f20892ff7217f9444d0b6999268acc9ad6
[]
no_license
jeyfredc/Curso-basico-de-python
bb1ec25d96fdccdcef1fc704b5b38677018a92ea
27fd41d25f5295da28981cc6ffd49bdb9a9af106
refs/heads/master
2022-12-10T05:54:43.502058
2020-08-25T15:13:08
2020-08-25T15:13:08
290,247,785
1
1
null
null
null
null
UTF-8
Python
false
false
718
py
# def imprimir_mensaje(): # print("Mensaje especial: ") # print(" Estoy aprendiendo a usar funciones") # imprimir_mensaje() # imprimir_mensaje() # imprimir_mensaje() # def conversacion(mensaje): # print("Hola") # print("como estas?") # print(mensaje) # print("Adios") # opcion = int(input("E...
[ "jeyfredc@gmail.com" ]
jeyfredc@gmail.com
36285789abf8779b6a8b656e015888fb423da612
2f4c2ceccb8b11517348f3b69a373af0f444b974
/{{cookiecutter.project_slug}}/tests/conftest.py
b11bd426572e8944cdfe852a65be14627c0e1134
[]
no_license
coffeepenbit/cookiecutter-template
89554c8881e854311fff619c34655429acd180a0
b5f28008206925fcbdaf3b990679892988ff390c
refs/heads/master
2021-06-13T21:15:19.455537
2021-05-31T14:22:17
2021-05-31T14:22:17
254,445,425
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
# import pytest # class Helpers: # @staticmethod # def foo(*args, **kwargs): # return "bar" # @pytest.fixture # def helpers(): # return Helpers
[ "coffeepenbit@gmail.com" ]
coffeepenbit@gmail.com
ff31f0a63b3ffceed5797ba68f901317547c2b91
4f16d77e19afe6c6e91412bd9acf69be3d3b246e
/Code/ad_utils.py
922452a3e15f4674b6ba9366f1bc4bacf10c359f
[]
no_license
dishajain1211/Road-Accident-Analysis-and-Prediction
58b72bc3e9eca2f6c98139e2a715e04f22164c25
90dbf1d9e1b7f7da130e2a8c1b765c85c37748d8
refs/heads/master
2023-03-08T06:23:18.745390
2019-03-08T04:21:19
2019-03-08T04:21:19
341,395,873
0
0
null
null
null
null
UTF-8
Python
false
false
8,841
py
# -*- coding: utf-8 -*- """ Created on Thu Jan 17 23:50:53 2019 @author: ADITYA """ import pandas as pd import numpy as np def major_minor_stat_creation(path1, path2, year): ''' Functions that takes an year and 2 file paths: path1 and path2 for the major and minor road traffic statistics CSVs, then retu...
[ "adityamagarde26@gmail.com" ]
adityamagarde26@gmail.com
5ce37c664f84eece3f2ea38b7c93a91038308dbc
3c63a5291effa07adb548ffc4d64679c13137edc
/adv_patch_target_cross_train.py
11365b73ea6a5fbd6d83f97d9fde5780dea5c813
[]
no_license
ZihanLiu95/UAP_EEG
60f16063e63e9297263771a8bc5ac074d8871378
c6cdd072ef414f3a1371ed3f05320eaba4ebc057
refs/heads/master
2020-09-23T01:03:13.064125
2020-07-09T15:50:07
2020-07-09T15:50:07
225,361,103
11
3
null
null
null
null
UTF-8
Python
false
false
8,459
py
import old_models import keras.backend as K import os import utils import numpy as np from scipy.io import loadmat import tensorflow as tf if __name__ == '__main__': K.set_image_data_format('channels_first') K.set_learning_phase(0) #set learning phase os.environ["CUDA_VISIBLE_DEVICES"] = '7'...
[ "noreply@github.com" ]
ZihanLiu95.noreply@github.com
f0d6f15d44a068c3adc61a1ee56a242178067657
36bf2000b0973dd465115654d7ee46d7c16efcdd
/WebappDraj/webapp/urls.py
47ee49cc91163f9743dc84e5fd97e6d37bae600a
[]
no_license
dannydhs/WebappDRAJ
2477dadaba308b0a0718e7e61d0111a5e64b7f88
05d3bd064fe2e7f1274754c0a25a64dd583e3319
refs/heads/master
2016-08-11T13:36:41.700050
2015-12-16T20:21:57
2015-12-16T20:21:57
47,890,915
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
from django.conf.urls import include, url from . import views urlpatterns = [ # url(r'^$', views.inf_estad_list, name='first-view'), url(r'^$', views.search, name='search'), ]
[ "danny.dhs@gmail.com" ]
danny.dhs@gmail.com
a821b7476c8f38c2679e241169a4e01ca9220af4
779c469b548d42dc679bf34da6041c813a7ce9cc
/sphinx_template/my_package/viz.py
3026a4ac69e8fb1c3f86813e32afdc92271c6376
[ "MIT" ]
permissive
millerbest/zero_to_docs
b2e68af564db8f47441d44ded18c3a8a3b0c21f2
3f5c72ca76c457fefaba9b2a182e11cc89e5bf6d
refs/heads/master
2021-08-14T14:35:37.415612
2017-11-16T01:08:21
2017-11-16T01:26:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
import numpy as np import matplotlib.pyplot as plt def plot_random_dots(N, scale=10, ax=None, cmap=None): """Plot some random dots""" if ax is None: fig, ax = plt.subplots() if cmap is None: cmap = plt.cm.viridis dots = np.random.randn(2, N) size = dots * scale ax.scatter(*dots...
[ "choldgraf@berkeley.edu" ]
choldgraf@berkeley.edu
39a8852e875c0852577e8c9e9103df9b6f18d343
6deafbf6257a5c30f084c3678712235c2c31a686
/Toolz/sqlmap/waf/asm.py
17244efb49a3344e7790047f270fd98805bfc3e7
[ "Unlicense", "LicenseRef-scancode-generic-cla", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-proprietary-license", "GPL-2.0-only", "LicenseRef-scancode-commercial-license", "LicenseRef-scancode-other-permissive" ]
permissive
thezakman/CTF-Heaven
53fcb4a72afa821ad05d8cc3b309fb388f958163
4b52a2178922f1502ab00fa8fc156d35e1dc653f
refs/heads/master
2023-04-05T18:20:54.680378
2023-03-21T13:47:45
2023-03-21T13:47:45
167,290,879
182
24
Unlicense
2022-11-29T21:41:30
2019-01-24T02:44:24
Python
UTF-8
Python
false
false
671
py
#!/usr/bin/env python """ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ from lib.core.settings import WAF_ATTACK_VECTORS __product__ = "Application Security Manager (F5 Networks)" def detect(get_page): retval = False for vector in WAF_ATTAC...
[ "thezakman@ctf-br.org" ]
thezakman@ctf-br.org
3b7222f3beb1fe52a17515c533ac4149c969c05e
a967358c6d48cc5e74431cf54e1d550ec2906039
/system_test/__init__.py
a3b5105ca6a2a877a6f526a03400c8f8c2732eef
[]
no_license
mattymo/fuel-qa
75eb8f8531480601146fdb72ff3a961a65c01fc9
becdf1dfda86361408153443725c416ba5548926
refs/heads/master
2020-12-28T20:42:13.063576
2015-10-12T10:37:24
2015-10-12T10:37:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
# Copyright 2014 Mirantis, Inc. # # 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 ...
[ "dtyzhnenko@mirantis.com" ]
dtyzhnenko@mirantis.com
e63d841e4301a94d67af431760433d13283c0a2e
ba2a85871a30d2652efa72c12283d433edbd8c99
/pg-test4.py
464057cdaebe7cebb68ab15c4cbba5ae8c39f5e8
[]
no_license
obxfisherman/PyGamevsBerLib
b346533ef4f6fb6f3091347df1d8f4ee64380d4c
a7d8b60aad113b5792af3f6582a96abf74af739d
refs/heads/master
2020-12-03T09:30:12.127441
2017-06-28T04:01:37
2017-06-28T04:01:37
95,626,354
0
0
null
null
null
null
UTF-8
Python
false
false
4,588
py
import pygame import pygame.locals as pg from timeit import default_timer as timer K_ESC=27 K_UP=273 K_DOWN=274 K_RIGHT=275 K_LEFT=276 K_SPACE=32 map=['##############################', '############.......###########', '#####..#####.#####.#s.......##', '####....##.....###.#.....a..##', '###......#.....#.....#......##...
[ "noreply@github.com" ]
obxfisherman.noreply@github.com
a7c863e1af7119c5c21585f3284bec27c30eca3f
fbcf69cda8cfe62c4c0bac87baff7ee717d0dc39
/baidu_autosign.py
cd62322ece7ea88e03df1fb6bd8a4c176c299394
[]
no_license
santosli/baidu_autosign
fcb43ae32f56c156a975939f86f9c02debcbc173
eeef46a45cb16dd69961cabc99de1ea3887416b3
refs/heads/master
2021-01-21T06:59:32.449281
2014-04-18T09:32:01
2014-04-18T09:32:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,894
py
# -*- coding=utf-8 -*- import baidu_autologin import re import urllib import urllib.request import multiprocessing import json import pickle import os import time from urllib.parse import urlencode TIEBA_URL = "http://tieba.baidu.com" GETLIKE_URL = "http://tieba.baidu.com/f/like/mylike" SIGN_URL = "http://tieba.baidu...
[ "lituo.lt@alibaba-inc.com" ]
lituo.lt@alibaba-inc.com
8c3d5a4e455cc93c7fe599d810fc71e44165e4d1
32c68ad246fe91a00bdd5d34dfc5c1a822f6dff2
/main.py
c98f59f5b1783987ecdb56c750a0b542bed6d858
[]
no_license
pabi777/aws_s3_html_crawler
95ebee40894e52a029142289bebb4848fc7f22e2
befb2a8443f53ddb314a16823ac493f404d185ac
refs/heads/master
2023-04-05T15:55:58.105265
2021-04-21T16:20:38
2021-04-21T16:20:38
360,224,056
0
0
null
null
null
null
UTF-8
Python
false
false
7,245
py
from s3code import AwsS3 from pathlib import Path from lxml import html import requests import re from db import Dbconnect import os import json from time import sleep import datetime import logging #create and configure log LOG_FORMAT="%(levelname)s %(asctime)s - %(message)s" logging.basicConfig( filename="awsS3D...
[ "rpabitra7@gmail.com" ]
rpabitra7@gmail.com
d8152c4a605711d90864cc2a48d048f5b32914e5
eb6956b4bded2bc6849471e373f26643ffbeb22a
/bin/pip2.7
1d26b49e31452300cc46d86a25b140a11e0437a3
[]
no_license
pydemo/Py2_installer
41ef43513dbfdac76242ea24932835213afd57af
954097679ac427b4cc1b30824a73ec79589e72d2
refs/heads/master
2022-12-01T19:30:32.007976
2020-08-18T15:44:35
2020-08-18T15:44:35
288,493,190
0
0
null
null
null
null
UTF-8
Python
false
false
250
7
#!/home/ubuntu/build/Python2.7.18/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ubuntu@ip-172-31-40-37.us-east-2.compute.internal" ]
ubuntu@ip-172-31-40-37.us-east-2.compute.internal
ba424adfa45af92edb6264448f7176fcdce80315
896e0259b872dbda069ca5afca191ae1999e1302
/app/auth/email.py
dc5dff55a6a753adba9910d30ab7f169cc98ae02
[]
no_license
XinyaoTian/microblog
9060257f4263331f09079715eadfe98cf0438ca8
0634751ae9a6623ea8f3d2e88f2bdf8b32854de6
refs/heads/master
2020-04-11T20:58:18.448237
2018-12-17T13:01:41
2018-12-17T13:01:41
162,090,278
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
from flask_mail import Message from flask import render_template from app import mail from app import current_app # Asynchronous Emails from threading import Thread def send_async_email(app, msg): with app.app_context(): mail.send(msg) def send_email(subject, sender, recipients, text_body, html_body): ...
[ "xinyaotian@XinyaoTians-MacBook-Pro.local" ]
xinyaotian@XinyaoTians-MacBook-Pro.local
ccffe6039b13a83e976ef96fc3d3c216f70bc359
2e6b3e340bb7b6f3676f5f75e68a9c3db200ccf5
/core-python/vowel.py
9155c64b611c808061e99f765925671902e388ba
[]
no_license
OdedraBharat303/data-science
c65eda069bbc8ce2e1779045afe52c2102c5d50d
8501bb268a731a98e64bd1fdef33de7f9c0cb5b1
refs/heads/master
2022-04-02T06:46:46.697003
2019-12-26T12:43:31
2019-12-26T12:43:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
ch=input("enter character :") if ch=='a' or ch=='e' or ch=='i' or ch=='o' or ch=='u' : print("vowel") else: print("not vowel")
[ "odedrabharat303@gmail.com" ]
odedrabharat303@gmail.com
b4edc3beb67380d9d4809e2c36dd91fda67d0ae0
85b958530cbf8a77c5766f88eb8a6590bdf1ad56
/application/controllers/tutores_grupos/insert.py
990a0c2f518c971a13bb1eb4ad5aa6f86fc0a2ad
[]
no_license
charliecarmona44/tut2018
1e1ed8c56ebf6b2df09b59a5010d8ebbc17d433e
54c796a4bdda29a9c5be371de55804ccc4eb9af8
refs/heads/master
2022-03-13T21:00:05.623926
2019-07-19T15:53:18
2019-07-19T15:53:18
197,802,686
0
0
null
2019-10-31T08:23:54
2019-07-19T15:51:11
Python
UTF-8
Python
false
false
633
py
import config import hashlib import app class Insert: def __init__(self): pass def GET(self): tutores = config.model_users.get_all_users().list() grupos = config.model_grupos.get_all_grupos().list() return config.render.insert(tutores,grupos) def POST(self): ...
[ "53064537+charliecarmona44@users.noreply.github.com" ]
53064537+charliecarmona44@users.noreply.github.com
46c0e8f08f039290ec8f40bc42a68af58fe04748
52de1d3dc55abd1471fa1a0adc4c3b954852e85a
/day4.py
afe8ea0376435e70bdbd4a33eb282d397b1f8afe
[]
no_license
PymZoR/adventofcode-2019
9f060ddb2f7f11f32e5c2fa9e06a89065929a11e
10039cfada40a9e7616b70137e7390c989f42faf
refs/heads/master
2020-09-23T03:07:54.504182
2019-12-20T11:26:33
2019-12-20T11:26:33
225,381,435
0
0
null
null
null
null
UTF-8
Python
false
false
728
py
from collections import Counter def is_valid(password): password = list(map(int, str(password))) double_digit = False for i, j in zip(password[:-1], password[1:]): if j < i: return False if i == j: double_digit = True return double_digit def is_valid2(passw...
[ "axel@mousset.me" ]
axel@mousset.me
b8d48c4047d37db80c93ee2254b133f44f338cb3
20e294c7392ca0f166bfab22fbfa8acd1713a0fa
/api/viewsets/curso.py
51952a61838ed5771f3312c7cf0f60ef1d37732f
[]
no_license
CFredy9/Aula-Virtual
a2e2b775d02d62f7967daf8667110b0b4ae6f839
e2546cdf23e9018869a16b45e5539cfbe090a497
refs/heads/master
2023-03-27T23:49:49.525178
2021-03-26T22:38:36
2021-03-26T22:38:36
351,926,502
0
0
null
null
null
null
UTF-8
Python
false
false
1,643
py
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import status, filters, viewsets from rest_framework.decorators import action from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.response import Response from rest_framework.settings import api_settings ...
[ "fredydcg98@hotmail.com" ]
fredydcg98@hotmail.com
15ce47b77d102c44291a54c9fa236a23b9286b9e
b5931c39a2cc062860cb737b7fbf86e3da5d432a
/script_frs/make_templates.py
015e1b381c5a84ca76540b95241515e8b115a0c5
[]
no_license
savardge/borehole-energy-detector
bd150534c25b020c8999ead75996db50e6225cdc
af6a5c885028aeffa394764c8493e75215c65f0e
refs/heads/master
2023-03-01T19:08:00.778129
2021-02-03T16:50:41
2021-02-03T16:50:41
323,465,265
0
0
null
null
null
null
UTF-8
Python
false
false
16,554
py
from glob import glob from template_gen_modified import * import sys import time from multiprocessing import cpu_count import matplotlib.pyplot as plt import matplotlib.dates as mdates from eqcorrscan.core.match_filter.helpers import _total_microsec from eqcorrscan.utils.findpeaks import decluster from eqcorrscan.core....
[ "genevieve.savard@ucalgary.ca" ]
genevieve.savard@ucalgary.ca
7f770482443f9fc7308c485b101c80854f4538d1
5fd2ba9d580eaae49bd2e69b174d16db66ac7960
/ex004.py
0b2530fd5fbb69be89cbd329919f359cd3b34509
[]
no_license
a-pallotto/project-euler
6b1526b9e2e23c485200e01de6ff797c40dd1d3f
d5111221dbe3327af5e04e3a95b0764c3c7d8aea
refs/heads/master
2020-05-15T23:56:27.699416
2019-05-20T16:30:15
2019-05-20T16:30:15
182,565,300
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
# -*- coding: utf-8 -*- """ Created on Sat Jun 2 18:44:58 2018 A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. @author: pallo """ p=[] for a in...
[ "noreply@github.com" ]
a-pallotto.noreply@github.com
83a7cf76438adbf0701b18c3ad90a86a5c6c7c4f
880a56c0eebcce3376d1969bb8b084d82b90f535
/xos/tosca/resources/vcpeservice.py
2a6a56db92968457ed9e7b053b4e159a17d86f92
[ "Apache-2.0" ]
permissive
digideskio/xos
9f590a3a2703198c4d5b9b2fa27a3b9a94c14b96
9c98f28793ce4b2e4be96665e7f06b9cf9b59315
refs/heads/master
2020-12-03T08:13:08.982841
2016-04-06T00:39:06
2016-04-06T00:39:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
import os import pdb import sys import tempfile sys.path.append("/opt/tosca") from translator.toscalib.tosca_template import ToscaTemplate from services.cord.models import VSGService from service import XOSService class XOSVsgService(XOSService): provides = "tosca.nodes.VSGService" xos_model = VSGService ...
[ "smbaker@gmail.com" ]
smbaker@gmail.com
d2d18338371df02f19a8aa511ed62c3486298a71
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/437116_Wrapper_class_heapq/recipe-437116.py
0d8f07bdf229fd1e0efdc4a367c438cd088d4c8f
[ "MIT", "Python-2.0" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
3,197
py
import heapq class Heap(list): """This is a wrapper class for the heap functions provided by the heapq module. """ __slots__ = () def __init__(self, t=[]): self.extend(t) self.heapify() push = heapq.heappush popmin = heapq.heappop replace = heapq.heapreplace he...
[ "betty@qburst.com" ]
betty@qburst.com
6639648744ca574bca11262090ef45b821dbd9fd
6475c5dce82cf19b29cce6c289ed276f9bf49c1b
/ewutils.py
0008fd06a1f7ba3b658356158ea15d6e3a203d87
[]
no_license
dunekun/endlessexpansion
ba7e2a9180c119a3cb8d26d8e9bc215c9a373c7c
ac733e551802e8b7ce11f2910d681875f458df5c
refs/heads/master
2022-12-27T08:23:14.472750
2020-10-11T00:35:52
2020-10-11T00:35:52
294,763,896
1
0
null
2020-09-11T20:25:20
2020-09-11T17:33:34
Python
UTF-8
Python
false
false
92,670
py
import sys import traceback import collections import MySQLdb import datetime import time import re import random import string import asyncio import math import ewstats import ewitem import ewhunting import ewrolemgr import discord import ewcfg import ewwep from ew import EwUser from ewdistrict import EwDistrict f...
[ "noreply@github.com" ]
dunekun.noreply@github.com
9894849a70151301a3833e471cc4d87cfcb06474
16c76363e4be9cbc3c3ae130c5eded4eb39ad532
/Image_rag_shresholding.py
4f22e008deb8f7d0a680f8b0eebb58a8a33e6e8d
[]
no_license
juyingnan/E583_final_project
ec8c0cc002d063c7d7b768b42a32e9b89277b69b
253360e96d2cd9bc4d6e9f1b22b015ecf9e19a6b
refs/heads/master
2020-03-10T16:49:17.109748
2018-04-22T22:06:36
2018-04-22T22:06:36
129,483,672
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
import os from skimage import io, segmentation, color def get_rag_thresholding_img(original_img): labels1 = segmentation.slic(original_img, compactness=30, n_segments=400) out1 = color.label2rgb(labels1, original_img, kind='avg') return out1 def image_rag_shresholding(root_folder_path): os.chdir(roo...
[ "bunny_gg@hotmail.com" ]
bunny_gg@hotmail.com
554155c5b58023f06b42087e6c190c720ecafb45
ae3fc7e3880f5a743c66964ba3cc56bc84ce83be
/q3/q3/prop.py
5df852a4b9ed298fa6f2b23dc6249d24bcd526ee
[ "0BSD" ]
permissive
brucelevis/makaronLab
3c9fe0cae9c20e26d932d51075a5b0dc83e3083e
6a4c1b4e8081d809f9c01949c0736db3c5aaaede
refs/heads/master
2023-03-18T09:01:16.914820
2021-03-06T15:39:04
2021-03-06T15:39:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
49
py
PositionX = 'PositionX' PositionY = 'PositionY'
[ "virtimus@gmail.com" ]
virtimus@gmail.com
dd1f398199be3369f4e8087a3f241eddeec12943
b5134378c8043be5252b9693e4bcc67bd74133ce
/wk_oa/apps/goods/migrations/0001_initial.py
2e9701605562b84a90bddc55d69300b1160a43c7
[]
no_license
nancb/mywk
fb28326955e478f4d78cfc715b52d0fe0b9f4d0c
e612ca034bd9b591d82ece8d1bafdbc8531c5d1e
refs/heads/master
2020-06-13T08:12:05.689416
2019-08-20T15:34:26
2019-08-20T15:34:26
194,264,355
0
0
null
null
null
null
UTF-8
Python
false
false
2,706
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-06-29 06:45 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
[ "393437317@qq.com" ]
393437317@qq.com
e615847647e3408467b52af1a53f6216991fc4c8
3ce041930ae6639acdb5f49ef460bfc1a400edf6
/wow.py
910cf5585ed1ebe829443617b25815ea1a555176
[]
no_license
ErHemjyotiKalita/Dawn
53ec87bb2461d6f4016b10c295fced7843257b05
2751cb9a2a07c606a5ae934feb564c3390ec007b
refs/heads/master
2020-05-18T05:27:07.426985
2019-04-30T06:56:25
2019-04-30T06:56:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
28
py
print("Push") print("Pull")
[ "evanhem@gmail.com" ]
evanhem@gmail.com
2a4127a44f82d3a0aada390d5626766f7572a2a9
c4ce227145d174245ee32ee696189ef7e82a32a2
/studentapi/api/models.py
3c01767b2ff4587132c0e9eabe4ec1094ca75e64
[]
no_license
Bansalnaman5/restapi
6475bb57228e217e6da87cc57762958045e47eec
02814b946a9c21a643b75b070f13670cf163c290
refs/heads/master
2023-06-24T01:04:00.172213
2021-07-16T04:40:04
2021-07-16T04:40:04
386,510,083
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
from django.db import models class Institute(models.Model): C=(('s','school'),('c','college')) name=models.CharField(max_length=100) institute=models.CharField(max_length=1,choices=C) def __str__(self): return self.name class Student(models.Model): G=(('f','female'),('m','mal...
[ "namanbansal@namans-MacBook-Pro.local" ]
namanbansal@namans-MacBook-Pro.local
d0231b3d4a95f8c09fed445a9b6ce128b91fbf94
66b89bc30ae94904914aed04985124b2d197122d
/银行柜台问题/trans.py
c82bd1d177c7a5acca0e7539bc20078dd769bbc7
[]
no_license
qiyunhan/Operation-System-Projects
0c249b0106601803bc50c121f5c0d8cd49d0dc44
a5aa6f36bd9708227b83fe92fb35e0cccf320ff9
refs/heads/master
2020-05-15T05:29:03.431691
2019-04-18T14:49:39
2019-04-18T14:49:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
filename = "result.txt" filename1 = "trans.txt" g = open(filename1,'w'); with open(filename,'r') as f: for line in f: line.strip('\n') g.write(line) g.write("\\\\") g.write('\n')
[ "noreply@github.com" ]
qiyunhan.noreply@github.com
dca1794c0366086a5dbb8c44c593ea77fa8506f9
bf45a14b4f14eacbe5e5bcf5a782f80069855d75
/app/main/views.py
06c0da034325e7bc3c825b788956f5ed9b0957c3
[ "MIT" ]
permissive
philipiaeveline/-WORLD_PITCHES
221033df21296addb30dab490cbf5092bbf6ef49
793d9a4bb93d5c469cdb8acd54b18274983d44e0
refs/heads/master
2023-01-23T00:16:14.904543
2020-12-08T16:31:38
2020-12-08T16:31:38
319,344,284
0
0
null
null
null
null
UTF-8
Python
false
false
3,581
py
from flask import render_template,request,redirect,url_for,abort, flash from . import main from flask_login import login_required, current_user from ..models import Pitch, User,Comment,Upvote,Downvote from .forms import PitchForm, CommentForm, UpvoteForm from flask.views import View,MethodView from .. import db import ...
[ "philipiaeveline13@gmail.com" ]
philipiaeveline13@gmail.com
26e76f2506a971db28f7590d3905b0a76d987841
057c75fb52f8080386ae96ff0b7b84c0ad68420f
/Task-5/Task-5.py
14e3b07a4f2d59b61f0b597e30576d876429b8ad
[]
no_license
RomilZalavadiya/Akash_Internship
65ce737979db50ea37cf35ccbdb589cba349d259
996f9844b157da4d52a88742eceddc79820459bb
refs/heads/main
2023-05-31T08:09:09.439880
2021-06-14T09:17:13
2021-06-14T09:17:13
376,763,407
0
0
null
null
null
null
UTF-8
Python
false
false
6,281
py
#!/usr/bin/env python # coding: utf-8 # In[19]: #1.Create a class cal1 that will calculate sum of three numbers. Create #setdata() method which has three parameters that contain numbers. #Create display() method that will calculate sum and display sum. class cal1: def setdata(self,a,b,c): self.a=a self...
[ "noreply@github.com" ]
RomilZalavadiya.noreply@github.com
e94b4be4ff3d613dcbc60a1e67cda89b872df592
016b91e95be412ca60bab7c50d7ab5495d23613c
/tutorial/tutorial/spiders/scraper.py
1e9ae4eb938c6e477dae550a857af10347850691
[]
no_license
EMOholcicka/kolobezky
00c49b3e8d0a11fea283c690a4be0556dc8b9cc0
4d85e6a8a3e7a3f1092f395736c4442510741907
refs/heads/master
2020-03-29T03:51:34.019218
2018-09-22T13:35:42
2018-09-22T13:35:42
149,504,158
0
0
null
2018-09-22T13:35:43
2018-09-19T19:49:15
null
UTF-8
Python
false
false
900
py
import scrapy from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector class BrickSetSpider(scrapy.Spider): name = 'brick_spider' start_urls = ['http://brickset.com/sets/year-2016'] def parse(self, response): SET_SELECTOR = '.set' for brickset in response.css(SET_...
[ "cartous@gmail.com" ]
cartous@gmail.com
07429b6879f054b600fb5a4eef6ac5a978e6a3c6
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Tools/RunTimeTester/share/RTTRegression.py
19c13f5f565c3c5ef12dd5971cc99fc2fc4f666e
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
4,958
py
###################################################### # # # Do NOT bind any objects (self.xxx) which contain # # file objects (such as self.logger in this class # # otherwise cannit shelve the objects # # Instead, unload the necessary variables in ...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
7b3675746bf80df02c8eef31f5fff7ee2d50d8f2
f963dd57aeb11090dd6f35a2e60fb767c671ae15
/lib/dataset/__init__.py
e0c2e55361477e56c863248fc4fbf709082cc21c
[ "MIT" ]
permissive
McSohan/FCIS
372ce22f43c81d95b0f08c8524693dde2d1e98be
57137c5affc266851a26f2acc91efeb2bf829b62
refs/heads/master
2022-12-03T22:09:49.713857
2020-08-28T06:48:42
2020-08-28T06:48:42
290,959,364
0
0
MIT
2020-08-28T05:30:56
2020-08-28T05:30:55
null
UTF-8
Python
false
false
194
py
from imdb import IMDB from pascal_voc import PascalVOC from pascal_voc_segmentation import PascalVOC_Segmentation from cityscape_segmentation import CityScape_Segmentation from coco import coco
[ "macshqi@gmail.com" ]
macshqi@gmail.com
babb37528b352341402086efc890886abb1fc04c
0bdacf99de198504ba16d49317efbd41d949d540
/python/pilot.py
0ace2a645962db2d7808d580233415a9adf59c49
[]
no_license
a4a881d4/gmsk
6d41b7debbdd771a53a1bec6de2774ad614d31c0
c0a73a9f68cb8ffe99e918dd401d05a7416956fb
refs/heads/master
2020-05-20T09:32:05.353029
2014-09-18T06:06:00
2014-09-18T06:06:00
22,413,563
3
0
null
null
null
null
UTF-8
Python
false
false
136
py
import mseq def pilot(s): r = [0,1,0,1,0,1,0,1,0] aS = mseq.mseq(0x25) aS.set(s) for x in range(31): r.append(aS.ce()) return r
[ "dodo@dodo-PC.(none)" ]
dodo@dodo-PC.(none)
ebef2756d9eb6d50176dcea2241064a9aea52d74
395cbb59558a09081c69a32cce5926d6c7d903ed
/openvino_test.py
7afe2da182a1f6112b1ca687ca14ae7a4b5a783e
[]
no_license
gplast/OpenVINO-YOLO
58bff849df172081ce184e82e647b5a82de017bf
1d408ffe35955fe31be80689de89f32f962d45f9
refs/heads/master
2020-04-28T13:10:43.177795
2019-03-14T22:29:32
2019-03-14T22:29:32
175,300,078
0
0
null
null
null
null
UTF-8
Python
false
false
10,752
py
import sys, os, cv2, time import numpy as np, math from argparse import ArgumentParser from sys import platform if platform == "win32": sys.path.insert(0,'C:\Intel\computer_vision_sdk\python\python3.6') from openvino.inference_engine import IENetwork, IEPlugin yolo_scale_13 = 13 yolo_scale_26 = 26 yolo_scale_52 = ...
[ "gplastiras@gmail.com" ]
gplastiras@gmail.com
54302c269cc89e15945e918f98b083dcd348c3db
38e02b77d8e0f300184925225e59f25ed9426c27
/app/views/__init__.py
62673579f85e3b35a1e50baa887ca700d0c7ae4a
[]
no_license
dadiletta/Kachow
294ab242d08ee96ea5aaf3744e3d234494f7b339
6c021f4dfc80751dbea8fc267b535f32f35845ef
refs/heads/main
2023-08-28T11:09:31.695690
2021-10-25T19:09:08
2021-10-25T19:09:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
""" WELCOME """ from flask import Blueprint views = Blueprint('views', __name__) from . import basics
[ "dan.adiletta@gmail.com" ]
dan.adiletta@gmail.com
6bced33df9a7ad503e011d325ec77835e80d3cc3
b3bfac0466b5e00c54dac34ccfa493d7d95d49fa
/HTTP_server.py
f298c02d3255ce5a08986389149bb598689dceaf
[]
no_license
TalBenZvi/HTTP-server
ef2324f9e99359481191d02d7d816bec616bbd1f
2a12e2f797e72c13879bd423a19fc09fbb134148
refs/heads/main
2023-03-15T17:14:17.123265
2021-03-05T16:38:26
2021-03-05T16:38:26
344,860,081
1
0
null
null
null
null
UTF-8
Python
false
false
4,514
py
import socket import sys import os.path # request format MIN_FIRST_LINE_LENGTH = 13 FIRST_LINE_START = "GET " FIRTS_LINE_END = " HTTP/1.1" SPACES_IN_FIRST_LINE = 2 LINE_END = "\r\n" REQUEST_END = "\r\n\r\n" FILE_NAME_INDEX = 4 SPACE = " " DOT = "." CONNECTION = "Connection: " # connection statuses CL...
[ "noreply@github.com" ]
TalBenZvi.noreply@github.com
170b5974377c2010e0e6ae80d052cc8a08dec18a
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/4dab219f99ff457d92c76f4fa70ad98f.py
52042ea3de170bc5f8eedc4c2b7c186736a74912
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
308
py
# # Skeleton file for the Python "Bob" exercise. # def hey(what): if what.upper() == what and what.lower() != what: return 'Whoa, chill out!' elif what.endswith('?'): return 'Sure.' elif what.strip() == '': return 'Fine. Be that way!' else: return 'Whatever.'
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
c02f56bdf75581b3f89adf958571bd4ec907c4cf
eae9ad65a80dca4b53dcc36584c19b40cc4187dc
/src/robot_learning/object_detect/scripts/yolo_loss.py
ade025a4ae47dbf603ffaf8a15b4d8fec5ce5074
[ "Apache-2.0" ]
permissive
janewen134/fyp
fa4a6e1fb7649af00277b458576ec4be181cf8ff
8fb93ac22d21d5d862035ba794fe9d264add2e63
refs/heads/main
2023-04-17T00:36:26.465041
2021-05-08T10:25:13
2021-05-08T10:25:13
364,967,669
0
0
null
null
null
null
UTF-8
Python
false
false
13,357
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import cv2 from random import shuffle import numpy as np import torch import torch.nn as nn import math import torch.nn.functional as F from matplotlib.colors import rgb_to_hsv, hsv_to_rgb from PIL import Image from utils.utils import bbox_iou, merge_bboxes def iou(_box...
[ "jxw1070@student.bham.ac.uk" ]
jxw1070@student.bham.ac.uk
cc76d1185504fedfe83b0820e452a231133d9794
fbac78bb2eef868fd0e9543c388c2a8bc2217f5e
/Games.py
f5a014392e7565e2b6e474b78658fdd11b7bd986
[]
no_license
Zciwolvo/Competetive-programming
9f8d0cd066a565ebc0dd350acf3cc512912ac0a6
76436487f7d09c9a1cff305b76bafbfc84f9deff
refs/heads/main
2023-04-15T04:46:39.616553
2021-04-23T23:19:21
2021-04-23T23:19:21
357,689,612
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
n = int(input()) c = n result = 0 l = [] if 2 <= n <= 30: while c > 0: hi,ai = map(int,input().split()) c -= 1 if 0 <= hi <= 1000 and 0 <= ai <= 1000: l.append(hi) l.append(ai) l_1 = [] l_2 = [] len = len(l) while len > 0: l_1.append(l[0]) l....
[ "noreply@github.com" ]
Zciwolvo.noreply@github.com
9bd57e3b4367ea34fabeee542834d7b36221d447
787fc07acfc1d9d78f38a316a57eadc682e20446
/machine learning/3-NNs/iris_nn.py
ead9a0799be5201dd28582fb7db613cec289d647
[]
no_license
TechwartsPredictThis/Sessions
4b3c77b7e30ed134f0fd554fabfa78e5234e9043
29213c635b7eac20ffee0c9a26e52f1f590ac8ac
refs/heads/master
2020-04-19T07:39:43.452815
2019-04-18T14:18:29
2019-04-18T14:18:29
168,053,714
1
10
null
2019-03-06T15:00:08
2019-01-28T23:15:46
Jupyter Notebook
UTF-8
Python
false
false
2,341
py
import pandas as pd import numpy as np from keras.models import Sequential from keras.layers import Dense from sklearn import preprocessing from keras.utils import np_utils from sklearn.model_selection import train_test_split from ann_visualizer.visualize import ann_viz import matplotlib.pyplot as plt from sklearn im...
[ "noreply@github.com" ]
TechwartsPredictThis.noreply@github.com
831f3e2363aa3dd707369f20512f3a36bbb1e8c9
bccd7d9fca7e0b77c5949d06c15e321e03c6a815
/venv/bin/pip3.6
bec849a3964270520caa93c0b584545dd6f2b881
[]
no_license
stosh99/realPython_flask
e2ce13930b3ec58f091b6e4c9495d88d711a200c
cc84f1479a4bc75b0c78da28428f7d1959667152
refs/heads/master
2021-06-23T00:18:57.680376
2019-09-09T20:43:00
2019-09-09T20:43:00
206,835,703
0
0
null
2021-03-20T01:39:09
2019-09-06T16:40:35
Python
UTF-8
Python
false
false
415
6
#!/home/stosh/PycharmProjects/realPython_flask/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.6' __requires__ = 'pip==19.0.3' 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[...
[ "s.hartman99@hotmail.com" ]
s.hartman99@hotmail.com
c684754a9dd40bbcaeb88b7e53143a8699a488d0
52d69c1c4e1a42b1dddff7a0b30c896dd8165460
/rectangle.py
845eff426559d94c33d429ab4886a50bbb84bed4
[]
no_license
IrinaTelegina/pythonProject1
61467a05dc491fba33255bb4ea458a3aa3578ac6
5231be3bf5945c8616d2955bfc230476b6f3da12
refs/heads/master
2022-12-25T20:59:22.853643
2020-10-09T07:12:42
2020-10-09T07:12:42
296,603,362
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
n1 = int(input("Введите целое число: ")) n2 = 0 while n1 > 0: digit = n1 % 10 #находим остаток - последнюю цифру числа n1 = n1 // 10 #делим нацело - убираем последнюю цифру n2 = n2 * 10 #увеличиваем разрядность числа n2 = n2 + digit #добавляем очередную цифру print("Обратное число равно:", n2)
[ "telegina0204@gmail.com" ]
telegina0204@gmail.com
3aa73cc24b41fafb1129db3dc80eaf31100c64ae
56b6d9bd9f11c098020fa7b55d151e479087d8c2
/JobApplicantEvaluation/src/applicant/evaluate_applicant.py
eca0b2b347979ec1c26ab20c2af3bfe43e1a908d
[]
no_license
janaat22/Software-Design-using-TDD
3677a4dd8104ed06ad8d0ea7756b503823e3a23b
ea24d16d0f9ea8daf1a80bb4b1631f07324660f8
refs/heads/master
2022-04-14T19:09:06.648507
2020-04-13T19:49:01
2020-04-13T19:49:01
255,422,991
0
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
from utilities.evaluation_result import EvaluationResult import os, pkgutil import importlib def get_criteria(): criteria = list(file_name.replace('_', " ").title() for _, file_name, _ in pkgutil.iter_modules( [os.path.join(os.path.dirname(os.path.dirname(__file__)), 'evaluate')])) return {criterion: get_...
[ "janaat22@gmail.com" ]
janaat22@gmail.com
004ecea0a6542ce666563ba4251188cca6b33e4c
3b21217909bc8decee98a1aad2829b18d6691012
/classifier/RandomForest.py
62a4c536e76114562dcbf6e1a1eb88997b89f42b
[]
no_license
Gerolmed/projekt-seminar
2e5d96f6be5e0d7e2ff6a778927ef74ecfad9924
fc9c876a14e4a17ac5324ebc467def5800aac9d7
refs/heads/main
2023-03-11T17:33:26.204880
2021-02-24T21:31:24
2021-02-24T21:31:24
319,693,879
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
from classifier.BaseClassifier import BaseClassifier from sklearn.ensemble import RandomForestClassifier class RandomForest(BaseClassifier): def __init__(self): super().__init__("RandomForestClassifier", ["dict_vec_feature_set_data"]) def construct_classifier(self): return RandomForestClassi...
[ "syxxtel@gmail.com" ]
syxxtel@gmail.com
cc3e998814b3b323d2e636559d63ef4cb8b45789
43aca05999e00d656e52d94c231868bd8a1e9cf4
/database.py
48ca499148e42837637b9f70f518b9daceb737e3
[]
no_license
gurbanli/tiam
7229a2751d095be739b3487d16b4160c0c20ff22
5f093e50e9a06bf8521b31700be17d2fa1ad68d7
refs/heads/master
2022-01-14T04:20:08.154980
2019-05-14T19:24:05
2019-05-14T19:24:05
184,440,057
0
0
null
null
null
null
UTF-8
Python
false
false
1,410
py
import pymysql from hashlib import sha1 class Database: def __init__(self): host = "127.0.0.1" user = "admin" password = "KsV79n#tiam" db = "tiam" self.con = pymysql.connect(host=host, user=user, password=password, db=db, cursorclass=pymysql.cursors. ...
[ "aydingurbanli@gmail.com" ]
aydingurbanli@gmail.com
98e1d0d9b80c2a793e75c78f41b417c5ded3517b
2074782868119fe5b42ecc61c59cd8e387262212
/OOP/student.py
657cfc9b2876edb2c3bda05a3c0fc5f707d1e8e9
[]
no_license
Danielkhakbaz/Python-Fundamental
59902768f817cda48d322c13b2825a8362658dcd
3d0c78c5b8160c2454baf29c0d77c27112dc67ef
refs/heads/main
2023-08-24T00:30:59.066495
2021-10-06T13:20:47
2021-10-06T13:20:47
379,232,778
1
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
class Student: def __init__(self, name, age, grade): self.name = name self.age = age self.grade = grade def get_grade(self): return self.grade class Course: def __init__(self, name, max_student): self.name = name self.max_students = max_student self...
[ "danialkhakbaz.dk@gmail.com" ]
danialkhakbaz.dk@gmail.com