blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
f28822e33cbfcd736db6cbcf9f5ff11dd18a9614
abcc4679e9977e8e92f029da56f80e3cad69ecbb
/app/models.py
00c875aec8e8ce243df5431ff3a634beb7b9d1a0
[]
no_license
emjrymer/MovieRating
ecf2d5d1c096d65c5861f6b6e0511e368a1d4307
3785eeab01ffb23efe402f19bdc1a26bbb6f192c
refs/heads/master
2021-06-04T16:05:58.996506
2016-03-15T20:41:59
2016-03-15T20:41:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,812
py
from django.db import models # Create your models here. class Rater(models.Model): age = models.IntegerField() gender = models.CharField(max_length=2) occupation = models.CharField(max_length=50) zip_code = models.CharField(max_length=10) class Movie(models.Model): movie_title = models.CharFiel...
[ "emjwivell@gmail.com" ]
emjwivell@gmail.com
a74472db035ea74db466460bf3be92ed1ad179cf
5e5a2823a212f8b3b71863b95c73f7b259220070
/runspider.py
e769984489a93842dddebe27c14329e34c9a40e5
[]
no_license
everyday-stoke-phosphate/kyodo_scraping
85f28d59460507e357bf0f7d13c9778136420821
a7bf5c27507174217dbf8d8e3e79ddac7eb3c2f9
refs/heads/master
2021-03-04T06:49:03.876710
2020-03-15T01:55:37
2020-03-15T01:55:37
246,015,135
1
1
null
null
null
null
UTF-8
Python
false
false
449
py
# -*- coding: utf-8 -*- from scrapy.crawler import CrawlerProcess from scrapy.utils.project import get_project_settings def main(): # 設定の変更 基本的にsetting.pyに記述 # 特に何か変えるときには設定内容を指定 settings = get_project_settings() # FEED_URI='results.json') process = CrawlerProcess(settings) spider_name = "kyodo_a...
[ "test@htrghttesjthehukyjthrdjhe.greafewufgwuag" ]
test@htrghttesjthehukyjthrdjhe.greafewufgwuag
1c848701cc7ee159f0646499637a78c5cdd12204
8337a3098a922b37185ab8bf3e1abe52d527c25e
/my_app/migrations/0002_auto_20151104_1503.py
f9d9637d9b77d8e1c662664586618f5272e3a86a
[]
no_license
dimejy2/StatsFootball
f1e72cf29a658985725774e6145802e2f2c1d713
dce84f9a5c217243dba9e1f49efe959e5c90c695
refs/heads/master
2021-01-10T21:59:25.003768
2015-12-01T17:21:13
2015-12-01T17:21:13
47,205,570
0
0
null
null
null
null
UTF-8
Python
false
false
1,222
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('my_app', '0001_initial'), ] oper...
[ "dimejy2@gmail.com" ]
dimejy2@gmail.com
983aa7b87ff0971ad8a96fbf487455eb742081e6
27cf8262cbe20597e61f89bdc2849aaa5c5ce4f4
/dao/reaction_dao.py
420b1a99c48e129bdc5294de13579a84b212162b
[]
no_license
rfgsantos/Moodler-Web-Server
dfa69efa01a7ac10a170c69b4ff969daae82114e
be6b1d414a9f5ff201ce9f01fb721102af1473e3
refs/heads/master
2022-12-10T22:00:29.131783
2018-07-16T03:31:50
2018-07-16T03:31:50
139,902,354
1
1
null
2022-12-08T02:15:15
2018-07-05T21:27:13
Python
UTF-8
Python
false
false
1,756
py
from datetime import date, datetime, timedelta from utils.python_database_connector import DatabaseConnector from dtos.reaction_dto import Reaction class ReactionDao: def __init__(self): self.db = DatabaseConnector() def __new__(cls): if not hasattr(cls, 'instance'): cls.instance = ...
[ "rui.filipe.santos07@mail.com" ]
rui.filipe.santos07@mail.com
ec232876bf6ba4dec0f2ee9821f5917b1a88791d
584aefa111a279250bde4d2d0fa3fc64fda8706b
/models/WGANGP.py
ff09e4911cd4bc750e115cbf2f42ba8bc9bbbbd4
[]
no_license
shotakikuchi/GenerativeDeepLearning
cce2b851ba722b44432566a7b5bc02d1c950c0f7
a67bc43986df63065e81a3a840160e25099653bc
refs/heads/master
2020-07-02T16:43:09.508058
2019-08-17T13:10:14
2019-08-17T13:10:14
201,592,820
0
0
null
null
null
null
UTF-8
Python
false
false
14,689
py
from keras.layers import Input, Conv2D, Flatten, Dense, Conv2DTranspose, Reshape, Lambda, Activation, \ BatchNormalization, LeakyReLU, Dropout, ZeroPadding2D, UpSampling2D from keras.layers.merge import _Merge from keras.models import Model, Sequential from keras import backend as K from keras.optimizers import Ad...
[ "goodtime683@icloud.com" ]
goodtime683@icloud.com
8426e077cebea70246a5e452b3422803b8c9272e
4b2b6a8c2caf0f06e0ce47bbb9174ec4db07adaf
/code/stg_node.py
bcbc4a9401548f48edd347e32cd99be7b3057024
[ "MIT" ]
permissive
StanfordASL/NHumanModeling
052e89e8950b54a63a40655527ab29aeed5a48d9
0ae2297f563599601b1777a3fc825c43f1a461cd
refs/heads/master
2021-03-27T20:53:13.930366
2019-02-10T01:11:42
2019-02-10T01:11:42
123,646,313
15
11
null
null
null
null
UTF-8
Python
false
false
731
py
class STGNode(object): def __init__(self, node_name, node_type): self.name = node_name self.type = node_type def __eq__(self, other): return (isinstance(other, self.__class__) and self.name == other.name and self.type == other.type) ...
[ "borisi@cs.stanford.edu" ]
borisi@cs.stanford.edu
445508632ba9ca0cb62f6858ef1bb3b3b3ba0625
f98dc868a74dc7a9b128a2d4ce2c53224dd11f63
/intermediate_source/pipeline_tutorial.py
49b37b1f564e74c3f8bc8ff8d8be0e03ec5f33b8
[ "BSD-3-Clause" ]
permissive
walkingpanda/tutorials
ebe69e3fa8818b596922136273c74f6b0ab3b479
973193b4e28f4c277e14dcd93fd199f26cd1038b
refs/heads/master
2023-05-29T23:34:27.635650
2021-06-14T21:05:10
2021-06-14T21:05:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,273
py
""" Training Transformer models using Pipeline Parallelism ====================================================== **Author**: `Pritam Damania <https://github.com/pritamdamania87>`_ This tutorial demonstrates how to train a large Transformer model across multiple GPUs using pipeline parallelism. This tutorial is an ex...
[ "noreply@github.com" ]
noreply@github.com
6dee1b5890f0ba2108624a4a64c8378c3f83a85a
1f5d98c97ac9ff75b1d6b81f0a4a5110b05d4284
/posts/api/views.py
a71629961d4f008f12bdb8916786235c9f681cc8
[]
no_license
DukhDmytro/social_network
70cdd4aeb1448fdbacce6d32f627b421b8614a8c
a8d563b17ffc90dc467c67150fd4f0e7aa5f3992
refs/heads/master
2022-12-12T21:04:17.354395
2020-03-03T13:34:45
2020-03-03T13:34:45
241,352,402
0
0
null
2022-12-08T03:38:56
2020-02-18T12:12:34
Python
UTF-8
Python
false
false
1,764
py
from django.shortcuts import get_object_or_404 from rest_framework import status from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.viewsets import ModelViewSet from rest_framework.decorators import action from rest_framework.pagination import PageNum...
[ "cowboybebop4991@gmail.com" ]
cowboybebop4991@gmail.com
fc87922135a12612cfa4e49ab3c08ee5f38e1ebe
af69497f9f5fb62ee894646a1804494f167f25a7
/genbci/run_wgan_SSVEP.py
b6cead987f96a4be0902f71c396b33af585bd50e
[]
no_license
dpstart/genbci
afa1cacff63080d12337b98e066e5ebb2c733c03
aeccce878a5d6ba668f65d4d181874059fe1b8f9
refs/heads/master
2022-12-28T02:00:23.647306
2020-10-09T13:32:27
2020-10-09T13:32:27
260,474,268
1
1
null
null
null
null
UTF-8
Python
false
false
7,280
py
import argparse import numpy as np import random import os import matplotlib.pyplot as plt import torch.nn as nn import torch.nn.functional as F import torch.autograd as autograd import torch from genbci.generate.model import ( SSVEP_Discriminator as Discriminator, SSVEP_Generator as Generator, ) # from gen...
[ "danielepaliotta96@gmail.com" ]
danielepaliotta96@gmail.com
8716e411d7d36e6f03e049d7e4f758924e44cc44
169d68e02baceb04ce672c7771db351f71a1e47e
/untitled1/venv/Scripts/easy_install-script.py
bf6482875831339e7b62872ab6bf7d1f6f64f1fc
[]
no_license
yycarry1994/Pycharm_Project
056959b2b14c171d1d5d87388ce0bd9bc97bd7d5
da0d6176cccc365554aa46d47f33e7e1120e6e33
refs/heads/master
2020-06-28T10:12:29.711669
2019-08-02T09:23:41
2019-08-02T09:23:41
200,204,861
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
#!C:\Users\86181\PycharmProjects\untitled1\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|...
[ "yangbin-3@thunisoft.com" ]
yangbin-3@thunisoft.com
601e04d3f95736775c8e3eee23c2ea0fc2a6192b
216ddf61c5be758efde2b50fa476ada5354aced5
/galaxy/gen_test.py
dddbbbb2c8f96cf24df4b8d0981a9c43604dbf60
[]
no_license
cameronfabbri/ICGANs
4600020238d6884b710ea0b035b84e86c73705f1
d6be1a3e752959754be1dbf8af2ead8f75048b37
refs/heads/master
2021-01-16T18:11:38.596295
2017-11-26T22:35:16
2017-11-26T22:35:16
100,050,914
5
1
null
null
null
null
UTF-8
Python
false
false
2,823
py
''' Generates a dataset of encodings from real images using the trained encoder. ''' import matplotlib.pyplot as plt from tqdm import tqdm from matplotlib.pyplot import cm import scipy.misc as misc import tensorflow as tf import tensorflow.contrib.layers as tcl import cPickle as pickle import numpy as np import ar...
[ "cameronfabbri@gmail.com" ]
cameronfabbri@gmail.com
4fed9fbfe9b53e716ee5f6989ea66c9f22c91f8b
2c311a5ce7dd08fd56de05dfcbcf2717406e12a3
/examples/bootswatch_example/bootswatch_example/urls.py
21479c51d35af7cf6f0a144ed704deb4bde8fc7a
[ "BSD-2-Clause" ]
permissive
nschlemm/django-themeswitch
b2e40c067fa008cb32f02a6114b2c374e644a1cc
371495b05abe14fddc2cabc9468f4fb2aedf77f7
refs/heads/master
2021-01-22T10:19:36.535062
2014-04-08T15:19:48
2014-04-08T15:19:48
17,511,440
11
1
null
2014-03-07T16:19:16
2014-03-07T11:00:24
Python
UTF-8
Python
false
false
192
py
from django.conf.urls import patterns, include, url urlpatterns = patterns( '', url(r'', include('themeswitch.urls')), url(r'^$', 'bootswatch_example.views.home', name='home'), )
[ "moritz@tibidat.com" ]
moritz@tibidat.com
c8ae13ad78da181556b71e88b5de8e8f6e4b91ab
38e622a5daafbf115c88e7a1def650e14eedc455
/apps/users/adminx.py
15a5d9dfdfcc6058c2809c0e8ee1c43dee8e9da1
[]
no_license
sunysir/Django-1.10-xadmin-mooc
aa66ae39c4204d24cb472a706382b606b48f9b19
4188590daedff52d34e2155c78e68735f5cdf690
refs/heads/master
2020-03-21T15:57:25.423422
2018-07-29T14:28:36
2018-07-29T14:28:36
138,742,365
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
# _*_ encoding: utf-8 _*_ import xadmin from users.models import Banner, EmailVerifyRecord from xadmin import views __author__ = 'suny' __date__ = '2018/7/20 16:27' class BaseSetting(object): enable_themes = True use_bootswatch = True class GlobalSetting(object): site_title = '慕学在线后台管理系统' site_foot...
[ "694190253@qq.com" ]
694190253@qq.com
94fa74e2b0d75f11f63daaf66cc8d206618c6999
a9dd70520385b155d2f929127616d496fd89cd53
/onecollect.py
4ccf00cf62c39d3e08e3b1e5a884cf93f6fa30d1
[]
no_license
singer0503/auto_show_mac_address
ce6917e1d05fab40f3d2a9c1017003eb30096580
9cce22d167a734335de04dde65d07359c8b8a587
refs/heads/main
2023-01-01T14:26:07.620655
2020-10-20T10:07:51
2020-10-20T10:07:51
305,604,979
0
0
null
null
null
null
UTF-8
Python
false
false
6,659
py
import time,multiprocessing,os import paramiko #Note: 提供 ssh 功能模組 import re #Noet: 正則表達式模組 import sys #Noet: 檢測錯誤模組 import traceback #Noet: 檢測錯誤模組 try: from config import * #Note: 把 config.py 讀進來 except: hosts = '' username = '' password = '' cmds = '' stdmore = re.comp...
[ "singer0503@gmail.com" ]
singer0503@gmail.com
1ec736c4ee5667fdac6c32e4c815c223c8fd9563
183892abe5d5481d037e5568c4505f0fc3370a23
/nn_sa.py
125440347ced3cad9e15a827a21f423212b28fd8
[]
no_license
nani67/SportsAnalytics_ML_DL
0c921b384a6f6c1f0a4de57ff1a556979f4be310
3c0f492130324e813e33444e7ee1a197b2e5697c
refs/heads/master
2020-08-28T10:49:39.629789
2019-10-27T12:47:27
2019-10-27T12:47:27
217,677,816
2
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
import keras from keras.models import Sequential from keras.layers import Dense import pandas as pd import numpy as np dataset = pd.read_csv("sample_data.csv") X = dataset.drop(["Date","Referee"],axis=1) Y = dataset["FTR"] X_train = X[0:15] X_test = X[15:] Y_train = Y[0:15] Y_test = Y[15:] model =...
[ "pnani18dec@gmail.com" ]
pnani18dec@gmail.com
c9baa64f4b82950354c16fb73ca806ec1d27be5f
a9c3be4041c2a93fcdf3407a03ca33ceb839dc12
/Hostel Management Project/hostel_mgmt/right_frame.py
25d8a4c86dbe4ae8f65cebd1bd6f2edf351c440e
[]
no_license
Soham-Chatterjee/Hostel_mgmt
082bcbeb76fe06ddf606b517c8d690ebb7184014
8225181ff8cc1fbcf6c9cf35087d9bd6123ce5eb
refs/heads/main
2023-02-20T17:15:36.119611
2021-01-23T16:25:35
2021-01-23T16:25:35
317,414,832
0
0
null
null
null
null
UTF-8
Python
false
false
1,947
py
import tkinter from hostel_mgmt import root from PIL import Image, ImageTk from hostel_mgmt.design import right_frame def on_enter(btn): btn['bg'] = "bisque" def on_leave(btn): btn['bg'] = "bisque3" image_load = Image.open("./Fee Chart.png") image_render = ImageTk.PhotoImage(image_load) pos ...
[ "noreply@github.com" ]
noreply@github.com
3d9f60873d750960d9d30489e80d15c58a53b641
152d5204595c4f38be21d85907af54012fb3fece
/python/A1014280203/0/0.py
d1aa0de267004157929207e14a6341ce63895ea3
[]
no_license
Fayostyle/spiderstudy
09f7dc0792c64083cbdb7e5b19a025dc05d5d1f2
6687e9a192f83f125d532b5df898790acc47f965
refs/heads/master
2022-11-30T10:45:21.260739
2019-09-19T07:31:50
2019-09-19T07:31:50
132,615,459
0
0
null
2022-11-22T00:37:43
2018-05-08T13:47:01
HTML
UTF-8
Python
false
false
252
py
from PIL import Image, ImageFont, ImageDraw image = Image.open('0.png') w, h = image.size font = ImageFont.truetype('arial.ttf', 50) draw = ImageDraw.Draw(image) draw.text((4*w/5, h/5), '5', fill=(255, 10, 10), font=font) image.save('0.0.png', 'png')
[ "phuang5945@163.com" ]
phuang5945@163.com
5c4f26641289e95cd612cadb24473c07e4a66f3e
94551b3b0513f4f2b3930d9c28b36de079fac487
/config_param_creator.py
47c0c32a11d039deac4b9fd6858cc6a93e1a3bf1
[]
no_license
KWiecko/su2_gui_pub
92b0f10f0a208c57cad62b216b0f1d1e4e1e1566
8d781f1a3c1c231527c47f1289277a7851a64329
refs/heads/master
2020-07-13T07:19:52.893502
2019-09-25T07:36:55
2019-09-25T07:36:55
205,030,690
1
0
null
null
null
null
UTF-8
Python
false
false
4,470
py
import pyforms from pyforms.basewidget import BaseWidget from pyforms.controls import ControlButton, ControlBase from su2_basic_widget import SU2BasicWidget from su2_config_creator import SU2Config from config_param_creator_ctrl import ConfigParamCreatorCtrl class ConfigParamCreator(SU2BasicWidget): # label = ''...
[ "konrad.wiecko@gmail.com" ]
konrad.wiecko@gmail.com
49d91b038609858a956b8fc002568e272efc77f6
f7c3b1f65cc4d6dba1dc9dcf70f523497a14d791
/mujoco/tf_commons/ops.py
ff3b576def5ff27fcc5369b938fb8a9e04891c09
[ "MIT" ]
permissive
hiwonjoon/ICML2019-TREX
b9cac1ac5d97b22374a92f2f3cf5d8956cdb2482
44f92b61ca6c79ac22d468382d4f2fbee164fb7a
refs/heads/master
2021-06-16T15:52:33.325054
2021-04-10T04:57:24
2021-04-10T04:57:24
184,654,702
76
24
MIT
2020-01-28T22:11:19
2019-05-02T21:36:24
Python
UTF-8
Python
false
false
19,966
py
import tensorflow as tf class Conv2d(object) : def __init__(self,name,input_dim,output_dim,k_h=4,k_w=4,d_h=2,d_w=2, stddev=0.02, data_format='NCHW',padding='SAME') : with tf.variable_scope(name) : assert(data_format == 'NCHW' or data_format == 'NHWC') self.w = tf.ge...
[ "hi.wonjoon@gmail.com" ]
hi.wonjoon@gmail.com
6e42e56cfec64fcecc126ae040f1964ab67867ca
adde969450333a4a459e7122521eb20fea9659f7
/python-flask/openapi_server/test/test_default_controller.py
16f79d5d61294677c3ddcdee117e032d41c016dd
[]
no_license
mishin/money-tracker-api-docs
49c480765ecaacd8ff448fa7d264de590239b572
9b0f03fd054f54f136d1d28f2d20ecec9515210a
refs/heads/master
2022-04-12T23:14:33.557855
2019-12-07T15:08:19
2019-12-07T15:08:19
271,111,873
1
0
null
2020-06-09T21:18:06
2020-06-09T21:18:05
null
UTF-8
Python
false
false
2,819
py
# coding: utf-8 from __future__ import absolute_import import unittest from flask import json from six import BytesIO from openapi_server.models.expense_request import ExpenseRequest # noqa: E501 from openapi_server.models.expense_response import ExpenseResponse # noqa: E501 from openapi_server.models.expenses_res...
[ "kawakawaryuryu@hotmail.co.jp" ]
kawakawaryuryu@hotmail.co.jp
6cc605df33d06fc2f8575460a8beca5e972c9fe6
f65b633d0760e20ef5e0066be10aa18168f5659e
/documents/views.py
448b7e5a09e37e05fa8e98adc18b108ace1694e2
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
boxed/curia
a2b5ce5feda114bac1637de112b20026dabee5ae
c19f12f77b570b180acf4ec1ee05ea77b87b5fc9
refs/heads/master
2021-03-12T22:53:36.748160
2014-10-20T16:56:45
2014-10-20T16:56:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,834
py
import re from datetime import datetime from django.contrib.auth.views import login_required from django.http import HttpResponse, HttpResponseRedirect from django.utils.simplejson import dumps from django.contrib.auth.models import User,Group from django.utils.encoding import smart_unicode from curia.documents.model...
[ "boxed@killingar.net" ]
boxed@killingar.net
0c61ce225d80072549a004ed2591a718c5672896
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flashblade/FB_2_8/models/target_get_response.py
ac033a0a864676d3ec597b61877bb7714e0e01c8
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
4,220
py
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.8, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.8 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typ...
[ "tlewis@purestorage.com" ]
tlewis@purestorage.com
419e7e0ab8339ade64f7a829744f7147b5e4a0f3
72e3cb4dbc09423433040bf0ef56c07b8539c136
/6/7.py
c39351cdf3d3ae53bf24f4ced3a453606d6ef94b
[]
no_license
refanr/2020
50cefe20519f2693d2133181a718046734f2ca3d
51ae536f21f0c5b20dc067180d54392a09b3d5cb
refs/heads/master
2023-01-04T21:38:08.327450
2020-10-20T14:48:30
2020-10-20T14:48:30
292,705,419
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
my_int = int(input('Give me an int >= 0: ')) # Fill in the missing code working_int = my_int quotient = 1 bin_str = '' while quotient > 0: if working_int % 2: bin_str += '1' else: bin_str += '0' quotient = working_int // 2 working_int = quotient bin_str = bin_str[::-1] print...
[ "refan@Reynirs-Air.lan" ]
refan@Reynirs-Air.lan
bb4bfb31dbd4a51179b6d3da13cc9b01c3d47928
a691ae93f31f7fac56027c9f5205731ea1d63c66
/euler/euler1/euler1.py
b6bc320e2955d56cfc1ca2eb988f97a3f83d111c
[]
no_license
KnoxMakers/CodingWorkshops
c5cbb4ac0dd8abd7a68efc3b8eb3ad1f6b107658
12a0698f31d05c4e63d964dd3f9bc134086636e5
refs/heads/master
2021-01-19T07:56:27.199119
2018-12-05T23:57:33
2018-12-05T23:57:33
7,244,457
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
#!/usr/bin/python x = range(1,1000) woot = 0 for i in x: if not i%3 or not i%5: print i, "is a multiple of 3 or 5" #woot += i woot = woot + i print "Total:",woot
[ "relative.prime@gmail.com" ]
relative.prime@gmail.com
6fe67275ed3c74ae869826a226fcfe2957de6f5b
0aeb4ce84990053523a95b7d260bb89ea8958de4
/Python_Labs/Remote File Inclusion/app/RFI.py
5dba120b7f28b83d3f554958710598fa90ba9d66
[]
no_license
Helmanso/Lplatform_All_Labs
52474256b73662edf3e72c2be75345ac79162764
963438e7f0f55130a2241bd7124b8b9c3563277a
refs/heads/master
2022-12-08T02:43:10.359270
2020-08-29T14:11:48
2020-08-29T14:11:48
288,520,358
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
from flask import Flask, request, url_for, render_template, redirect import datetime, requests, os, validators try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse app = Flask(__name__, static_url_path='/static', template_folder='.', static_folder='static') app.config['DEBU...
[ "hakimel0047@gmail.com" ]
hakimel0047@gmail.com
7ea45cbd4ae13f3f6d4ca94d080968135b93965b
af9c3ca608bd3c0b9aa664756fad5f4da495a163
/second.py
af911857c52401f822e540b0d1b302e42872dfc8
[]
no_license
1186141415/COVID-19
6f3e397fa73f1b6e845a8db69c02300aa5157e7e
52f4788b563dae776059a621125e605051175cdf
refs/heads/master
2022-09-27T16:58:27.788021
2020-06-06T04:21:54
2020-06-06T04:21:54
255,866,776
1
3
null
2020-06-06T03:23:58
2020-04-15T09:23:55
Jupyter Notebook
UTF-8
Python
false
false
10,964
py
import pandas as pd # 导入matplotlib import matplotlib.pyplot as plt import matplotlib.dates as dates import matplotlib.ticker as ticker import datetime # 读取数据 today_world = pd.read_csv("today_world_2020_04_03.csv") name_dict = {'date':'日期','name':'名称','id':'编号','lastUpdateTime':'更新时间', 'today_confirm':'当日新...
[ "1186141415@qq.com" ]
1186141415@qq.com
c99a631a7811780613dfb8c523090511e72b47ed
7e2198e218bbec882cce3d2db246e3e41db70f51
/getIamgeStatsPytorch.py
54ba8af415ee43a98282091f7ed4e3272c26d3be
[ "MIT" ]
permissive
adityag6994/pytorch_ssd_training
72445d1150f0115aac4c978b6cf9c28c1e4cdab4
404f3cbef815e314337ec2c1b4f06a2403a7ce03
refs/heads/master
2023-05-08T21:13:34.538207
2021-05-25T02:06:06
2021-05-25T02:06:06
368,198,205
0
0
null
null
null
null
UTF-8
Python
false
false
1,363
py
import torch.utils.data from datasets import * from utils import * # Data parameters data_folder = 'data/rafeeq/' # folder with data files keep_difficult = True # use objects considered difficult to detect? # Model parameters # Not too many here since the SSD300 has a very specific structure n_classes = len(label_m...
[ "agupta@neurala.com" ]
agupta@neurala.com
d1e5565535aa6454248bea2abdc3892524a84c42
36c95182453f97bc5587ac8f5f763641b9739dce
/src/video/urls.py
a32614ee211a03c78eb98a09f2c48450c2ca6018
[]
no_license
DreamfoxTeam/MyDream.API.Video
ea8d4194ccbc2f4f247645cf116070bc44b4c4b8
72abd0258a8e0a46cc337210b32c69720f81a858
refs/heads/master
2020-04-05T02:21:45.808768
2018-11-25T13:37:15
2018-11-25T13:37:15
156,474,229
0
0
null
2018-11-25T13:37:16
2018-11-07T01:44:14
Python
UTF-8
Python
false
false
825
py
"""video URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
[ "msgrubler@gmail.com" ]
msgrubler@gmail.com
36fd9544ce7e5544264fcd2e31e7b8e4bac2fe1b
70caddd0199b026b9fae11bc8da4bbc875b3a737
/test1/sentence_test.py
1b40fd4ee85bc018354c8ad8ba5cfc080b841880
[]
no_license
zzxzzg/python
997e36fc9e8676dfb108082d273c03eb40eb2fae
d58d142ea5d5fb7f1197cf2981ece85909ddb0ba
refs/heads/master
2020-06-13T12:39:53.612822
2016-12-20T10:35:18
2016-12-20T10:35:18
75,379,307
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
#! /usr/bin/env python3 # 使用 elif替代 else if ,去掉大括号,使用缩进来分割代码块 # if condition_1: # statement_block_1 # elif condition_2: # statement_block_2 # else: # statement_block_3 #注意冒号!!! # while 判断条件: # 语句 #另外,在Python中没有do..while循环。 # while还提供了else的语句配对,当不满足条件的时候运行else(只运行一次) count = 0 while count < 5: ...
[ "xiaobanma2292@gmail.com" ]
xiaobanma2292@gmail.com
20f03c830a4454b43d9ab80e86ffc4f75dbfde63
370090ab025824b5d38618a6c845fb5f293efe38
/manage.py
070e489cdb724e330a0ddd103793cf82b814ab50
[ "MIT" ]
permissive
Antavio/Moringa-Project-Awards
4bcb1d325226cc9dcd239556c085e8d8d47491ab
941d6ca0e8978cbb54bb8858ac02bed34fd73306
refs/heads/master
2021-09-08T04:06:14.895597
2019-05-29T07:37:46
2019-05-29T07:37:46
188,390,930
0
1
MIT
2021-09-08T01:00:56
2019-05-24T09:12:00
Python
UTF-8
Python
false
false
812
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Project_Awards.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure th...
[ "njuguna13@gmail.com" ]
njuguna13@gmail.com
072edfb2aef8eea1bcec97a890b4d476ea0fb2ba
e3fbb84151f39c3e576bd857a94256e9ecfc2817
/0x07-python-test_driven_development/tests/6-max_integer_test.py
73b68c8c52f56476a1d8122a16c47d872dda234f
[]
no_license
Myduzo/holbertonschool-higher_level_programming
1a6ed5eb499b16f968aed4522c464e5c9f89a41e
aee7350473a8f740f6eb8e3f1abbb359d88cae0f
refs/heads/master
2022-12-19T18:59:29.672269
2020-09-24T15:18:24
2020-09-24T15:18:24
259,302,536
0
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
#!/usr/bin/python3 """Unittest for max_integer([..]) """ import unittest max_integer = __import__('6-max_integer').max_integer class TestMaxInteger(unittest.TestCase): def test_list(self): """Empty list test""" self.assertEqual(max_integer([5, 0, 2, 9]), 9) self.assertEqual(max_integer([0,...
[ "sahli.youssef@outlook.com" ]
sahli.youssef@outlook.com
b91ee62ab15974dcb724ceeb00d00689410e332f
7bf1dc58ba0884ed957efdb5459ae44851b2b36e
/practice_450/greedy/33_rearrange_characters.py
858f75ba242070202848f0f4f1146c91f0ceea28
[]
no_license
ksaubhri12/ds_algo
672260f07f41bcfc33f8ac23a64085a1f27ab4a5
46505b89371cae3321f48609dd755c7e5cfed302
refs/heads/master
2023-05-12T08:37:06.789111
2023-05-03T03:06:49
2023-05-03T03:06:49
211,793,312
0
0
null
null
null
null
UTF-8
Python
false
false
935
py
def rearrange_characters(input_string: str): n = len(input_string) dict_value = {} for i in range(0, n): if input_string[i] in dict_value: dict_value[input_string[i]] = dict_value[input_string[i]] + 1 else: dict_value[input_string[i]] = 1 sorted_count_list = sort...
[ "kalpesh@getvokal.com" ]
kalpesh@getvokal.com
5738640214bb8de04103ec491a2e51acea88a2f5
4182189a2624d4aa36619915b7dba42fc5ecdaad
/xxxRekt/urls.py
e179cc2dd01d6dffeacffb8380cffad8d245d708
[]
no_license
HackerProjects/lindahearts
3b74e187176404b587bb55b03301f285966d393f
37492d88ebd28d65b225125b9c75547cb8687a10
refs/heads/master
2020-03-21T15:34:51.570455
2018-06-26T11:08:07
2018-06-26T11:08:07
138,721,065
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
from django.contrib import admin from django.urls import path, re_path, include from django.contrib.staticfiles.urls import static, staticfiles_urlpatterns from . import settings urlpatterns = [ path('admin/', admin.site.urls), re_path(r'', include('home.urls')) ] urlpatterns += staticfiles_urlpatterns() urlp...
[ "cjhoussem@gmail.com" ]
cjhoussem@gmail.com
5c8fe94773b018fec08156dff5a0e0e776f1b94c
159a08aeb28fecfaeaa85cd253d1435255aad466
/HW13/HW13.py
6a47e237671b35e83c0ac065e22a314261858c4b
[ "MIT" ]
permissive
ji3g4aunaun/assignment-speech-recognition
ee5220fb8588fee11316d63545935f562a1531c1
794907a417d054477812c1f50695312601eae929
refs/heads/master
2020-03-24T07:33:05.884142
2018-07-25T20:49:48
2018-07-25T20:49:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,926
py
import numpy as np from dspBox import str2ndar obs1 = str2ndar(open('observation1.txt', 'r').read()) obs2 = str2ndar(open('observation2.txt', 'r').read()) obs3 = str2ndar(open('observation3.txt', 'r').read()) # 助教附的oberservation3.txt跟上次一樣沒有換行,所以只會讀到49個狀態,如果加了換行可以讀到50個。 a1 = np.array([[0.2, 0.7, 0.1], [0.1, 0.2, 0.7], ...
[ "jason860421@gmail.com" ]
jason860421@gmail.com
048f1454876a4040818f971ff05431b5505e1f2b
4e31845d08ae3d8a525ce67bb1abab271e037eca
/FirefoxBotAD/fb.sikuli/sikuli.puller.v1.1/puller.py
f1a63ecf8fb0612ea8c16c81a1b1770b513c721d
[]
no_license
AdCrushMedia/sikuli
d1a17b814ec5b80c6107828dd0d8c2c89ae24995
7dd03f7653a3ecef25eb1ceb1970baca4e4cfd9b
refs/heads/master
2021-06-15T22:08:46.487573
2017-05-02T19:23:33
2017-05-02T19:23:33
73,114,145
0
0
null
null
null
null
UTF-8
Python
false
false
10,196
py
import os import sys import json import time import getopt import shutil import ctypes import zipfile import hashlib import paramiko import functools import subprocess from collections import defaultdict _NEW_ = "*new*" _UPD_ = "*upd*" _DEL_ = "*del*" _ZIP_ = '.zip' _JSON_ = '.json' _PKGVER_ = 'version'+ _JSON_ _C...
[ "matthew.best@toptal.com" ]
matthew.best@toptal.com
5a346858f79c757e13d5570ec88addd3bfc652ac
0ae6e24fa95b8a22d9fe9d36f8786cdc4adbceac
/tests/test_api.py
1c95830966214ef48771a702eba86858d69f7bfe
[]
no_license
lopezjimenezjesus/flasktaskr
cd0c407d7dec0920a1bf2eabb39f1b40ea04fa03
f7167092a0a99969a730c3d80290ce0919de8ddb
refs/heads/master
2022-11-10T00:31:22.165929
2016-12-18T01:15:41
2016-12-18T01:15:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,473
py
import os import unittest from datetime import date from project import app, db from project._config import basedir from project.models import Task TEST_DB = 'test.db' class APITest(unittest.TestCase): ####################### # setup and tear down # ####################### def setUp(self): ...
[ "gesusjl@gmail.com" ]
gesusjl@gmail.com
33cb9493d7550749594d94675bba7dd68faf783d
d92cd1bce2af9d86e83a732a26419be0d76ae8eb
/demo_final/mvc/controllers/alumnos/delete.py
b4f77f02691bb3d8c541d728780cb34b2d8396fd
[]
no_license
MariaFernandaReyesLopez/demo_web_page
fd0973d0cc362dc3cc24784c0fdf10cb58154e2a
40879f2265c068fed226b4bc560efd975d56974d
refs/heads/master
2022-11-29T13:03:08.334216
2020-08-13T21:18:04
2020-08-13T21:18:04
287,380,767
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
import web import mvc.models.alumnos as alumnos model_alumnos = alumnos.Alumnos() render = web.template.render("mvc/views/alumnos/", base="template") class Delete(): def GET(self, id_alumno): try: result = model_alumnos.view(id_alumno)[0] return render.delete(result...
[ "noreply@github.com" ]
noreply@github.com
d9e0220046732ed6ddb31fb31a5d9bdbd1e08ecf
a28df6dc7901e0799ddbcdd43dc17f1f966e5eb5
/interview_preperation_kit/arrays/array_manipulation/editorial.py
586037ec6827623696fb06fc01fac1bee8c27853
[]
no_license
jlucasldm/hackerrank
ede7aafa0131171a358c1601a0ccb26da4f3b5dc
3189c3b9844eaff5873f4d4cf6c94aaf3b88b864
refs/heads/master
2023-07-30T22:18:30.166508
2021-09-12T20:15:00
2021-09-12T20:15:00
396,453,482
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
def arrayManipulation(n, queries): arr = [0] * (n+1) # add the value at first index # subtract the value at last index + 1 for q in queries: start, end, amt = q arr[start-1] += amt arr[end] -= amt # max value and running sum mv = -1 running = 0 for a in arr: ...
[ "jlucas.ldm@gmail.com" ]
jlucas.ldm@gmail.com
dc764acc87abd223ec64716f693f78733a9ce009
acdbaf53db693f63313ee5811b15c810b6f2df60
/backend/test_flaskr.py
763983588893e2501ddf8728dcbbe0672423c72d
[]
no_license
fanchenjie/Trivia
5de5482b163496f6126cadd51cae8b4b797a4499
6fe9fc8175fd6d651a582f40a1ad67cbf68425e8
refs/heads/main
2023-01-15T11:26:08.678506
2020-11-20T23:10:32
2020-11-20T23:10:32
302,809,023
0
0
null
null
null
null
UTF-8
Python
false
false
7,213
py
import os import unittest import json from flask_sqlalchemy import SQLAlchemy from flaskr import create_app from models import setup_db, Question, Category class TriviaTestCase(unittest.TestCase): """This class represents the trivia test case""" def setUp(self): """Define test variables and initiali...
[ "fanchenjie@seattleu.edu" ]
fanchenjie@seattleu.edu
2f43fcb6f336490af1bbc1d36b02d53bc911db08
78cff47ad6e4c8dc600249915aff2a3c54b723a2
/AntiAlias.py
c2d25ee7bdcaf3239d2397ab1d5d6b0e1b66e246
[]
no_license
willstem/Research_Tools
c6e7e526863abbe048a1c973430211a2bfa36b5b
42e5dbed7ed786e212a1115974c2235de26cf63a
refs/heads/master
2020-03-22T05:57:43.184438
2018-07-03T15:17:08
2018-07-03T15:17:08
139,602,555
0
0
null
null
null
null
UTF-8
Python
false
false
3,083
py
# -*- coding: utf-8 -*- """ Created on Sat Jun 30 11:24:23 2018 @author: will """ import matplotlib.pyplot as plt import numpy as np from scipy.signal import butter, lfilter def cosine(t, amp, freq, phase = 0): return amp*np.cos(2*np.pi*freq*t + phase) def view_section(datax, datay, samp_density, ...
[ "will.d.stem@gmail.com" ]
will.d.stem@gmail.com
fd282217f2a3abbd3385cb2e72791deea7441668
771ed599c431f7cc05b4b90895cea24dac3895ba
/utils/edit_misc.py
d3baf8250121fd7a05b544a6510ad407f7a5672b
[]
no_license
baaaad/coco-edit
8e5395a52f1f1b85db62393c2ac2ab1d00230c7a
b70e36bf05be5af16923f5ca0b8cce91ec9c29d1
refs/heads/main
2023-07-14T23:40:54.684513
2021-08-13T07:22:57
2021-08-13T07:22:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,978
py
import numpy as np def edit_distance(sent1, sent2): # edit from sent1 to sent2 # Create a table to store results of subproblems m = len(sent1) n = len(sent2) dp = [[0 for x in range(n+1)] for x in range(m+1)] # Fill d[][] in bottom up manner for i in range(m+1): for j in range(n+1)...
[ "mwb@zju.edu.cn" ]
mwb@zju.edu.cn
298c5334b8cb8458e240533cc78ba90bc20dd8b5
5964e11c3d1ea543e139c6a4a66751a611fd0ac5
/test/test_forest_delete.py
63d8f63b4002dea380136151df3c75eb74080640
[ "Apache-2.0" ]
permissive
codycollier/booster
333a60caeb4df554d49d1cd8251fc4c58b57c76c
8639d74cc98c4276fba281bbe244795e8f44a833
refs/heads/master
2020-04-16T17:42:04.494735
2019-07-12T03:25:21
2019-07-12T03:25:21
2,858,765
1
0
null
null
null
null
UTF-8
Python
false
false
3,131
py
#!/usr/bin/env python import unittest import boostertest class TestForestDelete(boostertest.BoosterTestCase): """ Test the forest-delete action """ def setUp(self): """ Set the action and other commonly used fixture data """ self.params = {} self.params['action'] = "forest-delete" ...
[ "cody@telnet.org" ]
cody@telnet.org
ab7a78b9db6f60371ee1fac74f8b8411ff23aa43
a179d2abea58ee4d987bf05729a5e7df727af3cd
/instaclone/settings.py
6e13a5e35aa00ba74ca16a19dd70fe50c0cb34ee
[ "MIT" ]
permissive
Derrick-Nyongesa/instagram-clone
ced05a4c334c9e95e96bec9a3883b448c5fa95c6
2f3c018c33aa440160401f0c1878a2670f2f0081
refs/heads/main
2023-05-14T01:32:36.211904
2021-05-26T13:42:26
2021-05-26T13:42:26
369,403,582
0
0
null
null
null
null
UTF-8
Python
false
false
4,796
py
""" Django settings for instaclone project. Generated by 'django-admin startproject' using Django 3.2.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from path...
[ "nyongesaderrick@gmail.com" ]
nyongesaderrick@gmail.com
acd62ee375dff59ca59e70a02bc32374c22f0693
02f25642ee890ef749e29ead0009309519412906
/serverCS.py
58c4bc85c86c48f3550e3d72e54eb0ded880163f
[]
no_license
romantikatara/Analytics_Model_Deployment
c753da09b8df26f6a20780316fbcf5f36668a4cf
6e70c3cc8fe095a97350483ec7e3321a4f8967d5
refs/heads/master
2020-07-30T19:05:05.015626
2019-09-23T14:14:12
2019-09-23T14:14:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
# Membuat API dari model Machine Learning dengan menggunakan flask # Ingin mengeload model .pkl ke suatu server ''' Code ini mengambil data JSON dengan POST request suatu tampilan prediksi menggunakan model yang telah di-load. Kemudian mengeluarkan hasil dengan format JSON. ''' # Import libraries import numpy as np f...
[ "noreply@github.com" ]
noreply@github.com
ce74370ba73cd08e5d80892ce3594a66fbe400e2
1496fd578daaf13bebccd68057c455b74481b8de
/week3/hangman/ps3_hangman.py
89ffb62c683272716b7e0678921ac1462f6ae894
[]
no_license
leahfrye/MITx-6.00.1x
274c58a6d7ca4c64dbd1bda5c2f102012f4a4f17
41e26ded3606b83b21998777ff32cf862e2b7f1d
refs/heads/master
2021-09-03T14:43:04.654759
2018-01-09T21:43:45
2018-01-09T21:43:45
115,056,698
0
0
null
null
null
null
UTF-8
Python
false
false
4,980
py
# Hangman game # # ----------------------------------- # Helper code # You don't need to understand this helper code, # but you will have to know how to use the functions # (so be sure to read the docstrings!) import random import string WORDLIST_FILENAME = "C:\projects\mitCourse6.00.1x\week3\hangman\words.txt" def...
[ "lefrye@nps.edu" ]
lefrye@nps.edu
b2db820fc500dacc8d7771ff92eaa649fc902760
cb28de2d461cb7f099ca8b61bb5b2015dff0c776
/spyder_scripts/jan_workshop/ex4.py
27323317afdf37ef6f16d56f2e58bb6d7681a0bc
[]
no_license
chuymtz/python_scripts
04082241ae3e3c3a4772aa45f6d667e665f7200c
6b06a44671ddbafd073764e50bab9117ee72d2cc
refs/heads/master
2021-01-17T17:37:03.486857
2016-06-11T03:11:22
2016-06-11T03:11:22
60,887,842
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
# -*- coding: utf-8 -*- """ Python Workshop 1/30/2015 Exercise 4 1. Write a function that returns its GC-content when a sequence is given GC_Content = (#G + #C) / length(seq) 2. SeqForEX4.txt contains 5 different DNA sequences with its corresponding headers, find a way to read in the 5 sequences alone ...
[ "mtzgtzjesus@gmail.com" ]
mtzgtzjesus@gmail.com
6bcc678d37afb5abbd9da779e9cdb18e702c0092
5558ba2dafd38d659f417948109f22958cedaa2a
/test_main_page.py
06c543b2291f231191f27b780cd84f001d658f6e
[]
no_license
NikitaSivolobov/LastTask
ff7d78ea94ff40911b1149c59d7a5af9c86afcff
074b63bd8fe58aa39e58f1e1972beefe69f4a349
refs/heads/master
2023-07-08T23:03:34.473619
2021-08-05T20:30:46
2021-08-05T20:30:46
389,947,296
0
0
null
null
null
null
UTF-8
Python
false
false
1,596
py
from .pages.main_page import MainPage from .pages.login_page import LoginPage # import time # обновили функцию из задания def test_guest_can_go_to_login_page(browser): link = "http://selenium1py.pythonanywhere.com/" page = MainPage(browser, link) # инициализируем Page Object, передаём в конструктор экземпляр ...
[ "nikita1314@yandex.ru" ]
nikita1314@yandex.ru
a8aed15c162e96815fa1961c2bdd1299d9c3454d
a29a73de4df917da642adec96286d7ed3b2a0a42
/TankDPPO/kankan.py
0315d142c18ecb16f26c20009d72880e4e7f967d
[]
no_license
tankche1/Learn-To-Run
9f0546f2d2c74cf18879579a3ccb2aeb3bea2765
27a48c8e1ec5864ab58caa9df4098a1089641cc0
refs/heads/master
2021-03-24T11:07:15.949621
2017-10-18T14:43:41
2017-10-18T14:43:41
101,266,609
2
0
null
null
null
null
UTF-8
Python
false
false
8,281
py
""" A simple version of OpenAI's Proximal Policy Optimization (PPO). [https://arxiv.org/abs/1707.06347] Distributing workers in parallel to collect data, then stop worker's roll-out and train PPO on collected data. Restart workers once PPO is updated. The global PPO updating rule is adopted from DeepMind's paper ...
[ "15307130191@fudan.edu.cn" ]
15307130191@fudan.edu.cn
1ba1793bbfb48e97c4458d7b42bef536b6f33c05
6a604f32b7c5b69f12ac37339f55cef9b2a9e90e
/venv/Scripts/easy_install-3.7-script.py
b774706563c77f039089db0f2cf71b11b836aa09
[]
no_license
ithekozub/telegram_bot
d6bc2663e15a4910ed254c78dc92721cb6146c1c
feeec2bc1a2a63f35052ed3cf43771f59c232c88
refs/heads/master
2023-04-01T03:50:14.555471
2021-04-02T12:18:37
2021-04-02T12:18:37
353,803,156
0
0
null
null
null
null
WINDOWS-1251
Python
false
false
462
py
#!"F:\Рабочий Диск\CRYPTO_BOT\venv\Scripts\python.exe" -x # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe...
[ "ithekozub@inbox.ru" ]
ithekozub@inbox.ru
ee760f49be6ef89ccf152093972a09626ddee30f
6d0eb72dfbc165b6129d955b9fe5e4a1d8b1681e
/rules/file_dialogue.py
ca404e0aed146b539dd034ef7b3ef3ab64df350a
[]
no_license
seekM/.caster
4ee55974e75ef8cab04b21866959664d551e14a5
f36152e6d60a2b9a486493c3271d204388b1bfaf
refs/heads/master
2020-05-17T14:31:23.156785
2019-06-18T22:02:17
2019-06-18T22:02:17
183,766,412
0
0
null
null
null
null
UTF-8
Python
false
false
1,700
py
from dragonfly import (AppContext, Dictation, Grammar, IntegerRef, Key, MappingRule, Pause, Repeat, Text) from dragonfly.actions.action_mimic import Mimic from castervoice.lib import control, settings from castervoice.lib.dfplus.additions import IntegerRefST from castervoice.lib.dfplus.merge imp...
[ "seekm@users.noreply.github.com" ]
seekm@users.noreply.github.com
9a4c8ab6eb3dcedee5f481ceb64bf03bf5dc1c2c
b1710da529375a794ef2d0552bea3e57096cb06f
/contacts/models.py
f78f435bd243fcd2efe89c3fb62b93151cdd529c
[]
no_license
gaganbr4/django_Real_Estate
7aab601fc8f1052f7dfe348ca7104237a28eb063
bb4640955f9190a6e90207eb5ae5a8d5c95ff3dc
refs/heads/master
2022-12-01T02:22:40.618282
2019-07-17T12:34:23
2019-07-17T12:34:23
197,345,104
1
0
null
2022-11-22T04:08:02
2019-07-17T08:10:43
CSS
UTF-8
Python
false
false
527
py
from django.db import models from datetime import datetime class Contact(models.Model): listing = models.CharField(max_length=200) listing_id = models.IntegerField() name = models.CharField(max_length=200) email = models.CharField(max_length=200) phone = models.CharField(max_length=200) messa...
[ "gaganbr4@gmail.com" ]
gaganbr4@gmail.com
354e85d57c3ff0baac11c37c47ff1eb7448d1ca6
4ff078b6df0b6441ae2759b6c9713bc60d00e073
/vertical flip along matrix axis/vertical_flip_H.py
c5ff174bfbf2e31d804005ab739ee3a60d3ba3e3
[]
no_license
MLBott/python-fundamentals-student
b18ae425fde24befaa14f66078c3e9983c888289
fe4efa6666b07203e3e0749596b587a30a80acae
refs/heads/master
2020-12-02T00:40:57.314215
2020-01-20T03:30:48
2020-01-20T03:30:48
230,832,805
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
def flip_vertical_axis(matrix): c = len(matrix) - 1 r = len(matrix) - 1 temp = 0 o = 0 while o <= r: i = 0 while i <= r / 2: temp = matrix[o][i] matrix[o][i] = matrix[o][c - i] matrix[o][c - i] = temp i = i + 1 o = o + 1 ret...
[ "noreply@github.com" ]
noreply@github.com
76de75eab7bff110c78485c517c7eac9d8ff0041
7a1c34276bf178d1d56cfb05c5d6346f48ba07b6
/partial_circuits/blkhash_circuit_for_4_blocks_of_4_pixels.py
4b767fbef7a7e983547b51c0bfa6b9251e549bde
[]
no_license
timashana/Secure-MPPH
d2e7f4fede22260ac28b4ae5e168953cdeccd204
005bd1c612db2bcd0f77d0e135f9adac41932802
refs/heads/master
2020-03-10T14:11:17.739030
2018-11-07T09:09:55
2018-11-07T09:09:55
129,419,750
0
1
null
null
null
null
UTF-8
Python
false
false
4,918
py
''' Anastasiia Timashova github.com/timashana This is a tester program to evaluate BLKHASH part of the circuit by creating the libscapi format circuit for calculating block-mean-hash of 4 blocks of 4 pixels that can be controlled manually (every pixel value is hardcoded) ''' from hash_circuit_functions import...
[ "atimash000@citymail.cuny.edu" ]
atimash000@citymail.cuny.edu
ec491a079245a58e14d42601f0fca085af3e714e
12738d4511f72cf8ac2f8a63df635f74698d5f63
/configs/fpn_resnext50_32x4d_cityscapes_2gpu_f.py
77269bafb8deda39295a9c1c77835019749bb104
[ "MIT" ]
permissive
ternaus/iglovikov_segmentation
5731bbd0cbf7125bdc121e7357820b8bec8297ae
5a9463031e5da7c2cf34c967a4f2657416c11bd2
refs/heads/master
2020-08-09T12:26:44.779660
2019-12-15T21:59:42
2019-12-15T21:59:42
214,087,415
18
1
MIT
2020-04-03T02:16:36
2019-10-10T04:35:44
Python
UTF-8
Python
false
false
3,589
py
# Cityscapes. 2 x TeslaV100 from pathlib import Path import albumentations as albu import cv2 import segmentation_models_pytorch as smp import torch from torch.optim import Adam from src.loss import CCE ignore_index = 255 num_classes = 19 encoder_type = "resnext50_32x4d" preprocess_parameters = smp.encoders.get_...
[ "viglovikov@lyft.com" ]
viglovikov@lyft.com
0768aef21a8d1b52a028c4de5676b7188709d19b
fb71813276a917fef7914093c0757ded24c38bc2
/scripts/step6.py
f9337d84f8d69324d4613ab844d8db70677bfe25
[]
no_license
epimedai/flowers
38f02c1977700b98e562d0da9d1a5f7ae06466da
54fd016f9740500110a9b968c56121ae8c034860
refs/heads/master
2020-03-27T13:31:07.616364
2019-11-06T19:03:31
2019-11-06T19:03:31
146,614,046
18
14
null
2019-11-06T19:03:33
2018-08-29T14:40:41
Jupyter Notebook
UTF-8
Python
false
false
1,976
py
import matplotlib.pyplot as plt import numpy as np from keras.applications.vgg19 import decode_predictions, \ preprocess_input, VGG19 from keras.engine import Model from keras.layers import Dense, Dropout from keras.optimizers import Adam from keras.preprocessing.image import ImageDataGenerator np.random.seed(12...
[ "estenleonardsen@gmail.com" ]
estenleonardsen@gmail.com
0ee934977a97f8ccfc74f34b846ea3150a594458
954f61df1242e7a512a7084a64084c097c612724
/python_old/prepare_data_from_scratch.py
4b6a9ea31a850f6e64be524056d7f765f86bcc64
[]
no_license
ssh352/Speculation-and-volatility-of-cryptocurrencies
4af4025d85e309db291d53e50410d0f102d146c0
9827996a4fb38b137a7708dd9c4ed9db22fc4830
refs/heads/master
2021-04-07T14:05:06.603601
2018-09-13T21:36:45
2018-09-13T21:36:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
df=pd.read_csv('all-crypto-currencies/crypto-markets.csv') df.head() list(df) df=df[['date','name','volume','close']] df=df[df['name']=='Bitcoin'] df=df.iloc[243:,:] res_table=prepare_df(df) res # res_table=res_table.iloc[50:,:] res_table.to_csv('df_prepared_only_btc.csv',header=True,index=True)
[ "minasyanvaagn@mail.ru" ]
minasyanvaagn@mail.ru
2e7a7f063587cd0d743af42a293e11b777285e59
b9bcb18f8ae5a75390518136400a3e52a4bc5678
/checkjson.py
46732aad08103015872180b71a5d152a582cc4c9
[]
no_license
tarunlochib/python-automation-
093bb414ede1d2cdeb974a2bc55dcc9ead4bb59a
5aeddc76a399bee3a2bc1421888f9e409696bea3
refs/heads/main
2022-12-31T09:35:02.603621
2020-10-20T05:39:50
2020-10-20T05:39:50
305,601,123
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
import os import sys import json if len(sys.argv) > 1: if os.path.exists(sys.argv[1]): file = open(sys.argv[1], "r") json.load(file) file.close() print("Validate JSON!") else: print(sys.argv[1] + "not found") else: print("usage: checkjson.py <file>")
[ "tarun@simpleisbetterthancomplex.com" ]
tarun@simpleisbetterthancomplex.com
99fbc74ec5207bb5eea3ee53f31b234166d342b6
5f8b7bf78073fbc2b15fe947e9988cdab511d5ef
/PFA/cms/urls.py
944efb779a0a309a48126e7b7c9b66c74dd76654
[]
no_license
jordanfaure/PFA
4284c7a84a5ddc1c3fb67b553e94826eed4e78f5
be3d9dd6c2bc26f90ad13ec4180f03af46f640ed
refs/heads/master
2020-06-01T17:39:38.472704
2014-01-27T09:36:55
2014-01-27T09:36:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
#-*- coding: utf-8 -*- from django.conf.urls import patterns, url urlpatterns = patterns('cms', url(r'^$', 'views.home'), )
[ "thomas.miele@epitech.eu" ]
thomas.miele@epitech.eu
690dee5b0190d88a4aa134d46dc443c1979b1bb0
282c06d6dd365003d7ec266c9732da5becffb368
/test_darknet.py
5de747795f0c8047f75502f312267203d6febdb0
[]
no_license
thanakorn/yolov3_pytorch
e4f1a8ce10b705b688ea4e86c76289f107d2b44b
c59c6bddf8eea655e11202c589c452a4bac53ded
refs/heads/main
2022-12-19T23:37:24.930939
2020-10-17T17:19:09
2020-10-17T17:19:09
304,828,998
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
import cv2 as cv import numpy as np import torch from models.darknet import parse_cfg, create_modules, Darknet from torch.autograd import Variable def get_test_input(): img = cv.imread("dog-cycle-car.png") img = cv.resize(img, (416,416)) #Resize to the input dimension img_ = img[:,:,::-1].transpo...
[ "thanakorn.panyapiang@outlook.com" ]
thanakorn.panyapiang@outlook.com
5ca7400dd101f54f05f252c458a3444c85fe7629
bfb10fede6f32fd6e91bac5068bf4417495b7d90
/ImageProcessor/ImageFilter.py
7041f3d156046b26aa83c995b911b598b3ab73e4
[]
no_license
lennyhits/fungal-detector
23feab1d268c6208dd22a51d971434f6f0e9371c
d4b07843a443db8ff95240c8d064ef5b8f5c3748
refs/heads/master
2020-03-26T15:28:22.069244
2015-05-17T09:34:30
2015-05-17T09:34:30
35,759,931
0
0
null
null
null
null
UTF-8
Python
false
false
3,484
py
''' This file holds the functionality for image filtering and pre-processing ''' import cv2 from skimage import data, filter import numpy as np import os import re def skimage_filter_technique(image_path): img2 = cv2.imread(image_path, True) tv_filter = img2 return tv_filter def getJpgImages(imgPath): ...
[ "joachimhits@gmail.com" ]
joachimhits@gmail.com
54b6d27f371e43575fbcd045778475cebc4e124c
74b2f9658f3fd47aaf255febf2852263c6ec19e0
/takerest/src/helpers/test-data-gen/src/lib/vendors/pairs/main/create_allpairs.py
d7ea9dd782cca38036dc02fe37ad0bb06554a910
[]
no_license
upworka0/restio
bf47db136e884c72b061962e3973546a4bdd78c7
9f22fc6513fefd6c98738b0ea016abfec7c437cb
refs/heads/master
2023-03-05T00:23:12.243382
2021-10-01T01:49:01
2021-10-01T01:49:01
203,429,128
1
0
null
2023-03-01T19:12:22
2019-08-20T18:07:32
JavaScript
UTF-8
Python
false
false
322
py
#!/usr/bin/env python # encoding: utf-8 from __future__ import print_function from pairwisepy import AllPairs import json import sys import logging import ast parameters = ast.literal_eval(sys.argv[1]) pairwise = AllPairs(parameters) results = {i:pairs for i, pairs in enumerate(pairwise)} print(json.dumps(results...
[ "upworka0@gmail.com" ]
upworka0@gmail.com
7f37aced58730055c3055c0db0f91adbadd4ae55
965f3998f443d457b6b28e3c24bade38f72c108f
/Test_ist_so_cool.py
82353da3f5fc6d9bea7ffd7dc2f3efd15bd6e6b3
[]
no_license
Micha040/FirstTryPython
d2bddde70c5917b9e6a88ecf5787d74cedbe13cd
9da5341c9dbc1069374831ac195c2ee7107d3007
refs/heads/master
2021-01-19T16:43:18.471511
2017-04-17T08:14:51
2017-04-17T08:14:51
88,284,211
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
import turtle t = turtle.Pen() t.forward(100) t.left(100) t.left(90) t.left(170) t.left(90) t.forward(100) t.left(90) t.forward(100) t.left(90) t.forward(100) t.left(90)
[ "mkroeger.hh@gmail.com" ]
mkroeger.hh@gmail.com
23a26d9a374dd4a953f78591e47dd7cde12e1ad0
aee1e843ca826ac92271151bbe8fd21828c8b044
/apps/get_quotes/models.py
6b5b66644f144987c4670ac573671ceafb69896d
[]
no_license
sullvantes/ajonestwitbot
5312f199745372b6c399d519f7ed6a585305ee86
dc0f23f3d7011a461c0777fd8de9a79518a0138b
refs/heads/master
2022-12-09T13:06:47.466932
2017-08-04T15:05:19
2017-08-04T15:05:19
99,273,128
0
0
null
2022-12-08T00:42:25
2017-08-03T20:39:23
Python
UTF-8
Python
false
false
6,410
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models #from tagulous.models import SingleTagField, TagField import tagulous import bcrypt import re from datetime import datetime EMAIL_REGEX = re.compile(r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)") ''' class UserManag...
[ "sullyut@gmail.com" ]
sullyut@gmail.com
a3efe365054faff24943537ffee1d595dbee5184
3af020fd309cde6b08e8f3b8944a80d4c674eaf4
/tracker.py
3a4458a6aa5a50b50c3110b7641468366d44b5a2
[]
no_license
ismailkasarci/atv-tracking
3b89d6cdc26c9477be7dd1dbbe022b449bc473f3
786c448c78bbb04ffe1d7fa831d8080d6f88497f
refs/heads/master
2023-08-30T10:23:21.601516
2021-11-13T10:12:23
2021-11-13T10:12:23
351,635,877
0
0
null
null
null
null
UTF-8
Python
false
false
1,768
py
import math class EuclideanDistTracker: def __init__(self): # Store the center positions of the objects self.center_points = {} # Keep the count of the IDs # each time a new object id detected, the count will increase by one self.id_count = 0 def update(self, objects_...
[ "ismail.kasarci@gmail.com" ]
ismail.kasarci@gmail.com
9a40f68069d810351a46713b9be977a322a86944
192b302220d33da72b8ee12f5d51b67d90108a15
/super_movie_picker/urls.py
8f015dd58bbca83a340c63600d1670edf7582176
[]
no_license
greenewk/movie_picker
9eb3b12bf45e81b7dd16b6590b189bbf71a86c3a
40915abd18b8fe0181c73fe392dcfb26998744c1
refs/heads/master
2021-06-26T17:46:44.054377
2020-01-24T14:12:38
2020-01-24T14:12:38
228,456,534
0
0
null
2021-06-02T00:48:32
2019-12-16T19:08:41
JavaScript
UTF-8
Python
false
false
883
py
"""super_movie_picker URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') ...
[ "greenew.k@gmail.com" ]
greenew.k@gmail.com
196ce871fe293b80a739a6da8ff8edb36a5e0ec0
b509bf60f6218caf522edbd19c18c24958268968
/tehtava5_1.py
e61f107774080ac479c87cb6a43f5f6c1641f483
[]
no_license
lketoja/PythonKurssiAalto
fd23b54d3fac74368bd43db784623215987cc64b
180fd32c66a630ded1cf90d73a7a19c7abfce0d7
refs/heads/master
2020-06-06T08:18:47.897176
2020-02-27T17:39:43
2020-02-27T17:39:43
192,685,621
0
0
null
null
null
null
UTF-8
Python
false
false
765
py
''' Created on 17.6.2019 @author: Lotta Ketoja ''' def main(): lkm = int(input("Kuinka monen tuotteen hinnat annat?\n")) hinnat = [0.0] * lkm for i in range(lkm): luettu_hinta = float(input("Anna seuraavan tuotteen hinta (eur).\n")) hinnat[i] = luettu_hinta print("Alennetut hinnat") ...
[ "lotta.ketoja@gmail.com" ]
lotta.ketoja@gmail.com
5197e27e5292042c0deb17e850c425d7d76d9e58
f1d07f934c302f207673411960e3fc075ca86777
/client.py
6806c5f3ca2f565840d0b7b821fb0315a59dcab6
[]
no_license
insa-vn/bang
ab52fea0045908e178b1339877098d169d49339d
d349d9029dbd6fc458870bf8b4660bb9115f524a
refs/heads/master
2021-01-10T10:21:44.325190
2016-02-29T21:46:58
2016-02-29T21:46:58
52,547,899
0
0
null
null
null
null
UTF-8
Python
false
false
336
py
from socketIO_client import SocketIO, LoggingNamespace def on_response(*args): print('Response from Bang server: ' + args[0]) with SocketIO('localhost', 5000, LoggingNamespace) as socketIO: socketIO.emit('hoang sida', {'message': 'Lieu hoang co bi benh sida ? '}, on_response) socketIO.wait_for_callba...
[ "danghaian168@gmail.com" ]
danghaian168@gmail.com
abdc48b6b1a077d05328750e05db9c729762934c
b2f8146e3331a035445a964e534e2dde2604b33f
/rigBuilder/source/rigBuilder/face/faceIO.py
d4f79e1643cd42885583a1e64367dc9fe153330c
[]
no_license
timm-gitHub/fbRepo
f2f584d84329f614d20ef64c1666ec54b9849f69
f85dceef672538c9273ffdbc360f0764a026345a
refs/heads/master
2016-09-05T15:11:07.083941
2013-11-05T00:40:28
2013-11-05T00:40:28
13,265,053
2
3
null
null
null
null
UTF-8
Python
false
false
16,605
py
''' Created on 18/09/2013 @author: caleb.bell faceIO.py is home to the Data Input and Output functions used by the face rig builder. Thes include functions for importing Preference and Set Driven Keyframe data. Both of these data types are exported in a JSON file format, so there are generic JSON import and export f...
[ "caleb.bell+github@gmail.com" ]
caleb.bell+github@gmail.com
e9165e98cf0d6b7f222062b1e491eee7993fdf66
c128a8a0d206ea6c2db1e764b8578ae44eb61f7b
/main.py
9509ea434b45e3faf138a395e7381c4da2369d0e
[]
no_license
jc2/cluster_client
044652f389c62bad0ff95ec8f07527fc89422a65
8cd6488b0363ca3b6ab7c1086dcd2b614c12f4ca
refs/heads/master
2023-06-01T21:08:59.902903
2021-06-15T23:45:43
2021-06-15T23:45:43
376,964,519
1
0
null
null
null
null
UTF-8
Python
false
false
4,303
py
import asyncio import logging from enum import Enum from node import CreateGroup, DeleteGroup, NodeActionState logging.basicConfig(filename='/tmp/run.log', format='%(asctime)s - %(levelname)s: %(message)s', level=logging.DEBUG) logger = logging.getLogger(__name__) class CoroutineState(Enum): STATE_FETCHED = 1 ...
[ "juancamiloceron@gmail.com" ]
juancamiloceron@gmail.com
94de0d26045a93e111fa60999c0e6ffc8c94c834
6da006544407166029abae9c692d734975bd893a
/bert_layer.py
642abe685ad1ecc5c0a888efcee9407f73ca5d3b
[]
no_license
petrjanda/bert-playground
b7563aa03cec03145b47e93447afa43da74dd9cd
16d569dba49796a3459d7a7255e3663f7d742876
refs/heads/master
2020-05-19T19:44:25.280480
2019-05-06T11:57:29
2019-05-06T11:57:29
185,187,697
0
0
null
null
null
null
UTF-8
Python
false
false
1,701
py
import tensorflow as tf import tensorflow_hub as hub from tensorflow.keras import backend as K class BertLayer(tf.keras.layers.Layer): def __init__(self, bert_path, n_fine_tune_layers=10, **kwargs): self.n_fine_tune_layers = n_fine_tune_layers self.trainable = True self.output_size = 768 ...
[ "petrjandacz@gmail.com" ]
petrjandacz@gmail.com
5cd901ed36eb82cabb4c257cfe13ed0271cb4cef
80ff29422e987f17cbb06211907c555d713c881f
/MADE/ALGORITHMS/WEEK6_D.py
fd332a0afb0a419716f1ebed1802744db3174cc5
[]
no_license
be-y-a/smth
8780f362305ddb4d25834b921459fb4c9115ab5f
2ee632b629f68aca49642322b28c8487ce24fee9
refs/heads/master
2023-01-10T16:08:25.030319
2020-11-02T21:48:10
2020-11-09T10:09:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
494
py
def levenstein(a, b): n, m = len(a), len(b) if n > m: a, b = b, a n, m = m, n current = range(n + 1) for i in range(1, m + 1): prev, current = current, [i] + [0] * n for j in range(1, n + 1): add, delete, change = prev[j] + 1, current[j - 1] + 1, prev[j - 1] ...
[ "mvvm@yandex-team.ru" ]
mvvm@yandex-team.ru
ec36c2f9e3113a532ed0280c0dfc2e3a0f942acd
2e38c69121b4ee829972a4cf5845b15d9b0eca25
/python/python_base/网易云音乐下载.py
935f86a974b19da381f0867179ed2fcd6a0d857b
[]
no_license
steadyrays/usermaster
92eda1783994cadd023fcdc9afd31eb2f6bcb95b
2849cbbc23df700d0387f48f36b7c726954a10c5
refs/heads/master
2022-07-01T18:02:45.811761
2020-05-10T15:45:18
2020-05-10T15:45:18
262,750,096
0
0
null
null
null
null
UTF-8
Python
false
false
1,302
py
#保存图片、音乐、视频文件用二进制格式wb #单首音乐下载 # import requests # url='http://music.163.com/song/media/outer/url?id=1369798757' # headers={'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0'} # response=requests.get(url,headers=headers) # data=response.content # with open('芒种.mp3','wb')as f: ...
[ "877243985@qq.om" ]
877243985@qq.om
d5c6978e92c337050ab5f5f1908a4ef11c57304f
d9ec3b14a34e1cc7df2bbb51cb83d0e9c2fec0e5
/Lista1/exercicio4.py
1b6400cc559289daba3d890f05d4ae5e0b8ba13c
[]
no_license
nevesjf/python
ffb2838efc96cdb51aeb903c169c7ca15b454799
1269cc9cc0b24fbf6bc48e1258dd1bf3847f22bb
refs/heads/master
2020-04-10T23:55:16.177841
2018-03-25T21:22:03
2018-03-25T21:22:03
124,309,849
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
#EXERCICIO4 vlrSalario = float(input("Valor do salario: ")) pctAumento = int(input("Porcentagem de aumento: ")) novoSalario = vlrSalario+vlrSalario*pctAumento/100 print("Novo salário é: ", novoSalario)
[ "nevesjf@uol.com.br" ]
nevesjf@uol.com.br
d00094432e33d5323e9928793d41a57003c88524
35d67bf16427d421c986602bc50b98b94b3328be
/Python/chapter15/21.py
159cf75fde0da58c20ef62d953bb182510fcdb5d
[]
no_license
xiaoy/Exercise
74eefe6458d202ea6310d958374cbb761d4a7ad5
c89b7beac3ae7508cd00d81e215b7e00e4306d85
refs/heads/master
2021-06-12T04:40:54.555509
2021-05-16T09:03:22
2021-05-16T09:03:22
5,648,724
1
0
null
null
null
null
UTF-8
Python
false
false
199
py
# use this program to verify the month import re re_str = r".+(Jan|Feb|Mar|Jan|Jul|Apr|Sep|Oct|Nov)" f = open("data.txt", 'r') for line in f: print re.match(re_str, line).groups()[0] f.close()
[ "zgwulongfei@gmail.com" ]
zgwulongfei@gmail.com
7fa2949cf1cd3bc986e1801d3d60ef78650ba85e
8186514b510a801863229e3f9711c0c657e727e5
/assembly/0427/explore_qt/22/2.py
1995344ca3c4e4d6ee83bf7b963ca016295d0b6c
[]
no_license
masknugget/mypyqt
274b2cbbf66c04927453815248f9c1bc5e65ca17
b86a49e4b8c7c8c3d8546ce1b49f8f3bb6332307
refs/heads/main
2023-08-17T13:30:11.451066
2021-09-27T14:14:54
2021-09-27T14:14:54
355,904,935
0
0
null
null
null
null
UTF-8
Python
false
false
3,037
py
import sys from PyQt5.QtWidgets import QApplication, QWidget, QInputDialog, QLineEdit, QTextEdit, QPushButton, \ QGridLayout class Demo(QWidget): def __init__(self): super(Demo, self).__init__() self.name_btn = QPushButton('Name', self) self.gender_btn = QPushBu...
[ "946883098@qq.com" ]
946883098@qq.com
bce6b6017de354154b0a2b7fd4412e1132861e58
6d00353112578165aebcc620e60229ec40e846ee
/challenges/pythagorean-triplet-in-array.py
ac8bf1b7e3584a9ec632081d74320233a1b6bbc8
[]
no_license
dkp1903/daily-coding-problem
955c310778d299bb729fe6f4c21ee056edc260cd
2b83fd91c486bf097d4f7755677c14cc3e564013
refs/heads/master
2020-05-27T06:26:13.884888
2019-05-27T00:24:08
2019-05-27T00:24:08
188,521,411
1
0
null
2019-05-25T04:42:25
2019-05-25T04:42:25
null
UTF-8
Python
false
false
795
py
""" #282 Netflix Given an array of integers, determine whether it contains a Pythagorean triplet. Recall that a Pythogorean triplet (a, b, c) is defined by the equation a2+ b2= c2. """ import random, math def has_pythagorean_triplet(arr): arr.sort() squares = [num*num for num in arr] for ind in range(...
[ "subsr97@gmail.com" ]
subsr97@gmail.com
c7c39f7ebb7d0abd8f20c798147d7c8d43e3b0bc
3afa8265220cd0968262a6b54d66a0dbb5a759ef
/webserver/front/admin.py
dfaa356e2e3a8112b74c4f3086a4436692e92caf
[]
no_license
SacriJuts/4PROJ
71d15661f74c8a8234e480dd8c7b73f32001cb13
b4c628f730ec2b82b27dde94d948c752bfc05860
refs/heads/master
2022-11-03T17:47:08.085395
2020-06-14T15:26:44
2020-06-14T15:26:44
265,799,437
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
from django.contrib import admin # Register your models here. from django.contrib.auth.admin import UserAdmin from .models import User, Cart, Product, Shelf admin.site.register(User, UserAdmin) admin.site.register(Cart) admin.site.register(Product) admin.site.register(Shelf)
[ "jutslegameur@gmail.com" ]
jutslegameur@gmail.com
bb650d1bf5cd61f76b2df5950229d9dafb96e643
fcc7e2459ea6cab4cb7a61f007c26539871064b1
/pgrm36.py
b42ea7d22884815972d2b03940bdef0aa7fc2b17
[]
no_license
ChandanaBasavaraj/python-code
95a3fb01c8202e8fbea868697c32c55161b78665
90b51c2bfe4b2c516d344e218f92279a81afaf44
refs/heads/master
2020-03-27T23:26:06.222622
2018-09-04T08:53:46
2018-09-04T08:53:46
147,316,386
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
'''code to get username and password''' def main(): login() def login(): username="harshita" password="Harshita@96" print("Enter username : ") answer1=input() print("Enter password : ") answer2=input() if answer1==username and answer2==password: print("Welc...
[ "noreply@github.com" ]
noreply@github.com
963c21dcb3fda320cc53ce7e08d427b37c2d8aea
6a2b1b1d6092a8d2492a6677b6fd19d27b0f461f
/08-Python-DataTypes/Tuples/02-create-one-element-tuple.py
05fa335a53400e9ea8a0525d7b35a9f3a2482310
[]
no_license
Uttam1982/PythonTutorial
3cfbe237199e048967502f3d0c1936f2b878cb87
8e28cc5c4be5826a011059db66f6952871248c82
refs/heads/master
2022-12-17T18:47:28.397383
2020-09-22T08:55:23
2020-09-22T08:55:23
288,524,784
0
1
null
null
null
null
UTF-8
Python
false
false
535
py
# Creating a tuple with one element is a bit tricky. # 1. Having one element within parentheses is not enough. # 2. We will need a trailing comma to indicate that it is, in fact, a tuple. my_tuple = ("python") print("tuple without trailing comma: ",type(my_tuple)) # <class 'str'> #Creating a tuple having one eleme...
[ "uttampat@gmail.com" ]
uttampat@gmail.com
3ca31b3d92fb01a00afe5d42039144c994edc0ad
1a8e511d2609f7b5b70a07d758664aed643763b0
/defines.py
c293428b936aa76d44ae92a66e27726e5410acea
[]
no_license
MaxDuong/IG-Graph-API-Access-Token
aecdd2c81c67f11fa298a272c80311e510c26b07
5c4a694df176356084e8b49efdb334708a87d2cf
refs/heads/main
2023-02-02T13:45:04.843036
2020-12-20T08:05:10
2020-12-20T08:05:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,294
py
import requests import json def getCreds(): creds = dict() # dictionary to hold everything creds['access_token'] = 'EAAHHaCP5zx0BAAp2Iv8GsRCmwchFHExO0GZBhCOZBk5svujnkT9vEBRk9UDeHcsHKMzkwz4nn3h0wQbXG2AHvwyZC8C0AUjA7P5bOAABZBP91XKBAu1KT5ZB7TuRBtcYCeovv4fX5WXDhFPfnXr6CJx962x1cXr6hLtLx7Dql2QZDZD' creds['...
[ "noreply@github.com" ]
noreply@github.com
12b59c10509167df99a13ed9eb017a489626d74b
f2a2a07c145398b29a033344b5764153e743a167
/source/doublylinkedlist.py
8010b016013c766d0dde8df1c80bd161c5807a3f
[]
no_license
kaichimomose/CS-2-Tweet-Generator
d6e751b4337dbfbf1184b2f425268bb0406383f3
faa356a3ac3dbecaa81342e16222cfc375e54712
refs/heads/master
2021-05-08T03:19:52.600531
2018-01-10T02:25:49
2018-01-10T02:25:49
108,192,717
0
0
null
2017-10-24T22:55:44
2017-10-24T22:55:44
null
UTF-8
Python
false
false
7,085
py
#!python class DoublyNode(object): def __init__(self, data): """Initialize this node with the given data.""" self.data = data self.next = None self.prev = None def __repr__(self): """Return a string representation of this node.""" return 'DoublyNode({!r})'.form...
[ "30785433+kaichimomose@users.noreply.github.com" ]
30785433+kaichimomose@users.noreply.github.com
ac633c6eea08f47d069923c69bcb99584e0012dd
87a4749af8bec681072cf13e362efad537b5ca65
/sel.py
e2b97709b9966aee1fe78862294b2ea4cebb41ef
[]
no_license
connorschwartz/ODROID-Process-Migration-Data
21ca8be2b912a664d9dc9e2e498cf4ceece5cd9b
05b19dd699111d0fca1dcd799b7762ae76e15cdd
refs/heads/master
2020-09-30T05:13:38.301243
2020-02-24T21:41:38
2020-02-24T21:41:38
227,210,889
0
0
null
null
null
null
UTF-8
Python
false
false
4,314
py
import collections import textwrap from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support.expected_conditions import staleness_of from xvfbwrapper import Xvfb import sys import json import datetime ''' addressArray = [ 'file:///home/odroid/bbench-3.0/...
[ "ces133@pitt.edu" ]
ces133@pitt.edu
b0e2af4e4d675713ffc95e2005e39ebb9196bccb
2b1448085c5ad44e78772dde1dcc2fae9cc4c3cc
/botorch/models/converter.py
35da4a3d8d21b48c62c2098e7a129b871f4e43c0
[ "MIT" ]
permissive
leelasd/botorch
47fa0ff9c5f6c534ecfcba59f5b1bf52eea0d62e
c48bfc822940ee8a6e5e2604d4ff282033dbe892
refs/heads/master
2022-12-17T04:42:41.591444
2020-09-10T23:45:05
2020-09-10T23:46:41
294,561,185
1
0
MIT
2020-09-11T01:19:36
2020-09-11T01:19:35
null
UTF-8
Python
false
false
8,088
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. r""" Utilities for converting between different models. """ from __future__ import annotations from copy import deepc...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
d6f59a69819f4cf1e01f0c222031046166e565de
a743df23910cfcb6ac81da926474603aeb1cab32
/.i3/bing_images.py
7bc26d58f4658700eba5624e48d42625a3112bb6
[ "MIT" ]
permissive
DenisPalchuk/dotfiles
1252601f848e776715fe7835d135123add9fc53e
3191a0fc7aa1cf8a1482bfd4c93feb42a8fb9deb
refs/heads/master
2020-05-02T18:53:26.738092
2019-03-28T06:48:52
2019-03-28T06:48:52
178,142,984
1
0
null
null
null
null
UTF-8
Python
false
false
910
py
import requests import json import os def main(): response = requests.get( 'http://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US') data = json.loads(response.text) url_to_image = data["images"][0]['url'] file_path = download_file("http://bing.com" + url_to_image) os.system...
[ "palchukdenis@gmail.com" ]
palchukdenis@gmail.com
a3063e76e55f195357aeabfba8c153ef2363fa5c
edbaabe49217ac3626fe285d9301f0583d02b617
/task7.py
3e48bc5b05ab442dc4d00c6dab246d01d21e252e
[]
no_license
Durga944/web_scraping
7da8c4b5a14b6033fb3714e1fca4f98721b66c3a
bebbe59fbda9ba554182e34ab5458f1ab22d433a
refs/heads/main
2023-08-05T04:17:30.069262
2021-09-25T10:40:10
2021-09-25T10:40:10
410,244,385
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
from task5 import* def analyse_movies_directors(movie_list): director_dict={} index1 =0 while index1<len(movie_list): index2=0 count=0 while index2<len(movie_list): if movie_list[index1]["director"]==movie_list[index2]["director"]: count+=1 ...
[ "noreply@github.com" ]
noreply@github.com
3667c8f1f8d45c41f552e9abe2d97e7838ac9395
ef187d259d33e97c7b9ed07dfbf065cec3e41f59
/work/atcoder/abc/abc083/B/answers/896331_rin1120.py
b9ceb3808d88e51ac154a5487becbe592cfa4936
[]
no_license
kjnh10/pcw
847f7295ea3174490485ffe14ce4cdea0931c032
8f677701bce15517fb9362cc5b596644da62dca8
refs/heads/master
2020-03-18T09:54:23.442772
2018-07-19T00:26:09
2018-07-19T00:26:09
134,586,379
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
N, A, B = map(int, input().split()) ans=0 for i in range(N): t = 0 j = i+1 while j != 0: t += j%10 j //= 10 if A <= t and t <= B: ans += i+1 print(ans)
[ "kojinho10@gmail.com" ]
kojinho10@gmail.com
e3dd198e14372fd22f803e0d441d2904fea3e65c
d24ba8ee62d040be0da52d4e322290843d213393
/BookShare/app/test.py
e8e4501edbfdca9372ce4d6ee251d20003849b2b
[]
no_license
ShuQiongZheng/COMP2011-Coursework2
f0ec07e8b5431f91f912db5dce707ab3dadba297
bfce332d7fdbdde4a534b047a503f2ef60c411d3
refs/heads/master
2023-02-13T16:59:46.427339
2019-12-10T10:44:47
2019-12-10T10:44:47
227,087,277
0
0
null
2023-02-02T05:11:21
2019-12-10T10:12:01
Python
UTF-8
Python
false
false
2,777
py
import unittest from app import app class MyTestCase(unittest.TestCase): def test_login(self): with app.test_client() as client: response = client.post('/login/', data=dict( # Use the client client to simulate sending web requests username='A', password...
[ "noreply@github.com" ]
noreply@github.com
89cd4ca057d69b4c1e05d0a821256293352b855f
4a8c1f7d9935609b780aff95c886ef7781967be0
/atcoder/_codeforces/1467_c.py
a74cb1c4230efe5766c5cfc9695586b0a0b3e910
[]
no_license
recuraki/PythonJunkTest
d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a
2556c973d468a6988d307ce85c5f2f8ab15e759a
refs/heads/master
2023-08-09T17:42:21.875768
2023-07-18T23:06:31
2023-07-18T23:06:31
13,790,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,557
py
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): from pprint import pprint import sys input = sys.stdin.readline def do(): n1, n2, n3 = map(int, input().split()) dat1 = list(map(int, input().split...
[ "kanai@wide.ad.jp" ]
kanai@wide.ad.jp
a6f904efba10e1fbab2f31b9138a1a593af8144f
23de9f92e95b0428bebb4152d96374352eba1f4b
/combine_pdf.py
9ba50dbb19e21bda93716d932d351982b6c6bee3
[]
no_license
iccowan/pdf_combiner
340a2d8e70fe365b8dc94fb3a5db6bf4e992858b
de36eae78078b475eefff8f1eda0b927ed521868
refs/heads/master
2020-05-18T09:48:09.442232
2019-04-30T21:52:33
2019-04-30T21:52:33
184,336,097
0
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
#!/usr/bin/env python from PyPDF2 import PdfFileReader, PdfFileWriter def pdf_cat(input_files, output_stream): input_streams = [] try: # First open all the files, then produce the output file, and # finally close the input files. This is necessary because # the data isn't read from the ...
[ "ian@cowanemail.com" ]
ian@cowanemail.com
528943be9743fda9bd8b1ce58150965fe2446877
c34ec26602207dc070b03fdb501c5abc5b7a2b89
/board/models.py
018910fd3d66c7237ae72b1536436da5191bb2c4
[]
no_license
mcandidier/citrus
80bb9630a7e7434a452378a54128a94f46e0dba2
cb7d0d2a0e5c1512fa23adf84b71a69d33225ab7
refs/heads/master
2023-01-10T14:24:11.494600
2019-10-24T08:03:18
2019-10-24T08:03:18
213,924,555
0
0
null
2023-01-05T23:18:07
2019-10-09T13:21:15
TypeScript
UTF-8
Python
false
false
399
py
from django.db import models from django.contrib.auth.models import User class Board(models.Model): name = models.CharField(max_length=128) owner = models.ForeignKey(User, related_name='boards', on_delete=models.CASCADE) date_created = models.DateTimeField(auto_now_add=True) date_updated = models.Date...
[ "mannycandidier@gmail.com" ]
mannycandidier@gmail.com
006e8135fa1fa82728fac868d73e4071f1a79e68
e5740540f6409b63d09a51aea243917583b3f172
/migrations/versions/4cfda2af8664_.py
7b8c3ab24b99b4bfd61458baaa4de710f1836d45
[]
no_license
SER-401-Team-36/football-app
9e13f59b663a97653352964f1600382a53c716a4
58de57ba6fa25ded2c261b8745d62e1bc6cb1c30
refs/heads/main
2023-04-18T11:23:55.538702
2021-04-23T16:39:51
2021-04-23T16:39:51
304,128,123
0
0
null
2021-04-22T01:56:08
2020-10-14T20:28:51
Python
UTF-8
Python
false
false
1,429
py
"""empty message Revision ID: 4cfda2af8664 Revises: 9b77973248af Create Date: 2021-02-19 05:23:32.738161 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4cfda2af8664' down_revision = '9b77973248af' branch_labels = None depends_on = None def upgrade(): # ...
[ "jborden36@gmail.com" ]
jborden36@gmail.com
0e2463c6cb9d8e330322439d06736eb909665ebf
792b3b5eddf4e070ec1fc99fb799914a332803cf
/rgsim/gui/building_panel.py
73432b5060877769812e0331d06012c11e6353a4
[]
no_license
verdesmarald/rgsim
981db4367850e5cab5f574637c000229702425d1
6ee277d3da7c4fc67fefd075e316b8fcd2dc20ae
refs/heads/master
2023-02-08T18:00:25.508225
2020-12-25T03:31:50
2020-12-25T03:31:50
324,280,605
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
from __future__ import annotations from typing import TYPE_CHECKING import wx # type: ignore from . import shared if TYPE_CHECKING: from ..entities import building class BuildingPanel(wx.Panel): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.sizer = wx.BoxSize...
[ "jmbungard@gmail.com" ]
jmbungard@gmail.com
063c20aca5f58c1c231ec9832567e20e23ea98ba
0ec6c2eeff4c01bd8bf9316eabf35bafd98233f4
/chat/pusher_integration.py
628348ae8c9b576114d3dbf8f015fc550db3efdd
[]
no_license
michaeltingley/bw
d013e0043132e9b3885beb6b96519a6665f6a619
bd44a53d1a4dd936099374f73e0cd049784b2d38
refs/heads/master
2023-01-05T06:29:53.555597
2016-01-20T05:10:43
2016-01-20T05:10:43
49,931,111
0
0
null
2022-12-26T19:47:02
2016-01-19T06:18:57
JavaScript
UTF-8
Python
false
false
1,576
py
"""Contains functionality for interfacing with the Pusher module.""" from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import HttpResponseBadRequest, JsonResponse from django.views.decorators.csrf import csrf_exempt from pusher import Pusher PUSHER = Pusher( ...
[ "michaelalantingley@gmail.com" ]
michaelalantingley@gmail.com
adbeff76935cbd7b2290404a3caf4ecbd26075b6
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_motion.py
19c9b83026d27cb66cfde07dd09ad7733cf6dde8
[ "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
527
py
#calss header class _MOTION(): def __init__(self,): self.name = "MOTION" self.definitions = [u'the act or process of moving, or a particular action or movement: ', u'a polite way of referring to the process of getting rid of solid waste from the body, or the waste itself: ', u'a formal suggestion made, discusse...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
cfc5f818426bd33c48bb186b2b69820dad51cf02
f87febb0a299605a3b09250c750273af0729cd29
/__init__.py
d41574b679c29eab33c404bb9f923842c709cd37
[ "MIT" ]
permissive
Anxiko/feld
677184f26e1b251a6246ae0ef3ecd4a0fe4dd1b7
88f92a0583e6f346ad6009e91c14a05d5310fb50
refs/heads/master
2022-11-04T05:34:24.036919
2020-06-22T21:54:16
2020-06-22T21:58:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
23
py
from .feld import Feld
[ "Kindos7@gmail.com" ]
Kindos7@gmail.com
9fb11faad70e9d3527ef6937bba12ee7d6eb1ca9
0774c3faafc4ea49085b0be0b91f4609ca817460
/Common/config.py
9fa418c9b4cf626395cacfcf9c352fbcd07170e2
[]
no_license
zh-sky/AutoFrame
6398c3ebb7a9c4ae09d4f689f55c31bbbd41d8cf
7fae0123682ff16f86b6330f88bcce7012822419
refs/heads/master
2022-04-25T01:23:18.399699
2020-04-28T09:56:57
2020-04-28T09:56:57
259,596,543
0
0
null
null
null
null
UTF-8
Python
false
false
2,415
py
import configparser from Common import logger """ 封装解析文件方法 """ class Config: # 构造方法 def __init__(self, path): # 解析对象实例 self.config = configparser.ConfigParser() # 配置文件路径 self.path = path self.config.read(path) def read(self, section=None): """ ...
[ "18310226539@163.com" ]
18310226539@163.com
d516750fb5a1a90fc4d562b94cf5101053ef800c
51121dfadd85b220448b00383eaa7cff221427df
/Code/scrapy/shiyanlou/shiyanlou/models.py
8f0d64de0e80064e72fb7032d8e9bdeb65b0701a
[]
no_license
lilywang20119/shiyanlou
62f5ef85736608aacf76207b1b5de6bdcc32c258
0fc29461c2e0132abce2b66b58bbd6e705f8e172
refs/heads/master
2020-04-11T08:30:38.873166
2019-03-12T00:15:49
2019-03-12T00:15:49
161,645,595
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
#!/usr/bin/env python3 from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,Integer,String from sqlalchemy import Date engine = create_engine('mysql+mysqldb://root@localhost:3306/shiyanlou?charset=utf8') Base = declarative_base() class Course(Base...
[ "noreply@github.com" ]
noreply@github.com
bd332698a29bfa43f6e4bbd49ff2f89aacf70b72
aed1fdbad787e252c19b6fa1e7328014df02feda
/Module-03-Getting-Deeper-02/Example03_Multiple_Inheritance/example01_a_skeleton.py
45e97ebe9039dd875b58f698a1dacad4ab00a9fe
[ "MIT" ]
permissive
CodingGearsCourses/Python-OO-Programming-Fundamentals
35d6aac715a42e668355eed4b503da8bac92d876
5516c935aefae98dcd20a77ea98b41865d44675c
refs/heads/main
2023-02-21T22:28:14.323831
2021-01-28T04:16:19
2021-01-28T04:16:19
333,641,074
1
1
null
null
null
null
UTF-8
Python
false
false
451
py
# https://www.globaletraining.com/ # Simple Inheritance class ParentClass1: pass class ChildClass1(ParentClass1): pass def main(): obj1 = ChildClass1() print(isinstance(obj1, ChildClass1)) print(isinstance(obj1, ParentClass1)) # Method Resolution Order (MRO) print("Method Resolution O...
[ "training@codinggears.io" ]
training@codinggears.io
49f443bca89a578d3f8a95d298ab5d11a2d23640
b2d091ac795fffa63b00a517b4b56ff3da75df28
/home/admin.py
90d7a155be98dfcfc4f494f076ddb0626258fd93
[ "MIT" ]
permissive
Qvineox/accessControl_app
d553ef1159ef140dc1a7a6bd7f222559b15fd4ae
4d3f451ad21e8727a3c3b73a2defc95549da8b27
refs/heads/main
2023-05-06T07:54:04.198735
2021-05-25T14:00:20
2021-05-25T14:00:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
648
py
from django.contrib import admin from .models import Entry class AuthorAdmin(admin.ModelAdmin): pass @admin.register(Entry) class AdminResources(admin.ModelAdmin): list_display = ('id', 'author', 'executor', 'status', 'created_at', 'granted_at', 'expired_at', 'resource') list_filter = ('status', 'autho...
[ "yarlrusman@gmail.com" ]
yarlrusman@gmail.com
178d3eff0f1328a1e00b87c67db329fa0c82a193
ed46d5e9a31c1d0afb094839e1f54dd7ba38e942
/cutkum/ck_model.py
3766fca53738eb443cb3ccf4ff075e3e36d94301
[ "MIT" ]
permissive
punch872/cutkum
7f0aee56619b774d6a73dee06cdec01df1196a56
da59520f12cd0ba8c21c774d0cd76e6db63df112
refs/heads/master
2021-04-28T17:49:05.886524
2018-02-17T09:07:53
2018-02-17T09:07:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,375
py
#!/usr/bin/env python # # Pucktada Treeratpituk (https://pucktada.github.io/) # License: MIT # 2017-05-01 # # A recurrent neural network model (LSTM) for thai word segmentation import logging import re import numpy as np import tensorflow as tf import tensorflow.contrib.layers as layers import tensorflow.contrib.rnn as...
[ "pucktada@highgarden.local" ]
pucktada@highgarden.local