blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bbb4d451e6ea33efbfab2bbfba0e4b1b5efcb954 | bc40f1bcf6d779b39a684e79816e51da7ad828d9 | /venv/Scripts/pip3.6-script.py | 3dd31b464e10e9516671a4ffb64d17b5d90d2e3e | [] | no_license | dovgin2/data_hackerspace_homework | c3b71b4f988688ce3d133a002fc8419e3dff8322 | 2396fe026b81c634f30c67694f27ec1dc3c83a7c | refs/heads/master | 2020-03-30T11:26:17.094261 | 2018-10-16T00:06:29 | 2018-10-16T00:06:29 | 151,173,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!C:\Users\s3dov\PycharmProjects\data_hackerspace_homework\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.ex... | [
"s3dovgin@gmail.com"
] | s3dovgin@gmail.com |
a9d23248a6c436c6c49ed34c13b6d1fb71b7abf5 | bf388b74d823551121f45dfba3333637f845e051 | /hm_web/apps.py | 2f43c6503ad735c3c85578dadb4c034beb9e681b | [
"MIT"
] | permissive | dantswain/heavy_meta | d5178a61f63474315a62d2c9597f2ddd7ab9187e | c3154130c2c951f1a5b46174193157625bb1be17 | refs/heads/master | 2021-09-06T13:26:50.018504 | 2018-02-07T02:55:31 | 2018-02-07T02:55:31 | 117,156,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | '''
Django boilerplate
'''
from django.apps import AppConfig
class HmWebConfig(AppConfig):
'''
Django config boilerplate
'''
name = 'hm_web'
| [
"dan.t.swain@gmail.com"
] | dan.t.swain@gmail.com |
62ba6288d1f83cb12eabbd9f1ca1f699279434d8 | 96a6d2f6544d8d4aa43ce73c0abe851697fa0602 | /birthplan/scheduler.py | 722c5423ed7b18e606c1abf6f1d353fac063ce22 | [] | no_license | basman/atc_bot | 7f12d65dbac21fc586646c1773e7144f8da2f985 | 4106bed0b635dbfabfb1cb4499f27154ed380c08 | refs/heads/master | 2021-01-20T04:37:25.582247 | 2014-10-31T11:22:15 | 2014-10-31T11:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,323 | py | import string
import time
from position import Airport, Exit, Position
class Scheduler:
DEBUG_STEPS = False
DEBUG_NO_TIMEOUT = False
def __init__(self, arena, connector):
self._arena = arena
self._connector = connector
self._schedules = {} # nested dict; _schedules[time][a... | [
"rha_github@disconnect.ch"
] | rha_github@disconnect.ch |
e793c7028c56c76c140624f40a268ba44ce1ccc3 | 90def3915f597b26182087a6c6b6d54eded6d940 | /catalogExport/public_api/httpClient/callapi.py | 4878c72c6096c9a0e2b3fcaf30d55721d642cf97 | [
"MIT"
] | permissive | goodbarber/shop_custom_dev_examples | 4f8122b54149c2a6a0d618bcc7bfaa651b823fa2 | b8aa99386fb2a1ef83ed86f519ef707c533d7470 | refs/heads/main | 2023-07-06T01:45:59.532726 | 2021-08-03T06:36:56 | 2021-08-03T06:36:56 | 342,181,521 | 1 | 1 | null | 2021-08-03T06:36:58 | 2021-02-25T08:55:20 | Python | UTF-8 | Python | false | false | 689 | py | import requests
class CallApi:
'''Class that allow to call multiple requests types'''
def get(self, url, headers={}):
print(url)
res = requests.get(url, headers=headers)
if res.status_code == 200:
return res
else:
raise requests.models.HTTPError(
... | [
"christophelucchini@MacBook-Pro-de-Christophe.local"
] | christophelucchini@MacBook-Pro-de-Christophe.local |
faf4719b940c4e5811346205c59cd9ad7daa89ec | 2813f969fc9833023f543fa14c1c22a87325ca8f | /logging_tree/tests/test_format.py | 787b959fd92bbf2bdc6650b8ba7e639e870cd017 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ralphbean/logging_tree | 5761afc380719f4069fd00b1f21f5765927ce593 | 1db0ad6f485b5333fee637813faf827990924421 | refs/heads/master | 2021-01-16T22:05:05.459626 | 2012-12-04T02:16:14 | 2012-12-04T02:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,425 | py | """Tests for the `logging_tree.format` module."""
import logging
import logging.handlers
import unittest
import sys
from logging_tree.format import build_description, printout
from logging_tree.tests.case import LoggingTestCase
if sys.version_info >= (3,):
from io import StringIO
else:
from StringIO import Str... | [
"brandon@rhodesmill.org"
] | brandon@rhodesmill.org |
187e1c46f87f4c4220aeebea29f79220ed2388ec | 1d3ee56d9a95ffc35e08bbc211f2a6b8e83be7c2 | /resources/chart_line.py | 95ee7407a9e507a1fe2c0397207e5748f31395b8 | [] | no_license | Lucas0Braz/charts_generete | 6ea69cf3526ec713877d9214173d40a65456a184 | 748e110971839f4b1c7463c23c297fcebcdd70e1 | refs/heads/master | 2021-07-10T09:53:50.906534 | 2020-01-28T03:11:18 | 2020-01-28T03:11:18 | 236,640,364 | 0 | 0 | null | 2021-03-20T02:39:52 | 2020-01-28T02:16:17 | Python | UTF-8 | Python | false | false | 1,110 | py |
from flask_restful import Resource,reqparse
from models.chart_line import Chart_LineModel
class Chart_LineResource(Resource):
parser = reqparse.RequestParser()
parser.add_argument('x',
#type=list,
action='append',
requ... | [
"lucasbraz430@gmail.com"
] | lucasbraz430@gmail.com |
6fff1d2dfde9c50515de49dc1e667c6e3472c144 | 663d48b2a2bda714b97341ce9aaefba92602f194 | /model_utils.py | 87ae801ef079ef49395de421fc1d45eae0a38f7c | [
"MIT"
] | permissive | SushantKafle/speechtext-wimp-labeler | 15d9bbac20e96c894d91a5e7ae50c50640f91d7a | 32b71e72f86ab7f864e75e8517bb32f4400352d4 | refs/heads/master | 2023-04-02T00:02:09.914758 | 2020-04-12T18:11:08 | 2020-04-12T18:11:08 | 119,284,336 | 11 | 2 | MIT | 2023-03-24T23:22:54 | 2018-01-28T18:09:07 | Python | UTF-8 | Python | false | false | 753 | py | import tensorflow as tf
def get_rnn_cell(size, type_, state_is_tuple = True):
if type_ == "LSTM":
return tf.contrib.rnn.LSTMCell(size, state_is_tuple=state_is_tuple)
elif type_ == "GRU":
return tf.contrib.rnn.GRUCell(size)
def create_feedforward(input_tensor, input_size, output_size, fn_initializer, activation,... | [
"sxk5664@lac2050-05.main.ad.rit.edu"
] | sxk5664@lac2050-05.main.ad.rit.edu |
fc0d64f7a2b0c2bf8d96c8331a25546b633e2b03 | 9f926ba20c9d72004f30944646eae2f9cc305afd | /timeline_logger/compat.py | b61099b1a6832c44e448678b0e81a5580c5352fb | [
"MIT"
] | permissive | tsiaGeorge/django-timeline-logger | 625a15c27fc6b5b4caf73b300120e0c3c29540e7 | 07bee5038dd84256e3863e6a7634e29521345ce1 | refs/heads/master | 2021-04-06T00:01:11.095501 | 2018-03-07T11:34:45 | 2018-03-07T11:34:45 | 125,027,461 | 0 | 0 | null | 2018-03-13T09:41:11 | 2018-03-13T09:41:11 | null | UTF-8 | Python | false | false | 263 | py | import sys
# Safely importing the HTML parser utility, highly dependent on Python versions
if sys.version_info >= (3, 4):
# From v3.4.0 in advance
import html
else:
# Python 2.x versions
from HTMLParser import HTMLParser
html = HTMLParser()
| [
"jose.lpa@gmail.com"
] | jose.lpa@gmail.com |
bd2c830fec21a04fa77baa6c330e3c3708b289db | 932a75866784589d427afadb11f41abfbbc2dcd4 | /yelp-crawler/YelpAdaption.py | 45fdee987c09094020666b32b4f016e431c5b310 | [] | no_license | wjffxy/dining-bot | a69d5ac5567b149379a86530e8acdb504653a318 | 047255aabb9816162598066cd30310ab8e794de5 | refs/heads/master | 2021-01-09T19:00:41.691686 | 2020-02-22T22:37:28 | 2020-02-22T22:37:28 | 242,420,645 | 0 | 0 | null | 2020-02-22T22:30:47 | 2020-02-22T22:28:39 | JavaScript | UTF-8 | Python | false | false | 3,883 | py | # -*- coding: utf-8 -*-
"""
Yelp Fusion API code sample.
This program demonstrates the capability of the Yelp Fusion API
by using the Search API to query for businesses by a search term and location,
and the Business API to query additional information about the top result
from the searc... | [
"noreply@github.com"
] | wjffxy.noreply@github.com |
d53862d05b52b8276f07a6c6e02b29cd0b79c931 | 2f95a207bb948ad1ac09e9a8d50c5ec0b72c9201 | /untils.py | 6e6ccaf3bb46994152037295c93527d33dca7938 | [] | no_license | wangyuanhao/springD2A | 037e79117cf493481e35da694eca0857348189a5 | 89f1f6d1f6a3e4a942d28a83232c643578888854 | refs/heads/main | 2023-05-01T13:52:00.406182 | 2021-05-24T02:45:09 | 2021-05-24T02:45:09 | 348,259,419 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,083 | py | import os
from torch.utils.data import TensorDataset, DataLoader
import torch
import matplotlib.pyplot as plt
import numpy as np
from torch import nn
import logging
def get_logger(filename, verbosity=1, name=None):
level_dict = {0: logging.DEBUG, 1: logging.INFO, 2: logging.WARNING}
# formatter = logging.Form... | [
"wang_yuanhao@live.com"
] | wang_yuanhao@live.com |
d661b6d2d860ce3bc6425535f573ad65b0bb1d5a | c23692a8b77916124ac3fd840ff8466405b5e2ff | /samples/clap_driving.py | dbecdc37ba53a76df07a43866d8354938ef3d11e | [] | no_license | toanh/edpysim | 575586cda1c8f6364841e162af801cfeaa509f6f | e9d3244c4f2414de9a370adc9f831e71f9296fe2 | refs/heads/master | 2021-05-17T21:05:10.180301 | 2020-04-08T06:48:26 | 2020-04-08T06:48:26 | 250,952,059 | 2 | 1 | null | 2020-04-08T06:49:46 | 2020-03-29T04:18:53 | JavaScript | UTF-8 | Python | false | false | 1,369 | py |
#-------------Setup----------------
Ed.EdisonVersion = Ed.V2
Ed.DistanceUnits = Ed.CM
Ed.Tempo = Ed.TEMPO_MEDIUM
def waitClap():
#loop around, waiting for a clap to be detected
while Ed.ReadClapSensor() != Ed.CLAP_DETECTED:
pass
#--------Your code below-----------
while True:
#wait for a clap to be detected... | [
"toan.kien@gmail.com"
] | toan.kien@gmail.com |
7f079cf4970ef56999d64bea7b1fcc1351cba791 | cee5070499cf59dd5019f86e785e41ad5c55837b | /PageLocators/setting_tab_locator.py | daabcd188f53a965b2ab4371cdec37c91c884a4d | [] | no_license | Yttyou/AppUi | b76cae345039d6c3a39f601960c085696b63b60a | d5303d33c4fb67d3b50e02918f15e5849a956b30 | refs/heads/master | 2023-02-25T07:59:12.759684 | 2021-02-01T01:47:45 | 2021-02-01T01:47:45 | 334,800,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | __author__ = 'developer'
# 【设定】tab页面元素定位
from appium.webdriver.common.mobileby import MobileBy as Mb
class SettingTabLocator:
setting_button = (Mb.ID, "com.suncity.sunpeople.qa:id/tv_setting") # 导航栏【设定】
signout_button = (Mb.ID, "com.suncity.sunpeople.qa:id/tv_signout") # 【登出】按钮
confirm_signout_button ... | [
"t-youtongtong@MEGVII-INC.com"
] | t-youtongtong@MEGVII-INC.com |
6dc14984a85ef7d3fbfbaa874a0267f1787fbeba | 8723d2cb798f6198a84f5746cb9a2ae732a49dd6 | /vafnet/util/Optimizer.py | 1cb4956e0d5975f00f0c6a23b9fda71bfe48a11d | [
"Apache-2.0"
] | permissive | MaxInGaussian/VAFnet | 5d3984ae97be576ac61df5995f58dad96aa6ad05 | 618a16abae08a193b94072d5d5ff176f02bb1288 | refs/heads/master | 2021-07-11T06:31:49.834370 | 2017-10-15T15:54:29 | 2017-10-15T15:54:29 | 104,314,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,637 | py | # Copyright 2017 Max W. Y. Lam
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | [
"maxingaussian@gmail.com"
] | maxingaussian@gmail.com |
83bee1c913ad98cd00f75327075dbef6727ae53a | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/torchx/legacy/nn/VolumetricReplicationPadding.py | 16cc7a1c097d7c351bcc12cb145425dff9ac1bf3 | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 1,969 | py | import torch
from .Module import Module
class VolumetricReplicationPadding(Module):
def __init__(self, pleft, pright=None, ptop=None, pbottom=None, pfront=None, pback=None):
super(VolumetricReplicationPadding, self).__init__()
self.pleft = pleft
self.pright = pright or pleft
self.... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
58dea61f01c79d510c5abba801845512de484d1f | 31ed3085759ed1e8dc8ffdbeb52d0c6605a009f3 | /mylinebot/urls.py | 4d6b2fff64af08db4795cda8762dfba9c9e60732 | [] | no_license | poytoday/lineconnect | af28ef27c57b4c7c7693b2c0595495366dfbe112 | 45a4ac0406326c036bdbd0c01050f1f772f56b40 | refs/heads/master | 2022-11-18T01:00:10.172245 | 2020-07-14T10:19:33 | 2020-07-14T10:19:33 | 279,545,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.urls import path, include
from .views import callback
urlpatterns=[
path('callback/', callback, name='callback')
] | [
"poytoday@gmail.com"
] | poytoday@gmail.com |
405b180fbc5d7387565172702112313d01dff282 | 6efb6f69426bbd821f2e748decb9d9c0652e0743 | /lab4/venv/Scripts/UTscapy-script.py | 0630774b1472e4df9b492ed23be125597842f719 | [] | no_license | Notheryne/Sieci | cd3616577c40f0b546f1bfa77aca0d7f054997b2 | fcdb1b7af298ca4eaea8110b0a7dc171400ce37b | refs/heads/master | 2020-09-04T16:26:13.821539 | 2020-01-28T22:43:35 | 2020-01-28T22:43:35 | 219,801,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #!D:\Programowanie\SieciLab\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'scapy==2.4.3','console_scripts','UTscapy'
__requires__ = 'scapy==2.4.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[0])
... | [
"rydzinski.bartosz.1998@gmail.com"
] | rydzinski.bartosz.1998@gmail.com |
dbc6d0472c2132b6af6592c1e1e8e960c32f3f6d | e8d3b04a19ba1b6373877068c3200e91f5142932 | /lastfour_main/helper.py | 9522ad7c13cd6f25f7de19af268f57c0b4856c83 | [] | no_license | kpavankumar623/cricket-project | 46005ebc7586979deef4d9071441c13b726b095a | d83ed4400080d1bf8f40f086cd88d5e71957e3ba | refs/heads/master | 2020-07-16T14:15:03.475153 | 2019-09-20T13:08:06 | 2019-09-20T13:08:06 | 205,804,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py |
def cal_winners(inn,match):
"""below conditions declare the winner"""
actual_score = match.WIN_SCORE-1
if inn.score >= actual_score:
print("Lengaburu WON by {} wickets".format(match.WICKETS_MAX - inn.wickets))
elif inn.score == actual_score:
print("Match DRAWN")... | [
"kpavankumar623@hotmail.com"
] | kpavankumar623@hotmail.com |
cb0b2c679a02d35a32e443a9412c0292555d4f6b | cff588a68be44913be884ba5c4ebf36a0a96cb75 | /python/007study_namespace.py | 3377539352b3e241261c717dfa8c5240c876539d | [] | no_license | KOOKDONGHUN/trading | e6a8d023f4bdbb0f1cf32e3e5b6b26b6265fc3a6 | 2d4337978a5849098ed890e9e2c3f059e4706536 | refs/heads/master | 2022-11-15T00:38:32.705125 | 2020-07-12T10:25:46 | 2020-07-12T10:25:46 | 275,761,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | class Stock:
market = 'kospi'
print(dir())# // ['Stock', '__annotations__', '__builtins__', '__cached__', '__doc__',
# // '__file__', '__loader__', '__name__', '__package__', '__spec__']
# Stock이 추가됐다
print(Stock) # <class '__main__.Stock'>
# 클래스가 정의되면 하나의 독립적인 네임스페이스가 생기고 클래스내에 정의된 변수나 ... | [
"dh3978@naver.com"
] | dh3978@naver.com |
14e20c46fd479497e766de6b6114b7dae024aad5 | 295cdb8828639d84c9bdd71f80587669773c174e | /mysite/time_traveler/migrations/0001_initial.py | b23615ea8a4d74e6f332fc1e677222fb65950d85 | [] | no_license | VeyronRomeo/mysite | a6cdddc9ffa34be865492cbfb7c346c4167ae2c4 | 5c0180678d25c453091e4612e4868e9bbf748b4e | refs/heads/master | 2021-08-16T23:42:35.887457 | 2017-11-20T13:32:54 | 2017-11-20T13:32:54 | 27,227,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-17 03:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='userNa... | [
"killni.ma@163.com"
] | killni.ma@163.com |
0308fbd80076e9763f9daf836a65b64f1a5decc9 | 2558bfcc4781f220ecbeb664785c643cf45720f2 | /blog_tutorial/views.py | bb172057aaab3f642de1a5dc6aeecd00af9977f3 | [] | no_license | bornie21/blog_tutorial | 066d5c7722bfae82c3b928f67f07a36ba38940c1 | 6595337809d9a8ffdf448cc08e6990b97dfaba81 | refs/heads/master | 2021-01-17T20:13:11.589245 | 2016-09-18T17:13:34 | 2016-09-18T17:13:34 | 68,509,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from django.views.generic import ListView
from blog.models import Entry
class HomeView(ListView):
template_name = 'index.html'
queryset = Entry.objects.order_by('-created_at')
| [
"matembudzeb@gmail.com"
] | matembudzeb@gmail.com |
e7b07e9da69275211369027ccc4b4e3df2428c9a | 98d328e4e00ac7cf8930d2ff9bd68af1d9d9cc3b | /utils/lib_clustering.py | 3e1b9079f84417c6585bb40e6d8bcf926bf03a2b | [] | no_license | jtpils/Lane-Detection-from-Point-Cloud | 4d7e98cafada569097e16e7bcb5fdabc048e0644 | 238cb8cedc823a84c32b60ce13e7de8c81f19232 | refs/heads/master | 2020-06-05T08:42:46.397450 | 2019-06-17T15:41:58 | 2019-06-17T15:41:58 | 192,380,398 | 14 | 4 | null | 2019-06-17T16:16:58 | 2019-06-17T16:16:58 | null | UTF-8 | Python | false | false | 3,810 | py | '''
Clustering by DBSCAN using sklearn library
This code is copied and modified from:
https://scikit-learn.org/stable/modules/generated/sklearn.cluster.DBSCAN.html
'''
import numpy as np
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
from skle... | [
"felixchenfy@gmail.com"
] | felixchenfy@gmail.com |
5e57e42cf81e3523dfaa874a315995fbc33cfcb9 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D11B/PAYDUCD11BUN.py | 3dccdf3361385387dedef9f876212a5ce94c56a8 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,580 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD11BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'PAI', MIN: 1, MAX: 1},
{ID: 'FII', MIN: 1, MAX: 2},
{ID: 'DTM'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
33707edb80b081ec1ed745507088f9c26ebd20fd | b182ff74d1107c00d77d3bb241dfca589ccc9404 | /config.py | 2bba1aadff966f60605fa7fdf900d990f46442d1 | [] | no_license | aexleader/Tornado-OA-System | 7846a13a90c6da512a7f7620b003bd77b331a63d | 6ffc51d2f42fcbd5b0abe7082dae4505bf687894 | refs/heads/master | 2020-08-01T14:00:28.966198 | 2019-09-10T10:57:23 | 2019-09-10T10:57:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #coding=utf-8
from libs.flash.flash_lib import get_flashed_messages # 引入一个变量
from libs.permission.permission_auth.permission_interface_libs import menu_permission
settings = dict(
template_path = 'templates',
static_path = 'static',
debug = True,
cookie_secret = 'aaaa',
... | [
"htxz_jiang@163.com"
] | htxz_jiang@163.com |
5f96b2f9df61b2997848aed9767153a92a516338 | 762de1c66746267e05d53184d7854934616416ee | /tools/MolSurfGenService/MolSurfaceGen32/chimera/share/VolumeProcessing/apply.py | e3698c7a49fcc4c0b7f6619db155e7b141e47eb8 | [] | no_license | project-renard-survey/semanticscience | 6e74f5d475cf0ebcd9bb7be6bb9522cf15ed8677 | 024890dba56c3e82ea2cf8c773965117f8cda339 | refs/heads/master | 2021-07-07T21:47:17.767414 | 2017-10-04T12:13:50 | 2017-10-04T12:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | #!/usr/bin/env python
# -----------------------------------------------------------------------------
# Apply a function to a grid pointwise.
# The resulting volume is written in netcdf format.
#
# Syntax: apply.py sqrt|square|abs|exp|log <infile> <outfile>
#
# The file type must be one of the types handled by VolumeDa... | [
"alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5"
] | alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5 |
335fe03ecf60ad60f91b937781b87ec328478859 | d7f366993efd8dce8ee88836ccd02db4fb6c31a2 | /attack.py | 6061a3a8217792d89a700f5c2e33413ede522625 | [
"Apache-2.0"
] | permissive | hebo1221/Inconspicuous-Adversarial-perturbation-post-processing-method-with-texture-analysis | b92721b88f4691bbaa041ee4c74ca031a0eaa7bc | 770a2c8898d56293845d7fd63f01649793e0d65f | refs/heads/main | 2023-02-16T01:45:08.868788 | 2021-01-16T00:36:23 | 2021-01-16T00:36:23 | 330,053,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,405 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torchattacks.attack import Attack
import cv2
from skimage.color import rgb2gray
from skimage.filters import sobel
from skimage.segmentation import mark_boundaries
from skimage.util import img_as_float
from skimage.metrics import mean_squar... | [
"noreply@github.com"
] | hebo1221.noreply@github.com |
e8ff2ecd2620b1f6bb2ef13e7babba0a737a2405 | fbb552bd9ef5378c915b73f35ae002e0719bfdbd | /dumbPlayer.py | 8e03986b887f23176e658fcb138390e89eb1ff8c | [] | no_license | PROgram52bc/COS280_TicTacToe | 1c346efd83fc07a9a7344e272c46d2275a13dc47 | 7e5b382fa29a98fb8921db5d5e3337b7a899b10c | refs/heads/master | 2020-04-29T06:17:27.783495 | 2019-03-24T21:38:33 | 2019-03-24T21:38:38 | 175,911,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from player import Player
class DumbPlayer(Player):
def __init__(self, mySymbol, opponentSymbol):
super().__init__(mySymbol, opponentSymbol)
def makeMove(self, board):
for row in range(len(board)):
for col in range(len(board[0])):
if not board[row][col]:
... | [
"daviddenghaotian@163.com"
] | daviddenghaotian@163.com |
ca02764f5cda7953b2d8979696c2f5fce8cc6ebc | 25318e17552bce267ab4bc7436f0f630800d9aac | /OCR_MLP_M.py | 70c25fb97264371eba6521022a963489a0216e76 | [] | no_license | Stx666Michael/digit_recognition | fbed7413955c919ef86805dd09582df7e5659e2e | 1bf12d4c1e673d5cb2fd459c1bd56b7c7d3c71aa | refs/heads/main | 2023-03-07T20:01:03.600883 | 2021-02-22T01:50:21 | 2021-02-22T01:50:21 | 340,858,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | import numpy as np #导入numpy工具包
from os import listdir #使用listdir模块,用于访问本地文件
from sklearn.neural_network import MLPClassifier
import PIL.Image as image
import random
import time
def img2vector(fileName):
f = open(fileName,'rb')
data = []
img = image.open(f)
m,n = img.size
for i i... | [
"noreply@github.com"
] | Stx666Michael.noreply@github.com |
ba0cd3b1c0948476c5e95310ac7aa974653dfd23 | 29e444e9cd38e9d54f7af12db13be325946c8608 | /events_spider/master_server.py | 93e7e7c01260190296bc6d9b8d669f8a51fefa8a | [] | no_license | HughLK/Distributed-News-Monitoring-System | 0cf3da8f4a3de3afb9b24e6185408231d9ec7bdd | 180472c4f5bc642eddc247d18b203d5da92fe40d | refs/heads/master | 2020-09-24T12:53:23.538981 | 2019-12-14T05:25:16 | 2019-12-14T05:25:16 | 225,763,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # -*- coding: utf-8 -*-
import datetime
from events_spider.utils.tools import LOGGER, APP_CONF, SCHEDULER
from rpc_client import RpcClient
from SimpleXMLRPCServer import SimpleXMLRPCServer
CLIENT = RpcClient()
def callback():
LOGGER.info("New Master Confirmed.")
CLIENT.call()
# SCHEDULER.add_... | [
"scdylk@aliyun.com"
] | scdylk@aliyun.com |
9b25fca4182e31a9a72666772e8b52b3eebcb24f | 33b40df749eecb1195fc2312135c5a1f4b38355a | /django_newsapp/core/migrations/0007_auto_20160111_0141.py | a2e955df261020773a28948b709602ea666e3367 | [] | no_license | ksj1993/django_newsapp | 01d8b47b91ad599a605e34310fd31950ecdc214e | 4e7224c74ce6dcc76c443a38cb7e2b57e7267dad | refs/heads/master | 2021-01-10T07:59:52.210334 | 2016-02-06T06:29:53 | 2016-02-06T06:29:53 | 49,241,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-11 01:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0006_article_title'),
]
operations = [
migrations.AddField(
... | [
"kunaljasty@gmail.com"
] | kunaljasty@gmail.com |
d10cffd433e1382aa8c9269811b4ec706c2b5af9 | 28aca7a21dbd066c30e0385937adc683ae707401 | /flag_bot.py | 954844ba9373d425539a352150b25658caf78f8d | [] | no_license | obscuritysystems/DC801_CTF | 219ed509e96e29712e2c018f4bd97602e7a19568 | 5b9ae581d1e1e2b914cd413735c5fe057a916dea | refs/heads/master | 2016-09-06T17:52:50.623862 | 2013-05-07T05:26:54 | 2013-05-07T05:26:54 | 7,049,834 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | #!/usr/bin/env python
import sys, time, socket
from daemon import Daemon
from flag_bot_ai import FlagBotAI
class FlagBot(Daemon):
def run(self):
bot = FlagBotAI()
bot.run()
if __name__ == "__main__":
daemon = NemusBot('/tmp/FlagBot.pid')
if len(sys.argv) == 2:
if 'start' == sys.argv[1]:
daemon.start(... | [
"nemus@obscuritysytems.com"
] | nemus@obscuritysytems.com |
483082bb132d04dca5ed5513a195893b7756e4ed | e86c934b98fd78352eda6fa5ee23ab89a9814c4b | /aliyun/log/etl_core/restrict_config_parser.py | 5b9db1008be7bd7755136820711f15e427bae620 | [
"MIT"
] | permissive | aliyun/aliyun-log-python-sdk | fbe8212da62f0ae30aa4fcb2c10c4e2ef7b7aaee | 0ccf358adecf01f953011f21dfcf259114bab2aa | refs/heads/master | 2023-08-31T03:25:26.183336 | 2023-08-18T02:12:26 | 2023-08-18T02:12:26 | 78,168,645 | 162 | 149 | MIT | 2023-09-05T01:37:51 | 2017-01-06T03:03:17 | Python | UTF-8 | Python | false | false | 2,723 | py | import ast
import logging
import six
import sys
TRUST_AST_TYPES = (ast.Call, ast.Module, ast.List, ast.Tuple, ast.Dict, ast.Name, ast.Num, ast.Str,
ast.Assign, ast.Load)
if sys.version_info[:2] == (3, 3):
TRUST_AST_TYPES = TRUST_AST_TYPES + (ast.Bytes,)
elif six.PY3:
TRUST_AST_TYPES = TRUS... | [
"wjo1212@163.com"
] | wjo1212@163.com |
aa8aabf65ecb49d7092f518affba7b4f4200745b | 609582ee37a01ac6a67fb9c957825dcd3c9a5b3a | /LeetCode_Math/67_Add_Binaray.py | 77bf2de64eddd1dca19c9a8f56aeabd0235107f3 | [] | no_license | captainjack331089/captainjack33.LeetCode | a9ad7b3591675c76814eda22e683745068e0abed | 4c03f28371e003e8e6a7c30b7b0c46beb5e2a8e7 | refs/heads/master | 2022-03-07T19:53:40.454945 | 2019-11-06T19:32:00 | 2019-11-06T19:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | """
67. Add Binary
Category: Math
Difficulty: Easy
"""
"""
Given two binary strings, return their sum (also a binary string).
The input strings are both non-empty and contains only characters 1 or 0.
Example 1:
Input: a = "11", b = "1"
Output: "100"
Example 2:
Input: a = "1010", b = "1011"
Output: "10101"
"""
cla... | [
"qfhjack@gmail.com"
] | qfhjack@gmail.com |
669826572171af8678d7799f11c25be1be9d1480 | b092806631c5284a71996c7f16ba3aec6d845cdb | /Analysis/HSCPStudy/python/config.py | 63a9fdad617cd84fbca9131658dde97f0026f240 | [] | no_license | tvami/HSCPAnalysis | f4700c40cf96cc42133befe4c313b0536f69ffaf | 936725605c9ad5f64dd3b874064f9d4d58806d66 | refs/heads/master | 2021-12-25T18:56:04.191661 | 2021-12-20T00:38:21 | 2021-12-20T00:38:21 | 218,607,653 | 0 | 0 | null | 2021-03-30T20:12:26 | 2019-10-30T19:35:57 | C++ | UTF-8 | Python | false | false | 643 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Demo")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
process.source = cms.Source("PoolSource",
# replace 'myfile.root' with the source fi... | [
"noreply@github.com"
] | tvami.noreply@github.com |
635b2ea8ba272c29ef49790aae721a40124e6873 | 98f3deef793bee63b029f5bcc2335524e8c2e5c2 | /爬虫/爬虫入门/封装函数后爬取某网站.py | 50c1c24b6182b08bf25e0ac5785cdc9135f43a84 | [] | no_license | BBBBchan/python | f6a069821b8c4848fd25d70c6f36d6217023beb5 | ca106ea549f68b557829da51588c5ceb416d5435 | refs/heads/master | 2021-06-04T13:19:13.485475 | 2019-11-29T03:38:12 | 2019-11-29T03:38:12 | 112,024,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # -*- coding: utf-8 -*-
import requests
def gethtml(url):
try:
r = requests.get(url, timeout=30)
r.raise_for_status()
r.encoding = r.apparent_encoding
return r.text
except:
return "异常"
if __name__ == "__main__":
url = "www.baidu.com"
print(gethtml(url)) | [
"sbysbysby123@gmail.com"
] | sbysbysby123@gmail.com |
46335ec9e4accf5fef2e9fe3fc4542bb092994bf | 6bff080a2bfba280244fc956c40acfd294e9c095 | /Inner Graph Generator/graph_tester.py | 66d35ed8f0e3f38c8b5e92af551439672e8c6bd7 | [] | no_license | thunderbolt06/Enumeration-of-RFPs | 7ca0745e79fa094be3aeef5580be926f4999c34d | 324366ba8f690347eda5ac97a5285fb8a139a3e6 | refs/heads/master | 2020-08-07T13:17:22.366289 | 2020-03-26T11:48:00 | 2020-03-26T11:48:00 | 213,460,625 | 1 | 2 | null | 2020-02-16T10:30:07 | 2019-10-07T18:46:12 | Python | UTF-8 | Python | false | false | 333 | py | import networkx as nx
import matplotlib.pyplot as plt
gaf = nx.Graph()
for i in range(int(input())):
gaf.add_edge(*map(int, input().strip().split(' ')))
print(gaf.edges())
nx.draw_planar(gaf, labels=None, font_size=12, font_color='k', font_family='sans-serif', font_weight='normal', alpha=1.0, bbox=None, ax=None)... | [
"4chinmai@gmail.com"
] | 4chinmai@gmail.com |
e01310498475202a0897ae8f1cbd77d2d62f8aea | 6b163125b7d2f3ea5c2b107e6451e423ac7f1f3a | /app/forms/signup_form.py | 4b55991e511d372190937258dd788f9ba156783f | [] | no_license | guny12/Capstone-Mise-En | a1d6e689230ad2e49cce7a09bad52d6243808d15 | b45d510adc04a69c73cf738a97c3a68d7166eebd | refs/heads/main | 2023-06-14T02:13:24.280617 | 2021-07-15T06:30:39 | 2021-07-15T06:30:39 | 363,795,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired, Email, ValidationError, Length
from app.models import User
def email_exists(form, field):
email = field.data
user = User.query.filter(User.email == email).first()
if user:
raise ValidationE... | [
"Jimjnguy@gmail.com"
] | Jimjnguy@gmail.com |
0acc75cf50775793b9ea0595bc40eede48ac8136 | 5358e2a0c829490f1384b6969a42b1ce3ee2c830 | /docker_container/enderecos/endereco.py | 1850d08271052659eb38f8f718d709884a6014cd | [] | no_license | douglasrocha06/tech_talent_desafio_III | ffb23deade7a4698b15bb01a0028540b83f75da9 | 0c6bcd21b76e958f9d45141c804aa71a8c3248b0 | refs/heads/master | 2023-08-16T20:56:25.953386 | 2021-10-15T17:37:53 | 2021-10-15T17:37:53 | 417,583,818 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,832 | py | import pymysql
from app import app
from config import mysql
from flask import jsonify
from flask import flash, request
from flask_httpauth import HTTPBasicAuth
auth = HTTPBasicAuth()
@app.route('/')
def welcome():
return 'Sejam Bem-Vindos!'
#Vizualizar ENDEREÇOS DE TODOS CLIENTES
@app.route('/enderecos/clientes... | [
"douglas.rocha@inmetrics.com.br"
] | douglas.rocha@inmetrics.com.br |
fe17d4d7bf8095d15031ae2cf93d0c18c28d6751 | 10409d39ca4db722a084ee024d4088492917d8c1 | /date.py | aab77b2861504e3aa5a0f35972ad30a53b7b2a6e | [] | no_license | polaroidz/tkdata_fraud_detetction | d0ca643f4cbf1e7f44a0971f298a82ba726c4cba | dfaeb1c075fc8bbf6e5fcddf6b31e112d993383b | refs/heads/master | 2022-04-20T09:11:18.875931 | 2020-04-18T22:48:51 | 2020-04-18T22:48:51 | 256,614,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import math
import pyspark
from pyspark import keyword_only
from pyspark.sql import functions as F
from pyspark.ml import Transformer
from pyspark.ml.param.shared import HasInputCol
from pyspark.ml.param.shared import HasInputCols
from pyspark.ml.param.shared import HasOutputCol
from pyspark.ml.param.shared impor... | [
"diego.mrodrigues11@gmail.com"
] | diego.mrodrigues11@gmail.com |
627e5d9f212753a73b9f9c9e81a215e81c4bc4b6 | 14b768ac8d2ea19fa8f3c99f9802fb9096a2e7f0 | /core/world_patch_block.py | 368aaefd742a463d793003cbd5c261621fc6e847 | [] | no_license | RogodaThallus/PyLogo | f1c397b0cd262b5cf39f3720c30348204525e0de | b41e47dfa287636675f38535ae2d3995aa4cd027 | refs/heads/master | 2021-01-08T08:13:50.671951 | 2020-04-11T00:02:17 | 2020-04-11T00:02:17 | 241,967,208 | 0 | 0 | null | 2020-02-20T19:07:50 | 2020-02-20T19:07:49 | null | UTF-8 | Python | false | false | 9,780 | py |
from __future__ import annotations
from math import sqrt
from typing import Tuple
import numpy as np
from pygame.color import Color
from pygame.rect import Rect
from pygame.sprite import Sprite
from pygame.surface import Surface
import core.gui as gui
# Importing this file eliminates the need for a glo... | [
"noreply@github.com"
] | RogodaThallus.noreply@github.com |
3a4176029eb9b62a827d71c46ebb1792fdf37b91 | 6d703f97d1326023cbfe9818474d446a32e9e7a0 | /siteProject/wsgi.py | 252143bc4db532c80ff3654dbd30ecdecfab7e7b | [] | no_license | LiFFTB/LearnPython | 748d1b89d2197ba1da3026dd488c08aaa15bf258 | 2132c055f8ce3219366a0d023a3e3cb4a0398979 | refs/heads/master | 2022-10-05T11:46:48.552301 | 2020-06-01T15:15:46 | 2020-06-01T15:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
WSGI config for siteProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"jinyu929@qq.com"
] | jinyu929@qq.com |
0963782c89cb406827ba1acfa143e7fdd445951a | 601f1eb021241c13d7b84aab0b51d30efa259b09 | /homework 8.1 mood checker.py | 46348b98396405be5f06098886d5f07db8878bea | [] | no_license | johnbook666/PythonersteProgramme | f1d690332219e8807dce8e001065f2fa1086d454 | 95242ce9ffefc7c2c13c2b5e14b8b1d97128a424 | refs/heads/master | 2020-11-24T21:55:48.874857 | 2019-12-16T10:03:27 | 2019-12-16T10:03:27 | 228,356,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | print('--- mood checker ---')
print('enter mood: happy, nervous, sad, excited, relaxed')
mood = input('your mood ? ')
if mood == "happy":
print('It is great to see you happy!')
elif mood == "nervous":
print('Take a deep breath 3 times.')
elif mood == "sad":
print('take a walk and enjoy the sun !')
elif mood... | [
"markusarendt@hotmail.com"
] | markusarendt@hotmail.com |
db5478f9a0cb0cf030d084d4aa9c480907c197a7 | 0dc3e9b70da8ccd056e0a0fab2b1d8f850c3d470 | /lantern/django/django_celery/src/apps/cars/serializers.py | 3b2841adafff0d4d82de945686eeba93f6718cd8 | [] | no_license | ArturYefriemov/green_lantern | 28e7150af7b9d2281a107ad80026828ad77af62a | 2841b647e1bfae4a7505e91e8a8695d03f35a3a2 | refs/heads/master | 2021-03-01T16:54:58.881835 | 2020-11-17T19:42:23 | 2020-11-17T19:42:23 | 245,799,969 | 0 | 0 | null | 2020-07-14T18:51:13 | 2020-03-08T11:13:32 | Python | UTF-8 | Python | false | false | 190 | py | from rest_framework import serializers
from apps.cars.models import Car
class CarSerializer(serializers.ModelSerializer):
class Meta:
model = Car
fields = '__all__'
| [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
1f6d7e07edb5c93c86a793d1ec1b2f4d6b7155c1 | 479aefa19c46bd31d567035fed0227b4282fc662 | /MovieWebsite/group_func/migrations/0005_remove_group_description.py | ebb5650eb875ada7722ba22810ddda024100be8d | [] | no_license | KarryBanana/SE_Project | cc60371bf5194bf003ecafe1d21ce7f3878f644d | f9ede4caae56de97dfe6abb84f0e4811ff6d65b5 | refs/heads/master | 2021-05-23T01:36:27.939979 | 2020-08-10T08:39:25 | 2020-08-10T08:39:25 | 253,175,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # Generated by Django 3.0.7 on 2020-06-29 06:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('group_func', '0004_group_description'),
]
operations = [
migrations.RemoveField(
model_name='group',
name='description',
... | [
"bill881@126.com"
] | bill881@126.com |
76b5e2452098e49235282783ad7eb1263db83e08 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 10539 - Almost Prime Numbers/main.py | 30bb7c3cab4b9a2a5ac9a024702a2f2bdb6ddbf0 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from bisect import *
from bitstring import BitArray
import sys
MAXN = 1000005
def prime_sieve(top=MAXN):
b = BitArray(top) # bitstring of ’0’ bits
for i in range(2, top):
if not b[i]:
yield i
# i is prime, so set all its multiples to ’1’.
b.set(True, range(i * i, top, ... | [
"xenron@outlook.com"
] | xenron@outlook.com |
a9df993bc04715662c0fc174ac283338714e2f13 | 94f07753b134531c06dc2e789f594c25bfa6993e | /aiida_kkr/tests/workflows/test_kkrimp_dos_wc.py | 1a7b6fa1abb1b81319983a2e8bed278e2d44c444 | [
"MIT"
] | permissive | IngoMeyer441/aiida-kkr | 23316ca7d74b40580d149ebcf7ae9da79373f8a5 | 5ce20a61a667787aeb68fa0c8b81e73aa3cf94a5 | refs/heads/master | 2023-07-15T01:02:11.685631 | 2021-05-05T06:54:56 | 2021-05-05T06:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,222 | py | #!/usr/bin/env python
from __future__ import absolute_import
import pytest
from aiida_kkr.tests.dbsetup import *
# tests
class Test_kkrimp_dos_workflow():
"""
Tests for the kkrimp_scf workflow
"""
@pytest.mark.timeout(300, method='thread')
@pytest.mark.usefixtures("fresh_aiida_env")
def test_... | [
"p.ruessmann@fz-juelich.de"
] | p.ruessmann@fz-juelich.de |
9d9a28c406e812fde853a9ab4577cc16b649995d | 9b77f1e31d5901924431a2a3164312cc346bde4f | /ADI4/manage.py | e9ec1a96a7b096f6b2698c979c0b121ed89eb43f | [] | no_license | Adi19471/Djnago_Code-Daily | c2184bf21db5c8d4b3c4098fbd593e4949375ae8 | 03b1b70d3e187fe85eb24e88b7ef3391b14aa98c | refs/heads/master | 2023-08-14T14:36:36.144243 | 2021-09-20T12:52:46 | 2021-09-20T12:52:46 | 375,690,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ADI4.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErr... | [
"akumatha@gmail.com"
] | akumatha@gmail.com |
80d65ef8dd7fb82cd527bbcf4cec83c78d67c536 | e12b840d9ac3eb1cc0e3a08e91b5812fc9509798 | /invoke_lambda/demo/demo.py | b31cc9a44d7cdb8eba5db9b55f0c63b9627f5326 | [] | no_license | kfunamizu/python_commonlib | 7122272f3c1c75e62d9585ebdf5cbc6fa5c1ab77 | 6ecdbc904840763880928c1014c6898f82fb6b46 | refs/heads/master | 2020-04-17T03:57:09.252029 | 2019-11-22T02:08:25 | 2019-11-22T02:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from invoke_lambda import invoke_lambda
lambda_function_name = 'kfunamizu_sample'
event_dict = {
'1' : '1',
'2' : '2',
'3' : '3'
}
invoke_lambda(lambda_function_name, event_dict)
| [
"noreply@github.com"
] | kfunamizu.noreply@github.com |
44ccbd118db55872abc28425b29a43c1682f0194 | a14ab84ccb471b52e32fe1bf0ed70a1d1813396e | /python/firstproject/firstproject/settings.py | 9fa477b41686ba8d46a37c5f60de4b86c4660205 | [] | no_license | Aashirya1995/COMP705 | 051c7be353e8ffa21262feacf3e2af0016153ad5 | bc382beb66979462de24ff427f397de4f9b8892d | refs/heads/master | 2021-05-09T20:33:14.511019 | 2018-03-06T17:05:18 | 2018-03-06T17:05:18 | 118,692,267 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,354 | py | """
Django settings for firstproject project.
Generated by 'django-admin startproject' using Django 2.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
""... | [
"ak1107@wildcats.unh.edu"
] | ak1107@wildcats.unh.edu |
d485c36b325898c6a6574811444544a7d9f9a257 | 6001b2460904142720818b961669f8306dd330ed | /posts/tests/test_urls.py | 04870058ad052e1973f51af4e76d181c18aa72a7 | [] | no_license | aryanlilian/Social-Posts | aad06d3d7527a73db296d107845b38ffee6daeae | 610b59474aa4f65e9ccd8504c547d9ec31d725c1 | refs/heads/main | 2023-04-18T15:30:08.081117 | 2021-04-29T16:50:41 | 2021-04-29T16:50:41 | 362,097,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from django.test import SimpleTestCase
from django.urls import reverse, resolve
from posts.views import postsList
class TestUrls(SimpleTestCase):
# The setUp method is for defining all the fields that should be used for testing purposes in the testing methods
def setUp(self):
self.posts_list_url = re... | [
"aryanlilian@gmail.com"
] | aryanlilian@gmail.com |
73ca58f9efc45c92c45588633643d3a142934c43 | 4ad8443f46a93eb3d4dfe0855ed0860143818a2b | /wiki_processor/exobraindata_preprocessor.py | e8bcca59479cfaf7aa7af25ef69510b0fd8f247c | [] | no_license | delosyCho/Sentio-Web | 97186c659ca268288b66e8f222bd5ca1427fc304 | c39493998dd9aa217102e5b9578c98268dd4fa7e | refs/heads/master | 2020-03-30T08:20:57.578484 | 2018-11-08T16:54:30 | 2018-11-08T16:54:30 | 151,008,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | import numpy as np
import codecs
import pandas
from functions import *
exo_paragraph = open('exo_paragraph', 'w', encoding='utf-8')
exo_question = open('exo_question', 'w', encoding='utf-8')
exo_label = open('exo_label', 'w', encoding='utf-8')
exo_answers = open('exo_answers', 'w', encoding='utf-8')
paragraph_file =... | [
"delosycho@gmail.com"
] | delosycho@gmail.com |
374aa8f21043fa4ad07e5c55dc32e3b41b325b47 | 592be52fb1623947515a8c9a6ab9f17da58366a6 | /shop_account/views.py | d1b7437a13ba203acbc309837291b05e653e441a | [] | no_license | mahnazfallah067/them | c224921ad27903b2aae79d9b186fe400288899d1 | b51209a5b524298a53ab6888a61b5e1d4bfd20e2 | refs/heads/master | 2023-08-13T11:53:05.800278 | 2021-10-02T18:45:59 | 2021-10-02T18:45:59 | 412,881,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from .form import LoginForms, RegisterForm
from django.contrib.auth import authenticate, login, logout
# Create your views here.
def login_user(request):
if request.user.is_authenticated:
return redirect('/')
lo... | [
"mahnaz.fallah1213@gmail.com"
] | mahnaz.fallah1213@gmail.com |
85350cd3891916912a4ea7f31d7e3e9d72b3c3e5 | ad32805a821fb06bde87a6d05c3d80ae477dc00b | /parts/migrations/0008_auto_20200204_0224.py | 216c76ae8458539d3633edecdce7f9023faeff6c | [] | no_license | phrac/maintdx | a89a15e4d92f77b91016737a7b410a7579d07c6c | 583b308568e25da6d99fa6d41150602baa253377 | refs/heads/master | 2021-07-01T05:11:51.994071 | 2021-05-14T13:41:20 | 2021-05-14T13:41:20 | 131,013,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # Generated by Django 3.0.2 on 2020-02-04 02:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('parts', '0007_part_on_hand'),
]
operations = [
migrations.AlterField(
model_name='partinventoryitem',
name='current_... | [
"158748+phrac@users.noreply.github.com"
] | 158748+phrac@users.noreply.github.com |
a9fbf6d770010914427a3c36f2748a7edf47a25c | 4236063269a9989e97d56cea6651ac371e310ed0 | /gscholar/migrations/0002_auto_20150526_1846.py | 0daab647349f8d31ab37dc4760f66708be8f448a | [
"MIT"
] | permissive | afonari/scholar-scrapy | 8cddef03b9657adf0148e5a87cb846cd409c92e1 | 2d363789a376e5428971ceaa6b830de326e2b1a3 | refs/heads/master | 2021-01-18T04:44:40.307013 | 2015-05-27T14:02:21 | 2015-05-27T14:02:21 | 36,240,290 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('gscholar', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='organization',
name=... | [
"firstname.lastname@gaetch.edu"
] | firstname.lastname@gaetch.edu |
e0b9e75b23d4f7865588f65066034254d752d3c3 | 33e0d2d343b276b96236890823e8446482c5b9d8 | /myapi/settings.py | 11a2ffab604010b5288b8d2f545d6d1d8ec2f759 | [] | no_license | ketan9712735468/myapi | 1b3e96ba76f4b37dc28a4954b0a4d1f306d9ae7c | 0c3c4054f55759c816a589246aac439f85544b7a | refs/heads/main | 2023-04-17T02:53:00.794462 | 2021-05-11T05:51:14 | 2021-05-11T05:51:14 | 366,246,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,762 | py | """
Django settings for myapi project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"ketanmangukiya001@gmail.com"
] | ketanmangukiya001@gmail.com |
7326d2d7689ae724544c3a6135e5fed3824e819f | b27f5d5691d1aaae3f3b334f73c4f91f835bcabc | /Code/ops.py | eb9e8390bbc44d2e79660faaa3eacc3112d47c71 | [] | no_license | VTLI/comic-gen | a27220193524ec0833a3896343ffc2613c2ebedd | 4ee2a6e22b29b47b2aeaaef18ba972c9d5f5d151 | refs/heads/master | 2020-05-24T03:46:26.256772 | 2019-07-11T08:39:53 | 2019-07-11T08:39:53 | 187,078,397 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,013 | py | import math
import numpy as np
import tensorflow as tf
from tensorflow.python.framework import ops
from utils import *
try:
image_summary = tf.image_summary
scalar_summary = tf.scalar_summary
histogram_summary = tf.histogram_summary
merge_summary = tf.merge_summary
SummaryWriter = tf.train.Su... | [
"noreply@github.com"
] | VTLI.noreply@github.com |
e0f9165cff9cd3483a106ee3bf7fe2a57c111548 | 6632d2c21ad089ef6952422211fd01bf33a9408e | /backend/todo_api/todos/migrations/0001_initial.py | d5de5a7a539d4425737b2308f0d479ae147c178d | [] | no_license | tylarpierson/front-end-to-back-end | bc5a46d662abd369e05a60864d1c2b9b94c075fc | e2d8da87418544abcf3f9ee9746a96e098d01ddb | refs/heads/master | 2020-03-25T16:09:22.172683 | 2018-08-09T17:02:10 | 2018-08-09T17:02:10 | 143,917,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # Generated by Django 2.1 on 2018-08-07 20:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(auto_... | [
"tylarpiersonbusiness@gmail.com"
] | tylarpiersonbusiness@gmail.com |
8e1d635e43cf0d4a577b35facf856bf52864130c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04005/s700047032.py | 6b014ba065ec8998d3dab92a228e7bca1810778d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | a,b,c=map(int,input().split())
print(0 if (a*b*c)%2==0 else min(a*b,b*c,c*a)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
11d8813586dc9942197cdf6aa7084833e35848d1 | a12d2d99d6bbb00bf4dabcab8c3efe5ea4714648 | /DistractedDriverMaskFaces.py | 6dfccfe249c75a8c993f7a9c25cc269dfce6661e | [] | no_license | devyhia/slim-backup | 01a702f65d4d5a2994cd2fac1ee225646e819fd9 | 26471cf66cf8e8ceff136a692ae6ba36fea90952 | refs/heads/master | 2021-01-12T00:14:25.456094 | 2017-10-17T09:54:35 | 2017-10-17T09:54:35 | 78,696,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import pickle
from glob import glob
import numpy as np
from PIL import Image
import Shared
from tqdm import tqdm
import os
with open('/home/devyhia/FaceDetection_CNN/result.pickle') as f:
results = pickle.load(f)
def mask_image(img_path, boxes):
img = Image.open(img_path)
if len(boxes) == 0:
ret... | [
"devyhia@aucegypt.edu"
] | devyhia@aucegypt.edu |
c4ec45f547704f0827cbcb4543ad433d679ff606 | da50dccf17b01c370a3e31a27f2a813be1dd74ba | /2.RL_Codes/6.Oct16th-WeightedInterpolation/RL_SISO_Linea2.py | faf0b67afd08b5daee6c439f100c5110e081553c | [] | no_license | Tang-08080103/Research | 13d297749657bf572ad3258fb507305afb4e2311 | 814e1054ed43384d99e3be7085cbffbed93f4dd1 | refs/heads/master | 2022-04-12T04:37:32.171533 | 2019-10-29T23:36:52 | 2019-10-29T23:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,482 | py | import numpy as np
import sys
sys.path.insert(0, '/home/rui/Documents/RL_vs_MPC/Models')
sys.path.insert(0, '/home/rui/Documents/RL_vs_MPC/Modules')
from RL_Module import ReinforceLearning
from Linear_System import LinearSystem
"""
Define reward function for RL. User defines the reward function structure.... | [
"Rnian@ualberta.ca"
] | Rnian@ualberta.ca |
8ddd254592f7edae681a46dc57c7889ff7b0ec7a | 65d5b8c6c928fd26015e1af4b9b5c644f28f04e2 | /Comp307v3/TeraChess/views.py | e4eb6e54125a42961a13560a7dec6dcfabe6a7ec | [] | no_license | 307Project2018/The-Project | 3fd66f1776ea0ea6026c7f880e678c9f829f6ce7 | ba850f7d6f82bca034e53778e6ecea2d20c246e4 | refs/heads/master | 2020-04-04T11:16:37.294196 | 2018-12-11T16:59:22 | 2018-12-11T16:59:22 | 155,884,992 | 0 | 0 | null | 2018-12-10T21:39:53 | 2018-11-02T15:24:45 | Python | UTF-8 | Python | false | false | 25,631 | py |
from django.shortcuts import render, redirect
from .models import PieceSet, Player, PieceInstance, BoardInstance, Cell
from django.http import Http404
from django.views.generic.edit import CreateView
from django.views.generic import View
from .forms import UserForm, PieceSetForm, PieceInstanceForm, BoardForm, SecondPl... | [
"44643868+oblivionmasta@users.noreply.github.com"
] | 44643868+oblivionmasta@users.noreply.github.com |
9f9f44f274098ac6cff49f994acfc329089a67fc | 6169edb3d95a01ccc03a6e8fe9c571267c6f5773 | /setup.py | 5865ed91c4583b6e56b7d480f9c59ff6a4a12850 | [
"MIT"
] | permissive | thatscotdatasci/flask-simple-api | 95d823e46b7ee0cda485567128823060bf0c42e9 | e4c23a3d9c0817856e3736da4805a9d727a37058 | refs/heads/master | 2020-04-02T04:01:24.551686 | 2018-12-02T17:49:59 | 2018-12-02T17:49:59 | 153,995,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('packages.dat') as f:
packages = f.readlines()
packages = [s.strip() for s in packages]
setup(
name='flaskapi',
version=open('version.txt').read().strip(),
packages=packages,
description='Simp... | [
"alan@thatscottishdatascientist.com"
] | alan@thatscottishdatascientist.com |
64be5a82e097dc255667f247d99645295516de35 | b194a672bfd619a82fb6f46755ab277a249e8f8c | /pcdViewer.py | ba8fed3078e23da69f1d6910320118e5e2f85ee8 | [] | no_license | nakawang/3D_VIEWER | af968d7ec1de681951fc22d5ea6f36b0dac65c5c | eed7187c76e25d3235fe5882ef5f0f8a7990b75d | refs/heads/master | 2020-08-14T19:45:37.307273 | 2019-10-24T00:25:30 | 2019-10-24T00:25:30 | 215,224,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,802 | py | # -*- coding: utf-8 -*-
import vtk,sys,numpy,os
from numpy import random,genfromtxt,size
from PyQt5 import QtCore, QtGui, QtWidgets
from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
from PyQt5.QtCore import pyqtSlot, QThread
from vtkPointCloud import VtkPointCloud
class PCDviewer(QtWidgets.QFra... | [
"nakawang@benanos.com"
] | nakawang@benanos.com |
d58bb0a7506b482ebe8691fb9e5ca33753fc225f | 51c5f9b4dfeb9b17f451215556c1c80f77373731 | /LeetCode/firstUniqueCharacterInAString.py | a56e50cfae12139b6a45450b8edc331cc15d2f85 | [] | no_license | rupampatil/InterviewPractice | 56c4b75b88f9c99092d4351e98e002eadddc19e4 | e1b2acd592a9255b865c3a7973241e65e78881c4 | refs/heads/master | 2021-09-13T06:34:14.188208 | 2018-04-26T01:47:41 | 2018-04-26T01:47:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | class Solution(object):
def firstUniqChar(self, s):
"""
:type s: str
:rtype: int
"""
index = -1
occuranceMap = {}
counter = 0
for char in s:
if char not in occuranceMap:
occuranceMap[char] = [1, counter]
else:
... | [
"vignesh.palani96@gmail.com"
] | vignesh.palani96@gmail.com |
c0574a8a5fa7e73892144516652ea7a402e4d49e | 62f0ed8bbe8f10bd646cc9f8eaaf5a2da20f9241 | /Persistence/settings.py | bdeccb02e414f2142a1c14a2dd63ec91e24b008a | [] | no_license | leonardoGarciaOlmos/Persistence | 3e329366ded3ac4cac41564e48c9048027674529 | 266ff798f70656b580355d689a327807604a9ba9 | refs/heads/master | 2022-12-26T15:10:27.612123 | 2020-09-09T02:20:55 | 2020-09-09T02:20:55 | 293,978,223 | 0 | 0 | null | 2020-10-06T01:58:21 | 2020-09-09T02:14:57 | Python | UTF-8 | Python | false | false | 3,077 | py | """
Django settings for Persistence project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pat... | [
"leonardogarciaolmos.12@gmail.com"
] | leonardogarciaolmos.12@gmail.com |
21930607b7f52c05a07d0c7707febfa51400b0ab | 553ff32aab110184fc4ed8eb709a99e03e37b9f7 | /wxglade/egy/egy.py~ | 319c86196187e4c4400f55d90951044eaa8e1a7e | [] | no_license | janos01/esti2020Python | 21201e07e7c0f8a93fd7c5bc420d6b10021b5d51 | 6617370c715e309614e8b4808e12ffe3b0130562 | refs/heads/main | 2023-04-15T10:01:56.332714 | 2021-04-28T21:48:03 | 2021-04-28T21:48:03 | 302,071,533 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# generated by wxGlade 1.0.0a9 on Wed Dec 16 18:20:18 2020
#
import wx
# begin wxGlade: dependencies
# end wxGlade
# begin wxGlade: extracode
# end wxGlade
class MainFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begin wxGlade: MainFrame.__init__
... | [
"termih@gmail.com"
] | termih@gmail.com | |
d61e4fd8b851cc4502bc8ecd7ef7e7bfa986eba9 | 408ac5f3ca1bd31f3f0aad22a7a96f800b8bd197 | /main.py | 615df94c4c5beacdd6fc0eabd2a923dc5e089ddc | [
"MIT"
] | permissive | HandsomeBrotherShuaiLi/ICM | 8bedc9df2320374f82f06cf6acd2d1e00a4e9b6d | 81218c52e83760f7a0f0b98677be138ccf5f99f1 | refs/heads/master | 2022-06-02T05:57:34.428872 | 2020-05-02T04:51:04 | 2020-05-02T04:51:04 | 240,472,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,117 | py | import pandas as pd
import networkx as nx
import matplotlib.pyplot as plt
import tqdm,json,math
from collections import defaultdict
match_path='2020_Problem_D_DATA/matches.csv'
passings='2020_Problem_D_DATA/passingevents.csv'
fullevents='2020_Problem_D_DATA/fullevents.csv'
def draw_graph():
fp=pd.read_csv(passings)... | [
"shuai.li@shopee.com"
] | shuai.li@shopee.com |
3821e4b7f0ea0366e7b7f21df53b33cf7690def7 | 9a942f1e58f296b68868d777c5351d7dfaa43103 | /mysite/polls/admin.py | 1c12987515f57b99d7e9a6f0812fdf0720def0ff | [] | no_license | priscilamoreno/proyectofinal | 570f16afd53df7d9ac24a877e2b4c9f0e1e6e470 | c40fdb47754eacbe6c7aba606c1706f281b5a16c | refs/heads/master | 2020-08-23T19:21:22.109761 | 2019-10-29T00:53:04 | 2019-10-29T00:53:04 | 216,691,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | from django.contrib import admin
# Register your models here.
from .models import Choice, Question
class QuestionAdmin(admin.ModelAdmin):
fields = ['pub_date', 'question_text']
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': ['pub_date']}),
... | [
"prismoreno12@gmail.com"
] | prismoreno12@gmail.com |
d55e1cacb5ece1533562af42c297ae0b015d4026 | f49e474bfc8a605d6b1afe3fbc020e976fadbca4 | /KWS/TestPrograms/test_vad_test.py | ffae8969597b5e6e975a5569b98232ab9fee26c2 | [
"MIT"
] | permissive | xrick/gotek_smic | 1b3100f38253cb06eae9eb4435c176168cc71cc6 | 7655b6d7415b23c35810b8db48af7424f7dcdb06 | refs/heads/master | 2021-01-14T16:51:22.331707 | 2020-09-15T08:11:08 | 2020-09-15T08:11:08 | 242,686,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | import numpy as np
from numpy.linalg import norm
import scipy.io.wavfile as wavio
def vad_test(s, fs):
s = s - np.amin(s)
s = s / np.amax(s)
FrameSize = int(fs * 0.025) #400
ShiftSize = int(fs * 0.010) #160
Overlap = FrameSize - ShiftSize #240
threshold = -1.9
s_temp = []
temp = []
... | [
"noreply@github.com"
] | xrick.noreply@github.com |
900089348be19cdb331a0375bc31ff95224dd942 | d8c006e858be14eb595cdfbe702d1a29f1262e35 | /qa_community/urls.py | d159479338e3daf1c5c1dea4e5808477e8cd04ae | [] | no_license | xautxuqiang/qa_community | 96dc1211b3a254dd2faac44571c474d48bb75059 | 385244735e6deb3e36c9340ea5b2d08f74ea25db | refs/heads/master | 2021-01-20T00:21:40.329485 | 2017-04-23T08:54:15 | 2017-04-23T08:54:15 | 89,118,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | """qa_community URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"xautxuqiang@126.com"
] | xautxuqiang@126.com |
0f0ac7131d34ccf128488c79b8bcfe76a6563d3b | d9eee05d8b4b7c7eadc3f1a4b5f7c4c2ceb34640 | /Blog_app/Blog_app/wsgi.py | b2990117ca40734ad4f7f1b3ba0d3dbabd1788c0 | [] | no_license | Balarubinan/Y_Blog_Django | 42713bd4c1e49db2d428a5cf11ba49f010a0abcf | 6ff0d1e7b22edb47446ad4c0f64b01de5ecefaa3 | refs/heads/master | 2023-05-29T20:52:33.299987 | 2021-06-18T01:27:05 | 2021-06-18T01:27:05 | 371,956,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for Blog_app project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"sudhagouthirubi@gmail.com"
] | sudhagouthirubi@gmail.com |
8390f315350a7ef693bf2bcfdc6e4036a4cc0c15 | c968e2d6e6e6ce33ed3a32f7f458117495627856 | /chessBoard.py | e7f21d88521d0d33f730a83ba064b9aae25f1611 | [] | no_license | cjeongmin/AD_Project | e86c000cc50c04ee5d31b1d8a73f96fb733a0859 | 9293e4870b2e2eeb7f4e8e8ca82a93d8eda806c9 | refs/heads/master | 2020-09-09T23:25:59.257906 | 2019-12-19T07:45:49 | 2019-12-19T07:45:49 | 221,595,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,302 | py | import os, sys, copy
sys.path.insert(0, os.path.dirname(os.path.abspath(__package__))+"/chess")
from chess.pieces.pawn import Pawn
from chess.pieces.bishop import Bishop
from chess.pieces.knight import Knight
from chess.pieces.rook import Rook
from chess.pieces.queen import Queen
from chess.pieces.king import King
fr... | [
"hsj9830@kookmin.ac.kr"
] | hsj9830@kookmin.ac.kr |
355a94e3e219a007c388d1c3247bbc2eb62f6ec2 | 30e06035a4fd3cdfc6bae72c4cd66c0154802d52 | /TpFriend/TpFriend.py | 3d17e88db6adbfccca5b39f4e8c8cc372b2374ef | [] | no_license | h0wHigh/Python-Plugins | 3563e5e8ad42e9a270146d57056daa74af005209 | e8e0eaea4077ca2a19cfc235c4441e729a608af9 | refs/heads/master | 2021-01-18T05:16:40.663474 | 2015-03-14T00:42:22 | 2015-03-14T00:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,132 | py | __author__ = 'DreTaX'
__version__ = '3.7.1'
import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite
import math
import System
from System import *
import re
import sys
path = Util.GetRootFolder()
sys.path.append(path + "\\Save\\Lib\\")
try:
import random
except ImportError:
pass
red = "[color... | [
"dretax14@gmail.com"
] | dretax14@gmail.com |
f3b2d326186a171ad037c7d0921726cd3589a4da | d51ae5ad901442f117f68cbac61551fed4e6b89d | /article/migrations/0013_auto_20200402_1207.py | 7bcd04b865bff3c0252dce15107f397ba349af4e | [] | no_license | wmc-wmc/wmc-ex_2 | 933717da29ef830d81eda1540ac3551d7f131e32 | eea9ead0f66bd68167f46f796d154733b6b28dbc | refs/heads/master | 2021-02-13T00:41:14.541497 | 2020-12-24T00:35:27 | 2020-12-24T00:35:27 | 244,646,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 2.2 on 2020-04-02 12:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('article', '0012_auto_20200402_1205'),
]
operations = [
migrations.AlterField(
model_name='text',
... | [
"ting@TingdeMacBook-Pro.local"
] | ting@TingdeMacBook-Pro.local |
d7c5e0e63a5da66fb40e2613241a31fe1a99a12e | 2418e4c4f640c48708c12c3058f8e16144856a0c | /problem0016.py | d0c86a69bd091b9f305da0b8e4390291e4127b61 | [] | no_license | sergii-yatsuk/projecteuler | 482eb32d0cc71ea5dbcaaf3bb1bca7ef575f799b | 94918d0d77c0b1b4f2c28af8d241e1c2fd8424f4 | refs/heads/master | 2021-05-26T18:32:11.616693 | 2013-01-10T14:59:00 | 2013-01-10T14:59:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
#
# What is the sum of the digits of the number 2^1000?
s = str(2**1000)
sum = 0
for i in s:
sum = sum + eval(i)
print (sum) | [
"tifon@bigmir.net"
] | tifon@bigmir.net |
1f329583d0700cf40723e268122106387cae7255 | 31a60b44e078fa75033c4deb8528c2da9726a370 | /run_files/191012_regularizer_comp_toy.py | 2fa0dbccf291c278969dfc082ea0e8ba0d5509a6 | [] | no_license | janmaltel/stew | 85f8d4592ab1c06ced21c99a8ea480c679562f8b | a1ed53499c6ace8a92a83b959680f89cf95cf5b7 | refs/heads/master | 2021-12-29T16:39:38.138520 | 2021-12-15T13:35:04 | 2021-12-15T13:35:04 | 157,102,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,544 | py | import numpy as np
import stew.example_data as create
import stew.mlogit as mlogit
import stew.utils as utils
import matplotlib.pyplot as plt
from stew.utils import create_diff_matrix
from sklearn.linear_model import LinearRegression
from stew.regression import *
import matplotlib.pyplot as plt
import os
from datetime ... | [
"j.m.lichtenberg@bath.ac.uk"
] | j.m.lichtenberg@bath.ac.uk |
8a52bc396fcafcd7f2ed6b20d0b110a3e5a59648 | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Data Scientist with Python - Career Track /22. Machine Learning with the Experts: School Budgets/02. Creating a simple first model/01. Setting up a train-test split in scikit-learn.py | 09e603e05172de82530517858d1031747721ca01 | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | '''
Setting up a train-test split in scikit-learn
Alright, you've been patient and awesome. It's finally time to start training models!
The first step is to split the data into a training set and a test set. Some labels don't occur very often, but we want to make sure that they appear in both the training and the test... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
c59860e2c00c47a8509ad358429bc68d5820ac99 | 555e43e55bf51273cf413fe828a5913a44ab1878 | /Aws boto/Boto_scripts/s3file.py | a0045d276a795608dc77d29aded02b19effb9445 | [] | no_license | sagarkites/Devops | 24ea85d184a4c51bebb490575e9d10163a149471 | 2b58206cabb8f55a0ff69325fa424ff9c480565f | refs/heads/master | 2020-04-12T07:48:30.406785 | 2019-04-09T11:53:05 | 2019-04-09T11:53:05 | 130,677,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import boto3
# Downloding file from S3
s3 = boto3.client('s3')
s3_get = s3.download_file('jiraya','Bucket.py', '/Users/pavanscott/Downloads/script.py')
print(s3_get) | [
"vidyasagarchintaluri@gmail.com"
] | vidyasagarchintaluri@gmail.com |
9ac298fb3e0f4e14401c2b75d4e859bc33eb3bd0 | 6b99473f9ba16700d0e86aaa8e5f109a28d1e976 | /Cryptography/Cryptography-1/Materials/caesar_encrypt.py | 6a56c9ec31a0c331b0cb43f26a2dce2a68ae1db1 | [] | no_license | kcwong395/CyberSecMaterial | 190988ca26f04d365c24d49e2a014b00a6086410 | cb974f7a837a6103b4344c6c5e50d26ddf1c1752 | refs/heads/master | 2020-07-26T07:09:16.877651 | 2020-01-03T14:52:53 | 2020-01-03T14:52:53 | 208,573,409 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # This function intends to encrypt plaintext using Caesar Cipher
def CaesarEncrypt():
plainText = input("Plaintext: ")
key = input("Key: ")
cipher = ""
for letter in plainText:
if 'a' <= letter <= 'z':
# ord(letter) - ord('a') gives the index in alphabetical sequence
# ... | [
"wl01377870@gmail.com"
] | wl01377870@gmail.com |
fa29d9535df03bd0c2da27a460344a114a8b1395 | 58fc6705ce0422a1cc1d597aac41501600d5328c | /Python/113_PathSum2.py | e14f8818e68b55e0ef4632200285b9ed16b2df47 | [] | no_license | CollinErickson/LeetCode | d8963e6e6f34863148aa0a724adc783413ad1297 | d9159ba7ebd14daec994380f3d4361777053ea67 | refs/heads/master | 2022-03-03T19:55:55.003619 | 2022-02-22T00:29:13 | 2022-02-22T00:29:13 | 90,581,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | class TreeNode(object):
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
def __repr__(self):
s = str(self.val)
if self.left is not None:
s += "(" + str(self.left) + ")"
if self.right is not None:
... | [
"collinberickson@gmail.com"
] | collinberickson@gmail.com |
668367219c3778b58c7a11e35d4dd7933fc53e37 | 6240aaa218bacab8099e13f95c37faff0ff9f074 | /scripts/inject-document-props-as-overload.py | 1b7d302fbf1e8c24229df496e932c0589c583689 | [
"Apache-2.0"
] | permissive | florian-hoenicke/jina | 5f5a7b38641a1cbe1018bfeab17b22a00c0f16f8 | 52cd3074b65caec7a370386ec5a5f87ad7b0133d | refs/heads/master | 2023-07-21T03:17:14.676658 | 2021-08-29T15:42:32 | 2021-08-29T15:42:32 | 309,146,742 | 1 | 0 | Apache-2.0 | 2021-08-29T18:26:30 | 2020-11-01T17:11:45 | Python | UTF-8 | Python | false | false | 2,667 | py | import inspect
import re
import warnings
from operator import itemgetter
from typing import Optional, Tuple, List
from jina import Document
def get_properties(cls) -> List[Tuple[str, Optional[str], Optional[str]]]:
src = inspect.getsource(cls)
members = dict(inspect.getmembers(cls))
setters = re.findall(... | [
"noreply@github.com"
] | florian-hoenicke.noreply@github.com |
870295855028634658daaffe4d7d3ceb2ad0de83 | 518a08f0119c2158c4f7efa8343acfe4d2e7cefc | /project/delete.py | fe9993ba083458b4c0eb39e42a6a9606fe6685db | [] | no_license | WahyuSulistya27/hellio_word | 52efc978dc7b4d00e60521d3c6602496c71cb6c5 | cdfd40911a76adda492ab56d53ce12017f2d7414 | refs/heads/main | 2023-07-29T00:55:59.392609 | 2021-09-17T15:10:02 | 2021-09-17T15:10:02 | 407,381,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from fastapi import APIRouter
from data import dokumen as list_dokumen
from starlette.responses import Response
from connect import *
from model import *
router = APIRouter()
dokumen = list_dokumen
@router.delete("/delete/{noreg}", status_code=201)
async def delete_dokumen(noreg : int):
try:
c... | [
"noreply@github.com"
] | WahyuSulistya27.noreply@github.com |
12e4828e3b5e912252a0998ff78bb73a30201e47 | 8d902f52d27bc433534c27ae2c83fa73d5148cf4 | /blog_api/articles/migrations/0002_auto_20201005_1255.py | 492f0a90eff41602e26bd1d40ddb86e6a3a3ccf3 | [] | no_license | AleksanderRadziszewski/zadanko_api_mrx | f39d3f8c3169b683809153fa331aeddcac232ebd | 1197c6533904509467429c3fdf764ae5dadc1f2b | refs/heads/master | 2023-01-22T13:53:15.384122 | 2020-11-20T09:48:24 | 2020-11-20T09:48:24 | 301,105,359 | 0 | 0 | null | 2020-11-16T15:55:34 | 2020-10-04T10:53:44 | Python | UTF-8 | Python | false | false | 929 | py | # Generated by Django 2.2.6 on 2020-10-05 12:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id',... | [
"radziszewski.aleksander@gmail.com"
] | radziszewski.aleksander@gmail.com |
c9cae191ed82b398a32e7bbb77325f3110605fe2 | 1c099518cfa5843928763854e6c231d435fc25f4 | /deepfake/feature_trainer.py | 792d8d588a90208ba85107a71b5c7f82eb5ecf4d | [
"CC-BY-2.0"
] | permissive | poke53280/ml_mercari | b3cdda6d53fc4e0f2fca93d9a0ea0231f205ad69 | f01ff6c1ca3f341e57c769e06abb136a044c9f74 | refs/heads/master | 2021-06-02T06:21:57.211262 | 2020-10-11T12:08:58 | 2020-10-11T12:08:58 | 114,643,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,039 | py |
import numpy as np
from mp4_frames import get_output_dir
from mp4_frames import get_ready_data_dir
from featureline import get_feature_converter
from featureline import is_error_line
import pandas as pd
from random import shuffle
####################################################################################
#... | [
"anders.topper@gmail.com"
] | anders.topper@gmail.com |
9b930250c80b39f856585160a5b1f150a3d9355a | 6053cef7fc0b063a6105cd38659ba082ee706335 | /tweettools/blockmute.py | 945725ca153e6f977a12db922ae170e6fb90aabe | [
"MIT"
] | permissive | jdidion/blockmute | 18dd24535d75d6c8998a432a1a5b657a3e91b93f | 05984da637206d2bc5c69d2f68b10a1df4f9985f | refs/heads/main | 2021-01-19T19:52:16.657531 | 2018-04-29T01:20:39 | 2018-04-29T01:20:39 | 101,212,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | #!/usr/bin/env python
# Block everyone you've muted, and vice-versa.
from argparse import ArgumentParser
import time
from tqdm import tqdm
from tweettools import get_client
def blockmute(api, sleep_secs=300):
mutes = set(api.GetMutesIDs())
blocks = set(api.GetBlocksIDs())
new_blocks = mutes - blocks
... | [
"github@didion.net"
] | github@didion.net |
b5722af8ed32f8e2da48f5c2d6fcd13c8de9701f | 52d324c6c0d0eb43ca4f3edc425a86cdc1e27d78 | /scripts/asos/archive_quantity.py | 9c22be17d7528b94acd44e3f1e30933859ee8315 | [
"MIT"
] | permissive | deenacse/iem | 992befd6d95accfdadc34fb7928d6b69d661d399 | 150512e857ca6dca1d47363a29cc67775b731760 | refs/heads/master | 2021-02-04T04:20:14.330527 | 2020-02-26T21:11:32 | 2020-02-26T21:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | """ Create a simple prinout of observation quanity in the database """
from __future__ import print_function
import sys
import datetime
import numpy as np
from pyiem.util import get_dbconn
class bcolors:
"""Kind of hacky"""
HEADER = "\033[95m"
OKBLUE = "\033[94m"
OKGREEN = "\033[92m"
WARNING = "... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
668a774ae59db7287f12b14d726b4dfd98b97063 | 6b757245104fc83aec31d87a07a40b1fa75648ad | /spec/lab_results.spec | 940b4ed432dc49e9e50f479d22626a95923a7a54 | [] | no_license | BaobabHealthTrust/module_chronic_care | d8a74edb3aa30822986217300aca747f884b98e0 | b4652c9dd1ed9f8ebdba25783f3e99883dfd2b55 | refs/heads/master | 2021-01-04T14:18:56.341563 | 2015-06-10T11:32:21 | 2015-06-10T11:32:21 | 9,372,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | spec | P.1. LAB RESULTS [program: CHRONIC CARE MODULE, label: Lab Results]
C.1.1. For all patients capture the following lab results
Q.1.1.1. Test Type [pos: 1, concept: Test Type, field_type: number]
O.1.1.1.1. FASTING BLOOD SUGAR
O.1.1.1.2. NON-FASTING BLOOD SUGAR
O.1.1.1.3. RANDOM BLOOD SUGAR
O.1.1.1.4. CHOLESTEROL FASTING... | [
"F88kavutausiwa@gmail.com"
] | F88kavutausiwa@gmail.com |
6dc7df348f7ef3111d18950993f5efc39de88ea9 | 41d95796e81289c87ef839ab78e74decb862d556 | /Website_Scanner/general.py | eb69beec20a259e92191c11a442cab9ffbc7de01 | [] | no_license | Sliking/Redes | 770446b5be0118f39af9860e8d6f78957a279478 | 32183dfe0abcb005b2c622c3878b0db8f2208cb7 | refs/heads/master | 2021-01-10T15:47:32.462242 | 2015-11-26T23:38:27 | 2015-11-26T23:38:27 | 45,213,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import os
def create_dir(directory):
print("[DEBUG] Checking folder")
if not os.path.exists(directory):
os.makedirs(directory)
print("[DEBUG] Created folder -> DONE!")
def write_file(path, data):
print("[DEBUG] Writing in file")
f = open(path, 'w')
f.write(data)
f.close()
print("[DEBUG] Write -> DONE!") | [
"miguelpinto25@hotmail.com"
] | miguelpinto25@hotmail.com |
541ace914988b412fc67783dc869ac4be019861e | f7893f02b386bcbbb19f5fd8102b742d59de221b | /educazione civica/data_analysis.py | b08694352b2f2f1d623c91a575035d130561e603 | [] | no_license | Nick-Cora/SISTEMI-E-RETI_quarta | 31bb708a72cd13f8c7f78235b1bd0911f6eac9db | 8a10402176885a46cbc1e3660f01c6b941855a49 | refs/heads/main | 2023-06-16T15:10:28.703103 | 2021-07-14T13:49:53 | 2021-07-14T13:49:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,271 | py | '''
This program plot some graphs about CO2 effects on climate changing using matplotlib.
Author: Andrea Tomatis
'''
import matplotlib.pyplot as plt
import csv
def plotEmissionsByYear(emissions):
fig, (ax1) = plt.subplots(1, 1)
ax1.set_title('Emissions by Year and Type')
ax1.set_xlabel('Year')
ax... | [
"noreply@github.com"
] | Nick-Cora.noreply@github.com |
11f4eb1213cc849d8556bf6e1d9aa1f0ca6f08b8 | 1b7da2f11e509828476e21ca665279602de7b509 | /portal/users/forms.py | 661f5b3ff3f721fe5bdc8ca0f4e8022ce56aa3f7 | [] | no_license | rosenene/oap | 922f3955e4f3a583e6829eed0d518f2c7f806d58 | 32598b7d6c9d6677c889258f21752878ad30d0a5 | refs/heads/master | 2022-04-26T20:31:37.850145 | 2020-04-16T07:47:19 | 2020-04-16T07:47:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | from django.contrib.auth import get_user_model
from django import forms as django_forms
from django.contrib.auth import forms, get_user_model
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import Group
from cv_registration impor... | [
"marijani.hussein@eganet.com"
] | marijani.hussein@eganet.com |
803580c059f93d0449041f08382f5606284c6fb1 | c08c6f4aafcb20664901bc3c03bb494d21b27a27 | /ECES_ETUDIANTS/models.py | 97e17f5e127e6b81ee89bf2857b329b0a77c9df1 | [] | no_license | sodelblaude/ECES | a2697035ab4f92e8539d961141feb5a66620baf7 | 40516a6b1ee70819abf7efaf018129d8ca1ab6c2 | refs/heads/master | 2020-06-07T17:57:29.045477 | 2019-06-21T08:38:26 | 2019-06-21T08:38:26 | 193,067,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from django.db import models
#LE MODELE PERMET DE DEFINIR NOS CLASS
# C'est ici que nous allons mettre toute nos classes
#de notre application
class Etudiant(models.Model):
Nom=models.CharField(max_length=15)
Prénom=models.CharField(max_length=15)
Age=models.CharField(max_length=10)
Adresse=models.Cha... | [
"valdymat103@gmail.com"
] | valdymat103@gmail.com |
e0d35b7ac5b882a39a6e7533e9b46ac4bddf2677 | 27752fee55422acb5264f3e19fa45c6ab421338d | /convetions/dd_game.py | 85d73a3f18d03f0dfcf8422d46f269be85dcc7f5 | [] | no_license | Tuzosdaniel12/learningPython | 0be4ae6c2aa4e45744afc1bac5bf38b932433023 | 966fcc6a05e2b203f8d134b8ac0d3f0f179ad19a | refs/heads/main | 2023-06-03T07:55:18.228505 | 2021-06-17T09:34:54 | 2021-06-17T09:34:54 | 359,373,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | import logging
import random
logging.basicConfig(filename="game.log", level=logging.DEBUG)
logging.info("You wont see this")
logging.warn("OH NO")
player = {'location': None, 'path': []}
cells = [(0, 0), (0, 1), (0, 2),
(1, 0), (1, 1), (1, 2),
(2, 0), (2, 1), (2, 2)]
def get_locations():
mon... | [
"danielsoledad@gmail.com"
] | danielsoledad@gmail.com |
f48dc0bb0e3338adb57a05756843397e2ed53700 | e00367eb58bee8756cde8bd3218a26188e06f691 | /a1.py | 01f8ecc1eccdd5726ab516fd6d58fd90fa303679 | [] | no_license | kc113/pyprog1 | 176b345b09e9ba8317777401a6b2fa9257b03799 | 0f6067b6adfa9d9244093d9d60d2489ad3f57dbe | refs/heads/master | 2021-07-04T07:32:29.032604 | 2020-09-09T13:44:04 | 2020-09-09T13:44:04 | 169,087,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,876 | py | def seconds_difference(time_1, time_2):
""" (number, number) -> number
Return the number of seconds later that a time in seconds
time_2 is than a time in seconds time_1.
>>> seconds_difference(1800.0, 3600.0)
1800.0
>>> seconds_difference(3600.0, 1800.0)
-1800.0
>>> s... | [
"noreply@github.com"
] | kc113.noreply@github.com |
2d83f6345f4629fb349ea3e2aa1ecd09b77cec8b | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/account_budget_proposal_service/transports/base.py | 86d3e463eb723e6cf5e1dcff665b4d0e784c1fce | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,334 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
e27620ac43423c4e604d8e08a4bc43ff1c01c49e | c9c97b5f002577f97fe14fb12951cec7dae5c3e1 | /data/jpg_to_npy.py | eb0019236a7071b28919ec4a1afaec2cc1c26ed9 | [
"Apache-2.0",
"MIT"
] | permissive | trandaitai327/ml-lab-02-classification | b44eed12ff4568031a6c78a5c36f5c5a819977c8 | 0130e89eef80e9f69d2a6c578313841c770bc7f7 | refs/heads/main | 2023-05-30T19:25:38.418310 | 2021-06-07T15:18:42 | 2021-06-07T15:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | import os
import numpy as np
import cv2 as cv
import pandas as pd
IMG_ORIGINAL_SHAPE = (1365, 2048, 3)
def center_crop(image,out_height,out_width):
image_height, image_width = image.shape[:2]
offset_height = (image_height - out_height) // 2
offset_width = (image_width - out_width) // 2
image = image[... | [
"lenam.fithcmus@gmail.com"
] | lenam.fithcmus@gmail.com |
8de03800ce956e70bd058db4c1cd6136cf605ddc | bc946239f484f07904909fa65515fda74ceb71ce | /ejerciciotriangulo.py | a0cd8795c334875618ec8f2e2a06e9dc567f723e | [] | no_license | janethM99/equisD | 4cf39d0fa693aa9f56bddd227f5d13473f645184 | 0862c7f8ba3d7f8bc8e5ee10734741d9ad1fa532 | refs/heads/main | 2023-05-29T13:30:35.475221 | 2021-06-18T01:25:58 | 2021-06-18T01:25:58 | 374,511,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | #calcular la base y la altura de un triangulo#
base = float(input("ingresar la base del triangulo: "))
altura = float(input("ingresar la altura del triangulo: "))
print(f"El area del triangulo es {(base * altura)/2}") | [
"aleja.malave@outlook.com"
] | aleja.malave@outlook.com |
4ce08d3a81f2c8daa89d41aab8e8d1e00d37a966 | ca8a39e0f5b4f23a03738599f724748f9fd3a6a8 | /climbing-stairs/climbing-stairs.py | 088084d73bcef2500b62c15534cc913bd336f483 | [] | no_license | eschanet/leetcode | 01bafec756267a17dbac75dba80b86ef527b7fdc | 9fe6714d440a445ca0c7b5e2f2a2c0410157ae63 | refs/heads/main | 2023-07-18T10:29:56.502817 | 2021-08-29T16:13:23 | 2021-08-29T16:13:23 | 370,804,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | class Solution:
def climbStairs(self, n: int) -> int:
if n == 1:
return 1
elif n == 2:
return 2
first, second, third = 1, 2, 3
for i in range(3,n+1):
third = first + second
first, second = second, third
re... | [
"eric.schanet@gmail.com"
] | eric.schanet@gmail.com |
2841931a07574dad65ab0d24dd0ced987d5314b0 | 60a8a5afdf4d9bbc89d067b2659cd35534910563 | /core/theblog/urls.py | 58d056b865e3ed48c6e2ee325cdad96000edf7fe | [] | no_license | momentum-cohort-2019-02/w4-miniblog-dmm4613 | ab684a03cecbe0678afc6998a456a4f3394e6ab1 | 25acb00633f552770e4a28547dacfedee389d5c4 | refs/heads/master | 2020-04-27T19:08:34.042290 | 2019-03-11T14:13:57 | 2019-03-11T14:13:57 | 174,603,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('blogs/', views.BlogListView.as_view(), name='blogs'),
path('blogs/<int:pk>', views.BlogDetailView.as_view(), name='blog-detail'),
path('bloggers/', views.BloggerListView.as_view(), name='bloggers... | [
"dmm4613@gmail.com"
] | dmm4613@gmail.com |
aa59338c2545d309d57041a93ac7d16d875edb83 | a4d3d7515b9cbe29bb125f13db311faad45cd596 | /Practice Python/12_ListEnds.py | 820037ff21736246576b999ef7c0b15dc9e77892 | [] | no_license | DanilaFadeev/computer-science-course | 0e48be4d56197a99b6f3dbfa2298aba3f0b3653f | b7386d3c09640bb52248493f1d407af6ab0e35e5 | refs/heads/master | 2021-05-19T13:11:22.008971 | 2020-07-07T21:51:16 | 2020-07-07T21:51:16 | 251,716,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # https://www.practicepython.org/exercise/2014/04/25/12-list-ends.html
# Write a program that takes a list of numbers (for example, a = [5, 10, 15, 20, 25]) and makes a new list of only the first and last elements of the given list.
# For practice, write this code inside a function.
from random import sample, randint... | [
"demidovich.daniil@gmail.com"
] | demidovich.daniil@gmail.com |
2d91756e0b88a97e6793befb1bbdbb48bc1aeaed | 2d6bdc525085bd3409833f824b830725068ac2b3 | /hw3-awelsh/lr.py | 461b6b8234a15b2d09985a9891d602c123adf102 | [] | no_license | xelarock/machine-learning | a3835281b57291563573a3ca6cb415e306bb7d2c | 8d05bc2fab74cb42de18614b1f5ba400490deb64 | refs/heads/master | 2023-01-04T20:04:40.785530 | 2020-11-14T03:56:44 | 2020-11-14T03:56:44 | 289,991,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | # THIS CODE IS MY OWN WORK, IT WAS WRITTEN WITHOUT CONSULTING CODE WRITTEN BY OTHER STUDENTS.
# Alex Welsh
from abc import ABC, abstractmethod
import pandas as pd
from sklearn.metrics import mean_squared_error
import numpy as np
class LinearRegression(ABC):
"""
Base Linear Regression class from which all
... | [
"welsh6263@gmail.com"
] | welsh6263@gmail.com |
e893065715e7c4684f02b3c02e766926ea42f323 | 8b05c8484443fda9c25bdaf522a85c64a0318f23 | /dynamic_carousel.py | a836cd3a4d93a2939c200272094971a72e8888d0 | [] | no_license | jash-kothari/facebook_ads_automation_cli | 12583a19897b315f585231107e6d9270c6f8249f | 9a2cb5e465086d34eb82b8a1da84b4f5e7cccd84 | refs/heads/master | 2021-06-08T15:38:44.143490 | 2016-09-27T07:49:33 | 2016-09-27T07:49:33 | 69,229,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from facebookads.objects import Ad
from facebookads.adobjects.campaign import Campaign
import header
import create_adset
import dynamic_cards
choice = raw_input("Please enter yes to create a new Adset or enter no to choose existing one.\n").lower()
if 'yes' in choice:
adset_id = create_adset.create_adset()
else:
ads... | [
"jash.kothari@Mirraw.com"
] | jash.kothari@Mirraw.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.