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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f049a829e4f528690569a3ddb76c01f8186474e | aae95f673759e71d8859b05973eb563d15200114 | /M3HW1_AgeClassifier_NOVAK.py | b22943545cce9fc94576bf8756876bc736c2a747 | [] | no_license | tjnovak58/cti110 | 74ae3cb355c1bbde8a51ba9bdc943c172f109885 | 1edec8b428f5aa5858662219ddd2a4dd93a91a9c | refs/heads/master | 2021-05-15T00:47:08.440056 | 2017-11-13T20:18:03 | 2017-11-13T20:18:03 | 103,067,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # CTI-110
# M3HW1 - Age Classifier
# Timothy Novak
# 09/24/17
#
# This program takes an age input and outputs a classification.
#
age = float(input('Enter age: '))
def main():
if age >= 20:
print('The person is an Adult')
if age >= 13 and age < 20:
print('The person is a Te... | [
"noreply@github.com"
] | noreply@github.com |
76a0dc84b832d50eb22547d7ae8063a44087c8f3 | 7f7593bad603e3fe9142707269dd3ad81cd581e7 | /dataset_parser/translator.py | eb214130326180fa5115aea580290947e7598c3b | [] | no_license | kadircet/NeVA | e6eee87d17de0c4d3b7579bd6359f473c3c873f0 | fbcc8163675243f0c5b0e6aae55f4695f91a3e8a | refs/heads/master | 2020-03-27T09:10:46.840256 | 2018-06-01T21:46:41 | 2018-06-01T21:46:41 | 146,319,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | import urllib
import urllib2
api_key = "trnsl.1.1.20171114T121819Z.260cc24adf90daa9.d0f6b72d715f1ec6369a4ff855eb257aeaab16d6"
url = "https://translate.yandex.net/api/v1.5/tr.json/translate"
def translate( text ):
data = {
"lang" : "en-tr",
"text" : text,
"key" : api_key,
"format" :... | [
"e2035566@ceng.metu.edu.tr"
] | e2035566@ceng.metu.edu.tr |
8bc175401c234330dcca0e841f43babb1b91a34e | e831c22c8834030c22c54b63034e655e395d4efe | /Strings/409-LongestPalindrome.py | a7c78ae605311f965fabd78f56853df5f5a2ed97 | [] | no_license | szhmery/leetcode | a5eb1a393422b21f9fd4304b3bdc4a9db557858c | 9fcd1ec0686db45d24e2c52a7987d58c6ef545a0 | refs/heads/master | 2023-08-16T00:27:56.866626 | 2021-10-23T07:35:37 | 2021-10-23T07:35:37 | 331,875,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from collections import Counter
class Solution:
#https://leetcode.com/problems/longest-palindrome/solution/
def longestPalindrome(self, s: str) -> int:
ans = 0
map = Counter(s)
for v in map.values():
ans += v // 2 * 2
if ans % 2 == 0 and v % 2 != 0: # aaaccc, ... | [
"szhmery@gmail.com"
] | szhmery@gmail.com |
1666cfe1c060fb01ca77d7386ee78fdec9cfdcc8 | e9cf85d3d2cfc1b0ed1f890679b098fe343438b2 | /Scripts/venv/Scripts/easy_install-3.6-script.py | 6e2835f1e41cc6036851b42df91870e2720fd94e | [] | no_license | jakowalski/filmCrawler | 8be9b54f337bf25352d5ffb37edbbaa61c940aa8 | bd75c5d96b1efd5d3248e8b3f6730a79e74ff892 | refs/heads/master | 2020-04-08T17:21:56.182900 | 2019-01-20T19:01:00 | 2019-01-20T19:01:00 | 159,563,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!H:\Projects\FilmCrawler\Scripts\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==28.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... | [
"sidrox@o2.pl"
] | sidrox@o2.pl |
b28a6e9427e27b1ccb8fa350686110b8a21e74e3 | 68c4805ad01edd612fa714b1e0d210115e28bb7d | /venv/Lib/site-packages/numba/cuda/tests/cudapy/test_print.py | 59513d127a2aebd9b1461428f48b504cac50b75b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Happy-Egg/redesigned-happiness | ac17a11aecc7459f4ebf0afd7d43de16fb37ae2c | 08b705e3569f3daf31e44254ebd11dd8b4e6fbb3 | refs/heads/master | 2022-12-28T02:40:21.713456 | 2020-03-03T09:04:30 | 2020-03-03T09:04:30 | 204,904,444 | 2 | 1 | Apache-2.0 | 2022-12-08T06:19:04 | 2019-08-28T10:18:05 | Python | UTF-8 | Python | false | false | 1,919 | py | from __future__ import print_function
import numpy as np
from numba import cuda
from numba import unittest_support as unittest
from numba.cuda.testing import captured_cuda_stdout, SerialMixin
def cuhello():
i = cuda.grid(1)
print(i, 999)
print(-42)
def printfloat():
i = cuda.grid(1)
print(i, 2... | [
"yangyang4910709@163.com"
] | yangyang4910709@163.com |
2aa62736bf9b102bfaafa6329a5283ff80764c52 | 64b562f5bc27e20e267f20c66d6c5212c746eaa1 | /student/urls.py | ad988ad5ac054e15a8affacfde6bec190589d42f | [] | no_license | ykugb/PerfectCRM | 9419e7f6ff14e300f29cabaf99327503ac823add | 0342b6cf1db3d5911257d84e357e3f522cb0fd7f | refs/heads/master | 2022-12-02T16:29:48.675924 | 2018-04-14T00:59:53 | 2018-04-14T01:10:07 | 129,470,846 | 0 | 1 | null | 2022-11-21T14:56:19 | 2018-04-14T01:42:19 | Python | UTF-8 | Python | false | false | 126 | py |
from django.conf.urls import url
from student import views
urlpatterns = [
url(r'^$', views.index,name="stu_index"),
]
| [
"402173349@qq.com"
] | 402173349@qq.com |
eadd064afcb20f96f92a1dd01fffdcfba42712a5 | 24dd3c272457110b2b51bb783715d1245afcd9ce | /eth_dev/infura.py | 73181d7325cfb92aa1ccb3a2719e9daa434c82ab | [] | no_license | fubuloubu/eth-dev | 81761da7942927a97830c426cccf650046e6db74 | 383e51bba0b4471ef1c7a5d6ee2d1ff6a0562f8a | refs/heads/master | 2020-04-30T04:24:29.606074 | 2019-03-19T23:15:56 | 2019-03-19T23:15:56 | 176,610,133 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | import os
import sys
from importlib import import_module
def get_web3(network: str, project_id: str):
# Infura websocket API requires Project ID token as of March 23rd
print("Setting Infura Project ID to", project_id, file=sys.stderr)
os.environ['WEB3_INFURA_PROJECT_ID'] = project_id
# Dynamically lo... | [
"fubuloubu@gmail.com"
] | fubuloubu@gmail.com |
8ef6afb127f1e1660480057972b67363ca5217de | b83bec9a4bfb7f9905f52cbe65e56b3cebaaac1d | /bikeshare.py | 825f3bed9ffc2ecc7130854741edd6c383a3d76d | [] | no_license | saramckellop/pdsnd_github | f0fc13c15a3ac07f267560d39312d96619ffd9b4 | 0fa2a5580fe67ec4a9f390f858d78d59afaad484 | refs/heads/master | 2020-12-11T11:07:55.570068 | 2020-01-15T16:02:15 | 2020-01-15T16:02:15 | 233,831,972 | 0 | 0 | null | 2020-01-14T12:02:30 | 2020-01-14T12:02:30 | null | UTF-8 | Python | false | false | 7,437 | py | import time
import pandas as pd
import numpy as np
CITY_DATA = { 'chicago': 'chicago.csv',
'new york city': 'new_york_city.csv',
'washington': 'washington.csv' }
def get_filters():
"""
Asks user to specify a city, month, and day to analyze, if invalid information is input an error ... | [
"saramckellop@gmail.com"
] | saramckellop@gmail.com |
9d5286a5880894b85b64c677592c9c21f3670174 | d4f6b2f0ff0300f7a5a2570280d1348fca5e48a2 | /product/views.py | 9132ff348b83ed580b987abbffd91e8f721c211f | [] | no_license | pixies/beraca.org | 92f0671767d1e5a090613135a4808105f7db7b99 | a71d932464399ae4bfccd8022588f51912c87894 | refs/heads/master | 2022-12-09T23:56:07.196093 | 2018-06-28T15:15:14 | 2018-06-28T15:15:14 | 137,068,948 | 0 | 0 | null | 2022-11-22T02:07:44 | 2018-06-12T12:32:53 | CSS | UTF-8 | Python | false | false | 2,469 | py | from django.db.models import Q
from rest_framework import generics, mixins, permissions, response
from accounts.permissions import IsClientOrAdmin, IsAdmin, IsManagerOrAdmin
from .serializers import ProductSerializer, ProductSearchSerializer
from .models import Product
class ProductList(mixins.ListModelMixin,
... | [
"pixies@riseup.net"
] | pixies@riseup.net |
4ddcc5e2081faa2bf1cfbed6af652a7d0dd75730 | b343b3eb399eeee735ce4f7e12d3ecfbe31f2666 | /regist.py | 87e2605b244fce8b23925904897ffb2a13870611 | [] | no_license | LiXinKing/python_timer | 8ab091b86ecb27d7574e3ca44e3a7be767548868 | 954486f4ed7a655d57086fe76824106d8351102a | refs/heads/master | 2020-06-13T00:26:04.832039 | 2016-12-13T16:02:49 | 2016-12-13T16:02:49 | 75,472,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from globalDef import g_relative_timer_regist_dict
from globalDef import g_absolute_timer_regist_dict
from globalDef import g_round_timer_regist_dict
from event import *
def regist_relative_timer(timer_name, timer_stamp, timer_func, func_para):
g_relative_timer_regist_dict[timer_name] = (timer_stamp, timer_func, ... | [
"444989527@qq.com"
] | 444989527@qq.com |
e298d1cd83cc89ad0620c397e0a13cede3f39494 | cc23059aa361c4ab3ec7ef5d8ad10e521ded1da1 | /thema16-spieltheorie/monty-hall.py | 279db4f67d134555f2734a81b8768ce1bfc39c5e | [] | no_license | iblech/mathezirkel-kurs | 747574d51a5b874526436bfd5cc03aa735760dc2 | 42537d975752999e1d77bcac9e04844b3c64e629 | refs/heads/master | 2023-01-20T13:35:17.414250 | 2022-12-22T16:21:39 | 2022-12-22T16:21:39 | 14,818,826 | 11 | 7 | null | 2022-10-19T08:59:50 | 2013-11-30T10:02:27 | TeX | UTF-8 | Python | false | false | 1,297 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
import random
numDoors = 3
shouldSwitch = False
numSimulations = 1000
numWins = 0
# Liste der Türen -- also insgesamt numDoors viele Zahlen
doors = range(0,numDoors)
for i in range(numSimulations):
# Tür, hinter der si... | [
"iblech@web.de"
] | iblech@web.de |
b1ac8ccb27daa0ee5ed8560892cafa40d792b723 | 3b7bfe318f264800245b60894634b5cfb1a9f19f | /manage.py | 9a0699ec56418ef63d652bbedf0df110d5ae82d7 | [] | no_license | aviyan171/Text-Utils | 6fe3b7d1e56423c7bb271a672be3a091b5a63e6e | e25c0e840d563e4a6dd62e070e61a7b001cf4669 | refs/heads/master | 2023-07-02T22:39:58.075190 | 2021-08-04T04:19:20 | 2021-08-04T04:19:20 | 390,938,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'newtextutils.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"Abhiyanupreti76@gmail.com"
] | Abhiyanupreti76@gmail.com |
71f71829867a94e2a7dfe8ba5fd81f25492ed3a5 | b011ff74ed9737b0a8ab6e043200adeacb0ed40e | /regression_x/gradient_linear.py | 4ed7ea8002a4ba27726ec0b0a3abb573408ae26e | [] | no_license | lisz1012/linear_regression | d6836c10113972456f93bbc63e3d0cbca2e2c751 | 2f27bd35eafce30e8f26805c4e71bc2920375a56 | refs/heads/master | 2022-12-25T12:06:33.185605 | 2020-10-12T06:09:27 | 2020-10-12T06:09:27 | 303,294,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import random
def get_data(w,num):
x=[ random.uniform(0,5) for i in range(0,num)]
y=[ w*s for s in x]
return zip(x,y)
def train_step_pow(data,w,rate=0.03):
g=sum([ (w*x-y)*x for [x,y] in data])/len(data)
w=w-rate*g... | [
"lisz1012@163.com"
] | lisz1012@163.com |
ee13fe72a65e189340348da65a80f1eee53e3cb6 | 90904785370340ed6b98c24d852ac9211c0960c5 | /taskone/urls.py | 576c9fee891d5b16c5e96f0a66f2cfaff639da20 | [] | no_license | alhulail/task1 | 92b72df8998e917b3e53d5214bd2c0ce290fbcc4 | df9bb908e8f60f2e3fb03b6be2e374d89e1940cf | refs/heads/master | 2020-03-22T09:34:15.013407 | 2018-07-05T12:37:00 | 2018-07-05T12:37:00 | 139,846,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | """taskone URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"hadeel@Hadeels-MacBook-Pro.local"
] | hadeel@Hadeels-MacBook-Pro.local |
4ad18edeba3a472fa88ee13931a6c5ad42d6a3dc | d7779408c44502a0cb8da4e3923e1b68492b1610 | /apps/organization/forms.py | ccfe66e97ba094e2b0233dc63e529b03fbcc07b3 | [
"MIT"
] | permissive | codelieche/moocweb | 5c4429d3ebee43452d42db63fdd364935e2d6eee | 0e25efa597a79a38066ec41559334be604388f30 | refs/heads/master | 2021-01-13T11:49:08.444658 | 2017-02-26T16:36:08 | 2017-02-26T16:36:08 | 81,343,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # _*_ coding:utf-8 _*_
import re
from django import forms
from operation.models import UserAsk
class UserAskForm(forms.ModelForm):
'''用户咨询Form'''
class Meta:
model = UserAsk
fields = ['name', 'mobile', 'course_name']
def clean_mobil(self):
'''
验证手机号码是否合法
:return:... | [
"codelieche@gmail.com"
] | codelieche@gmail.com |
e4fbfcf43719e760b30a0d7f710d90c100782c5f | 9926cb4c9b30739e1c735465414d6ceb021ece22 | /accounts/migrations/0001_initial.py | e49cbaf2bdff3637b9a4af681bfbb07631ae0763 | [
"MIT"
] | permissive | thetruefuss/thefacebook | 401b31253f786fd485291dcba2498a3ddf182e9f | 0ebbbe535679a2f8f96614398ef43c1396d7bacc | refs/heads/master | 2023-07-23T19:27:38.815985 | 2018-07-04T23:54:08 | 2018-07-04T23:54:08 | 139,773,013 | 11 | 7 | MIT | 2023-07-17T04:58:38 | 2018-07-04T23:18:28 | HTML | UTF-8 | Python | false | false | 4,966 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-06-23 20:41
from __future__ import unicode_literals
import accounts.managers
import accounts.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(mig... | [
"alisheikh1114@gmail.com"
] | alisheikh1114@gmail.com |
ec75cbcec9ed9d1ce713094f1f6a425eda95710e | 0724193d3ddd21a428aabbdd16d84e944cf082dc | /atsim/potentials/config/_pymath.py | fe8b6890e9de404638a1b2bbc908ed037be09a9a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fengnianzhuang/atsim-potentials | 305b5aa33b9e7df7765abfda3a73d7f31241ba69 | 566020dc0d2df4b701b9c8cd00319a1c9461f56e | refs/heads/master | 2023-06-15T21:05:00.608645 | 2021-05-20T19:00:22 | 2021-05-20T19:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | import math
import sys
def ceil(x):
return math.ceil(x)
def copysign(a,b):
return math.copysign(a,b)
def fabs(x):
return math.fabs(x)
def floor(x):
return math.floor(x)
def fmod(a,b):
return math.fmod(a,b)
def fsum(*args):
return math.fsum(args)
def ldexp(a,b):
return math.ldexp(a,int(b))
def tru... | [
"m.rushton@imperial.ac.uk"
] | m.rushton@imperial.ac.uk |
83f5b76bf9b55dea682c92b0b6a41c45c844e9b9 | 3341f5d682b06b4a7ff8963c0f1b88d937fae3df | /setup.py | a7a6a8a907b1bad631daca56ff1cb24f08e2bed0 | [] | no_license | jmrodrig/Alicat_control | 83772700a7a9b2ca2045e0487aede28060bb2927 | aced19313da0371b8e5ef6d509c2b4473f995dc4 | refs/heads/master | 2021-01-19T18:53:38.909786 | 2013-07-10T09:30:31 | 2013-07-10T09:30:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from distutils.core import setup
import py2exe
setup(console=['start_alicat.py'])
| [
"jose.neves.rodrigues@gmail.com"
] | jose.neves.rodrigues@gmail.com |
49bffe80d5dc1bd97ce084a22875362795285f16 | a7e89bc0436f67e2160905e7d1becd681acc42c1 | /manage.py | ea86dc2ce3543cb9faa1c82848b799de048a0cc7 | [] | no_license | supermanfeng/shengxianproject | 6cc718a99d17054a959af264aae88c02d75be10b | dba59227e918653c5e6b5d4dd892afc4477eccd1 | refs/heads/master | 2020-03-10T13:30:47.214241 | 2018-04-26T13:20:34 | 2018-04-26T13:20:34 | 129,401,909 | 1 | 0 | null | 2018-04-27T12:26:08 | 2018-04-13T12:52:08 | JavaScript | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vueshengxian.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"2252506855@qq.com"
] | 2252506855@qq.com |
3b05ad30d907a8027648557e26ffae9634bd2c22 | 57c55954c4e7691a5bb7e58094ce8d68a90ac068 | /GRC1/Library/nrnoble.py | da34894b3b31e0c8bb6a0b7063513d66629764f0 | [] | no_license | nrnoble/masterdirectory | 1dea7213220fac8b0bdfcf32bb45e4a645a1d0b5 | 5de73ee6d6945974083767c7bcbb650de08356de | refs/heads/master | 2020-12-30T14:45:33.227000 | 2017-06-09T10:33:12 | 2017-06-09T10:33:12 | 91,083,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import random, time, sys
Colors =['Red', 'Green', 'Blue', 'White', 'Black', 'Yellow', 'Orange', 'Pink', 'Purple', 'Gold', 'Gray', 'Maroon']
Colors2 =['Red', 'Green', 'Blue', 'White', 'Yellow', 'Orange', 'Pink', 'Purple', 'Gold', 'Silver', 'Gray', 'Maroon']
def pause(win):
#win.redraw()
win.update()
win.... | [
"nrnoble@hotmail.com"
] | nrnoble@hotmail.com |
4f12b2cc59d6c1796f624bc5b10d8d35fa779390 | 22749c6a569661b2637233cc0aebdc1701033b26 | /src/python/pants/backend/codegen/protobuf/python/python_protobuf_module_mapper_test.py | d1a882ed3ab9459719226cada03e3667f28f2afd | [
"Apache-2.0"
] | permissive | akk5597/pants | 2eceb226c39b8ef7f603dfa96684b7522e1a9065 | 7ad295f71d2990eebbbe9c778bbf70f7d9e66584 | refs/heads/main | 2023-08-27T02:40:54.753545 | 2021-11-10T03:42:18 | 2021-11-10T03:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import pytest
from pants.backend.codegen.protobuf.python import additional_fields, python_protobuf_module_mapper
from pants.backend.codegen.protobuf.python.python_protobuf_module_mapper i... | [
"noreply@github.com"
] | noreply@github.com |
bf6f236aa05ce0ae841dd0b933b1930625d39351 | a75d4e8ff5e2d0641e539af3980768c10298dfb9 | /main.py | d8058f25dc7e3b8e940ce79bf28746f3235b9492 | [] | no_license | vitvara/tk-space-1 | c70942af4c235ebabc8648d7d49efc9c31feb961 | 57f668f3137ce893d576f03c8f7c6ffc0cb794c3 | refs/heads/main | 2023-03-23T23:35:07.711907 | 2021-03-24T23:17:02 | 2021-03-24T23:17:02 | 351,682,625 | 1 | 0 | null | 2021-03-26T06:20:18 | 2021-03-26T06:20:17 | null | UTF-8 | Python | false | false | 5,424 | py | import math
from random import randint, random
import tkinter as tk
from gamelib import Sprite, GameApp, Text
from consts import *
from elements import Ship, Bullet, Enemy
from utils import random_edge_position, normalize_vector, direction_to_dxdy, vector_len, distance
class SpaceGame(GameApp):
def init_game(s... | [
"jittat@gmail.com"
] | jittat@gmail.com |
f91fe8efd301c91d87c7cc5119bec68f6456f407 | 05fb5c55ef7c7dde7e7709783fd71f141d3f4d37 | /lesson1/clientMath.py | e5b1640adf2a1fc44d0602066ff1f7c7b66fa7e4 | [] | no_license | binaryfun/Internet-Programming-Class | 292ec0b8c591c9bbb9c4a604bd78a0a2246d0a36 | 5efda0bd6f3dfb03f22af3aaa6d0cf636d17e3ee | refs/heads/master | 2021-01-23T07:20:42.811277 | 2011-03-08T04:29:29 | 2011-03-08T04:29:29 | 1,258,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/python
# Echo client program
import socket
import sys
if len(sys.argv) != 3: # the program name and the two arguments
# stop the program and print an error message
sys.exit("Must provide two positive numbers\n \
Example: %s 123 1213" % sys.argv[0] )
# Convert the two arguments from strings into numb... | [
"directorymanager@gmail.com"
] | directorymanager@gmail.com |
16559e513ed34f05a32fd05f3bb1afa075465a9f | ed111fd8e49676a07ef456602a57c61a6644c748 | /models/pizza_toppings.py | 60add0e50fc0684c141b4a9a267735f3a7524076 | [] | no_license | Heidenmason/RabbitRanch | 54290b4a85fa2119a02bc96676962c493eb4ec97 | 41b75584a3c1270145886954d04f8d18e3d877b7 | refs/heads/master | 2020-12-04T05:11:45.321732 | 2020-01-16T06:43:29 | 2020-01-16T06:43:29 | 231,626,892 | 0 | 0 | null | 2020-01-16T06:43:31 | 2020-01-03T16:41:52 | Python | UTF-8 | Python | false | false | 686 | py | class PizzaToppings:
def __init__(self, pizza_topping_id, type_id, sauce, meat, cheese, veggies):
self.__pizza_topping_id = pizza_topping_id
self.__type_id = type_id
self.__sauce = sauce
self.__meat = meat
self.__cheeses = cheese
self.__veggies = veggies
# g... | [
"heidenmason@gmail.com"
] | heidenmason@gmail.com |
313285dd7c238502f8bc4ba4af3bfb4143144e8a | 159ab045e72fe1639d8bc7d4e34774bed85c1ea6 | /python101_course_server_checker.py | d2e52e37f61fdf24f5f1257264807ae8e0d1bbf6 | [] | no_license | Interligo/py101-server-checker | 08408226ee0deb9ae42a53e4d1ec8fa56e439d68 | c930f029cbbbce9f72d67d11b2c75723769e2c3f | refs/heads/main | 2023-01-13T17:26:16.152492 | 2020-11-14T10:06:16 | 2020-11-14T10:06:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | import requests
from logger_settings import logging
def course_server_checker():
response = requests.get('https://python101.online')
logging.info(f'response.url: {response.url}')
logging.info(f'response.status_code: {response.status_code}')
return response.ok
| [
"noreply@github.com"
] | noreply@github.com |
0d3897723c75c8c6541b18a612fb5a3fdc091199 | 5a4fe2ad0023743291cda1ea8749f07c8a5984bc | /nagiosunity/commands/battery.py | 9013308a6345414feb2390eec8566146b30c212c | [
"Apache-2.0"
] | permissive | dan-and/nagios-unity | 5686b6abf96b3bd2c9c48d5acd865cc89e40c1f1 | 3df800d22a48f875e1afdafd945bf4b245e8703b | refs/heads/master | 2021-05-08T23:16:22.804951 | 2017-12-01T10:15:22 | 2017-12-01T10:15:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | # coding=utf-8
# Copyright (c) 2017 Dell Inc. or its subsidiaries.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... | [
"peter.wang13@emc.com"
] | peter.wang13@emc.com |
bacb06400d052ba719278fc6b64451f272f98072 | 6100a1906b8199b164b2ebe866b7cba149dcf9db | /util/__init__.py | c09c5c20c48f33bb6e3abbe70c32b73ccf4d4023 | [
"MIT"
] | permissive | LucasRibeiroRJBR/SQL_Console | bcfd3c54d448c01f380d6f688858ec7393a10790 | 511580b5e48b3ac9dc47d5f918426f9e2bfb52d8 | refs/heads/main | 2023-01-24T11:20:15.832921 | 2020-12-12T22:56:22 | 2020-12-12T22:56:22 | 320,940,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="root",
password="",
database="escola"
)
cursor = mydb.cursor()
def select():
while True:
print('\n1- ID\n2- NACIONALIDADE\n3- IDIOMA\n4- CURSO TÉCNICO\n5- VOLTAR')
op_select = input('\nFiltrar por -> ')... | [
"lucasribeirorjbr@gmail.com"
] | lucasribeirorjbr@gmail.com |
9ab3889ed4bf1f930b6df7ed4a537cf575bc487d | 04ee83c352281739c8b3f79f2503723449bdcc01 | /venv/lib/python3.6/site-packages/pde/fields/vectorial.py | 918afbde04329da497ddb5f206a1089019b5fd4f | [] | no_license | pretentious7/LTCURECA2020 | 5b7e88e3c2791fd1827a6a9ee5c0b72da9baf897 | 1654b1b89b93959c4e029c636cff170d0fdcb59b | refs/heads/master | 2022-11-10T09:06:47.901715 | 2020-06-30T22:05:23 | 2020-06-30T22:05:23 | 267,156,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,138 | py | '''
Defines a vectorial field over a grid
.. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de>
'''
from typing import (Callable, Optional, Union, Any, Dict, List, Sequence,
TYPE_CHECKING)
import numpy as np
import numba as nb
from .base import DataFieldBase
from .scalar import Scalar... | [
"abhicherath@gmail.com"
] | abhicherath@gmail.com |
5a8c329ae43244aced63ae8867c913d3c03e6fd4 | 096fb90533ac914bdefaa91c1bf835c9d8c0d08b | /q22.py | 66b0e073cfacb1692433d2c652e29b557de5bf09 | [] | no_license | hasilrahman/assignment1 | 32640e29c4ee04353a2c241dab205be674fd1cb7 | d2e59e7213d61fc28361fd0d77020604739197c4 | refs/heads/main | 2023-03-05T09:00:35.647183 | 2021-02-15T04:49:09 | 2021-02-15T04:49:09 | 338,969,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | dic={"eng":50,"maths":33}
dic["eng"]=60
dic["maths"]=80
print(dic) | [
"noreply@github.com"
] | noreply@github.com |
9c9abfffb870fcf7a1f3784ecc5e2ecbc9ac49c4 | 8c248a2ca0a8939be7f5f9fc88e1ee1af0dfefd1 | /com.systemincloud.examples.tasks.pythontask/src/test/py/tasks/data/DataInt32.py | 82d86bf354d02fe9fa09b952ffa1c5e950b44f0c | [
"Apache-2.0"
] | permissive | systemincloud/sic-examples | e3971dbbd846285c9a517d27cb4a25f4be0a7771 | b82d5d672f515b1deb5ddb35c5a93c003e03c030 | refs/heads/master | 2020-12-29T02:39:44.074782 | 2016-01-06T14:32:34 | 2016-01-06T14:32:34 | 16,419,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | from sicpythontask.PythonTaskInfo import PythonTaskInfo
from sicpythontask.PythonTask import PythonTask
from sicpythontask.InputPort import InputPort
from sicpythontask.OutputPort import OutputPort
from sicpythontask.data.Int32 import Int32
@PythonTaskInfo
class DataInt32(PythonTask):
def __init_ports__(self):
... | [
"marek.jagielski@gmail.com"
] | marek.jagielski@gmail.com |
f00d8d4e9c9bc00c3e059a357d9a41dce49b213b | 7355a81397876c75a52da63eacd72f0e540b3fa2 | /planner/apps/dashboard/forms.py | 9b806e328467908aafe643d950b02ee153b1a57b | [] | no_license | reeson46/Planner | 7fbf98a07e3637b7e9228728440e104cbe7a6717 | 261c30bb1796d3defa53b9bc39b67a8232fb101a | refs/heads/main | 2023-08-11T07:34:40.352524 | 2021-09-14T22:27:25 | 2021-09-14T22:27:25 | 373,234,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | from django import forms
from django.forms import ModelForm
from .models import Board, Category
class BoardForm(ModelForm):
class Meta:
model = Board
fields = "__all__"
def __init__(self, *args, **kwargs):
super(BoardForm, self).__init__(*args, **kwargs)
self.fields["name"].... | [
"luka.loncaric@gmail.com"
] | luka.loncaric@gmail.com |
7b512c468b007c8b2f336f735e4eb125dfc4082e | a03eba726a432d8ef133f2dc55894ba85cdc4a08 | /config/hostsconf/views.py | f6ec260509c9276a8b978a80bd4cf61bb22bcbaf | [
"MIT"
] | permissive | mansonul/events | 2546c9cfe076eb59fbfdb7b4ec8bcd708817d59b | 4f6ca37bc600dcba3f74400d299826882d53b7d2 | refs/heads/master | 2021-01-15T08:53:22.442929 | 2018-01-30T16:14:20 | 2018-01-30T16:14:20 | 99,572,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from django.http import HttpResponseRedirect
from django_hosts.resolvers import reverse as host_reverse
def www_root_redirect(request, path=None):
url_ = host_reverse("home", host='www')
if path is not None:
url_ = url_ + path
return HttpResponseRedirect(host_reverse('home'))
| [
"contact@dragosnicu.com"
] | contact@dragosnicu.com |
823144a692b2926cab21554df910419d0eff5e50 | 0e7e690435972e74d96626bbe3e3355301059aee | /py/facerec/scripts/fisherfaces_example.py | f7c46cadf391a48801b14af40f2143e2091c8da2 | [
"BSD-3-Clause"
] | permissive | phretor/facerec | 53a9079a1f43b4dc2298c9de7694e13e649047ed | fcc631065eb8da9806c0904283f63116d4588741 | refs/heads/master | 2021-01-18T06:00:07.823424 | 2012-02-09T22:43:22 | 2012-02-09T22:43:22 | 3,402,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | from facerec.dataset import DataSet
from facerec.feature import LBP,Fisherfaces
from facerec.distance import EuclideanDistance, CosineDistance
from facerec.classifier import NearestNeighbor
from facerec.model import PredictableModel
from facerec.validation import KFoldCrossValidation
from facerec.visual import plot_eig... | [
"bytefish@gmx.de"
] | bytefish@gmx.de |
edf41798fa0e01ff97c9f048dd79ff4eb088c77a | a7d5fad9c31dc2678505e2dcd2166ac6b74b9dcc | /dlkit/authz_adapter/learning/managers.py | 89a47c8f2c81a8efae575f3c791d4a82dc5e30e3 | [
"MIT"
] | permissive | mitsei/dlkit | 39d5fddbb8cc9a33e279036e11a3e7d4fa558f70 | 445f968a175d61c8d92c0f617a3c17dc1dc7c584 | refs/heads/master | 2022-07-27T02:09:24.664616 | 2018-04-18T19:38:17 | 2018-04-18T19:38:17 | 88,057,460 | 2 | 1 | MIT | 2022-07-06T19:24:50 | 2017-04-12T13:53:10 | Python | UTF-8 | Python | false | false | 62,360 | py | """AuthZ Adapter implementations of learning managers."""
# pylint: disable=no-init
# Numerous classes don't require __init__.
# pylint: disable=too-many-public-methods
# Number of methods are defined in specification
# pylint: disable=too-many-ancestors
# Inheritance defined in specification
from . impor... | [
"cjshaw@mit.edu"
] | cjshaw@mit.edu |
b3198f33c305f528c35c7946bf193d81970e7867 | 0ee21652c5d4b41be13c8db871261ab48e5f6878 | /test/functional/p2p_feefilter.py | a7d3235a8c8e69bd5d4acb4d3efeeb4aad3128b3 | [
"MIT"
] | permissive | The-Bitcoin-Phantom/The-bitcoin-Phantom | 60f4a8f85e1a5235dc40b84b7c04bcd0e846c52d | c914b51924932f07026eb6ba057c6e375e4dcdac | refs/heads/master | 2020-08-25T06:46:47.745015 | 2019-10-23T05:59:27 | 2019-10-23T05:59:27 | 216,977,357 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,092 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2019 The bitphantom Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test processing of feefilter messages."""
from decimal import Decimal
import time
from test_framew... | [
"dinesh@xiornis.com"
] | dinesh@xiornis.com |
c8970539fdd5c192186f560b26c1f90428a84e38 | 6bd48af1413be83b021c5aa00c56d1e2a7e86d3b | /pii_recognition/pipelines/pii_validation_pipeline.py | 5a5cd28868a79209ff5a74bcda5e91bc8224833a | [] | no_license | gabechu/pii_recognition | 56ca28d29512f22a20982d53692f98c4c7a2ebea | 501d94042f4469aa1797657bc7db32308d28b593 | refs/heads/master | 2021-02-21T19:45:37.105435 | 2020-11-26T07:06:42 | 2020-11-26T07:06:42 | 245,364,610 | 2 | 0 | null | 2020-11-26T07:06:43 | 2020-03-06T08:17:06 | Python | UTF-8 | Python | false | false | 9,130 | py | from typing import Dict, FrozenSet, List, Mapping, Optional, Set, Union
from pakkr import Pipeline, returns
from pii_recognition.data_readers.data import Data
from pii_recognition.data_readers.presidio_fake_pii_reader import PresidioFakePiiReader
from pii_recognition.evaluation.character_level_evaluation import (
... | [
"noreply@github.com"
] | noreply@github.com |
cc8cec707c2592a054a96cf064f412c9b86e713a | a4d955af89d12010963f775aa5688a6156714afa | /qlearningAgents.py | 2cb6ec7ec33b8b44000fe11ee092e5550779de47 | [] | no_license | mobbistcn/pacman | 140d35b3681403cd9c49e66fdac39cb0eab0ae91 | 2ab695e803904c5417f663082d00bbc768613dd2 | refs/heads/master | 2021-01-17T23:41:45.039039 | 2017-03-07T18:47:34 | 2017-03-07T18:47:34 | 84,233,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,299 | py | # qlearningAgents.py
# ------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.be... | [
"noreply@github.com"
] | noreply@github.com |
75c788a648281903bff2bd13fe24752d7911f635 | c0a536c29ffaf5583479afefd29b6c13068536da | /tic_tac.py | 4a1b0276ad5fafb2c4025ae54c3e4a0211c8374a | [] | no_license | harishpolagani/tic_tac_toe_using_python_basic1 | b6543685d0ca9f09579030ba36b8ae01b20e3cf6 | be8b8df573ad4778cb16382474e8ceaa3b12bdf5 | refs/heads/master | 2020-03-18T02:10:26.876581 | 2018-05-20T19:13:01 | 2018-05-20T19:13:01 | 134,177,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,768 | py | import numpy as np
import sys
class Tick_Tac_Toe_class():
game_state_info = ["GAME_NOT_STARTED","GAME_STARTED","GAME_RESUMED","GAME_COMPLETED"]
def __init__(self,game_square_matrix_shape=3):
self.game_state = 0 #state_machine of Game current state: 0 - game not started 1 - game started 2 - game resu... | [
"harishpolagani@gmail.com"
] | harishpolagani@gmail.com |
90e783ea257a3f30cbf5ecd45264e3e1bfb0f5e5 | dc221edce0ad617aac3b9ad8f4f347ff84f56bf9 | /.history/client_20200807180109.py | 54c6da2132910d7f0425fdabfa0c1da205eccabc | [] | no_license | zlm05170/cacontroller | 310014c83ecf130643230eba87990e635fe1575f | e76d2eb5d58d6adfe7823e0dcd0059027c52b6bc | refs/heads/master | 2022-12-21T08:05:58.315017 | 2020-09-23T11:45:07 | 2020-09-23T11:45:07 | 284,527,141 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,720 | py | import asyncio
import websockets
import time
import json
import traceback
def view_actor_data(actor, port_type, port_name):
pass
def get_port_value_by_name(port_list, name):
for port in port_list:
if port['port']['name'] == name:
return port['value']
def find_port_index_by_name(actor, por... | [
"angelxx05170@gmail.com"
] | angelxx05170@gmail.com |
6ffb802354785ccf06e1e714cbc18922392c69de | 3d1f2c12c95b81fd5129a5f13f9b4f35eff50d37 | /Tkinter_Chatbot.py | a1779142813832dbe1ba955d3e23a1b73b31bab2 | [] | no_license | AdityaKansal/Machine-Learning-Experiments | 0126a937a4581b70611f2ecd9d78e570296a15c2 | e0844bc3707257d2547d13189edf3ec6ffd54fec | refs/heads/master | 2020-03-21T10:32:34.814542 | 2018-11-01T08:18:42 | 2018-11-01T08:18:42 | 138,456,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 28 11:45:17 2018
@author: akansal2
"""
from chatterbot import ChatBot
import tkinter as tk
try:
import ttk as ttk
import ScrolledText
except ImportError:
import tkinter.ttk as ttk
import tkinter.scrolledtext as ScrolledText
import time
... | [
"noreply@github.com"
] | noreply@github.com |
2383da4f3157b6df7d4081cad9ec8c16e5a45b8b | 123fe9cac97e52845416745ec2f0888f40a2a644 | /setup.py | 6a4e1b7fa10a76b3357a870258c07113d9429c7e | [] | no_license | kevlened/SQLementary | 49ed78bc5b7fbfb12aae462833755baf16b52324 | 7f5430a2ace8269cda8bbc3496690ecbe5055a2e | refs/heads/master | 2016-09-09T18:22:10.304382 | 2013-04-01T23:10:23 | 2013-04-01T23:10:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | import sys
import os
from cx_Freeze import setup, Executable
# Loops through a directory, grabbing relative file path names
def files_in_dir(directory_name):
f = []
for (dirpath, dirname, filenames) in os.walk(directory_name):
for filename in filenames:
relpath = os.path.join(dirpath, f... | [
"boyettel@gmail.com"
] | boyettel@gmail.com |
67ff4516b957eac77cb2d9c3c3cdd7977bf99823 | 14480e08c80c17abf8d436d600e44461d826c2f5 | /app/status/urls.py | abce2eae987c491cc7cba1e72e78094c7c49edd9 | [] | no_license | baidang201/mycat_backend | 9fece7632794a10c35541ef32cdef21a2084b7ee | bac18b960d648143afc1704fc79aec4069e4e8e0 | refs/heads/master | 2020-03-20T04:25:09.137888 | 2018-06-09T13:10:57 | 2018-06-09T13:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from flask import Blueprint
import app.status.controller as ctrl
status = Blueprint('status', __name__)
status.add_url_rule('/token/<user>', view_func=ctrl.token, methods=['GET'])
status.add_url_rule('/point/<user>', view_func=ctrl.point, methods=['GET'])
| [
"psy2848048@gmail.com"
] | psy2848048@gmail.com |
c5dbea9ccf836413ec434ef98dbb19109f8484fe | 67acb19a994b72cd9f6d8f833f147d03dae8f86c | /index.py | b8a371da9417bbfd21955c55aa1de13c0df03611 | [] | no_license | Mathewolakunle/cscfinal | 039ca35fe489b5bb1614ab5ec99859278f495186 | a057276dcc3cbdc75681affdb4666a4c4e20da13 | refs/heads/main | 2023-04-26T01:58:19.976855 | 2021-04-30T04:09:37 | 2021-04-30T04:09:37 | 363,012,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,292 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.graph_objs as go
import pandas as pd
url_confirmed = 'time_series_covid19_confirmed_global.csv'
url_deaths = 'time_series_covid19_deaths_global.csv'
url_recovered = 'time_series_... | [
"mathew.alaba@coyotes.usd.edu"
] | mathew.alaba@coyotes.usd.edu |
5bbb829967936246b03da49dbe2c58f523568660 | 6959d1dec46a490ac1469e21c68506157efea0ee | /Pandora/apps.py | 02ebc2445ba9bb709fd38d97417e67ff5d5ceeb7 | [] | no_license | andyshu6/Nuclear | 305f589a7d81cd90f7f19c3b28cb50d5d7867af3 | 88c68e50dc7506f495120313536e3cfa48329e8f | refs/heads/master | 2020-03-08T18:29:33.430204 | 2018-07-11T16:27:18 | 2018-07-11T16:27:18 | 107,992,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class PandoraConfig(AppConfig):
name = 'Pandora'
| [
"john@sample.com"
] | john@sample.com |
5eaa14e11dd89e64149ecac16a37c91c7920acbb | b9429fed4685c6eacb9e2965384a64274e4e7003 | /community_detection/profiling_operators/cohesion/set_cohesion.py | a72fe4bb7345d26beeb42cbf12f12320130a3822 | [] | no_license | JoGreen/twitterProfiling | 904141f053bd71f77ac9df1e9d42213c00c895f0 | f6a49ee6d6cece73b852d1640b0c6f9214a3f522 | refs/heads/master | 2022-12-09T03:36:57.900332 | 2018-02-27T19:36:39 | 2018-02-27T19:36:39 | 108,031,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,045 | py | from itertools import combinations
from community_detection.profiling_operators.similarity import jaccard
from community_detection.profiling_operators.means import geometric_mean
def compute_cohesion(users):
pass
def retweet_cohesion():
pass
def topic_cohesion():
pass
def profiles_cohesion(profiles)... | [
"giorgiomaria@live.it"
] | giorgiomaria@live.it |
927abca95b4c49ca979cdcfe7c8e51381094bb8f | 7c48279b15dc98c0620834ad6a40a86e4ba9ee59 | /projects/Casino.py | 8da2bc719951963ddc75c73ec5b3962903848acb | [] | no_license | loganwyas/oasisdigital | b7942d62d8ea501b8a822b562562365340107ed1 | 5faf392ce7570be06a0e224b914c90ae1094b74d | refs/heads/master | 2023-01-23T14:31:35.762923 | 2020-03-24T15:49:00 | 2020-03-24T15:49:00 | 220,025,283 | 0 | 0 | null | 2023-01-07T16:19:07 | 2019-11-06T15:11:48 | JavaScript | UTF-8 | Python | false | false | 18,296 | py | # -*- coding: utf-8 -*-
# Logan W. and Zayn A.
import random
import time
import sys
cards = [2, 3, 4, 5, 6, 7, 8, 9, 10, 'J', 'Q', 'K', 'A']
chips = 1000
wheels = []
dollars = 0
slots = ['-', '-', '-', '=', '=', '=', '≡', '≡', '≡', 'ꭥ', 'ꭥ', '♥', '♥', '$', '7']
originalbet = 0
def ATM():
global chips
global do... | [
"loganw9999@gmail.com"
] | loganw9999@gmail.com |
47c4e431686bd9948b48577adbf24aab230585ff | 0ee8ea963a8fa0aa9951696682ffdaa29e26745c | /back-end/apps/products/apiGraphQl/schema.py | dbb6e5d7e16fb6fc57c9a4e8c92f3bf49855ad8e | [] | no_license | acorrea-B/KarlaCommerce | ddfdabb74eb4d5f9f5e5a96cedc368477c6a18e7 | f180fcf58c49a1bfce60ed6bcbefb8902c42c268 | refs/heads/main | 2023-07-08T02:01:51.901763 | 2021-08-08T03:40:04 | 2021-08-08T03:40:04 | 390,139,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import graphene
from .nodes import ProductNode
from ..models import Product
class ProductQuery(graphene.ObjectType):
list_products = graphene.List( ProductNode )
def resolve_list_products(root, info, **kwargs):
"""
Este resolve retorna el listado de productos del
commerci... | [
"aljyque95@gmail.com"
] | aljyque95@gmail.com |
f2e88da8862e71c22ad12aa32a41af1c3f6d44ae | 11398711ca0ec8e5e699a9a87d79ad1fea6a1bf3 | /venv/bin/easy_install | 4d374412ec4b07f4397fda5ecc845193c05bf97b | [] | no_license | ThatGuyNamedTim/CapitalOneAirbnb | d86e62f359343af157d1bb484919aa6bab7d118e | 507e6ab6277ea3097a28fc56a5483c1a0ada7f89 | refs/heads/master | 2018-12-23T05:04:10.941995 | 2018-10-10T12:55:27 | 2018-10-10T12:55:27 | 109,745,663 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/home/tim/Documents/CapitalOneAirbnb/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tim@arch.umd.edu"
] | tim@arch.umd.edu | |
43de55f5e7ff24beb62ff9ef00a46e24edd4bae1 | b384480f7e3fd81ab7d1ab743581c91a0e786f75 | /dplib/dp_mechanisms.py | 69a0b9721eba5dec524652d1f4c718de31f1aa31 | [] | no_license | kamathakshay/dp-deep-learning | 6f653a5d18f8f380d850ab707a1a9c65babfc39a | 6d652a7a86964e23d0837b14c1b350f7b6c27752 | refs/heads/master | 2022-11-01T04:23:23.894232 | 2018-12-05T01:21:13 | 2018-12-05T01:21:13 | 154,505,334 | 0 | 1 | null | 2022-10-09T19:39:55 | 2018-10-24T13:23:19 | Python | UTF-8 | Python | false | false | 3,557 | py | from __future__ import division
import tensorflow as tf
from per_example_gradients import PerExampleGradients
def clipped_gradients(loss, params, clipbound = None, epsilon = None, delta = None) :
xs = [tf.convert_to_tensor(x) for x in var_list]
px_grads = per_example_gradients.PerExampleGradients(loss, xs)
s... | [
"kamath.akshay@gmail.com"
] | kamath.akshay@gmail.com |
1476a08e4cc839c82fff0b0b997018ff4664d677 | 3ff20e2271e422806f78d13bb64b813e3817eb43 | /app.py | de2b32950dfab0c188e42b94c41090ebf4be63b3 | [] | no_license | daniel2346/Endpoints_Python_Finkargo | 1a4b2ffdd92858d3a8a121aed00e2c5b091a763e | ddef132c8c289068ecbb1fe31dedcfd1c9c608a6 | refs/heads/main | 2023-07-16T08:57:49.052337 | 2021-09-06T12:53:20 | 2021-09-06T12:53:20 | 403,467,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,528 | py | from flask import Flask, jsonify, request, make_response
import mysql.connector
from mysql.connector import errorcode
from flask_httpauth import HTTPBasicAuth
import MySQLdb
from flask_sqlalchemy import SQLAlchemy
import re
import collections
import json
USER_DATA ={
"admin":"root"
}
app = Flask(__n... | [
"noreply@github.com"
] | noreply@github.com |
769a920462f74093deebe33e6db9ca5f4ce57734 | bc6e2056500afdd5d11a28a613d6d73f5dd05447 | /moneycash/produccion/admin.py | 28741262c044e84e45e8db2088d83ef264941422 | [] | no_license | xangcastle/respaldo | d0540fabc089f947f052019431d55a9c3c85f131 | 48c5f53b2a2bce0bfa79b1fcc657aa40268e702b | refs/heads/master | 2021-01-10T01:52:48.102689 | 2015-12-16T15:42:02 | 2015-12-16T15:42:02 | 48,118,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,700 | py | from django.contrib import admin
from .models import *
from moneycash.entidad import entidad_admin
from moneycash.documento import documento_admin
from django.template.context import RequestContext
from django.shortcuts import render_to_response
class contadores_tabular(admin.TabularInline):
model = equipo_period... | [
"cesarabel@johnmay.com.ni"
] | cesarabel@johnmay.com.ni |
6641e64590f5d5a87376b0da7dd60cb4abca9df8 | 381c0c5080ca97ffa2ef2fafea236c723869e1cd | /0_Python_scripts/10.1_T_codon_enrichment.py | 7a5695fa98bba4046cf0150b953e4a0577cad8ab | [] | no_license | ath32/ASCs | 051d60510c4ed09d986f5cd30eddad66a573b5d3 | 33b0ee4df0cab2f0e2a6d06a32fd7231fb5799a2 | refs/heads/master | 2020-04-22T15:31:53.858680 | 2019-08-12T11:55:37 | 2019-08-12T11:55:37 | 170,480,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,686 | py | ### IMPORTS ###
import os
import csv
import numpy as np
### CHOOSE SOURCE FOLDER (EMBL) ###
source = '2_FASTA_Eubacteria_cds_TT11'
#source = '2_HEGs_fasta'
#source = '2_LEGs_fasta'
#source = '2_FASTA_Eubacteria_cds_TT11_TAA'
#source = '2_FASTA_Eubacteria_cds_TT11_TGA'
#source = '2_FASTA_Eubacteria_cds_TT11_TAG'
###... | [
"noreply@github.com"
] | noreply@github.com |
1672c0561222f541e78f07447bb4d5b574ce8122 | ab1b3afffbdd05b8b9da6fe5204a4dd6e0d2b873 | /123.py | a23f96d5963e952a8dfd7d7c9cde31ae5affc47f | [] | no_license | fkgogo123/CIFAR10 | 5f6b4cffa2539d6cd8e1b09e8e7bbcd9b825d086 | 9c4c6b73c91d3da0b6f714442a539c662f8bdc77 | refs/heads/master | 2022-12-30T23:59:34.815589 | 2020-10-15T06:14:57 | 2020-10-15T06:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import torch
x = torch.rand(3, 32, 32)
print(x.size())
print(x.size(0))
a = torch.randint(1, 10, [5])
b = torch.randint(2, 11, [5])
print(a)
print(b)
c = torch.eq(a, b).float().sum().item()
print(type(c))
# print(c.item())
| [
"1982614192@qq.com"
] | 1982614192@qq.com |
9883545bfdc6f01d8752f12f5121a3bab3b56b21 | 908cb47174dbc50091c315e6ca90e4746b716c6e | /apps/base_user/forms.py | bc20e2d186893363e56edb8b7a3d5911ff377daa | [] | no_license | azer1999/markatekstil | b4d24b26e531f46022bb2f1e953118fe51b9a379 | e84c4efd95a97c1f97a772b195f9de6efe10ab4f | refs/heads/master | 2023-06-16T06:09:02.511193 | 2021-07-15T12:47:01 | 2021-07-15T12:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | from django import forms
from django.contrib.auth import get_user_model
from django.forms import ModelForm
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.forms import ReadOnlyPasswordHashField, AuthenticationForm
from django.contrib.auth import authenticate
from PIL import Image
# ge... | [
"elxjd.2014@gmail.com"
] | elxjd.2014@gmail.com |
d2a2148478a07f208203d379d258d6deca8f63ff | a250ca3a58c5b6b5f4e463496cb40e6e48619c01 | /code/model.py | 98d5a7d46a1d92d1c4aa6bf64842658f3e677082 | [] | no_license | pmk2109/Patently | 6105d4037a5c752d2abecb843893b45986643692 | 98ad39721a68989933dbb15784d53664fd0bbd6f | refs/heads/master | 2021-01-24T17:34:39.355188 | 2016-09-06T18:21:31 | 2016-09-06T18:21:31 | 63,189,382 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,336 | py | import pandas as pd
import numpy as np
import string
import sys
from sklearn.feature_extraction.text import TfidfVectorizer
from nltk.stem.snowball import SnowballStemmer
from sklearn.metrics.pairwise import linear_kernel
import cPickle as pickle
import time
import msgpack
def load_data(path=None):
'''
DOCSTRI... | [
"pmk2109@gmail.com"
] | pmk2109@gmail.com |
2dfc3c9e0e90b30322d87f19a0f5e8464b0abd70 | b952929285c4f518d260bf6c9f70ab19ee9de9e0 | /q2e3/tests/test_chaining.py | 1716896114cf874aeda8a5088abd8e9d54a9b23e | [] | no_license | vitalwarley/ia1 | f5b31bcaaff7df6da1fe21964e0f00df8c2e717d | d4ae1243c97c31f97b57caba42951da2dae17f7f | refs/heads/master | 2021-09-15T16:42:40.187162 | 2018-06-07T02:20:43 | 2018-06-07T02:20:43 | 126,322,382 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,095 | py | import unittest
from ia1.q2e3.inference.chaining import ChainingStrategy
from ia1.q2e3.inference.rules import Rule
from ia1.q2e3.inference.utils import RulesUtils
class ChainingStrategyTest(unittest.TestCase):
def test_01_backward(self):
RulesUtils.get_rules_from_file('../rules_base')
goal = 'gr... | [
"wvb@ic.ufal.br"
] | wvb@ic.ufal.br |
9be1a3be6e0bda3711aa96d5d4d568c1c09b73c8 | 68a110fc825decc06d1102d381febebdbbf0f88f | /test.py | a4b26638f4fa516dac8718c3e76cb1af4634a9d1 | [] | no_license | tracefinder/TestServRepo | 15e90c8343c5bcbaac8781a374b10ed98f5204d6 | 62c2d1f1f16ad1b3e490957fadd3a5130c6e2b75 | refs/heads/master | 2021-01-22T18:23:07.432458 | 2012-08-19T14:03:51 | 2012-08-19T14:03:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | """Test server.py."""
import hashlib
import json
import requests
import sys
import threading
import time
import tserver
import unittest
class TestServer(unittest.TestCase):
"""Test class."""
def setUp(self):
"""Start the server in new thread."""
if not tserver.DEBUG:
print "Debug mode is turned off. Set t... | [
"tracefinder@gmail.com"
] | tracefinder@gmail.com |
b0ed908027f0e57408b65f8aa5e9073396394613 | e77e194dfee468b0ab8db6fc51af5ad45a0cb014 | /whatstatts_v5.py | 1a789db7f6a54c77c1dfaa85b36e92f39ffbd00e | [
"MIT"
] | permissive | ausathe/whatsapp-statistics | eafa560e832e38990bb49a8a3506707ed2266c00 | 8a3bf0b800765cb3f1310f138b8611bb7f9e573b | refs/heads/master | 2020-03-22T10:02:51.756973 | 2018-07-05T17:28:45 | 2018-07-05T17:28:45 | 139,877,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,992 | py | import re, math, os
from bokeh.plotting import figure, output_file, show
from bokeh.layouts import gridplot, row, layout
from bokeh.models import ColumnDataSource, ranges, LabelSet, Div, SingleIntervalTicker, LinearAxis
from datetime import datetime, timedelta, date
from dateutil.relativedelta import relativedelta
cla... | [
"noreply@github.com"
] | noreply@github.com |
6bf0e432bf6a9ac21ec7bfa42a25fbbf1ac73a1b | d965666c0bcae4290d4189b5f539696651b23fd8 | /venv/lib/python2.7/site-packages/pyshark/capture/capture.py | 5f759f289bf529559d905b039c75128d2e691b1b | [] | no_license | anditangguhf/Skripsi-Deteksi-DGA | 5de556959f72ed837da1f9c43cbcda8a5e3f479f | 81ce1f13a0679d969375c24c3a7116d63587b956 | refs/heads/master | 2022-12-03T04:59:05.843833 | 2020-08-12T04:59:08 | 2020-08-12T04:59:08 | 254,344,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,145 | py | from __future__ import unicode_literals
import os
import threading
import logbook
import sys
import trollius as asyncio
from logbook import StreamHandler
from trollius import From, subprocess, Return
from trollius.executor import TimeoutError
from trollius.py33_exceptions import ProcessLookupError
from pyshark.tshar... | [
"anditangguhf@gmail.com"
] | anditangguhf@gmail.com |
762c5f01dc26bf85b36b2cda337b1e05fd67f44e | 22f96e07b22e3ca89ee757badd1f35ed9efcc034 | /docs/conf.py | d4b5fe98e2c13e6412c9c4feeec2f5eaf200fdf8 | [
"MIT"
] | permissive | Duc98f/MangAdventure | 83e341ecbdb6592c947f77e32848346dcc23e861 | fe69c850f6adce1d9a8755e5aa63db358a6084f6 | refs/heads/master | 2023-06-09T23:08:25.595545 | 2021-06-13T10:55:16 | 2021-06-13T11:16:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | # -- Setup Django --
from os import environ as env
from os.path import dirname, join
from sys import path
path.insert(0, dirname(dirname(__file__)))
path.insert(1, join(dirname(__file__), '_ext'))
env['DJANGO_SETTINGS_MODULE'] = 'MangAdventure.tests.settings'
__import__('django').setup()
# -- Project information --... | [
"chronobserver@disroot.org"
] | chronobserver@disroot.org |
452d6a1116be732f045e520d350dc705407e2c81 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/shared/fitting/panels/offensePanel.py | 2f426e8e743c0e2dd09191bd7a22606f6464d826 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 3,079 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\shared\fitting\panels\offensePanel.py
from carbonui import const as uiconst
from carbonui.primitives.container import Container
from carbonui.primitives.sprite import Sprite
from eve.client.script.ui.control.eve... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
24b1dd003a704844352756f3fd2812733e0fd7d8 | 6955cf08b26ddce910f4932374d9b5242680009f | /tasks/toplevel.py | e3710f3b479bba0c705d153c244b825c31850b05 | [
"MIT"
] | permissive | ADicksonLab/wepy | 6c4cea39dacecf4597e0278a0a7e4a50aa3641e5 | 3a029510114db6e66db6a264bd213c9f06559b41 | refs/heads/master | 2023-04-30T03:26:22.365330 | 2023-04-21T15:50:39 | 2023-04-21T15:50:39 | 101,077,926 | 43 | 21 | MIT | 2023-08-31T04:01:04 | 2017-08-22T15:24:10 | Python | UTF-8 | Python | false | false | 88 | py | """User editable top-level commands"""
from invoke import task
from .config import *
| [
"samuel.lotz@salotz.info"
] | samuel.lotz@salotz.info |
43f27c1adc4b1af940ae9d90439fd9baa7553be4 | cefbd23ef2b043517299534b9dc1c75907cf233a | /bameditor/deal_mut/dealHaplotype.py | 507d9f6720cbc140551bfd0c68c1503447f21034 | [
"MIT"
] | permissive | fangshuangsang/BamEditor | ee27b40d02e52519fce354ec9c603a6502173932 | 5702c3bcfd1e93139096432c7bd537a50852cdca | refs/heads/master | 2020-03-26T22:59:48.343459 | 2018-08-21T09:41:54 | 2018-08-21T09:41:54 | 145,502,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,123 | py | from bameditor.deal_mut.readEditor import editRead
from bameditor.common.methods import count_coverage, getReadStrand, find_mate
from bameditor.common.bamconvert import remap
from bameditor.common.bamobject import Read
from collections import OrderedDict
import random
import pysam
from multiprocessing import Poo... | [
"fangshuangsang@gene.ac"
] | fangshuangsang@gene.ac |
f3a43ef0015900475f2c2da760ba827c2fe933df | 923f1c7bd149d37c23c5b2f067baab3f5b95a4cf | /setup.py | 309502c9f88be647a041ae202762971497a89441 | [
"BSD-2-Clause"
] | permissive | Lokeshburade007/python-mammoth | 7467d08ad906e932fbdba720557ee5fd8d862c28 | f8eb2e1214b7ef1749f2cf73a91b09c9f3adf6a8 | refs/heads/master | 2023-08-21T00:35:06.783844 | 2021-10-12T18:52:31 | 2021-10-12T18:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='mammoth',
version='1.4.17',
description='Convert Word documents from docx to simple and clean HTML and Markdown',
long_descript... | [
"mike@zwobble.org"
] | mike@zwobble.org |
21e654ff366601ad396ad938ac9ea2c375d5d094 | 5c008dad5881eaefe36501628d8d3c16e122b9c0 | /Week_01/examples/num_iterate_q2.py | 9dfcab74432181feb0efee201324778fc017b752 | [] | no_license | xeusteerapat/MIT-6.00.1x-EDX | 846787898b06cd5223fa825cf9757f2e92449b02 | cae706564efdc41e435b309493484ea9348c908d | refs/heads/master | 2020-07-18T22:30:43.502441 | 2019-11-04T16:16:51 | 2019-11-04T16:16:51 | 206,325,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | divisor = 2
for num in range(0, 10, 2):
print(num/divisor)
| [
"xeus085@gmail.com"
] | xeus085@gmail.com |
824450c7fa223ebcedb7ecc9358f30483f01e5d4 | 235c6af1174c36b66c8212a5216fe16fcf333e3b | /hr_gpb/tests/migrations/0004_testing_type.py | 2254a005a3f706af385fc6bace861f1f607759fb | [] | no_license | vmoshikov/cp_final_mco | 21e5081ac9f2b0f4576224fe18a0ac9a9a9af616 | e37b4f455c6561835dcc14f919a765c354bca398 | refs/heads/master | 2023-01-18T23:50:34.510086 | 2020-11-29T05:49:33 | 2020-11-29T05:49:33 | 316,544,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # Generated by Django 3.1.3 on 2020-11-28 10:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tests', '0003_testingsolution'),
]
operations = [
migrations.AddField(
model_name='testing',
name='type',
... | [
"vmoshikov@gmail.com"
] | vmoshikov@gmail.com |
5c5135fbae58089e6508a9f29d16bb8b0b6d7268 | d0227639cbe42193209ed83bbadd58fc344e5a5c | /SUTD_IEEE_Kivy_Workshop/Kivy_workshop_2/Examples/button.py | 29257aeade80fd6d66d346af1e208eea4ed66e71 | [] | no_license | SUTD-IEEE/workshop-resources | de438ab85c71b51ef0f8ca68b3ebcf1f1c920b66 | e2131672880351b446b2edcbaea33f6e381917a8 | refs/heads/master | 2023-05-11T19:55:31.219026 | 2019-10-16T14:34:33 | 2019-10-16T14:34:33 | 158,399,332 | 0 | 1 | null | 2023-05-01T21:16:16 | 2018-11-20T14:07:58 | Python | UTF-8 | Python | false | false | 805 | py | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout # put the parent object you want your window to inherit when the app starts here
class mainWindow(BoxLayout): # create your window object which initialise with the object you imported from kivy library
pass # don't do anything here, all the struct... | [
"xmliszt@gmail.com"
] | xmliszt@gmail.com |
b81540805d7dd0c978d6e2c6ae2b0d43270153f2 | c883edee8089b6b6d63fe09122a490e4f24e775f | /safarirally/urls.py | a6d27b0a29230b073b550de2211b3f5be604dc3f | [] | no_license | AlexWanyoike/SafariRally--Capstone | eb91186b9ea749c58c0afa6631dc1fefe72d6474 | f927106796c554ca043341ee3d5560f43d3c32ee | refs/heads/main | 2023-05-29T13:47:51.548286 | 2021-06-11T00:29:02 | 2021-06-11T00:29:02 | 375,275,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | """safarirally URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"alex.wanyoike12@gmail.com"
] | alex.wanyoike12@gmail.com |
44e1cc6abfc82d0901e764a12160ec58254b3fc3 | f461843969e18cbe693485fc6e204b9d75b12e19 | /multi_robot_master_slave_communication/devel/lib/python2.7/dist-packages/hello_protocol/srv/__init__.py | e6ecfec9743f6686dd4325c48fb48e5bc43a8f7c | [] | no_license | PubuduC/Master-Slave-Communication-ROS | cbd45d8e0242675feaacfc6d8d765c4f89db3685 | 0b79804592f1deb903a0738bdeb398612fdbe4b1 | refs/heads/master | 2020-03-29T13:53:31.040116 | 2018-09-23T13:37:02 | 2018-09-23T13:37:02 | 149,987,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | from ._Connection import *
from ._Wave import *
| [
"pubuduc.14@cse.mrt.ac.lk"
] | pubuduc.14@cse.mrt.ac.lk |
0f7eff054630379b7d3bb9aad4e78e03d1842976 | eff453a069766e0913cd7cc211a5a9de1ab65535 | /django_todo/settings.py | a06e4d0cf59925e03a79126ef10348fb0c52350b | [] | no_license | saffiya/ci-fullstackframerworks-django | 63ff4fbaa485f667f798c7d06b9fafc3f4418bbd | 75be29377e2a4a5210fade4f87b4aa5fb3ce1bfd | refs/heads/master | 2023-08-11T21:47:49.983276 | 2020-11-09T19:08:04 | 2020-11-09T19:08:04 | 302,541,654 | 0 | 0 | null | 2021-09-22T19:38:09 | 2020-10-09T05:28:50 | HTML | UTF-8 | Python | false | false | 3,411 | py | """
Django settings for django_todo 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 pat... | [
"saffiyax@icloud.com"
] | saffiyax@icloud.com |
bee86f6052648fe66498190667983e309d90b6fd | 33527330cb02279266f49ae2a82416a57cd5266f | /mytestsite/catalog/views.py | 28bbada4b8d67bf59a1db1a2f921b3eceea17adf | [] | no_license | poiuy098/django_library | 9dff8546afcd9eabebd05c89917d08ea09ad868b | acbf0a3e2f96e63b6b44c10fe2017a71936f48fc | refs/heads/master | 2022-08-04T16:59:23.328116 | 2020-05-13T05:49:44 | 2020-05-13T05:49:44 | 263,524,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,091 | py | from django.shortcuts import render
from .models import Book, Author, BookInstance, Genre
# Create your views here.
def index(request):
"""View function for home page of site."""
# Generate counts of some of the main objects
num_books = Book.objects.all().count()
num_instances = BookInstance.objec... | [
"chiayuhsu35@gmail.com"
] | chiayuhsu35@gmail.com |
90d61a45791a4c4fca451ce3958912b1271ff667 | f71d67025b732e66e1a37c02c05392c3dd116d65 | /Lessons/ITP1/08_Character/d.py | 81a5619fd4674529f96b237cb3fef6f221b7ee12 | [] | no_license | clarinet758/aoj | 2829f92137dd1a93734445e1e92513f8e3e0b5c0 | 21787ffee1a6dd60c717d7b880b63107187e4710 | refs/heads/main | 2023-06-25T12:04:40.127040 | 2023-06-19T16:36:38 | 2023-06-19T16:36:38 | 34,978,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import time
import sys
import io
import re
import math
import itertools
#sys.stdin=file('input.txt')
#sys.stdout=file('output.txt','w')
#10**9+7
mod=1000000007
#mod=1777777777
pi=3.141592653589
xy=[(1,0),(-1,0),(0,1),(0,-1)]
bs=[(-1,-1),(-1,1),(1,1),(1,-1)]
#start = time.cl... | [
"clarinet758@gmail.com"
] | clarinet758@gmail.com |
c7e87cf056a58a6c73ad62703787f7056eccda69 | e05f2cd35de3ec146608bcdcde0daf51ec5b60e3 | /plot_radar_rms.py3 | 14889020b4ab182ae9e713493fa0edc7d3773160 | [] | no_license | louiswicker/DART_example | ceccfdb1607ef74da42c6973ec117cef70771685 | c74ddefc501d9daf614a8c830815a382fed9c06a | refs/heads/master | 2022-02-12T16:24:09.740083 | 2019-07-19T20:59:20 | 2019-07-19T20:59:20 | 197,837,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,689 | py3 |
import pandas as pd
import numpy as np
from netcdftime import utime
import matplotlib.pyplot as plt
import sys, os, glob
from optparse import OptionParser
import datetime as dtime
import xarray as xr
import matplotlib as mpl
import matplotlib.cm as cm
import matplotlib.ticker as ticker
import matplotlib.dates as mdat... | [
"Louis.Wicker@noaa.gov"
] | Louis.Wicker@noaa.gov |
bbd6937df6f4f79ac032e28715614e30d4335ddf | 16fa0fd1cc6fa4f8996a626ab4cc625e5e33207c | /Comment/apps.py | 8cae2737e81a4fb05520c4a75c281f9e866f748a | [] | no_license | Arash3f/zoro_blog | ead1fba404f8140f4f7b13b23515fa280063072f | 9157afe5352481b8befa15bdd2ef093297b52cf0 | refs/heads/master | 2023-07-19T04:31:27.348756 | 2021-08-29T00:30:45 | 2021-08-29T00:30:45 | 400,917,468 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.apps import AppConfig
class CommentConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Comment'
| [
"arash.alfooneh@gmail.com"
] | arash.alfooneh@gmail.com |
36e5c2eb9d63b44287a1631df6b90e4a75fc9927 | bcd23137a7284513821435f30fb5c516d742349e | /ordersapp/migrations/0001_initial.py | b7f8bd8179e005c8c82e40eee9991987621ae156 | [] | no_license | FlintVorselon51/Geekshop2 | da6bd6237172c7ffe2ec9534fa2b1e5e55d77199 | b81061cf02ed5749c8b3fbb933515dba5b054bea | refs/heads/master | 2023-06-29T15:15:38.538699 | 2021-07-19T13:10:14 | 2021-07-19T13:10:14 | 378,866,204 | 0 | 0 | null | 2021-07-23T15:34:31 | 2021-06-21T08:51:01 | Python | UTF-8 | Python | false | false | 1,961 | py | # Generated by Django 3.2.4 on 2021-07-01 15:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('mainapp', '0003_product_is_active'),
migrations.swappable_depen... | [
"arapov14861@gmail.com"
] | arapov14861@gmail.com |
804535c7be0e830cc0a6354de5218716a95b2ba7 | 6ad93f33b9fe5d595648d36d74e23e7f0ddeb124 | /Models/NB/ARXIV/train.py | 7638b300f4725c605ea507617c2a581a39e9ffc0 | [] | no_license | nimitpatel26/NLP_Project | 3d481ba513756b4db287e7233620e05fe3ce8a91 | 540e09031243bc755178a3e0547ee21d0c2773ce | refs/heads/master | 2020-09-07T16:56:14.947651 | 2019-12-18T23:46:09 | 2019-12-18T23:46:09 | 220,852,005 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py |
import pickle
import numpy as np
from sklearn.linear_model import LogisticRegression
from sklearn.multiclass import OneVsRestClassifier
import matplotlib.pyplot as plt
from sklearn import metrics
from sklearn.naive_bayes import MultinomialNB
from sklearn.metrics import accuracy_score
from sklearn.metrics import preci... | [
"jacob.barnett@appliedis.com"
] | jacob.barnett@appliedis.com |
ab8138777508b8e8d77eae92daa1bf55dad2b21c | f06893da365d6fc8d7ccb94b5b4091ad046ecc4c | /pytorch-yolo-v3/camera.py | 26f8ae4e22a79d23985cf76822c678be56503a64 | [
"MIT"
] | permissive | Shiyipaisizuo/target_detection | ca9e77829893a88045b1f68f93ef64364bb4cf8f | 59bb626021f6e850ef3e1b817189e6dd4eaedbac | refs/heads/master | 2020-03-27T03:00:50.412150 | 2018-08-23T09:32:34 | 2018-08-23T09:32:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,135 | py | from __future__ import division
import time
import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import cv2
from util import *
from darknet import Darknet
from preprocess import prep_image, inp_to_image
import pandas as pd
import random
import argparse
import pickle as pkl
def pre... | [
"shiyipaisizuo@gmail.com"
] | shiyipaisizuo@gmail.com |
649f08992e51522902cc6c5842f273b6b76b591f | 21f599250699a8bfe5e2f8be2ec9855e0e04b2cd | /Visualization/PlottingScripts/Figure_361_ChargedPionRAA.py | 3d5a8d6b6c0686b9ad5c0bb63ebd3a1520eb3833 | [] | no_license | amitkr2410/HPC_data_analysis | 36f313968c2667e0d30c1d5ad7381973e91dbcf1 | 3ae572b354ea8a95eb5d6e5f828487e1137f62ff | refs/heads/main | 2023-05-31T02:10:02.814571 | 2023-05-15T05:03:48 | 2023-05-15T05:03:48 | 209,374,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,880 | py | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.pyplot as plt
# define format for the plots
import matplotlib as mpl
#serif
mpl.rc('font', family='times', weight='bold')
mpl.rcParams['text.usetex'] = True
params = {'text.latex.preamble' : r'\usepackage{amsmath} \usepackage{lmodern} \boldmath'}
mp... | [
"amitkr2410@gmail.com"
] | amitkr2410@gmail.com |
438b696275ec2df4858fda817feab0936b95b4a3 | d4613cdafada5d47e45c42e344787cefa8b46f26 | /code/models/slowfast/utils/distributed.py | 9f7996203fe85e59154688b9a2c9eb992c7a7034 | [] | no_license | subburajs/ChaLearn-2021-ISLR-Challenge | 3b27106a71b5d7d4b1ef50f5547d032a01bc4b3c | b401a487a613b6e9dcfb42ce9ca134e7bda8b4f8 | refs/heads/main | 2023-03-28T03:37:48.120375 | 2021-03-19T01:17:07 | 2021-03-19T01:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,516 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
"""Distributed helpers."""
import functools
import logging
import pickle
import torch
import torch.distributed as dist
from models.slowfast.utils.env import setup_dist_environment
setup_dist_environment()
def all_gather... | [
"zhouhaocomm@qq.com"
] | zhouhaocomm@qq.com |
28e38d1acbd30bd2f6f1d9c19626c68e8d9108bf | f6c7a98908b01e934d8fd12255e33dfecafbce2a | /eemi_3adev_cours_cryptologie/Diffie–Hellman.py | 88c6271bae392a1557b45322c6fd7b719bc8fe73 | [] | no_license | Noelierx/eemi_3adev | c447d1607fafb77b02e032a013679bc29feff69d | f3e8969a7ac3b84d5797451b5035cdf9366d84ca | refs/heads/master | 2023-08-03T00:32:21.727083 | 2023-07-20T08:21:29 | 2023-07-20T08:21:29 | 167,063,732 | 0 | 0 | null | 2023-08-30T10:56:36 | 2019-01-22T20:38:50 | PHP | UTF-8 | Python | false | false | 1,039 | py | # Variables Utilisées
sharedPrime = 23 # p Prime = principale
sharedBase = 5 # g Base = secondaire
aliceSecret = 6 # a clé secrète d'Alice
bobSecret = 15 # b clé secrète de Bob
# Début
print( "Variables partagées publiquement:")
print( " Publicly Shared Prime: " , sharedPrime )
print( " Publi... | [
"noelieroux11@gmail.com"
] | noelieroux11@gmail.com |
7410d04c9172221be25de2d4e2d1d87dad4df20f | 8189ec7435293519b17adf3a6e869fa87ef0c343 | /prediction.py | bf773722ad282ed2e10c74c0554579acf1e8a75d | [] | no_license | martinagalletti/LM | a16c631d2c4db871820b13a733c888e6c30fed1e | 779cfcb7fd478ef3b4144ad41454f162514b33ba | refs/heads/master | 2023-02-08T04:19:30.740596 | 2020-09-18T13:01:11 | 2020-09-18T13:01:11 | 296,615,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | from main import *
# Assuming that we have some input (words) compute the final output (word predicted)
def predict(device, net, words, n_vocab, vocab_to_int, int_to_vocab, top_k=5):
net.eval()
state_h, state_c = net.zero_state(1)
state_h = state_h.to(device)
state_c = state_c.to(device)
for w in ... | [
"martinagalletti@icloud.com"
] | martinagalletti@icloud.com |
e2931dfc55162bc47e12d78b686337ca5d4767de | 6a61dc0110ff8fb9a3d9847a2f68f271bc2569a6 | /test/__init__.py | 6c80434f1375720a3056e1d9263825752301489a | [
"Apache-2.0"
] | permissive | matthagy/sputil | d1df47de043de3c233df99c333921da54ac72ad9 | 8feb0a219138884cf9e861e4a2f0d96fdfea909f | refs/heads/master | 2021-01-23T13:22:38.787147 | 2013-10-12T01:03:21 | 2013-10-12T01:03:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,568 | py |
import unittest
import numpy as np
import scipy.sparse as sp
import sputil as spu
def create_unique_random_number(mn, mx, N):
assert N < mx-mn
acc = set()
while len(acc) < N:
i = np.random.randint(mn, mx)
if i not in acc:
acc.add(i)
return acc
def make_sparse_matrix(N_ro... | [
"mhagy3@greengate.chemistry.gatech.edu"
] | mhagy3@greengate.chemistry.gatech.edu |
1160fe2c4176a9a8392411959eb0d17929231848 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_user_for_list.py | ffed016aea17b6dc6eec320863498e523cbc368d | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,944 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class GaussDBforOpenGaussUserForList:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
32696f6860af40942b55cdf636030b11405dc3b1 | 46702ef7c5b2e0565c370fe3d2ed6b614e35090c | /python/stick.py | 3b8967d7447c1946ddd40888aac22b5d1d57ed28 | [] | no_license | Imperyall/examples | eda944c1e719dbd89254671c733669b90dbf7201 | 6df7ce73cb26045a586a66de4e349d24ae69b8c4 | refs/heads/master | 2020-07-08T09:47:13.965334 | 2019-08-21T18:34:09 | 2019-08-21T18:34:09 | 203,636,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,761 | py | import time
from opentron.util import asyncio, Util
from opentron.constants import MAX_STICKS
class WorkerStick(Util):
def __init__(self, name, db, ready_action,
stick_action, stocks, symbol,
asset, timeframe_id, timeframe,
period):
super().__init__()
... | [
"noreply@github.com"
] | noreply@github.com |
2cc804dfdab688bf362e74ce26d321cd757a91f0 | ff30245fbc0f1db3189b11bec501007d5abdfa20 | /app/bot.py | 9ec708a01737e9ae715a1dc3895e31e581c6f839 | [] | no_license | hirotaka-s/Sprint-2016-Advanced | 9ee7a4801ef28d84f9d07f390189ee6ed7270fe8 | 792d2ca2f6176cc365ebdc824ebdbde91b64089f | refs/heads/master | 2020-07-09T14:40:32.081434 | 2016-06-03T09:50:32 | 2016-06-03T09:50:32 | 74,016,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,739 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from tinydb import TinyDB, Query
import json
import requests
import re
import time
class Bot(object):
def __init__(self):
self.__commands = BotCommand()
def is_bot_command(self, recv_message):
split_message = recv_message.split(' ', 2)
if ... | [
"hirotaka.suzuki@kofearistokrat.com"
] | hirotaka.suzuki@kofearistokrat.com |
60ad1528aa7163d2075791060ed97402da5e72c4 | ca49b9d81690c0ca98fe29bbef526e9ae84a5610 | /userbot/plugins/_helper.py | b3c76e21cfdc4e2cae912a40885f0537c3209613 | [
"MIT"
] | permissive | SourcePrivet/HardcoreUserbot | 885a50c9a7eb0c7ff1ed61361d6ba1175346cb81 | 3ded5be106f59a066c7a73ab559fcc22d4d1e4ea | refs/heads/master | 2022-08-01T15:41:54.102072 | 2020-05-22T05:46:31 | 2020-05-22T05:46:31 | 265,158,230 | 0 | 0 | null | 2020-05-19T05:55:23 | 2020-05-19T05:55:23 | null | UTF-8 | Python | false | false | 2,008 | py | from userbot import CMD_LIST
@command(pattern="^.help ?(.*)")
async def cmd_list(event):
if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!"):
tgbotusername = Var.TG_BOT_USER_NAME_BF_HER
input_str = event.pattern_match.group(1)
if tgbotusername is None or input_str =... | [
"noreply@github.com"
] | noreply@github.com |
9b07f904a6d50b662b51570f13709328bce6958b | 7a884ce8dd90828bf7a6e29a2bab1a85810334d7 | /OPENiapp/OPENiapp/Providers/Google/connector.py | 6de201ab09ab2f1218d9b625643e0e1c199c6f23 | [] | no_license | OPENi-ict/api-framework | d724047f4d0157c91914dbdbf553076b8c073125 | b667236d6a9fb243d2c69f3efc1d15a6aa11f3fc | refs/heads/master | 2020-06-02T05:25:04.286876 | 2015-06-24T12:42:02 | 2015-06-24T12:42:02 | 20,104,796 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,630 | py | from googleplaces import GooglePlaces, types, lang
# https://github.com/slimkrazy/python-google-places
from OPENiapp.Providers.baseConnector import basicProvider
import json
from _goactivity import goActivity
from _golocation import goLocation
from _gomedia import goMedia
from _goproductsServices import goProductsSer... | [
"rtsouroplis@epu.ntua.gr"
] | rtsouroplis@epu.ntua.gr |
8c806cff81eecfd1f41bf8c68f5c3440ea4c6be4 | 45b1ad47b387c9328df8fa3f830ff741d4735045 | /Bubble Sort.py | 5802d51964e8a809504631250394f18821bdf4bc | [] | no_license | Richardkaran-74/Algorithms | 0828df4590e05bb211418216ae3bb3b00f2e7637 | cd2904558a60cb9c30ec2f54f530df50a4a97212 | refs/heads/master | 2022-12-10T19:37:55.732263 | 2020-09-04T06:17:07 | 2020-09-04T06:17:07 | 292,609,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | def Bubblesort(a):
b = len(a) -1
swaps = 0
for x in range(b):
for y in range(b-x):
if a[y] > a[y+1]:
a[y],a[y+1] = a[y+1],a[y]
swaps += 1
return a,swaps
n = int(input())
a = list(map(int, input().rstrip().split()))
sorts = Bubblesort(a)
p... | [
"noreply@github.com"
] | noreply@github.com |
262a46b28e0f81a173486d6faa14c8be88a61e79 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2738/60598/281309.py | b37b2756d6e576c77a144d36933054d39da07823 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | input()
matrix = []
while 1:
s = input().replace(" ","")
if s == "]":
break
if s[-1] == ',':
matrix.append(s[1:-2].split(","))
else:
matrix.append(s[1:-1].split(","))
row = len(matrix)
col = len(matrix[0])
result = 0
are = []
for i in range(row):
for j in range(col):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9bc8cc5ec83168a559335537809291c4aa378374 | 0226180e1b9dc926b2c025a9f467f46f7ffb8b13 | /classes.py | 7bb8a61ac287d46b6b2aac353ccaa220c0544046 | [] | no_license | fallisd/validate3 | ce5460083f03b76b9a66df22e91c48179970c423 | 1266c5f305f59e84487bf48aa648130779749068 | refs/heads/master | 2021-01-10T12:07:48.485563 | 2016-03-07T21:20:40 | 2016-03-07T21:20:40 | 53,359,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,905 | py | import numpy as np
import scipy as sp
from scipy import stats as spstats
import cdo; cdo = cdo.Cdo()
import matplotlib.pyplot as plt
import matplotlib as mpl
from math import ceil
import datetime
from mpl_toolkits.basemap import Basemap, addcyclic
from netCDF4 import Dataset, num2date, date2num
import os
import dateti... | [
"dfallis@uvic.ca"
] | dfallis@uvic.ca |
4fa11bf0bf80e1c45ba384816c50e106b6e37996 | 63eb05febaac75f781a266d48d1cfff2debe64ea | /the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py | cc1908c6fc5a58626d98e062129badc099331957 | [
"BSD-2-Clause-Views"
] | permissive | MadRiw/the-tale | 185ca33e410a59de63a594daf15fc8a5701338d2 | 1801beab2ed149556c0b3380e8adaaa976f74e6c | refs/heads/master | 2021-01-15T23:45:34.873857 | 2015-06-17T13:06:12 | 2015-06-17T13:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,832 | py | # coding: utf-8
import mock
from the_tale.common.utils import testcase
from the_tale.accounts.prototypes import AccountPrototype
from the_tale.accounts.logic import register_user
from the_tale.game.logic_storage import LogicStorage
from the_tale.game.logic import create_test_map
from the_tale.game.prototypes import... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
a34346580111533bbd2b1ba6ea905d5f5ef6b8e9 | 77d8af02305d0add9930ffc287c66b9fa080d9e4 | /활성화함수/시그모이드함수/sigmoid1.py | 8b081de068c242d7c3b09edb310431130d1b15be | [] | no_license | jaemo0321/woi | ffd496fc537bd96a66be671218dca2456e72a57d | ed29b2cb803c8d0f60456655774f596d5c20933c | refs/heads/main | 2023-08-11T10:38:22.694406 | 2021-09-21T05:30:17 | 2021-09-21T05:30:17 | 408,530,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import numpy as np
import matplotlib.pylab as plt
def sigmoid(x):
return 1/ (1 + np.exp(-x))
x = np.arange(-5.0,5.0,0.1)
y = sigmoid(x)
plt.plot(x,y)
plt.ylim(-0.1,1.1)
plt.show() | [
"jaemo0321@gmail.com"
] | jaemo0321@gmail.com |
344f9662afb40ad4e593118502c860a3bc15bc9e | acf90501ba4f8b6c1db52f28746449b4bf3e2d2c | /cloudland/cloudland/wsgi.py | 019864acf6d28faa76c34b2575a2710a9e84b4bf | [] | no_license | michaelpermyashkin/Cloudland | 64729c7a2676eb02ddb55aba7571f7462492ce79 | 5c9d1a32eb6117ec106ca6e79c02e396342f4d34 | refs/heads/master | 2022-11-25T18:51:00.345507 | 2020-08-04T13:33:12 | 2020-08-04T13:33:12 | 264,047,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for Stitch 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.setdefault('DJANGO_SETTIN... | [
"mpermyashkin@gmail.com"
] | mpermyashkin@gmail.com |
eb35b2c2e51714228552809f270f084565a0632e | 85b0c95499b67aeed5885d0d5ad7fcef94d982e7 | /helper/data_logger.py | 874630f4beb2b2eddaaac45d638d0464b7e5cda4 | [
"MIT"
] | permissive | georgezouq/Personae | becd3c7a41f8c1d37ecb1fbd6c28a26ea24dc522 | 1a0d67b04d9b692aceb4f499207751829cafba9f | refs/heads/master | 2020-03-27T19:02:46.091638 | 2018-09-19T02:49:50 | 2018-09-19T02:49:50 | 146,962,267 | 1 | 0 | MIT | 2018-09-01T02:58:51 | 2018-09-01T02:58:51 | null | UTF-8 | Python | false | false | 1,507 | py | # coding=utf-8
import logging
import os
from datetime import datetime
from static import LOGS_DIR
DATETIME_NOW = datetime.now().strftime("%Y%m%d%H%M%S")
def generate_market_logger(model_name):
market_log_path = '{}-{}-{}'.format(model_name, DATETIME_NOW, 'stock_market.log')
market_logger = logging.getLog... | [
"ceruleanacg@gmail.com"
] | ceruleanacg@gmail.com |
af85091132f201033888c47fc10b43a4b7e8d32d | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-aircall/setup.py | 25b830a1e3cce6526bed07734eb77ef89e7f7d8b | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 628 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from setuptools import find_packages, setup
MAIN_REQUIREMENTS = [
"airbyte-cdk~=0.1",
]
TEST_REQUIREMENTS = [
"requests-mock~=1.9.3",
"pytest~=6.2",
"pytest-mock~=3.6.1",
]
setup(
name="source_aircall",
description="Source impleme... | [
"noreply@github.com"
] | noreply@github.com |
8c944888521251fc7283418e0320a1de6fc264f4 | 56398fccc60c404fbcd0770056e21c1522cf3807 | /pages/urls.py | a51a7c2a3103e156bfe9fd2e3940dace195a5723 | [] | no_license | agnesimbs/movers | 72efb5a8d79a615ce4f3f0d2168f8aee4bd7b37c | 3fe03b1d4942c5f0b1b2986a79fba9f7cad6dafd | refs/heads/master | 2020-03-27T15:37:10.534867 | 2018-09-03T08:16:35 | 2018-09-03T08:16:35 | 146,728,729 | 0 | 0 | null | 2018-09-03T08:16:36 | 2018-08-30T09:42:23 | Python | UTF-8 | Python | false | false | 189 | py | from django.urls import path
from .views import HomePageView,AboutPageView
urlpatterns=[
path('',HomePageView.as_view(),name='home'),
path('about/',AboutPageView.as_view(),name='about'),
] | [
"agneswambui504@gmail.com"
] | agneswambui504@gmail.com |
78cd6795ea18e69c2d486a85ec2aaeccd5af59d2 | 181d138383f19d4427a525b713d270b9a567fdb9 | /tests/test_csv.py | 96599288ea36fdcc63457339745f0cdcbf96401d | [
"MIT"
] | permissive | openelections/electionware | 2f07f6cf5cc1b077a1e8262546237915767095ab | d3998027223d848b9cb6172e224e62096b3b5916 | refs/heads/main | 2022-12-27T19:40:35.054496 | 2020-10-10T21:13:13 | 2020-10-10T21:13:13 | 314,941,407 | 1 | 1 | null | 2020-11-22T02:07:40 | 2020-11-22T02:07:39 | null | UTF-8 | Python | false | false | 2,374 | py | import os
from unittest import TestCase
from unittest.mock import patch
from electionware.csv import get_output_file_path, get_output_header, \
write_electionware_pdf_to_csv
class TestOutputFilePath(TestCase):
def test__output_file_path(self):
expected = os.path.join(
'..', '2000', '20001... | [
"rbierbryer@gmail.com"
] | rbierbryer@gmail.com |
f060ef31d43c3220db23ba2d5f5b9638358bec69 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_nitpicked.py | c24415023c45b6fa685872e33916c3f83b705177 | [
"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 | 228 | py |
#calss header
class _NITPICKED():
def __init__(self,):
self.name = "NITPICKED"
self.definitions = nitpick
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['nitpick']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
14b9908178c8743363eb1a49b403aac42ecccffd | 040a49be9a254020899c67152094b7c6bd5e2a36 | /release/ca_descriptions/templates/forestsim_incinerator_wind_SW_3.5.py | e6d644d79d3d7e2e6f21c94d0e769ef6d723b699 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"BSD-2-Clause"
] | permissive | Leon-Singleton/Forest-Fire-Simulation-Using-Cellular-Automata-Python | 51e0b1f64d79855b506603479e423fbe7771efc8 | 6c890b53dce152bf03cbb325d285b06d2264d597 | refs/heads/master | 2021-06-16T21:31:24.730398 | 2021-04-29T11:56:33 | 2021-04-29T11:56:33 | 199,534,962 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,722 | py | # Name: NAME
# Dimensions: 2
import inspect
import math
import random
# --- Set up executable path, do not edit ---
import sys
import numpy as np
this_file_loc = (inspect.stack()[0][1])
main_dir_loc = this_file_loc[:this_file_loc.index('ca_descriptions')]
sys.path.append(main_dir_loc)
sys.path.append(m... | [
"noreply@github.com"
] | noreply@github.com |
98491800978764c42bde1d1d36a77b8dc13c9ef3 | 1e249067ab2dabc17cb7ebda46f9f23a5cfad552 | /tests/test_processor.py | 149ae513f1fdcfc1b09bbec275c63aac1d55b556 | [
"BSD-2-Clause"
] | permissive | STIRLIN6/indra_cogex | 6e4cba84ee1ce82a404154e7370f88fc340400cb | 552cefd71431b08b8118b2cc0428fd8681e6fc83 | refs/heads/main | 2023-08-14T01:28:14.852108 | 2021-09-14T04:18:13 | 2021-09-14T04:18:13 | 377,100,238 | 0 | 0 | BSD-2-Clause | 2021-06-15T09:01:23 | 2021-06-15T09:01:23 | null | UTF-8 | Python | false | false | 184 | py | from indra_cogex.representation import norm_id
def test_norm_id():
assert norm_id("UP", "P12345") == "uniprot:P12345"
assert norm_id("CHEBI", "CHEBI:12345") == "chebi:12345"
| [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.