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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
904014a8e646439f85ddd7b101581d36440fe02e | a21bd64266faf24b5f6bf5c4ab29d91d868235bc | /vk3/views.py | 900c31b035c409a9797c5360506677041241a999 | [] | no_license | vasokgenius/vk3 | 2193e050997923dd90f8822225296b75837fd156 | bb28d9e0b9a79fc82eb86e317ad2b1cacc538a60 | refs/heads/master | 2021-01-10T02:07:31.199275 | 2015-12-22T10:30:48 | 2015-12-22T10:30:48 | 48,188,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from django.shortcuts import render
def HomePageView(request):
template_name = 'vk3/index.html'
return render(request, template_name, {})
| [
"vasokgenius@gmail.com"
] | vasokgenius@gmail.com |
3232f21201e472510adc7afd7d2fd0ad5e220875 | 849b7d55b5efc30c7b71f7f4b19288019fa13f74 | /types8.py | 25956d69eccd00baff6e8b805da5cd43695be81d | [] | no_license | Nightkot-Juve/Lesson1 | 111d0fec033b84fcf37072826ddc1723cdbb320f | 932f95194bf680ef5bcb73bfee89f264df52ded2 | refs/heads/main | 2023-03-08T06:38:04.869429 | 2021-02-13T14:59:38 | 2021-02-13T14:59:38 | 338,595,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | product = {
"city": "Москва",
"temperature": 20
}
print(product["city"])
print(product["temperature"] - 5)
print(product)
print(product.get("country"))
print(product.get("country", "Россия"))
product["date"] = "27.05.2019"
print(len(product)) | [
"ktp87@mail.ru"
] | ktp87@mail.ru |
b03c38ff2c20775fff1fa17e80e167c1fe963a3d | 722c828d60bc48cf76576c48e45ae70517dbf14a | /Sorting/CountingSort.py | cd96582c82e3680a1396d0fe1fdb3f0cddf111ba | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | AbdulAhadSiddiqui11/PyHub | 13fefedd337c18bdd1402487d862fe5de2fa3c2a | 26f9c106dd836d8b186e76a772d56d0212482f07 | refs/heads/master | 2022-12-21T00:54:53.273966 | 2020-10-01T06:57:02 | 2020-10-01T06:57:02 | 300,038,081 | 1 | 0 | MIT | 2020-09-30T20:01:25 | 2020-09-30T19:30:52 | Python | UTF-8 | Python | false | false | 462 | py | def countingSort(lst):
newlst = [0]*(max(lst)-min(lst)+1)
val = min(lst)
for i in range(len(lst)):
lst[i] -= val
for i in lst:
newlst[i] += 1
for i in range(1,len(newlst)):
newlst[i] += newlst[i-1]
retlst = [0]*len(lst)
for i in range(len(lst)-1,-1,-1):
retlst... | [
"tanvisutar888@gmail.com"
] | tanvisutar888@gmail.com |
976d52b5b3eee597cf4d6aa50e8dc8f7f48f084a | f931334f60d17c4b2f6d394044e7561c4cb13dd3 | /server/helpers/error.py | 380616918badcc14e977680131c59a86661bec0b | [
"MIT"
] | permissive | Merkll/llcolorizer | cfdad59bd0434dd14108a3a01d55fec846f56e7e | b992291da9f3dad0775dac3fa84b062661b832ef | refs/heads/develop | 2022-07-18T15:41:02.986760 | 2019-09-24T17:58:56 | 2019-09-24T17:58:56 | 210,564,321 | 2 | 0 | MIT | 2021-03-20T01:44:59 | 2019-09-24T09:30:32 | Python | UTF-8 | Python | false | false | 540 | py | from werkzeug.exceptions import HTTPException
def error_handler(func):
def catchError(*args, **kwargs):
try:
print(args, kwargs)
return func(*args, **kwargs)
except HTTPException as e:
return { "status": "error", "message": e.description }
except FileNotFoundError as e:
return { "... | [
"toluwase103@gmail.com"
] | toluwase103@gmail.com |
09abbc7def9184b80f439ee054f332587bccaf68 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/common/Lib/distutils/tests/test_core.py | 2de38bab70119d63190c0ca07ab4ad94abb32f45 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 2,628 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/Lib/distutils/tests/test_core.py
import StringIO
import distutils.core
import os
import shutil
import sys
import test.test_support
from test.test_support import captured_stdout, run_unittest
import unittest
from distutils.tests impo... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
ae620efea9987cc629259704e3869f4454db1c9c | 06164402e4a9c46a03d579175e588519dbd4048d | /experiments/experiments_toy/test_varying_missing/nmtf_icm.py | 4434c3df200e94d25a479b0008f59fced2e0e8ae | [
"Apache-2.0"
] | permissive | XuanHeIIIS/BNMTF | 19547e36466ecee8d45fb0002d305ee6b7ba6c23 | 34df0c3cebc5e67a5e39762b9305b75d73a2a0e0 | refs/heads/master | 2020-03-27T12:47:58.375964 | 2018-06-10T10:22:19 | 2018-06-10T10:22:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,991 | py | """
Test the performance of ICM for recovering a toy dataset, where
we vary the fraction of entries that are missing.
We use the correct number of latent factors and same priors as used to generate the data.
I, J, K, L = 100, 50, 10, 5
"""
import sys, os
project_location = os.path.dirname(__file__)+"/../../../../"
... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
eb0b1e2d95b90b043a15053f49a86cb5e7cfe0e5 | fd548b255d0096e7df81049ebecb4972a94c8426 | /app.py | c9c06e5962182fc0d30b7bf1a10ae64287f3dac9 | [] | no_license | Cokebottlebody999/SDS_hackathon_2017_server | 7dc773d4a593cc715e1e5f6c5563786375ab81cc | 83cb84912aebb6e525d21a925c705c9c1a1cd476 | refs/heads/master | 2020-06-02T13:37:12.752333 | 2017-09-04T17:05:41 | 2017-09-04T17:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from flask import *
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import GaussianNB
from sklearn.externals import joblib
import pandas as pd
import re
app = Flask(__name__)
def preprocess_data(data):
data = re.sub('\d+',' ',data)
data = re.sub('[^a-zA-Z0-9 \n]', ' ',data)
re... | [
"adi1998.2010@gmail.com"
] | adi1998.2010@gmail.com |
ba1f60d9fda6b44f7c05f7f9ce909bf78b4fca00 | bd93f03f77d79d981700fe0183504d38da86f9cd | /env/bin/wheel | 19794edc4b0f652e87c6d6dc92b5b379615c875f | [] | no_license | jenpaff/ai-calling | b315d570cd0146889dd715b87eae7305ed340651 | f17685d84f0933b307d858a6fb4ce4230004c3c8 | refs/heads/master | 2021-01-20T01:56:45.954347 | 2017-04-24T09:09:16 | 2017-04-24T09:09:16 | 88,881,832 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 238 | #!/home/jenpaff0/ai-calling/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jenpaff0gmail.com"
] | jenpaff0gmail.com | |
6e8c6813730dff827293a1ea8bb73eac583c808b | 32a3396cf8d879c92c09f5411af946084ed2ca3c | /blog/company_name_context_processor.py | 945c41dda6a2e989d60d18204aab0c0e256507cc | [] | no_license | mPowering/django-mpowering-healthcare | 5ae527dd7abac8d2f9debc506b6cb197b4db0ab8 | 52cff8d864d9363f0115831963bfa43a92ee2b47 | refs/heads/master | 2020-12-25T18:16:32.992431 | 2014-05-23T15:52:46 | 2014-05-23T15:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | # Django imports
from django.conf import settings
def get_company_name(request):
return {"company": settings.COMPANY_NAME}
| [
"gitumarkk@gmail.com"
] | gitumarkk@gmail.com |
69e36488dbb1da7290a18e486df9bb204c0c48f2 | f61a08144ab3d54db4b9d966074d49ffc32d72e2 | /full_pipeline_estimator.py | d818deec635a5bdba2d07278e26cc9134e2f07d1 | [] | no_license | sailfish009/qgraph | 477fe3796330cc49fa9ff3700f276bad75f73781 | 25e2563d4d843ef716235d1f94e2e483448be674 | refs/heads/main | 2023-08-14T22:33:48.558252 | 2021-10-04T08:56:44 | 2021-10-04T08:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,635 | py | from data_preprocessing import load_dataset
import ray
from utils import generate_signal_fourier, return_fourier_from_dataset, jensen_shannon
import os
import numpy as np
import networkx as nx
from mpi4py import MPI
import pickle
from time import time
import grakel
import pickle
from estimators import QuantumKernelEsti... | [
"slimane.thabet@gmail.com"
] | slimane.thabet@gmail.com |
f915395889c2ac8de4bbde775064ede7ce868408 | 40714ad7e38472adf00215f2cdedd7943bc20d32 | /Tests/test_interTrialScene.py | 007241acbfd97c2425b0d1347f98f05d67c78072 | [] | no_license | JoachimT99/TeleologicalTask | 17a7d48a92ecc88b368e0ed1a74c80523ba417cc | de6054ce8373a952cb283c1596a77158a8826316 | refs/heads/master | 2020-08-17T08:21:04.833306 | 2019-11-12T08:41:51 | 2019-11-12T08:41:51 | 215,638,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from interTrialScene import InterTrialScene
from unittest.mock import Mock, patch
import pytest
@pytest.fixture
@patch("interTrialScene.visual.TextStim")
def scene(mock):
return InterTrialScene(Mock(), Mock(), Mock())
@patch("interTrialScene.event.getKeys")
def test_update(mock_keys, scene):
scene.draw = Mock... | [
"46404109+JoachimT99@users.noreply.github.com"
] | 46404109+JoachimT99@users.noreply.github.com |
8f5b55199e9ae377dace44648911b6bf3471f6c2 | da4739e9d8441ea53110b972dedf642442037052 | /Web/migrations/0004_auto_20180531_1725.py | 9a40d90f5dd02157601d8962f07b12b96c1b5694 | [] | no_license | likehang/software_WedWeb | 149aef692b4791a7dcd195964fe9d317731416ca | dfc575de55b2246be61664be870be8073924e206 | refs/heads/master | 2020-03-21T17:33:31.740487 | 2018-09-12T02:14:17 | 2018-09-12T02:14:17 | 138,839,093 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-05-31 09:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Web', '0003_auto_20180531_1720'),
]
operations = [
migrations.AlterField(
... | [
"lkh741@hotmail.com"
] | lkh741@hotmail.com |
84d78b6245a076777dc308a6a42e78272b8479ec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03330/s929352693.py | 253b3802f55ad2c29dbbdab985c6ea0170a9fbee | [] | 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 | 712 | py | n,c=map(int,input().split())
irohen=[list(map(int,input().split())) for i in range(c)]
grid=[list(map(int,input().split())) for i in range(n)]
rem0=[0]*c
rem1=[0]*c
rem2=[0]*c
for i in range(n):
for j in range(n):
if (i+j)%3==0:
rem0[grid[i][j]-1]+=1
elif (i+j)%3==1:
rem1[gri... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9582efa970cbb8fbcb5908d20387bee0ac01cdcb | 00b405a49ac6108d24986243c4b52fa53fb58acc | /0517_super_washing_machines.py | 2f24982ec5d0bc0f3747d006eebaca662cd97192 | [] | no_license | Shin-jay7/LeetCode | 0325983fff95bfbc43a528812582cbf9b7c0c2f2 | 953b0b19764744753f01c661da969bdab6521504 | refs/heads/master | 2023-07-19T07:17:21.513531 | 2023-07-15T06:05:06 | 2023-07-15T06:05:06 | 231,285,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | from __future__ import annotations
from typing import List
class Solution:
def findMinMoves(self, machines: List[int]) -> int:
total, n = sum(machines), len(machines)
if total % n:
return -1
target, ans, to_right = total // n, 0, 0
# to_right: num of dresses to pass to ... | [
"shin@jay7.net"
] | shin@jay7.net |
c6658efc9c3b1000d0b1be621573728ac5c30b16 | fc4f97918ac9366837cb05f51091178bbf37ac18 | /shelve_ex.py | d7cf2d49cdfc05a1eac38bbb50efef5cfafaa194 | [] | no_license | zoejane/automate-python | ae72ef7bed291b757ee41d578844c132cd1fc192 | 9c4e8ce69da21dc58e4fc85604d9e1fc848d8c3e | refs/heads/master | 2021-01-10T01:51:23.009746 | 2015-10-24T13:14:09 | 2015-10-24T13:14:09 | 43,808,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import shelve
# list,dictionary,etc..
shelfFile =shelve.open('mydata')
shelfFile['cats']=['Pooka','Simon','Cleo']
shelfFile.close()
shelfFile =shelve.open('mydata')
print(shelfFile['cats'])
print(list(shelfFile.keys()))
print(list(shelfFile.values()))
shelfFile.close()
| [
"dadac123@gmail.com"
] | dadac123@gmail.com |
a59374a0472d8bfff03c6d473585d6f4ab62f318 | a1f3c867fb227fcac5a1de50d8e49ed6577dc798 | /users/admin.py | 49567d82100d126d01d9c6b06327850be62ebd15 | [] | no_license | bibishan-pandey/bookstore | 0155fe4e756db5e4a8ba10578f061945d33323e4 | da2c54c34edcc945ce7f808a2ed6c1b7540a950d | refs/heads/master | 2023-03-05T01:07:03.748728 | 2021-02-12T06:50:01 | 2021-02-12T06:50:01 | 337,664,199 | 0 | 0 | null | 2021-02-11T12:08:41 | 2021-02-10T08:42:04 | JavaScript | UTF-8 | Python | false | false | 581 | py | from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from users.forms import CustomUserChangeForm
from users.forms import CustomUserCreationForm
CustomUser = get_user_model()
class CustomUserAdmin(UserAdmin):
add_form = CustomUserCreatio... | [
"bibishan.b.pandey@gmail.com"
] | bibishan.b.pandey@gmail.com |
e0d0b5588a00a49a94af2156cc7c63beb8764e13 | 0e9c9ba182fb857114d074a899118570523ed76d | /home/migrations/0005_auto_20201218_2110.py | 3320efc86aa0e946394aea3f556832ce92ab7e88 | [] | no_license | zeeshan-bhatti/Shop-online | 3c0e89fbf3e1ec055a3b81fdf84bff663b294262 | ede75721739c05a9f6db0a7d3d15ea1194327aa6 | refs/heads/main | 2023-02-09T17:10:09.850556 | 2021-01-03T19:44:42 | 2021-01-03T19:44:42 | 315,279,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 3.1.1 on 2020-12-18 16:10
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0004_auto_20201213_0855'),
]
operations = [
migrations.RemoveField(
model_name='product',
... | [
"noreply@github.com"
] | noreply@github.com |
9e6ee83397fceeb430e08c5252d3be5dfb030f62 | c5458f2d53d02cb2967434122183ed064e1929f9 | /sdks/python/setup.py | 0e7640cc7b4ed0f33efa8b96d3aad2210fed2a4f | [] | no_license | ross-weir/ergo-node-api-sdks | fd7a32f79784dbd336ef6ddb9702b9dd9a964e75 | 9935ef703b14760854b24045c1307602b282c4fb | refs/heads/main | 2023-08-24T05:12:30.761145 | 2021-11-08T10:28:10 | 2021-11-08T10:28:10 | 425,785,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | """
Ergo Node API
API docs for Ergo Node. Models are shared between all Ergo products # noqa: E501
The version of the OpenAPI document: 4.0.15
Contact: ergoplatform@protonmail.com
Generated by: https://openapi-generator.tech
"""
from setuptools import setup, find_packages # noqa: H301
NAME = ... | [
"29697678+ross-weir@users.noreply.github.com"
] | 29697678+ross-weir@users.noreply.github.com |
e62dbf0c34dc984fc376e462e0460312c6c73a85 | 2d1fa2119bcbdd30070b853fdffb76b375171d32 | /start.py | 5bfed8e616b7e2377642cb123ab826f51969d995 | [] | no_license | xdrive-mov/Autobackup | 74a58218349b9557253b1fdcfe59256e0a957fb6 | 0708fb18043e2829cd87ccbdfb99cf6f52a17843 | refs/heads/main | 2023-08-25T00:28:00.869295 | 2021-11-02T04:55:02 | 2021-11-02T04:55:02 | 423,708,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | import os
from dotenv import load_dotenv
import requests
import time
import subprocess
import shutil
load_dotenv()
def downloadSA(salink):
res = requests.get(salink)
if res.status_code == 200:
with open('accounts.zip', 'wb') as f:
f.truncate(0)
f.write(res.content)
subprocess.run(["unzip", "-... | [
"untitlebot.mm@gmail.com"
] | untitlebot.mm@gmail.com |
318d561c0a9bbdac845fcdf24ce7e7345f76841d | 86fdc0f223bf10542011c1c812168240d533c250 | /LearningNavigationInstructions/code/MARCO/nltk_contrib/misc/festival/numbers.py | c1bab209c771cff4371781cb1b11249819c87bd7 | [] | no_license | ericrosenbrown/LanguageCPDA | e8b145efe39fd7d5455d890fd21f5e5458a5d555 | a5f187599047464620880cece69d841b8938b2f7 | refs/heads/master | 2021-04-25T07:10:56.120682 | 2018-03-28T15:21:27 | 2018-03-28T15:21:27 | 122,228,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,734 | py | ##
# numbers.py: Numbers helper module for Speech Tokenizer
#
# Author: David Zhang <dlz@students.cs.mu.oz.au>
# Steven Bird <sb@cs.mu.oz.au>
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
#
# This module contains various functions to process different kinds of
# numbers, including digits, dec... | [
"ericrosen@Erics-MBP-3.fios-router.home"
] | ericrosen@Erics-MBP-3.fios-router.home |
87ec1b0944c02d783befb55739b5ea97cf99a0f0 | 48baab4bebb574826fa933d5ff28f79907ec9efd | /python/src/coco_dataset.py | 71b81416136f5f82950f034531258dc5f09a84ce | [
"MIT"
] | permissive | Kolkir/feature-point-cnn | 728fc10c0307435fbdb3e2455be87cebe36c5612 | c186ea566d8e46324912161e1e94742bede61339 | refs/heads/main | 2023-08-14T20:28:03.406003 | 2021-10-01T11:59:50 | 2021-10-01T11:59:50 | 362,693,336 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | import torch
from torch.utils.data import Dataset
import os
from pathlib import Path
from numpy.random import default_rng
from src.dataset_transforms import dataset_transforms
from src.dataset_utils import read_dataset_item
from src.homographies import homographic_augmentation, HomographyConfig
from src.netutils impor... | [
"rotate@ukr.net"
] | rotate@ukr.net |
8d615fa638b973f4aa9bfba25588878e9931efc2 | ae3f23efcdc4b7fdd1c224043d0ece002955956e | /xplace/xplace/network/domains/apps.py | 800f984530bd9ae92e8cb8591bf123ddcc22521a | [] | no_license | alexeysofin/xplace | 4466682fe76c808288d69f2808ddbca38a583bc4 | 9f12f066a62fae4e789bee94e5e554cc6de26d90 | refs/heads/master | 2023-01-12T01:02:40.137609 | 2021-02-14T20:41:30 | 2021-02-14T20:41:30 | 208,021,139 | 0 | 0 | null | 2023-01-04T10:18:46 | 2019-09-12T10:07:17 | Python | UTF-8 | Python | false | false | 104 | py | from django.apps import AppConfig
class DomainsConfig(AppConfig):
name = 'xplace.network.domains'
| [
"sofin.moffin"
] | sofin.moffin |
4934be0246440bd92483f9a2bae2bfe2b07fda0b | 45602e6860d4f86b92692be8b183ecae9c87bbed | /Week8/day2/exercise/xp/animals_env/bin/sqlformat | 432a33afd9aac454df9b444310af05b043df3332 | [] | no_license | eliAzulai/DI_Bootcamp | 40b69f9ef301a6783373d19facaeba25b033b2f4 | 667f773b441adb2354b2c4be1081173d4cca7383 | refs/heads/main | 2023-04-20T11:52:21.503410 | 2021-05-24T15:37:14 | 2021-05-24T15:37:14 | 354,838,342 | 0 | 0 | null | 2021-04-26T08:18:51 | 2021-04-05T13:09:21 | HTML | UTF-8 | Python | false | false | 289 | #!/Users/Azulai/Dropbox/Developers_Institute/Week8/day2/exercise/xp/animals_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"Eli@Yans-MacBook-Air.local"
] | Eli@Yans-MacBook-Air.local | |
2b2100ec9347131956806965b7f91fa9cdcb9043 | 83897262c3ccd9522ed9b3929b10b0487eb79f16 | /logistic-regression.py | bfe5a39ad1149141d2656dcd5498d7c6077a784d | [] | no_license | MittaDhanunjaya/DataScience | e6efb4444687df1ab495ed529cd10ae8437f958e | 58b8a805def44b5facc5999708426c4d39b915f0 | refs/heads/master | 2021-09-04T06:18:32.010728 | 2018-01-16T16:51:26 | 2018-01-16T16:51:26 | 103,181,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | #import the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#import dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:,[2,3]].values
y = dataset.iloc[:,4].values
#Splitting the dataset into training and test sets
from sklearn.cross_validation import trai... | [
"noreply@github.com"
] | noreply@github.com |
923409d2b794925f36a774523e4218a55596fd58 | cfe7088cf42a6d23449d56f04119bc56ba926840 | /lessons/lesson10_pdf8_network.py | 9f7d5ce4fc6735f79a65ad5b448e5efd64d491f7 | [] | no_license | arunesh/my-self-driving | 5db8cdf538bd2c5bedc0c443e2531275284d455b | c7002e6d33cefad03ddf1cda097a139ab97e1bc4 | refs/heads/master | 2020-09-07T18:38:32.719018 | 2019-11-11T17:22:24 | 2019-11-11T17:22:24 | 220,880,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | # Load pickled data
import pickle
import numpy as np
import tensorflow as tf
tf.python.control_flow_ops = tf
with open('small_train_traffic.p', mode='rb') as f:
data = pickle.load(f)
X_train, y_train = data['features'], data['labels']
# Initial Setup for Keras
from keras.models import Sequential
fro... | [
"aruneshm@gmail.com"
] | aruneshm@gmail.com |
c2539f7a23add50e46692c0ebfc5924d628e66d7 | ccace50ae5b603ca4d63d22cfa6cc618ffa1a040 | /Day1/My solutions/mileage_cal.py | bf91be754b2df036bb4285d7a9f69a8114e5c38a | [] | no_license | vinoddasaniya/FSDP2019 | 3badc85edfbfc58d8d659f8073176009bff30e29 | 31d3502aeb7adfdebb97d13beba0d40098f20c4e | refs/heads/master | 2020-05-24T07:13:33.034721 | 2019-05-17T06:34:26 | 2019-05-17T06:34:26 | 187,154,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 7 11:43:42 2019
@author: kk
"""
#Assume my car travels 100 Kilometres after putting 5 litres of fuel.
#Calculate the average of my car.
travels = 100
fuel = 5
average = travels / fuel
print (average) | [
"vinodc0101@gmail.com"
] | vinodc0101@gmail.com |
7846f1a662558b7d0dd54ea0f620706d069b9d2e | 388c2be5d9211ad3ec3cf10a9910d3155a5a9c22 | /bot.py | 54903a83fb4eb71f30a34b68bb83fa608d4d73f9 | [] | no_license | soimmary/La-Belle-Epoque | ddc05fc39e5fb381219a843fa4254ff34c2e2c68 | af37972abfff69aee49089e6c8ae67dfb25fce03 | refs/heads/main | 2023-06-02T04:47:52.870041 | 2021-06-19T12:39:43 | 2021-06-19T12:39:43 | 377,971,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | import csv
import telebot
from telebot import types
from geopy import distance
token = "1678532360:AAG3iNv8KVbAfv61Ss6RQi-O1YdzCdI_AEg"
bot = telebot.TeleBot(token)
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
keyboard = types.ReplyKeyboardMarkup(row_width=1, resize_keyboard=True)... | [
"noreply@github.com"
] | noreply@github.com |
7b53a6dde1bd8e550782891bc7ea6c8a288fb41e | b005369db9f220e8548a11fceab8543a726def3c | /stacked-autoencoder-pytorch/untitled.py | d5d81ba59073148107d09a96f751aa0269d6617a | [] | no_license | liuyanqi/shallow_learning | 9ec2b365986f66f2a3c07d377e3d979a07ebb2bd | b5fafb5b6ae5886bbd1a4ed03611eaee5481b627 | refs/heads/master | 2020-04-09T03:27:21.907715 | 2018-12-01T22:16:23 | 2018-12-01T22:16:23 | 159,983,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,552 | py | import os
import torch
import torch._utils
try:
torch._utils._rebuild_tensor_v2
except AttributeError:
def _rebuild_tensor_v2(storage, storage_offset, size, stride, requires_grad, backward_hooks):
tensor = torch._utils._rebuild_tensor(storage, storage_offset, size, stride)
tensor.requires_grad ... | [
"liuyanqi@umich.edu"
] | liuyanqi@umich.edu |
e40f0aa65d66c199d7eaa09851af21ddf887b0ea | cd336f20e0c8e24e694c52672f1e6d4f3b527a26 | /code/data_preprocess.py | 8fef2a00e9ac345774d5f2695c2204f262cf3594 | [] | no_license | kenneth-lee-ch/citibike | 0da300171b77955d0aacebd149d95cf77805d25c | 6b0ef81d2a0ced164afb3599f511b76a69815fbd | refs/heads/master | 2021-02-19T10:26:53.430820 | 2020-03-25T21:31:55 | 2020-03-25T21:31:55 | 245,303,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,703 | py | import numpy as np
import pandas as pd
import sqlalchemy as db
from sklearn import preprocessing
## Create database engine
sqlite_file = 'data/bike.sqlite'
engine = db.create_engine('sqlite:///' + sqlite_file)
def get_OD(h1,h2):
"""
obtain mean duration for pickups/returns
and number of starts/ends per ho... | [
"leechinhongkenneth@gmail.com"
] | leechinhongkenneth@gmail.com |
78043e7b370487d136bb2da6dd623f897b0ff00d | 3297403d1d117484342695c7466f7c13ad6ec314 | /src/tasks/python/preprocessing/run.py | 185a90e15db9d315569663b85a1e768f4f9ffa86 | [
"MIT"
] | permissive | seung-lab/Alembic | c7fbe38985f02e470fdd58ababd13199f0ad0d02 | 575c8ed2a5f8789e65de652c9349993c530de718 | refs/heads/master | 2020-04-15T00:03:11.301957 | 2018-10-04T18:26:18 | 2018-10-04T18:26:18 | 40,187,968 | 8 | 0 | null | 2018-04-20T03:15:17 | 2015-08-04T13:58:48 | Julia | UTF-8 | Python | false | false | 193 | py | from preprocessing import *
import json
import sys
def main(arg):
params = json.loads(arg)
task = PreprocessChunkTask(**params)
task.execute()
if __name__ == "__main__":
main(sys.argv[1]) | [
"tmacrina@princeton.edu"
] | tmacrina@princeton.edu |
d6f19b25a197dbe3cf31cfdf327e9d9a6c284f34 | 7cdd8ef81290f9e8415345c2b0507788ffdf2804 | /main.py | 4af76ef5bb3162f66ff6e6140a18937f947a8a78 | [] | no_license | jeffoxford/paa | 3238939df99efe5ea8b8e5b3d3e02b3fca2c23e0 | 36b06c3eaf8c58b9eea05a6e4812897f75201414 | refs/heads/main | 2023-08-17T12:06:51.897575 | 2021-10-05T17:10:41 | 2021-10-05T17:10:41 | 411,915,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,137 | py | from typing import Text
import pandas as pd
import streamlit as st
import time
import numpy as np
import base64
from io import BytesIO
import people_also_ask
import re
question_final= []
def get_question (term,list_obj):
ll = people_also_ask.get_related_questions(term, 10)
for q in ll :
... | [
"noreply@github.com"
] | noreply@github.com |
c8b0402d15b859aaa402c2e24f7481605a77cd2a | 762de1c66746267e05d53184d7854934616416ee | /tools/MolSurfGenService/MolSurfaceGen32/chimera/share/SimpleSession/versions/v25.py | ab3a358e3694974f623f33517a4eaf4975369ca4 | [] | 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 | 5,944 | py | # --- UCSF Chimera Copyright ---
# Copyright (c) 2000 Regents of the University of California.
# All rights reserved. This software provided pursuant to a
# license agreement containing restrictions on its disclosure,
# duplication and use. This notice must be embedded in or
# attached to all copies, including partia... | [
"alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5"
] | alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5 |
d895058633487a8030a2be04368b1f2354a19e9f | 6729900cb99d811a4b1720f569839297f4acb184 | /real_state/real_state/urls.py | 50be81eda6364454aa9bc428a5ef6f879c3f88c1 | [] | no_license | maheshdrago/realestate | fc512fd11f8ad8c606422b49b691ee6705d7ba68 | f6eed424044685968bafa66c962505ceac5ca7cf | refs/heads/master | 2023-02-17T00:42:11.952782 | 2021-01-01T17:17:53 | 2021-01-01T17:17:53 | 326,009,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py |
from django.contrib import admin
from django.urls import path,include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('contacts/',include('contacts.urls')),
path('accounts/',include('accounts.urls')),
path('admin/', admin.site.urls),
path('',include('p... | [
"maheshdrago@gmail.com"
] | maheshdrago@gmail.com |
699107beaaa0112e11b92168d41891cd13d99d01 | 996bb6bf244dded0a778b9035e34311a4ca0fbfe | /docs/conf.py | 57e9c9ffe3ccd4b6a7747a216820b2bfb4ab4c67 | [
"MIT"
] | permissive | edeposit/cz-urnnbn-api | 7eb4229c03051300ddc375030d8233e8b3b2e95f | 2c9d36648491bfcbf0f29bedaf6f507a51805f8e | refs/heads/master | 2020-05-30T17:01:38.993229 | 2015-10-12T12:38:11 | 2015-10-12T12:38:11 | 31,064,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
import os
import sys
import urllib
import os.path
sys.path.insert(0, os.path.abspath('../src/'))
extensions = [
'sphinx.ext.autodoc',
'sphinxcontrib.napoleon',
'sphinx.ext.intersphinx'
]
intersphinx_mapping = {
'python': ('http://docs.python.org/2.7', ... | [
"bystrousak@kitakitsune.org"
] | bystrousak@kitakitsune.org |
be8ba9e73db30402493becf02ec4687d74472442 | a343a405ecc557a52974fa84bc0481cc11405b14 | /33_searchRotatedSortedArray_V2.py | 16dcda7bdf1a8844681f255d5bae37eca5ec09c1 | [] | no_license | jennyChing/leetCode | 926c2a5ff9f6c03152e93725b64f7bad804c415a | f3fc71f344cd758cfce77f16ab72992c99ab288e | refs/heads/master | 2020-05-21T16:42:17.325980 | 2017-03-18T01:59:15 | 2017-03-18T01:59:15 | 61,048,131 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | '''
33. Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
You are given a target value to search. If found in the array return its index, otherwise return -1.
You may assume no duplicate exists in the array.
''... | [
"jklife3@gmail.com"
] | jklife3@gmail.com |
acf3f83d7f62c84c967c3097d82a174f12128cc8 | 6296d071fb9f48d8a12b1a14b371f9c4da29f98b | /notebook_format/formats.py | 9c774ef6ba757215b4411ff71f8112eb2f17798c | [] | no_license | rosdyana/programming | 681b14d9977cca527b8d787ffbcc4322ceca4725 | eef81128a76519c96c7dd3e236f7a3bcd7e48d71 | refs/heads/master | 2021-01-18T16:07:23.625612 | 2017-03-26T23:33:30 | 2017-03-26T23:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | import json
import warnings
import matplotlib.pyplot as plt
from IPython.core.display import HTML
def load_style(css_style = 'custom1.css'):
"""
custom1.css adapted from
https://github.com/rlabbe/ThinkBayes/blob/master/code/custom.css
custom2.css adapted from
https://github.com/neilpanchal/iPython-Notebook-Theme... | [
"ethen8181@gmail.com"
] | ethen8181@gmail.com |
e1093bebdf3df61008fd5b61e141d249b554b4a2 | d3063fe369b4f4fff7fd547f198f2b4b3481b2e0 | /removeNthnodefromlist.py | 7822eb672d9c6d4829454147b79fc92d2c3857cf | [] | no_license | Rakshitha94/Linked-List-1 | a38a645d1d9cc4f04c3fb202c00c509e8d9af0e8 | a78c85af27ba317b692afa534ca8019d1f1115ef | refs/heads/master | 2020-07-25T04:58:17.414392 | 2019-09-13T19:34:00 | 2019-09-13T19:34:00 | 208,172,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | # leetcode: accepted
# time complexity: o(n)
# doubts (yes): please check the comments
# explaination: we are taking two pointers, p1 and p2. We shift the p1 pointers , n places from the begining and then
# we move the p1 till the end if the linkedlist and move p2 along with it.
# when p1 shows null, it means p2 is n... | [
"rakshithalr3007@gmail.com"
] | rakshithalr3007@gmail.com |
85456bfbd2edfd1d3972834b56a319ed2c955e05 | 6ceddff7b80a7c00e40120b4a0adf6696391d683 | /covid/db/italy_province.py | 720303e6b95ad320de8dd31a5441b3b68717ab28 | [] | no_license | mighelone/covid-dashboard | 806250380c05e1efc74429a344a006357ec18da1 | 79895a549c521dd51a3cd548aec7da9707d90e3a | refs/heads/master | 2022-11-20T09:42:21.276585 | 2020-07-14T11:29:52 | 2020-07-14T11:29:52 | 255,083,788 | 0 | 0 | null | 2020-07-14T09:25:56 | 2020-04-12T13:03:44 | Python | UTF-8 | Python | false | false | 577 | py | from ..extension import db
class ItalyProvince(db.Model):
__tablename__ = "italy_province"
codice_provincia = db.Column(db.Integer, primary_key=True)
sigla_provincia = db.Column(db.String(2))
codice_regione = db.Column(db.Integer, db.ForeignKey("italy_region.codice_regione"))
denominazione_provinc... | [
"michele.vascellari@gmail.com"
] | michele.vascellari@gmail.com |
29e07ede867807108d273fe7196934df3cefeaac | b0cfa5e2d84057ece11f3316f82b806f1383a9df | /modules/standard/whois/org_list_controller.py | 634951f4f7f98df7331e81c2e4726dc4fdd7b993 | [] | no_license | comatech/Tyrbot | 0b862afc834ec2d587fd5f8f67926569b109b667 | 1f8648d81c0a5f089ef7aaa6581809a47657b624 | refs/heads/master | 2020-07-06T06:40:13.863215 | 2019-07-21T09:51:45 | 2019-07-21T09:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,161 | py | from core.buddy_service import BuddyService
from core.chat_blob import ChatBlob
from core.command_param_types import Int, Any, Character
from core.decorators import instance, command, event
from core.dict_object import DictObject
@instance()
class OrgListController:
ORGLIST_BUDDY_TYPE = "orglist"
def __init_... | [
"email1@jkbff.com"
] | email1@jkbff.com |
159bafbca9d8225e91b350e8bd633513f6f0b18b | 6e333d863a760c27ac4a6c09e6b98bf2ecdc7e83 | /projects/ticket_vendor.py | c875d778766a39da315da3d654188a93eb3d419f | [] | no_license | aaronwebre/something-python | e95d1ec6e99be89ebb285f2c53ed1ff4a07904cb | 52648018ac456b32766874aedcce3fc57e7fe883 | refs/heads/master | 2020-05-23T18:23:22.847267 | 2019-09-17T15:51:59 | 2019-09-17T15:51:59 | 186,887,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | TICKET_PRICE = 10
SERVICE_CHARGE = 2
tickets_remaining = 100
def calculate_price(number_of_tickets):
return (TICKET_PRICE * number_of_tickets) + SERVICE_CHARGE
while tickets_remaining >= 1:
print("There are {} tickets remaining.".format(tickets_remaining))
name = input("What is your name? " )
num_tic... | [
"aaron.webre@g5platform.com"
] | aaron.webre@g5platform.com |
73df75db6f73aa73017618cd51953ec831274985 | f0b1e58de2dfaad5a689ac32685e8201777fdd3c | /Base_model/intention/intent_classifier.py | 25161550038682d3f810c7f4c4c3793def6ecbc5 | [] | no_license | BarryZM/Chatbot_Utils | 3f99d33769709f3a116a9dec4fb32106b9396cb0 | 62dd366287839251a36b3ee3096a2a19da78e857 | refs/heads/master | 2022-11-19T23:50:18.003354 | 2020-07-22T13:32:19 | 2020-07-22T13:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,454 | py | # -*- coding: utf-8 -*-
'''
@Author : Xu
@Software: ide
@File : domain_classifier.py
@Time : 2019-11-06
@Desc : 基于bert的分类模型的fine-tune的领域分类模型,模型准确率验证通过,但是需要修改模型的初始化方法
'''
import os, csv, random, collections, pickle
import tensorflow as tf
import numpy as np
import pickle as pkl
import pathlib
fr... | [
"charlesxu86@163.com"
] | charlesxu86@163.com |
fcea8033f91d904f8f2b1a9e4785ca4e4ce37cdd | 0bef2fd51f198aeec9b74b14cfc1e4b9cd2f5cd3 | /Modules/EmailHunter.py | e01c94770b8cc605e51afe40de72c1870d73e5f5 | [] | no_license | sektlab/SimplyEmail | 3e9f3ca68e9536e1257473e84f6684711081b0ee | ebc22c7ebbd71d4071764996b531343dfa951bec | refs/heads/master | 2021-01-18T15:14:23.156376 | 2015-11-12T04:24:10 | 2015-11-12T04:24:10 | 46,047,041 | 2 | 0 | null | 2015-11-12T10:55:52 | 2015-11-12T10:55:52 | null | UTF-8 | Python | false | false | 2,382 | py | #!/usr/bin/env python
import requests
import configparser
from pprint import pprint
from Helpers import Parser
from Helpers import helpers
# Class will have the following properties:
# 1) name / description
# 2) main name called "ClassName"
# 3) execute function (calls everthing it neeeds)
# 4) places the findings int... | [
"iamfree2009@gmail.com"
] | iamfree2009@gmail.com |
1acf3aac626719e28e5cc31da26c3cb09adc2f98 | 2c8f4f492635cd9a556673b2be515885a33fec56 | /bigdata_processing/data_handling_tuto/pandas_tuto.py | 38187fcdc4b7f3547129b9461da2a8b09457d8a2 | [] | no_license | rjsdn20022/learning_to_python | d072896f59d150d1dd1bf3088a817c7fd46e2ff1 | 492bf98cea1d59eb41e5844557695bbbe3566fde | refs/heads/master | 2020-06-29T18:43:02.580002 | 2019-08-07T10:49:07 | 2019-08-07T10:49:07 | 200,594,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | # -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
print('pandas Series 생성')
s = pd.Series([1,3,5,np.nan,6,8])
print(s)
print('data index만들기(배열, 데이터타입)')
dates = pd.date_range('20130101', periods =6)
print(dates)
print('index이용하여 data frame 만들기')
df = pd.DataFrame(np.random.randn(6,4), index = dates, c... | [
"45584677+rjsdn20022@users.noreply.github.com"
] | 45584677+rjsdn20022@users.noreply.github.com |
92e73f73f39f9f92391d703dc24678e511a07c82 | 644cfe4ccd566fd90b5d937a239eb69d436ce888 | /blog/migrations/0001_initial.py | f1f8dc2d2243d4ac14e2884c41c0dca47d5b7dfd | [] | no_license | charlesdwesley/my-first-blog | 753091b6be479e42aca54e87d146135daaa021f7 | 9dd2b28c34df5c496e2b3e695c629515f5d48bb2 | refs/heads/master | 2021-01-17T20:57:52.982405 | 2016-07-30T17:19:21 | 2016-07-30T17:19:21 | 64,038,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-07-23 21:40
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depen... | [
"cwesley@eplicaservices.com"
] | cwesley@eplicaservices.com |
692d8143997ea4a4a2298292b6776e46b16bbf83 | 1bbb3446eb160e8a88deef07a19e3054b04e706e | /kbengine_demos_assets/scripts/base/Spaces.py | 262d5ea760a93e9e84620626db7139f3654423d9 | [] | no_license | ELMERzark/kbengine_e | 2b13be71b39d7d7f6a03ce62fa3d68fb7824924d | 37976b87f3a4d9bfc7842809f93dea03b03b881d | refs/heads/master | 2020-05-23T22:21:30.625819 | 2019-12-03T01:50:09 | 2019-12-03T01:50:09 | 186,970,964 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | # -*- coding: utf-8 -*-
import KBEngine
import Functor
import d_spaces
import SCDefine
import Watcher
from KBEDebug import *
from SpaceAlloc import *
from interfaces.GameObject import GameObject
class Spaces(KBEngine.Entity, GameObject):
"""
这是一个脚本层封装的空间管理器
KBEngine的space是一个抽象空间的概念,一个空间可以被脚本层视为游戏场景、游戏房间、甚至是一个宇宙。
"... | [
"ck0012011@live.com"
] | ck0012011@live.com |
3dd042d8b92081725b842476aae1beacd2718d81 | 18de9c325992bd88af135c0f1987158ed18373a3 | /ronald.boadana/snakepro/main.py | 9be55efeeff2dcfbff74efe801a910e7cd751f8c | [
"MIT"
] | permissive | LUDUSLab/stem-games | 1d27ef13dce8ee905edc6146e9f18226bf6cadbb | 347afa8b1511d76f8070fa69f27a49b57e551376 | refs/heads/main | 2023-07-02T23:07:33.385512 | 2021-08-10T18:12:03 | 2021-08-10T18:12:03 | 331,959,510 | 2 | 3 | MIT | 2021-01-29T17:09:04 | 2021-01-22T13:49:32 | Python | UTF-8 | Python | false | false | 32 | py | from game import *
game_loop()
| [
"rcb.eng20@uea.edu.br"
] | rcb.eng20@uea.edu.br |
09c088e3d7099c73195f29d151b22d5e0f5335f4 | b6ff88078e4f08eb494b465bebb43bb8d4f3c3e9 | /arm.py | 1a97c06fd3857f963ab4483ef9e2dc8993941a6e | [] | no_license | JonComo/tictac | 2c44fe9c7dd845ae759ef8de45346739d5e678b2 | b7eccdb7c69ac14ba6f94886aff79568b9739ae0 | refs/heads/master | 2021-01-06T20:39:28.844496 | 2017-08-07T04:44:29 | 2017-08-07T04:44:29 | 99,537,601 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,682 | py | import serial
from time import sleep
import numpy as np
class Arm():
def __init__(self):
pass
def connect(self):
loc = "/dev/cu.usbmodem1421"
self.ser = serial.Serial(loc, 115200)
if self.ser is None:
print("error, no serial")
print("Don't forget to chan... | [
"jon@underground.net"
] | jon@underground.net |
5e7b773a645d10035473872284cbacaee7a108ee | 87c518acaa2b9bf4f685b44ca487a58cd25262bb | /ex101.py | 35bc9ecd6bd71f3d01427067d31a114db731b44b | [] | no_license | Matheuspaixaocrisostenes/Python | 2a97e962ed77bb7b4dbdf60ae3ec8ebdbb290aa3 | a175ef7e9b7562f1a52e436cadc5b73360f190f2 | refs/heads/main | 2023-06-28T13:52:42.855112 | 2021-07-22T13:50:05 | 2021-07-22T13:50:05 | 345,659,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | def voto(ano):
from datetime import date
atual = date.today().year
idade = atual - ano
if idade < 16:
return f'com {idade} anos. NÃO VOTA!'
elif 16 <= idade < 18 or idade > 65:
return f'com {idade} anos . VOTO OPCIONAL!'
else:
return f'com {idade} anos . VOTO OBRIGATORIO!... | [
"matheuspcrisostenes@gmail.com"
] | matheuspcrisostenes@gmail.com |
7c464d2064133dba060722b62dd9afa6f8efab4a | 7864ab2c567f5f3a98e7ab38ff38a3bd7c816fde | /fireplace/cards/gvg/spare_parts.py | eabe7299eaca68fb72038d7f15c9cb40af004331 | [] | no_license | gmagogsfm/fireplace | bfa1b57254b673317442518a997c635183bd3e61 | f16ee0659310a003d54552d0660ea3eb15c4da3f | refs/heads/master | 2021-01-09T09:06:35.035741 | 2015-02-09T14:30:24 | 2015-02-09T14:30:24 | 28,540,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """
Spare Parts
"""
from ..utils import *
# Armor Plating
class PART_001:
action = buffTarget("PART_001e")
class PART_001e:
Health = 1
# Time Rewinder
class PART_002:
action = bounceTarget
# Rusty Horn
class PART_003:
def action(self, target):
target.taunt = True
# Finicky Cloakfield
class PART_004:
ac... | [
"jerome@leclan.ch"
] | jerome@leclan.ch |
f3fbf6e4d8dea2640f1779f770f849e1fae5714e | 9146657d04bed0a405dde07560b34d1e0bc50a0c | /rubiksblindfoldedsolver.py | ce91657388c5bd7c7e67e009147cb455cde2a759 | [
"MIT"
] | permissive | dend456/randomscripts | a064e7fc544b2c0f6a7f00cb6ae05ccefe2f2f3c | 4d31670f9dc542c6fe6926a56bd1b2263701f3ff | refs/heads/master | 2021-05-25T09:34:42.928940 | 2020-08-22T22:03:34 | 2020-08-22T22:03:34 | 36,954,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,824 | py | algorithms = {'T' : "R U R' U' R' F R2 U' R' U' R U R' F'", 'Y' : "R U' R' U' R U R' F' R U R' U' R' F R", 'Jb': "R U R' F' R U R' U' R' F R2 U' R' U'",'Ja': "F U' R' F R2 U' R' U' R U R' F' R U R' F'",'parity' : "Ja T Ja"}
cornerAlgs = {'B':"R D' Y D R'", 'C':"F Y F'", 'D':"F R' Y R F'", 'F':"F2 Y F2", 'G':"D2 R Y R' ... | [
"trakof2@gmail.com"
] | trakof2@gmail.com |
20cec9b004845eda5ce3b3ab09b5009185b1dba4 | b97bbf3e4fc6ed7e548b5a928f9e83a6c5de02bb | /utils/dataset_util.py | 55c26d499df8aa698af3455df136d84e638e3fdd | [
"Apache-2.0"
] | permissive | manhitv/MAX-object-detector | d1aea5b78f534eab6046ee6aa294d6039f18723d | 21098efeb7040360c52f33db69de4b283edaea08 | refs/heads/master | 2020-07-14T15:02:47.894645 | 2020-01-30T02:03:15 | 2020-01-30T02:03:15 | 205,339,745 | 1 | 0 | Apache-2.0 | 2020-01-28T22:57:22 | 2019-08-30T08:31:11 | Jupyter Notebook | UTF-8 | Python | false | false | 4,389 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"manhnh594@gmail.com"
] | manhnh594@gmail.com |
59286046da3a22e4b8f901dfac7e4065db049967 | 42a0760a051935b2e765d57c445235221a28f49e | /791_custom_sort_string.py | b4bb0b9295a5d278dee0a6d9d69b7aff5e664df3 | [] | no_license | Th3Lourde/l33tcode | 3bea3a3e7c633a2d5a36f7d76d5d776d275d8ee3 | eb6b11f97a022b66716cb3890cc56c58f62e8aa4 | refs/heads/master | 2022-12-22T19:05:04.384645 | 2022-12-18T19:38:46 | 2022-12-18T19:38:46 | 232,450,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | '''
S and T are strings that contain lowercase letters.
S is composed of unique chrs.
S is sorted. Sort the characters in T that are in S.
If there are characters in T not in S, they can be
put anywhere in the resulting permutation.
Idea: go through all elements of T, put them in a dictionary.
We will want to keep t... | [
"th3sylvia.lourde@gmail.com"
] | th3sylvia.lourde@gmail.com |
adaf20cce29d78f8e4fe03fc406520ccaae3d93a | 8beef1226cd6323d2db3a3533d62262b804c32e1 | /nightstand/gui.py | d04f6afa6fa4ffc9ed5d8cde8b65b51986c22be2 | [
"MIT"
] | permissive | rdhammond/nightstand | 3a659a79df177fe98d69b06705829268d327fbed | 37a5a2cc71070f83f759676fa15f6d2d6cb5499b | refs/heads/master | 2020-12-24T06:38:52.113105 | 2016-06-22T17:26:30 | 2016-06-22T17:26:30 | 61,142,319 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,987 | py | #!/usr/bin/python
import datetime
import pygame
import pygame.freetype
import events
from events import Events
from icons import Icons
from net.geolocation import GeoLocation
from feeds.weatherfeed import WeatherFeed
from feeds.pollenfeed import PollenFeed
from feeds.sunintensityfeed import SunIntensityFeed
MINUTE_DE... | [
"viztheman@gmail.com"
] | viztheman@gmail.com |
3bbddd1bbeb2a35468c28a37728f99bdf6f30c89 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_vpn_l2tp.py | 8a679a3190e555ba61d89d2bd7d5cafd9ce95faa | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 9,014 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"sifang@cisco.com"
] | sifang@cisco.com |
ff00d05da25e1446f505c2ed77809db69766487e | 767a1b052d87ae5516ccf8226b1b6f88bef10c51 | /malariatool/dashboard/models/__init__.py | c77dbf2078d7ccd58041fbd9084beec6b54e23eb | [] | no_license | CHAIUganda/MalariaTool | 42947fed9e26a504b1c83b197529f3fb2e7cb387 | 4ed55449b32a427a673909950980b113fd7d4d91 | refs/heads/master | 2021-01-17T00:22:22.853910 | 2017-06-15T06:30:12 | 2017-06-15T06:30:12 | 45,996,827 | 2 | 1 | null | 2016-09-22T05:06:41 | 2015-11-11T17:13:55 | Python | UTF-8 | Python | false | false | 422 | py | from dashboard.models.district import District
from dashboard.models.document import Document
from dashboard.models.implementing_partner import IP
from dashboard.models.meeting import Meeting
from dashboard.models.members import Member
from dashboard.models.tasks import Task
from dashboard.models.user import User
__al... | [
"remosam42@gmail.com"
] | remosam42@gmail.com |
d6fa72819b42cb6d6b28b3aa70ee781aee56d539 | e93cdd365b302dcbdb0dbef8accbd61473851354 | /core/migrations/0018_field_picture.py | f10c67a1c51ad0c9dc125f0fb51f1423dbc3a9ad | [] | no_license | jonerra/radcliff | 7bfd1004a2e1c789c4894b89df7d6408c5dc5034 | 13957e48a96175f11318187f3e180efa4fba2294 | refs/heads/master | 2021-01-21T13:53:45.409435 | 2016-05-16T23:21:51 | 2016-05-16T23:21:51 | 52,484,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-04-14 15:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0017_auto_20160414_1533'),
]
operations = [
migrations.AddField(
... | [
"jonerra23@aim.com"
] | jonerra23@aim.com |
f74a324530db9b61c43467a4a2285391c0a79705 | 558ab51892fb02d052798b8f7d14bc6fd4d8ff31 | /configjson.py | 69ddfbaf6afbf8361cf7d6e2bdd2caaf8bc99bca | [
"MIT"
] | permissive | eruber/config | 7908d569604f7536be6a752424c35bd0eb803cea | 1c3d76083980b9fdb052b8e99a40328d3ff17f44 | refs/heads/master | 2020-12-02T19:49:29.414980 | 2017-07-22T21:29:13 | 2017-07-22T21:29:13 | 96,396,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,382 | py | #!/usr/bin/env python
#coding=utf-8
"""
Module configjson
This class sub-classes the abstract base class, **Config**, in the config module
to provide JSON specific configuration read and write methods.
.. moduleauthor:: E.R. Uber <eruber@gmail.com>
"""
#---------------------------------------------------------------... | [
"eruber@gmail.com"
] | eruber@gmail.com |
8a7d66dd1a312130871abbbf376b538ce92e6597 | 3f433cc65bea391674d9e7a237af6f46b19eb0b7 | /scripts/01_data_prep.py | 0587b6417d2f14655e5f151ae5812f0dbfe919d5 | [] | no_license | AchimTack/emma_radar | a27aab03d3e60b41b5b5f8437dda4546286d26e1 | 9ae59be28b86de7a926b9b4c76dc7921c128c672 | refs/heads/master | 2020-03-16T22:56:58.008548 | 2018-07-03T20:20:45 | 2018-07-03T20:20:45 | 133,058,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | # -*- coding: utf-8 -*-
import cv2
import numpy as np
import os
from subprocess import check_output
from PIL import Image, ImageFilter, ImageEnhance, ImageDraw, ImageOps
def frames_to_video(inputpath,outputpath,fps):
ffmpeg_path = r'E:\Profil\Downloads\ffmpeg\bin\ffmpeg.exe'
cmd = ffmpeg_path +' -ss 00:00:00 -... | [
"achim.tack@gmail.com"
] | achim.tack@gmail.com |
486a381f4a95f4908854fd984cc9437683ce2986 | aceb1861d209a7a3f472b30cae00fd6c89197b44 | /scraper.py | 2308986ea1482b52feadab6831131fbf75445011 | [
"Apache-2.0"
] | permissive | harshraj21/web-scraping | 92aa37bf2ae42ea5d12dcf57ed57e916d8c21499 | 98489856be96670398f2d7176bf7d8faef6d104d | refs/heads/main | 2023-06-10T20:32:52.653324 | 2021-07-06T14:37:18 | 2021-07-06T14:37:18 | 383,490,491 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,643 | py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
from selenium.webdriver.common.keys import Keys
import re
import logging
from selenium.webdriver.remote.remote_connection import LOGGER
from selenium.webdriver.common.action_chains import ActionChains
import os.path
import ... | [
"noreply@github.com"
] | noreply@github.com |
8707126656c4925ca4d8fbc116ad308a37a5d15e | 964b063c2461aad267ddd991fefaf7ab53b1ca94 | /7-kyu/remove-the-minimum/python/solution.py | 11722bbad1643eb8888c64bafc9b75e0de5391b9 | [] | no_license | lucasbflopes/codewars-solutions | 26c4e2cd1be19db50cc8c1d9fc117c51c82a2259 | 72ef2c02dde7bd0d5a691e04e3b2a383e892f84b | refs/heads/master | 2022-03-14T01:26:41.816498 | 2019-11-23T17:17:19 | 2019-11-23T17:17:19 | 114,834,447 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | def remove_smallest(numbers):
if not numbers:
return []
else:
min = numbers[0]
for number in numbers[1:]:
if number < min:
min = number
numbers.remove(min)
return numbers
| [
"LucasBraganca@Lucas-MacBook-Pro.local"
] | LucasBraganca@Lucas-MacBook-Pro.local |
0d97b7a0ec8e8b977b8369a64d5521329bae48f6 | 66c21d53a80f1ef1c53478b2c3aa2dc8ce8aed40 | /MODEL1310110044/model.py | 9e1259aa2a444fd57e70e89a3f234a8528b7fb5c | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | biomodels/MODEL1310110044 | a380b839eeb2c650ef712c65a47b46b77f589a02 | 18ca04fdc1bcae46976eb10e064fc7deed8297a4 | refs/heads/master | 2021-01-10T22:28:05.137897 | 2014-10-16T05:34:05 | 2014-10-16T05:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'MODEL1310110044.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"stanleygu@gmail.com"
] | stanleygu@gmail.com |
f00e73727670667a1e871603bb509b79a7a90568 | d190750d6cb34e9d86ae96724cf4b56a2f57a74a | /tests/r/test_saving.py | d5ffb1d760e2806452c3283ac3a9f4c3fa58f4c0 | [
"Apache-2.0"
] | permissive | ROAD2018/observations | a119f61a48213d791de0620804adb8d21c2ad9fb | 2c8b1ac31025938cb17762e540f2f592e302d5de | refs/heads/master | 2021-09-24T04:28:02.725245 | 2018-09-16T23:06:30 | 2018-09-16T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.saving import saving
def test_saving():
"""Test module saving.py by downloading
saving.csv and testing shape of
extracted data has 100 row... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
099b14a86ba198f540806d5016f59c4487c06bba | 9c4c0b01952e4c427d18a8313e2fb946a78dace9 | /forcefield.py | 12985961982adeddbc2a4af8e334c8bd370cbc18 | [] | no_license | marlinspike/Captain_Cosmo | 6b3b3e0ebda48d0dc0d447d0a655536192ab86a7 | 00d2a0423ca3ab0e05092b194af55fba6292f22d | refs/heads/master | 2022-04-25T03:43:57.992495 | 2020-05-01T22:43:03 | 2020-05-01T22:43:03 | 259,328,164 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import pygame
import random
import cloud
# Define the enemy object by extending pygame.sprite.Sprite
# The surface you draw on the screen is now an attribute of 'enemy'
class Forcefield(cloud.Cloud):
POWER_UP = 5 # Give Player 5 bonus health points!
def __init__(self, screen_height, screen_width):
... | [
"rcleetus@gmail.com"
] | rcleetus@gmail.com |
32b36d2024ff35ccb4a880727dd13186b1d5e3e5 | 3589a7ef4ca5672840e681b517103abb26d17f2c | /examples/2-gpio-input/program.py | 91cfe574ade6a5f0c1e93ac2a42b45b87eae218e | [] | no_license | digitalLumberjack/rpi-courthezon | 47fff1b4bb76f071e5a23e392fb1a4b1535c5b87 | 1c18f62a657280a9ed86109399d5c7731625f536 | refs/heads/master | 2020-04-22T13:15:55.290970 | 2015-02-22T06:48:48 | 2015-02-22T06:48:48 | 31,154,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # Importons le code qui nous permettra de controller les GPIO
import RPi.GPIO as GPIO
import time
print("Utilisons la nomenclature BCM pour les GPIO")
GPIO.setmode(GPIO.BCM)
print("Passons le GPIO 17 en mode input")
GPIO.setup(17, GPIO.IN)
print("Et attendons que quelqu'un appuie sur le bouton branche sur le GPIO 1... | [
"digitallumberjack@gmail.com"
] | digitallumberjack@gmail.com |
e16b639593a9295ce630ea40da27fb2fd3f3ad35 | a29d7fa5ce20f02a5b2169c8cc23ac0f02d56ef8 | /sin_caur_summu_ver1.py | f5339507bbf47fea6e6793e37d8e9b20171b98e8 | [] | no_license | intsintsints/RTR105 | 1b5ab257771f423d97cf3aa3006ef6a334de14c1 | 7620e6ee043986b9ce2dd2f058cc711846eceb7a | refs/heads/master | 2021-08-05T03:51:47.202237 | 2018-12-30T21:12:55 | 2018-12-30T21:12:55 | 148,168,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | # -*- coding: utf-8 -*-
from math import *
# (1.) * (2) = (2.) - float * int = float
# (1.) * (2.)= (2.) - float * float = float
# Python 2.x
# x = 1. * input("Lietotāj, lūdzu, ievadi argumentu (x): ")
# Python 2.x
# x = float(raw_input("Lietotāj, lūdzu, ievadi argumentu (x): "))
# Python 3.x
x = float(input("Lietotāj,... | [
"teslak70@gmail.com"
] | teslak70@gmail.com |
cfe071eee127e4b4319769723a6e67986f68eb8a | b22bd2a65f660611f770e89a2c06754d4e66cb39 | /config/settings/production.py | 1f4cd7102071792b476690a26701164d968101cb | [
"MIT"
] | permissive | GitDietz/new_bake | 8c97d0df39296f7cff2b5d8ff01a0c2ba944d46f | 773b9f6e43ab59e4b1d6ca7edd9fc004720bcc3f | refs/heads/main | 2023-03-21T09:41:58.496339 | 2021-03-22T10:31:01 | 2021-03-22T10:31:01 | 347,928,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,297 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env("DJANGO_SECRET_KEY")
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED... | [
"thierrydna@me.com"
] | thierrydna@me.com |
f57a5ad7165acbedab6675838f899b219c52af2b | cd938719803ac6e5b7adc4240b1995f2d3e457e5 | /payment/migrations/0001_initial.py | 82c1d2b945e626673e8f2901a8ec76db4b576f02 | [] | no_license | ititifad/eduka | 193b35372bc39e1481ab10c79929bb17f7aa4d6b | 01a66b17d68e356abe3ddf26146ef85cf4e67a77 | refs/heads/main | 2023-06-18T11:14:31.580716 | 2021-07-17T06:05:01 | 2021-07-17T06:05:01 | 386,772,304 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Generated by Django 3.0.14 on 2021-07-16 06:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='OnlinePayment',
fields=[
('id', models.Aut... | [
"dex90jay@gmail.com"
] | dex90jay@gmail.com |
ea94e1d2eacd4b3aa0cc48423aaf881932228f70 | 192c001fa61d30a3d04c4b6e6ec37c680e7f4b5f | /tags/ds002/SimuVis4/test/pendulum.py | 0e7cd620f78f86db396564850f8e1fa9f52150e9 | [] | no_license | BackupTheBerlios/simuvis4-svn | a9ee1d9d3df2ddc319ea33a56b2bed2197b82639 | df38c6205dcd37e005142e70d1cec9b4a541761e | refs/heads/master | 2021-01-22T04:49:19.550943 | 2009-09-12T20:38:51 | 2009-09-12T20:38:51 | 40,748,295 | 0 | 0 | null | null | null | null | ISO-8859-10 | Python | false | false | 5,329 | py | from PyQt4.QtGui import QGraphicsScene, QGraphicsLineItem, QGraphicsTextItem, QGraphicsItem,\
QGraphicsEllipseItem, QPen, QBrush, QColor, QMenu
from PyQt4.QtCore import QRectF, QPointF, QLineF, QTimer, Qt
from math import sin, pi
SimTools = mainWin.plugInManager.getPlugIn('SimTools')
Graphics = mainWin.plugInManag... | [
"jraedler@6b4c185e-cb43-0410-a2ac-e70e11b4cc95"
] | jraedler@6b4c185e-cb43-0410-a2ac-e70e11b4cc95 |
ed0470ad27fad5a1c49aeb5ada81f1789298a57b | 632daa93ba8dab725e006d6f73ec3dfadcfc5d25 | /conceptTreesCoganteData/src/nelex/distance_matrices_hamming.py | bcd0afdd71633467ff47733a92f7689e8e184b07 | [] | no_license | marisaKoe/conceptTreesCognateData | 529e547b581b8cfa6ae0d04a8adb812b216749ba | 789979515e5dc32c478cc34a571890c8b7d0b902 | refs/heads/master | 2023-07-17T17:07:25.760479 | 2021-09-07T16:10:50 | 2021-09-07T16:10:50 | 187,266,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | '''
Created on 12.07.2017
@author: marisakoe
NOTE: this is independent of the other distance measures. This was just for testing
'''
import codecs, itertools, scipy.spatial
from collections import defaultdict
from helper_methods import get_data_nelex, write_dm
def nelex_compute_dm_hamming():
'''
reads the... | [
"marisa@marisa-koe"
] | marisa@marisa-koe |
f34fec3e0f89bb55ab39976a30b08e58e56a5624 | a6886a9fff11caf67ec138a5c5656a774d03b854 | /modules/webserver.py | 8be8ee9267f3f8517825e8621bd38c18d4f7fa15 | [] | no_license | Davymaltz/KathBot3 | 76271684075bb6ef7052ceb36fdda15d8fc90414 | cf57018404fa281e26ad189541e6e30387e9a0ef | refs/heads/master | 2021-01-24T01:28:07.415320 | 2009-08-20T18:11:17 | 2009-08-20T18:11:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,250 | py | # encoding=utf-8
import BaseHTTPServer
import SocketServer
import threading
import inspect
import os.path
import urllib2
import urlparse
import traceback
import mimetypes
import platform
import socket
from cgi import parse_qs
web_handlers = {}
PORT_NUMBER = 8765
class KBHTTPServer(BaseHTTPServer.HTTPServer, SocketSe... | [
"katharine@kathar.in"
] | katharine@kathar.in |
5e79356f6411aa050622b5d7ae6599060ea4d4b9 | c4cc5f6669bb9299f8bac8db5d2c4123d343ed0b | /Toolshare_Archive/Toolshare/urls.py | f8e2467f5c1a1d7170aed78b2977ec3149313cd2 | [] | no_license | rahulkshinde/ToolShare-Application | 5c77a4e223bfabe7cf5a8be180b408fe86c9f78e | 2d7ea7b0568cbc30589fe86014b357823e8f58be | refs/heads/master | 2020-05-17T19:15:30.767442 | 2015-03-06T04:47:52 | 2015-03-06T04:47:52 | 31,753,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from Toolshare_Module.views import main_page,logout_page
import os.path
site_media = os.path.join(os.path.dirname(__file__),'site_media')
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'Toolshare.views.home', name='home'... | [
"rahulkshinde87@gmail.com"
] | rahulkshinde87@gmail.com |
421e055745647fb0d02f9e3bb4e32b0434a18201 | ebdcffd7f2bc014d07957b4809ca928661e0020b | /Problem 1.py | 24da361db43b171763082a8122d59b13194bb493 | [] | no_license | navyamote/Practical-Optimization | e66af264eefd62aa5ec77f54058ec389b13de3c2 | 7ae4b35e121ca1b2f31e724cf2e3582cbf7acee9 | refs/heads/master | 2020-04-04T05:18:17.109493 | 2018-11-01T16:16:21 | 2018-11-01T16:16:21 | 155,740,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | import csv
from gurobipy import *
import sqlite3
#%% Load yeast supply and amount per beer type
Supply = {}
with open("Supply.csv", "r") as myCSV:
myReader = csv.reader(myCSV)
for row in myReader:
Supply[row[0]] = (int(row[1]))
#%% load hop supply and amount per beer type
profit = {}
with... | [
"noreply@github.com"
] | noreply@github.com |
508dbae583648828a64b7eddde7cfceba622905e | c875f7cf8f8db606d8584d340557fe087ac551b8 | /collect_data.py | da2eb47ce8afe9fb3e0b7c4ca6a34cb9205127c6 | [] | no_license | teegreen18/LinuxProject | 5d2ee759fcf4e1cfc1830b5134cc2596dc836488 | a449d54fae5b210ffdfea583f7aabfc68d0328f3 | refs/heads/master | 2021-05-14T01:58:27.295227 | 2018-02-22T01:26:02 | 2018-02-22T01:26:02 | 116,581,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | import gzip
files = ["Nat1993.gz", "Nat1994.gz", "Nat1995.gz", "Nat1996.gz", "Nat1997.gz", "Nat1998.gz", "Nat1999.gz", "2000", "2001", "2002"]
masterData = {}
usedCodes = []
# open the text file of superbowl winners
textFile = open("superbowl_winner.txt")
# for each line of the winners
for line in textFile:
# ext... | [
"asgreenb@mail.yu.edu"
] | asgreenb@mail.yu.edu |
ffb53cbbaeede0c4c7b2acc9d2712fa7beb0c0f2 | fe87ce15c7ce9445ccd84418836b94c5289f47cc | /project3/util.py | 4e683b6fb7d71b73af8a5bb158cb31df2e5fcbdb | [] | no_license | fragakos/PacMan-Project-AI-Berkeley | d3a0eec2c50f1aad1f924558fa9c794e0562e7f3 | b8a02ecf4c4583929ba6b6ddbf34bdd53d16e154 | refs/heads/main | 2023-05-28T00:07:52.744101 | 2021-06-19T13:06:35 | 2021-06-19T13:06:35 | 378,413,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | import random
def first(iterable, default=None):
"""Return the first element of an iterable; or default."""
return next(iter(iterable), default)
def count(seq):
"""Count the number of items in sequence that are interpreted as true."""
return sum(map(bool, seq))
def argmin_random_tie(seq, ke... | [
"noreply@github.com"
] | noreply@github.com |
2160e87b55ae05a8679e74bdf72ae4a4de990797 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_lofts.py | 8a42b14b52f7fdd76fb42f78e75a7c6bdbbbc98f | [
"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 | 214 | py |
#calss header
class _LOFTS():
def __init__(self,):
self.name = "LOFTS"
self.definitions = loft
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['loft']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c3636244af838d5b1667e676da749975190c65a5 | 5067a7c29deb7943e8b74e163b9690314300be1d | /api/resources/patient.py | 720f127c31bcf24f0ab868838bc5e0c5c6cb8acf | [] | no_license | Dimama/nutrition-report-backend | 0aa0f63c0bc37a48c2924dbc726123c33d1635f0 | 7d6be8c33d9b4b26cf4860f7528bc12310d6c6fd | refs/heads/master | 2020-06-14T12:26:13.774142 | 2019-08-24T18:47:39 | 2019-08-24T18:47:39 | 195,003,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | from http import HTTPStatus
from flask_restful import Resource, reqparse
from flask import current_app, request
class Patient(Resource):
post_parser = reqparse.RequestParser()
post_parser.add_argument("name", type=str, required=True, location="json")
@staticmethod
def get():
patients = curr... | [
"citrus_m@mail.ru"
] | citrus_m@mail.ru |
1f1db4f74598d73398d94ebe32bee412abc75d53 | 88016ae7644ce4e9808d08c0af5681eca9f8e361 | /CYC1.2.5-oni$n (1).py | 92688f57b71edab3f4f5c1dacdcff3b97ca609d9 | [] | no_license | Jiss-Joss-42/PYTHON | 3f84d27ceadb49d92060dcb57edbc2a335e3c1d0 | 020a2eb7ee8e4fdfd14e716bcf4e20acfac7cb2b | refs/heads/master | 2023-06-12T20:24:39.350792 | 2021-06-30T10:39:23 | 2021-06-30T10:39:23 | 381,640,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | name=input('Enter the string:')
char=name[0]
new=''
flag=0
for i in name:
if(i==char and flag>1):
new=new+'$'
else:
new=new+i
flag = flag + 1
print(new) | [
"20mp1702@rit.ac.in"
] | 20mp1702@rit.ac.in |
3bb703089a1858f0cce7eb7aa0cd1867a1c6ad42 | 0ad6516a5f65e6d30c574007bc1efe94b142caa7 | /jobs/admin.py | e026fae2d3a8b46b9b9c8439ad1a9b8af3dd6b0b | [] | no_license | monika-kh/port | e9a4a66e761cd52ccb6c770b28fcf1babe5f9e1d | 078adcede21bbe3f82caeeeee168ccf365e922e0 | refs/heads/master | 2023-04-28T09:41:56.212124 | 2020-03-31T17:37:13 | 2020-03-31T17:37:13 | 251,678,561 | 0 | 0 | null | 2023-04-21T20:53:56 | 2020-03-31T17:23:59 | HTML | UTF-8 | Python | false | false | 149 | py | from django.contrib import admin
# Register your models here.
from .models import Jobs, Apply
admin.site.register(Jobs)
admin.site.register(Apply)
| [
"khasdevmonika@gmail.com"
] | khasdevmonika@gmail.com |
0c056a6628998a8dee81f09c8ff8bf4f17b95073 | ed1165acc8937976142f00009df5a942c02dbd24 | /database.py | fe32b9a6206e5442caefce688ca62b803109ef8d | [] | no_license | Kha/shaderwall | 1cb116b41c36ef9b20e86bfe2e16aaf4bf24e164 | afac9d484fbee345500167cfc1e2edcf5c752b5c | refs/heads/master | 2021-01-15T12:30:50.704084 | 2014-12-28T21:23:54 | 2014-12-28T21:23:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | from sqlalchemy import Column, ForeignKey, Integer, String, Text, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
import datetime
from config import connection_url
import random
import string
def generate_authcode():
retu... | [
"lukas@schauer.so"
] | lukas@schauer.so |
c4a8cd354d040c15afd379aff695a191ded6cdc5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_redistributing.py | 7376d9ca1ac4caa9854da9d4a805a8cb3a3c1b21 | [
"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 | 282 | py |
from xai.brain.wordbase.verbs._redistribute import _REDISTRIBUTE
#calss header
class _REDISTRIBUTING(_REDISTRIBUTE, ):
def __init__(self,):
_REDISTRIBUTE.__init__(self)
self.name = "REDISTRIBUTING"
self.specie = 'verbs'
self.basic = "redistribute"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
85ad7ac34743c5b99998dc605e68deb17287a64a | 7b3072ed2ba6295057452e1dc303e7629601b8c1 | /Svalbard/csv/PostExecution.py | 263038f381a69ec01753b8545a38cbca0c190da1 | [] | no_license | gksriharsha/Svalbard | 4cacdc9b08fc7dbe0971048512e37c03758a6d1e | 21d4802fc16ffe547c4864f339350fb3db6b157d | refs/heads/master | 2022-12-14T17:59:34.543425 | 2020-09-17T12:50:28 | 2020-09-17T12:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | import pandas
KNN = pandas.read_csv('KNN.csv')
MLP = pandas.read_csv('MLP.csv')
QDA = pandas.read_csv('QDA.csv')
RF = pandas.read_csv('RF.csv')
GNB = pandas.read_csv('GNB.csv')
ABC = pandas.read_csv('ABC.csv')
results = pandas.read_csv('results.csv')
results1 = pandas.merge(KNN,results,on='eID',how='left')
res... | [
"51872746+gksriharsha@users.noreply.github.com"
] | 51872746+gksriharsha@users.noreply.github.com |
abb1fe78c461abcc5026e2e8f5147c44e493be61 | 7951305b50a17c6c76040f914a1815f381d1ba97 | /tests/test_intelora.py | 0b6379e49c715ddf20b1f80605d0840013d9b9e6 | [
"MIT"
] | permissive | chwalters/core | 47763659dbe267fd5d91f24a93569a99df22e31d | 50812886149f46ea8d1be19f7311490891a8e29f | refs/heads/master | 2021-04-30T13:29:29.815223 | 2018-01-25T19:41:46 | 2018-01-25T19:41:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | #!/usr/bin/env python
# coding: utf8
import intelora
if __name__ == '__main__':
intelora.main()
| [
"paulquinit@gmail.com"
] | paulquinit@gmail.com |
f72c72a26830e7baac65cdabeb0c5fb74d4e1162 | 59faca1d2df8d60c3c012a0e1aef6e9dc0182030 | /product/urls.py | a545333e9857b07e32f2db768951034b7bd9c22f | [] | no_license | pakruslan/e-commerce-heroku- | 4dfbffb1c8f1cc8955c17f182292a593fc4f349f | 89803ceafcb3db6d90f7b06e1cda2bcc6e2102e6 | refs/heads/main | 2023-02-20T10:15:43.909761 | 2021-01-21T14:19:50 | 2021-01-21T14:19:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import CategoriesList, ProductViewSet,CommentCreate
router = DefaultRouter()
router.register('', ProductViewSet)
# products = ProductViewSet.as_view({
# 'get': 'list',
# 'put': 'update',
# 'patch': 'partial_... | [
"parkruslanztoh@gmail.com"
] | parkruslanztoh@gmail.com |
3e8087f0c76fb300a58687be1be04060a5486a08 | e66fa131cff76fa3fe70e7b6649fa1332159c781 | /ch10/statisticsModule.py | 457ed3ce44eb38e2f21007c4ca924d22a6b5f722 | [] | no_license | chc1129/python_tutorial | c6d97c6671a7952d8a7b838ccb8aa3c352fa6881 | 2f8b389731bafbda73c766c095d1eaadb0f99a1c | refs/heads/main | 2023-08-24T07:00:43.424652 | 2021-10-28T16:07:57 | 2021-10-28T16:07:57 | 341,532,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | import statistics
data = [2.74, 1.75, 1.25, 0.25, 0.5, 1.25, 3.5]
print(statistics.mean(data))
print(statistics.median(data))
print(statistics.variance(data))
| [
"chc1129@gmail.com"
] | chc1129@gmail.com |
ad535eb6f22506b32d9a5e054365c10021aeb1a3 | 351c5eb41e6ec58ae918549d6fb19b10e2349201 | /代理/西刺代理2.py | 5d72b0cdaf57461fe0f0776b6d200450e09bfc5f | [] | no_license | snails-za/Spider | e6440340367f6473262816dad2a6dcd08ca8f459 | a0fd41dae468fc29bb03d300d71c3df6e41449c2 | refs/heads/master | 2020-08-03T02:52:32.820640 | 2019-11-05T09:27:06 | 2019-11-05T09:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py | from bs4 import BeautifulSoup
import csv
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
class GetIp(object):
def __init__(self, url, path, page):
self.chrome_options = Options()
self.chrome_options.add_argument("--headless")
self... | [
"wangjuchn@outlook.com"
] | wangjuchn@outlook.com |
5a52c5a7942b88add0682b008aa3ca477303845b | c97623d0ce19b7c25d9751e66f993c969a8f896d | /fdbck_aggr.py | 3238a78219045582588bfa5257b9818d7be91a97 | [] | no_license | gobsyats/ML_Ride_Sharing | 87c957c99b334abc50bddcbe0ecb2e8a8ee5fc48 | a4a1e02eaf72535e5ab8b2e70521cddf985a55c4 | refs/heads/master | 2020-12-13T09:49:33.892821 | 2020-02-15T21:32:05 | 2020-02-15T21:32:05 | 234,377,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,833 | py | from dbconnection import db
import constants
import commons
def feedback_aggr(userQ):
commons.update_feedback_status(userQ)
for i in range(0, len(userQ)):
rate_chat_total = 0
rate_safe_total = 0
rate_punctual_total = 0
rate_friend_total = 0
rate_comfort_total = 0
... | [
"govindyatnalkar.com"
] | govindyatnalkar.com |
119d98cbfe961151ff8f55209511e83d900e5f00 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/point-mutations/80163ab58f714c95a8b2ee96815a1fcb.py | 1d9ab6a4040ca28d3ccf3327a89a15e4fdbfb616 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 210 | py | class DNA(object):
def __init__(self, strand):
self.strand = strand
def hamming_distance(self, strand):
return len([(x,y) for (x,y) in zip(strand, self.strand) if
x != y])
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
2e1950208c396caa783e2086556d24dc0a74730d | 05ba11e9f178328dbb3c304668ab7ab95172ee62 | /core.py | 753a323e88d542f642802647c0f2ed5676a473f7 | [] | no_license | sawyer-c/CSCE470-project | 833340f3f02a78bac449aeffee4a1dd5c52187bc | 2fac23108904c33294de86f8e4b673550d59c67c | refs/heads/master | 2023-01-14T22:13:22.542117 | 2020-11-18T03:33:12 | 2020-11-18T03:33:12 | 300,930,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | """
VSM is the core query-ranking algorithm for is-that-a-supra
"""
import os
import sys
from collection import Collection
import copy
import json
collect = None
class VSM:
"""
VSM Class
"""
queryWords = []
ds = None
collection_length = 0
Weights = {
"title": 0.8,
"body": 0... | [
"sawyer_cowan818@yahoo.com"
] | sawyer_cowan818@yahoo.com |
8c29c649b3978019eeed3be8f5dc569bdb79d861 | b256c0cb9a14569d06c68bc239271b1567186862 | /bitcoin/contrib/devtools/update-translations.py | b70122e267639eeff26e90e58cd8d3c783a9c5a3 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | drive-by-developer/Hello | 997c2554b3f57ea18438b4693e53ef25d54ed8a3 | a624b159aa5fba88b1fe943cb4c49a27b4ad79fc | refs/heads/master | 2020-06-02T18:18:22.695262 | 2019-06-23T22:09:54 | 2019-06-23T22:09:54 | 191,262,746 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,461 | py | #!/usr/bin/env python
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Run this script from the root of the repository to update all translations from
transifex.
It will do th... | [
"sokane@bowmain.com"
] | sokane@bowmain.com |
bf4d638465250a538af5ac031e32f9596dbd63e1 | 4b773103a5000a0a980739dd65426878c90dc098 | /core/models.py | 9e45dbcac258c6b24c9a9cf4ee079215ea16be1f | [] | no_license | gpchelkin/grading_system | 6ef693a89700fb86ce9567e33f697fb529c34297 | e34f85fd1d9ac6bad892222d68516bbab5d7cf23 | refs/heads/master | 2020-06-15T07:10:27.193190 | 2016-12-20T14:12:32 | 2016-12-20T14:12:32 | 75,315,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | # coding=utf-8
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import AbstractUser
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from curriculum.models import ClassesType
SEMESTER_CHOICES = (
('1', '1'),
('2', '2... | [
"a.s.maratkanov@gmail.com"
] | a.s.maratkanov@gmail.com |
9fc7c0fb661c838d8ed43c5899f833e89753914b | 032c8143b7a7e1d859164aacc81a98a39a2dafbb | /cloudKanal/web/migrations/0011_auto__chg_field_usercredentials_token_kanal__chg_field_usercredentials.py | 7c6cdff257ad7ccff448e331f5b99ea3397c80c2 | [] | no_license | dethos/cloudKanal | 0b6b4d505657f37839ab43e177c5ef851d105353 | 0c1484f8e9e46900433d4a9c3a739e288992d629 | refs/heads/master | 2020-05-20T11:52:26.162914 | 2014-04-13T00:30:29 | 2014-04-13T00:30:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,947 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'UserCredentials.token_kanal'
db.alter_column('web_usercredentials', 'token_kanal', self.g... | [
"dethos@worknix.(none)"
] | dethos@worknix.(none) |
7f03e6648a2276ac0563039f20ed29c3515d2021 | c94f888541c0c430331110818ed7f3d6b27b788a | /ak_320bc483f2434f39a3af9ec9f04d3cc0/python/antchain_sdk_ak_320bc483f2434f39a3af9ec9f04d3cc0/client.py | 924c4fe29cce941b83d6292b00ebd148f377ec46 | [
"Apache-2.0",
"MIT"
] | permissive | alipay/antchain-openapi-prod-sdk | 48534eb78878bd708a0c05f2fe280ba9c41d09ad | 5269b1f55f1fc19cf0584dc3ceea821d3f8f8632 | refs/heads/master | 2023-09-03T07:12:04.166131 | 2023-09-01T08:56:15 | 2023-09-01T08:56:15 | 275,521,177 | 9 | 10 | MIT | 2021-03-25T02:35:20 | 2020-06-28T06:22:14 | PHP | UTF-8 | Python | false | false | 23,502 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
import time
from Tea.exceptions import TeaException, UnretryableException
from Tea.request import TeaRequest
from Tea.core import TeaCore
from antchain_alipay_util.antchain_utils import AntchainUtils
from typing import Dict
from antchain_sd... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
6619ecbf5ce70002cdfdedb21633647ee067064e | 3d8aae8aa43e0fbd8a8cffc4fa2cd67419059d66 | /module_PyQt/xtest/test_echo_array.py | 33ca00c7a33595dfb60b15d778273c5fa491ec50 | [] | no_license | onitonitonito/k_mooc_reboot | b8273b7e9fa3fc5958bca57c39f2f3a9108964f1 | 68c8c6a94adc99005fb0fc8c38c416f902d37888 | refs/heads/main | 2021-07-21T22:32:26.080330 | 2021-07-04T02:22:08 | 2021-07-04T02:22:08 | 109,581,972 | 0 | 0 | null | 2020-05-05T22:28:26 | 2017-11-05T13:30:03 | Python | UTF-8 | Python | false | false | 945 | py | """
# how to stack echo file
"""
print(__doc__)
import random
import _add_syspath_root
from assets.config import dir_statics
from string import ascii_letters
SYMBOLS = [sym for sym in "!@#$%^&*()_-+=,.?/|;:{}~{}" + ascii_letters]
RANDOM_START = (0, 39)
RANDOM_END = (40, 78)
LINES = 50
REPEAT = 10
FILE_NAME = dir_st... | [
"nitt0x0@gmail.com"
] | nitt0x0@gmail.com |
7ab36b46df22d0fe28279e097014d6025494b1ec | fbf54c792a24d2448a63e8ce0882551554f3df2a | /venv/bin/decrypto | fb0bdfe363d374dfd440f83553c9ecabdea069ad | [] | no_license | hishivem/SB | c29a31fb5d000d45777f10439e5db45e2f96b243 | b0ddd4aa03a2cf2dc23590edf1abca49b04bf3ce | refs/heads/master | 2021-07-06T00:22:24.852511 | 2017-09-29T06:49:26 | 2017-09-29T06:49:26 | 105,238,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/Users/shivamtiwari/Desktop/projects/web-projects/SB/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from crypto.decryptoapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"shivam@bigdrop.io"
] | shivam@bigdrop.io | |
841d0623753187762ebd5e0a2f3cad979312f16f | 992816021cb79580e9c739ca2650fe9bc83829bd | /medapp/currency/models.py | 30c3910572447b113b2edda7e7c960c705ad820d | [] | no_license | etiennekruger/medapp-api | 096de56dc523425981b48c6d80930bb3df799639 | af9232f548db28e6716c0a14e38b44dcb9b57690 | refs/heads/master | 2020-04-18T22:58:35.859694 | 2012-07-16T06:17:17 | 2012-07-16T06:17:17 | 5,150,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from django.db import models
class Currency(models.Model):
name = models.CharField(max_length=255)
rate = models.FloatField()
updated = models.DateTimeField(auto_now=True)
class Meta:
ordering = ['-updated']
verbose_name_plural = 'Currency'
def __unicode__(self):
return '... | [
"makhonin@steelkiwi.com"
] | makhonin@steelkiwi.com |
55ae7aff38de7e3610ef93f74dc78f97b36d711b | a32c72919eb833a782bd51f561f35f292b72ac4c | /supertool/src/tests/test_for_funtion_file_finder.py | bea96a5540652105f91c22671b4dfc393fe95d3e | [] | no_license | Goopard/Study-2 | d1d3a82d3859a4a0ce1d977250ce47f9ab3cc853 | 023307a9b7f7f8dbb1589e222e794e128f1f365b | refs/heads/master | 2021-04-12T11:48:26.292012 | 2018-06-29T08:37:43 | 2018-06-29T08:37:43 | 126,812,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | """
This is a unittest test suite for the function files_finder in the module similar_files_finder.
"""
import unittest
import os
from supertool.similar_files_finder import files_finder
PATH = os.path.abspath(os.path.dirname(__file__))
class PositiveTests(unittest.TestCase):
"""
This test case contains the... | [
"nick.amirkhanov@gmail.com"
] | nick.amirkhanov@gmail.com |
7d8601eda121d7c6e3d5a5e6b114be4e588a9fe4 | 2d718123228bb5ee314dd865af2e26255afc34ce | /building_user.py | 30ccba71654de63092717030a36d437d0f150409 | [] | no_license | Appleriot/Appleriot | ee3ab34b84d6eab73a168dc913456827f098493f | c4a609aa09ac39b70c6a8d1871f171c73a4f8f79 | refs/heads/main | 2023-04-02T16:34:29.648857 | 2021-04-01T03:15:33 | 2021-04-01T03:15:33 | 349,128,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | def build_user(first, last, **user_info):
"""Making a dictoary for everyting we know about the user"""
user_info['first_name'] = first
user_info['last_name'] = last
return user_info
user_profile = build_user('jeff', 'steven',
location = 'New York',
... | [
"noreply@github.com"
] | noreply@github.com |
0fd11a4dfafdc5db0041929e7300c6f3c2bac9da | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /oepiudBYC7PT7TXAM_12.py | b4db6ac9bfd7b1baa70fc45eadc33d11817f752d | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py |
def parse_roman_numeral(num):
d = {'M':1000,'D':500,'C':100,'L':50,'X':10,'V':5,'I':1}
return sum(d[num[i]] if (i+1 == len(num) or d[num[i]]>=d[num[i+1]]) else -d[num[i]] for i in range(len(num)))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c4ea0a8154024f7e95ffa9605300406c7e7de34f | e1b8fb9a5500516f28d3d7e9a5f259c49ef35f14 | /top/api/rest/UserGetRequest.py | b3bd7048fb45379401d4afc382aa2472248e42f6 | [] | no_license | htom78/taobao_comet_py | 9224dbca1a413a54bcc5569873e4c7a9fc9ba059 | ad8b2e983a14d3ab7665244449f79dd72f390815 | refs/heads/master | 2020-05-17T10:47:28.369191 | 2013-08-27T08:50:59 | 2013-08-27T08:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | '''
Created by auto_sdk on 2013-06-16 16:36:02
'''
from top.api.base import RestApi
class UserGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.fields = None
self.nick = None
def getapiname(self):
return 'taobao.user.get'
| [
"tomhu@ekupeng.com"
] | tomhu@ekupeng.com |
42707950a70d07db29f7eef43d2b80c2f33b1dd0 | d511add59498ec6b99e4bfc9220d7bf4d1d8d2c0 | /speech_emotion_recognition/__init__.py | e5be3980824276f85cf77330a585ceb2d6c86cf1 | [
"MIT"
] | permissive | lalitpagaria/speech-emotion-recognition | 16e42a2941fa8b81f2603c9580b9c8bd2fd415a7 | ae317f8ce12ea85216d073d75ef9112aa7085af0 | refs/heads/main | 2023-05-27T18:20:29.960173 | 2021-06-09T18:36:17 | 2021-06-09T18:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | # -*- coding: utf-8 -*-
"""Top-level package for speech_emotion_recognition."""
__author__ = """Lorena Ciutacu"""
__email__ = 'lorena.ciutacu@gmail.com'
__version__ = '0.1.0'
| [
"lorena.ciutacu@gmail.com"
] | lorena.ciutacu@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.