repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
noname2048/ao-arduino-iot | 635,655,170,480 | e0219d64a7b62a7ae0286ed28d41c2c97f2a2016 | 7bed0f643bbb1d0511daea3aafcf7597ecc5282b | /src/local_db/schemas.py | cd9e8a204b264bdcc8a487027de94e8740c2bb04 | [] | no_license | https://github.com/noname2048/ao-arduino-iot | 87a0386462f052ea4536536e102ec6958512c994 | 5e92a0ecd228a6fc3a94842c7deea1433bda5bca | refs/heads/main | 2023-07-13T08:22:22.380136 | 2021-08-18T11:34:14 | 2021-08-18T11:34:14 | 393,054,869 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from typing import List, Optional
from pydantic import BaseModel
import datetime
class SensorValueBase(BaseModel):
device_id: int
time: datetime.datetime
temperature: float
humidity: float
class SensorValueCreate(SensorValueBase):
pass
class SensorValue(SensorValueBase):
id: int
clas... | UTF-8 | Python | false | false | 632 | py | 25 | schemas.py | 19 | 0.719937 | 0.719937 | 0 | 39 | 15.205128 | 43 |
ZhouYue321/machine_learning_AndrewNg | 8,864,812,514,778 | 50c3541f1f68c6f6602f69b9eda1d71717c1e314 | 7cef3483694d86be62f2fbc03d72d12798900a81 | /EX7_K_mean_and_principal_component/pca_project_data.py | e012da91b90bb23c225e6ba0718c000f7f550ae1 | [] | no_license | https://github.com/ZhouYue321/machine_learning_AndrewNg | 57c19498f1bd64a574f808089146a1884be2f922 | 3f59414ffb20d2a04ff8b7b1d757686b0892f742 | refs/heads/master | 2022-01-11T20:11:43.406077 | 2019-05-01T08:27:47 | 2019-05-01T08:27:47 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python3
# -*- coding:utf-8 -*-
def project_data(x, u, k):
Z = x @ u[:, :k]
return Z
| UTF-8 | Python | false | false | 105 | py | 59 | pca_project_data.py | 58 | 0.485714 | 0.466667 | 0 | 7 | 14 | 26 |
kirill-kundik/CinemaChallengeBackend | 15,401,752,747,131 | f7242ad77f64a5012e45928ec779375605f18b9d | ff896734043212b2da6f69471435a2dcda31612e | /migrations/versions/6fa53ebdac2e_.py | 5e1e3961f818192e2dfd1a4b661ba9fcb910aae0 | [
"MIT"
] | permissive | https://github.com/kirill-kundik/CinemaChallengeBackend | 2d77ff2776a1ad9d109738cddbb9ecebcfaebc54 | aea4ac801a9a5c907f36f07b67df162b4bd85044 | refs/heads/master | 2023-01-09T23:08:04.630520 | 2020-11-21T08:42:01 | 2020-11-21T08:42:01 | 314,540,042 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """added obtained model for achievements
Revision ID: 6fa53ebdac2e
Revises: 249eca898a31
Create Date: 2020-11-20 12:51:18.146518
"""
# revision identifiers, used by Alembic.
revision = '6fa53ebdac2e'
down_revision = '249eca898a31'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands au... | UTF-8 | Python | false | false | 952 | py | 43 | 6fa53ebdac2e_.py | 40 | 0.67542 | 0.629202 | 0 | 33 | 27.848485 | 70 |
Terry1504/Django-Project | 12,094,627,908,066 | 3503483ae2bc65433505c9f6b71e91250f8976c6 | 346d8b9634d663fbf73126452d65bc3919d2dbb6 | /djangoSite/backend/migrations/0038_auto_20210316_1553.py | e48cdcac1381d94eb70e4e52a55da746ddb2781d | [] | no_license | https://github.com/Terry1504/Django-Project | cfd9fca4797aaad0eeaebc653d0f8900b6daee69 | 362cf13cdf13cdd882772d512b9a58a00b089920 | refs/heads/main | 2023-04-12T05:29:28.038490 | 2021-04-28T15:07:00 | 2021-04-28T15:07:00 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.1.4 on 2021-03-16 07:53
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('backend', '0037_auto_20210313_2322'),
]
operations = [
migrations.CreateModel(
name='UserOperator',... | UTF-8 | Python | false | false | 1,148 | py | 174 | 0038_auto_20210316_1553.py | 83 | 0.583624 | 0.547038 | 0 | 31 | 36.032258 | 90 |
nigelsmall/py2neo | 19,593,640,837,489 | c4e3d391cd76463f0fa7759ac485a22a4b319611 | e8f6c339b4b97415406d238a78575c7b9b612a58 | /demo/moviegraph/server.py | 1d1a3adda4b1397e35de8f9d77bc3cb16b647ff2 | [
"Apache-2.0"
] | permissive | https://github.com/nigelsmall/py2neo | a6963dd665a31aff33d6fab301053aa7a72ac98a | 422287bcb8ba4706ea5637c3178b4a75bca23579 | refs/heads/v3 | 2021-04-12T05:20:19.967005 | 2016-12-15T23:24:20 | 2016-12-15T23:24:20 | 1,990,631 | 349 | 75 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from bottle import get, post, redirect, request, run, static_file, template, TEMPLATE_PATH
from calendar import month_name
from datetime import date
from os import getenv
from os.path import dirname, join as path_join
from py2neo import Graph, watch
from demo.moviegrap... | UTF-8 | Python | false | false | 2,334 | py | 95 | server.py | 73 | 0.655527 | 0.651671 | 0 | 90 | 24.933333 | 90 |
Eslamhathout/restuarant_reservation_api | 16,681,652,979,262 | 9517df60a90f8d459df084aa7c8bb56fb4bdfdd7 | 396d51798e80acf9b861ffb9baedd54fdb3d56ef | /app/reservation/permissions.py | d532a12ae39a53b7b5ef405166bb35d7cb4fed9f | [
"MIT"
] | permissive | https://github.com/Eslamhathout/restuarant_reservation_api | fc118f648cceeaf95a8340356ba651080c9df1d5 | 67292e95eed13b5bee423a443180230b9de4c036 | refs/heads/main | 2023-07-24T19:04:12.332675 | 2021-09-07T23:03:50 | 2021-09-07T23:03:50 | 402,718,599 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from rest_framework import permissions
class IsAdmin(permissions.BasePermission):
"""Check if user an admin"""
message = 'This action can only be made by admin users.'
def has_permission(self, request, view):
return request.user.role == 'Admin'
| UTF-8 | Python | false | false | 268 | py | 17 | permissions.py | 15 | 0.701493 | 0.701493 | 0 | 9 | 28.777778 | 60 |
techandsociety/techandsocietycorpus | 15,710,990,392,464 | 1fbcaf42cc81384852a39d252a2abbda296e4b23 | 544f5b8f6d65ddb49eab9a14c69c5f54097a556a | /db/reset.py | ad024ce0f619ffce970dd1f35df7d2e6f770cb34 | [] | no_license | https://github.com/techandsociety/techandsocietycorpus | e1ebe76bf65bf55aaa739733bb08fb346ed9d803 | ecaf96978275f85abdfdca4ca1feaed445dd4771 | refs/heads/master | 2020-06-29T13:08:13.639244 | 2019-08-28T21:13:42 | 2019-08-28T21:13:42 | 200,543,652 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from db.objects import Recommendation
from sqlalchemy import Column, Integer
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
import sqlalchemy
import sqlalchemy.types
url = 'postgresql://tech:tech@127.0.0.1/techwatch'
engine = create... | UTF-8 | Python | false | false | 508 | py | 65 | reset.py | 49 | 0.818898 | 0.807087 | 0 | 19 | 25.736842 | 55 |
jennifertakagi/quarentena-dados-python | 6,133,213,341,003 | 03673f351a11fdaf79211a419b367fd8c856d79a | cc7c9438a91a2c315ac2c17c968a82d42cdc2fa8 | /movie_lens_dataset/quarentenadados_aula01e02_jennifer.py | be47600834fe045aa5bec4fdf73ada5509f73b87 | [
"MIT"
] | permissive | https://github.com/jennifertakagi/quarentena-dados-python | ad5259d3cdc07c4a817e95ec5bcb58891c99f91c | d5e32a2c2066ad6a58d628d59a852404c5e1e1f0 | refs/heads/master | 2023-04-17T07:24:30.398752 | 2021-04-30T15:54:56 | 2021-04-30T15:54:56 | 258,198,708 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""QuarentenaDados - aula02 - Jennifer
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1t7zyaWjxxsoInx2Br79qk0HdiNkQFNgE
#Aula 01
"""
import pandas as pd
filmes = pd.read_csv("https://raw.githubusercontent.com/alura-cursos/int... | UTF-8 | Python | false | false | 6,833 | py | 4 | quarentenadados_aula01e02_jennifer.py | 3 | 0.722723 | 0.699099 | 0 | 209 | 31.406699 | 150 |
regzhuce/sdbootstrap | 18,056,042,517,330 | 3bc45d8643001dc08e1855133d011a4565da8f41 | 49f59a85199c4df6f934f2b1b3fb145afa106d47 | /sdbootstrap/bootstrap/outer.py | 6948557b405ef5e75769e1572bcb9e70cf5898e0 | [] | no_license | https://github.com/regzhuce/sdbootstrap | 419737bc3c75cd58313d05865abf1acf6a9e59c4 | d24408f3a47695645d5e36343082b983d37af4df | refs/heads/master | 2023-04-12T22:53:43.618317 | 2017-06-16T16:18:33 | 2017-06-16T16:18:33 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from sdbootstrap.bootstrap import Bootstrap
from sdbootstrap.config import Config
import sdbootstrap.updater
import numpy as np
class OuterBootstrap(Bootstrap):
def __init__(self):
pass
def update_bootstrap(self,
theta_boot,
w_boot,
... | UTF-8 | Python | false | false | 1,430 | py | 32 | outer.py | 25 | 0.486713 | 0.48042 | 0 | 42 | 33.047619 | 90 |
Adil-Iqbal/Coding | 18,253,611,024,975 | 7df1881b6fb9e4d6e2f4df82b574714383591142 | 7563fec2847dab97f11c3d11c56ae3dd81ad037f | /Ethoslab Fansite/Scripts/populate_episode_json_data.py | 8bfd1fd328d821f000984aad7e5147ad2f7beee1 | [] | no_license | https://github.com/Adil-Iqbal/Coding | 0120e48145ccf05175150cf6473226f7be04ddad | c32e2451609de4c32d68f428474253d1f396d776 | refs/heads/master | 2018-11-30T08:04:00.247898 | 2018-09-11T15:32:26 | 2018-09-11T15:32:26 | 119,769,550 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import json
from pprint import pprint
import traceback
"""This script is used to populate a JSON file with formatted Episode data."""
def get_episode_num(string):
"""Returns the episode number as an integer."""
for i, char in enumerate(string):
if char == ":":
... | UTF-8 | Python | false | false | 4,306 | py | 48 | populate_episode_json_data.py | 26 | 0.480492 | 0.470274 | 0 | 115 | 35.46087 | 126 |
leeshlay/IoT_Parking | 3,917,010,178,046 | 24f9843bd90619e836f8183beeecd75a228c35a6 | 2b82623c8dc3877c4f9a414a040257aeb3e8ca04 | /fields/Field1/home/lib/GPIO_Intel.py | 4c104ff480dd5336e85376333a192351306ee2bc | [] | no_license | https://github.com/leeshlay/IoT_Parking | d5ce46d3233405202f17229b69fa3faf1ccc11f5 | 40c2aa814b1913eaea28cbd42dabc9b6331ef933 | refs/heads/master | 2021-01-21T13:48:50.170226 | 2016-04-27T20:01:26 | 2016-04-27T20:01:26 | 55,305,344 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
import time, sys, os
IOPins = {
"IO2": 32,
"IO3": 18,
"IO4": 28,
"IO5": 17,
"IO6": 24,
"IO7": 27,
"IO8": 26,
"IO9": 19,
"IO10": 16,
"IO11": 25,
"IO12": 38,
"IO13": 39,
"A0": 37,
"A1": 36,
"A2": 23,
"A3": 22,
"A4": 29,
"A5": 29
}
PinsEnabled = {
"IO2": False,
"IO3": False... | UTF-8 | Python | false | false | 2,348 | py | 10 | GPIO_Intel.py | 5 | 0.594974 | 0.553663 | 0 | 113 | 19.752212 | 95 |
PrimeTime416/PythonPractice | 1,486,058,691,147 | e26d346f0fc0d9b041500ff9da98bb4daaca4ef8 | 2433bf64424a6cf55d7ab46b050686eb7e7a0351 | /random1.py | d5d7eed6564ff983edad050f6448b8ff05aa541f | [] | no_license | https://github.com/PrimeTime416/PythonPractice | 8aebfb8e42f996fb5fdb799b61d776b19818b1e1 | e48d8bf6e00e3c3cfc266061701e2f187dff78f7 | refs/heads/master | 2021-09-08T00:20:18.904001 | 2018-03-04T03:56:32 | 2018-03-04T03:56:32 | 115,659,165 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/user/bin/env python3
# Atalyah's program
import random
def main():
print("Guess a number between 1 and 10")
randomNumber = random.randint(1, 10)
# print(randomNumber)
while True:
userGuess = int(input("your Guess: "))
# userGuess = input("your Guess: ")
print(userGuess)
... | UTF-8 | Python | false | false | 505 | py | 10 | random1.py | 9 | 0.586139 | 0.562376 | 0 | 25 | 19.2 | 46 |
couragesuper/couragesuper-ds | 2,164,663,518,126 | 9698561eafbef2633b5e437cd8e021c52eced122 | a0c3b37c73b3437a831229e4e884ba7a5e0e9b9e | /JLRSupport/MiniCorvus/JLR_UDS.py | bd8f7bd83318ad2c2353ce6817c7a4ca0451f7e8 | [] | no_license | https://github.com/couragesuper/couragesuper-ds | 12f1e19f57b0c0ab5b3b6df0dadf2a1b78d2bf94 | 26a79de2eb2ece47a01c5e698b27c582e29b3d63 | refs/heads/master | 2023-01-04T01:22:30.956934 | 2023-01-02T13:36:20 | 2023-01-02T13:36:20 | 143,246,282 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # for XML
from xml.etree import ElementTree as ET
# socket
import socket
import threading
import time
# for timestamp
from datetime import datetime
# Process List
# 1. UDP broadcasting with VEH message (OK)
# 2. UDP broadcasting with Routine message (OK)
# 3. UDP Reading DID is failed ( error o... | UTF-8 | Python | false | false | 13,705 | py | 344 | JLR_UDS.py | 134 | 0.530828 | 0.516819 | 0.00394 | 357 | 37.37535 | 130 |
fym0121/zhaopin | 11,209,864,686,420 | 0011373140d85ba60674994b3b213c5f959951b6 | 2ff6642c19e1bfd7f5edc76720e9603b22c1a7e4 | /jihuo.py | c1fb87c72b6b113ddc47e46e5fd04d8515504f5e | [] | no_license | https://github.com/fym0121/zhaopin | 0eb21c3fa3f7f2aac55c4016e7a48c42b7bce895 | 5a757e816e2a3ab98d12f3fea5ad39c9af7111e3 | refs/heads/master | 2018-09-10T04:24:10.894613 | 2018-06-13T08:30:07 | 2018-06-13T08:30:07 | 130,575,734 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import wx
import hashlib
class AuthDialog(wx.Dialog):
def __init__(
self, parent, id=-1, title='招聘激活', size=wx.DefaultSize, pos=wx.DefaultPosition,
style=wx.DEFAULT_DIALOG_STYLE, name='Authentication'
):
wx.Dialog.__init__(self)
self.Create(parent, id, title, pos, siz... | UTF-8 | Python | false | false | 1,864 | py | 14 | jihuo.py | 9 | 0.578664 | 0.561961 | 0 | 61 | 29.442623 | 91 |
hyuhyu2001/Lesson1_Testing | 420,906,796,887 | 1bb6ce448a6c68e066f307c7a4c3622714576f91 | ce71e7e9d7efabd24d9dd1ee67faf098317900f0 | /src/dataList/Singly_linked_list.py | 0a4cbe6ab982cc7cb8e0a14f0671879d7e5e3eb1 | [] | no_license | https://github.com/hyuhyu2001/Lesson1_Testing | 73a2b389201656f5d60e4e81f087e1cef682fe76 | b1fd6850d880886af9d57bdbcc80b9190a05e295 | refs/heads/master | 2021-01-10T10:12:44.397598 | 2017-09-25T06:39:47 | 2017-09-25T06:39:47 | 54,043,016 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/user/bin/env python
#encoding:utf-8
'''
现有一个单向链表dataList,链表的每个节点dataNode都有个不固定大小的buf来存储字符串数据。
比如,String为“123456789abcdefg”,dataList为:[12]->[34567]->[8]->[9ab]->[cdefg]。
要求实现一个查找算法,给出链表dataList的对象实例,查找某个子字符串,返回dataNode的结点及字符串首字符在该结点中的索引位置
eg:在如上dataList查找“bcd”,返回[9ab]和2(假设以0为起始下标)
String = '123456789abc... | UTF-8 | Python | false | false | 2,591 | py | 28 | Singly_linked_list.py | 27 | 0.541833 | 0.518814 | 0 | 92 | 22.576087 | 74 |
jef771/competitive_programming_practice | 5,007,931,876,238 | 570d978a1f17d6e45e3a0b643178127a11e210e3 | a5349d4fe26ff631e9804e05692a466b5db77929 | /code_forces/1328A/a.py | b0b4a965b47c7af71477a8e416614c0338cfc14a | [] | no_license | https://github.com/jef771/competitive_programming_practice | 76c7e553c97c80309a4a279ac4b651f1c70d0500 | 65a0d41350fe535c5d20c51d7c1b452c58483530 | refs/heads/main | 2023-04-20T20:38:52.400418 | 2021-05-06T00:40:45 | 2021-05-06T00:40:45 | 290,401,748 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
def get_div(a, b):
if a%b == 0:
return 0
else:
return abs(a%b - b)
def main():
n = int(sys.stdin.readline())
for i in range(n):
a, b = map(int, sys.stdin.readline().split())
sys.stdout.write(f'{get_div(a, b)}\n')
if __name__ == '__main__':
main() | UTF-8 | Python | false | false | 315 | py | 200 | a.py | 154 | 0.488889 | 0.48254 | 0 | 19 | 15.631579 | 53 |
testasham/cnv2vcf | 16,466,904,653,831 | 0bb08b3c238e1d1645d229d52543bc1b15e56587 | 674cdad2bfc9829d7db0d151d118f79bdb260d9b | /exomeDepth/exomedepth_to_vcf.py | 877143dce8ab9dc774609ad612b1c3ad71828e2c | [] | no_license | https://github.com/testasham/cnv2vcf | bbb75e520fc31eaee85cc90328c5013474520866 | 55ef4c8939a6d5ec484b720bb4b03257200d5fc4 | refs/heads/master | 2023-06-27T08:52:55.541792 | 2020-06-07T11:51:38 | 2020-06-07T11:51:38 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import argparse
import csv
import sys
from pysam import FastaFile
FORMAT = 'DP:BF:RR'
INFO_INDEX = 7
CNV_TYPE_TO_SHORT = {
'deletion': 'DEL',
'duplication': 'DUP'
}
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('-i', '--input-path', dest='input_path', required=True, help='... | UTF-8 | Python | false | false | 4,070 | py | 5 | exomedepth_to_vcf.py | 2 | 0.624079 | 0.62113 | 0 | 121 | 32.636364 | 112 |
inowas/data_portal | 15,444,702,413,256 | 063d6be8d95715db417658536cac547acb494501 | e73db10a4930859cf3de1147080fb82e2d392328 | /src/tools/api_urls.py | 3dc0f48198d76a22d2746f4883dafa05e1d1e96b | [] | no_license | https://github.com/inowas/data_portal | 6befd906301c941ff7c4f449e239cee41357ac4d | 81453330a0e1fb2d2d7230e774b4b5c61cfbd209 | refs/heads/master | 2021-01-13T03:02:47.362173 | 2018-04-19T08:27:32 | 2018-04-19T08:27:32 | 77,037,011 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import url, include
from rest_framework.urlpatterns import format_suffix_patterns
from tools import api_views
urlpatterns = [
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^weather-generator-v-1/$', api_views.WeatherGeneratorView.as_view(), name='w... | UTF-8 | Python | false | false | 392 | py | 75 | api_urls.py | 27 | 0.757653 | 0.755102 | 0 | 11 | 34.727273 | 105 |
Mill6159/PISA_Server | 13,700,945,721,188 | e375804860eb139a8b8084a38ee77d02796856e7 | 4347901c0e0c54f66a1a89e58f18e5570eb848e0 | /Py_files/Pisa_Parser.py | 5185c7407e43225866849f538d50a15c5a048e6f | [] | no_license | https://github.com/Mill6159/PISA_Server | ee3b44506f6e25e2fc0ae10057add080e6b820c5 | 31714c319d22be2e56d2dfe1ffdccee6c823a3c7 | refs/heads/main | 2022-12-30T20:00:07.993960 | 2020-10-15T13:46:28 | 2020-10-15T13:46:28 | 304,076,415 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Can we parse the interface output?
import numpy as np
import io
filename='PISA_test.txt'
# data=np.loadtxt('PISA_test.txt',
# dtype={'names': ('1', '2','3','4','5','6','7','8','9','10','11','12'), 'formats': (str,np.float,np.float,np.float,np.float,np.float,np.float,np.float,np.float,np.float,np.float,np.float)}... | UTF-8 | Python | false | false | 1,140 | py | 6 | Pisa_Parser.py | 4 | 0.564035 | 0.522807 | 0 | 61 | 17.639344 | 202 |
aeberspaecher/PythonForScientists | 231,928,273,471 | 586af86eacb666c5519ae593572bc5938fe57cfa | c80c7f325ff37aa77f1a6e6a5a00f374424b7347 | /Code/HelloWorld.py | 5325624199b27fa06797c50633fa304f8611d639 | [] | no_license | https://github.com/aeberspaecher/PythonForScientists | 95cbba1f8ad27ca76bddde0cdc0c61e9ac45d614 | 85a92a44029c17a9ff75c70c3330e721bcc8cb8a | refs/heads/master | 2020-06-02T04:51:09.942333 | 2014-01-26T19:31:32 | 2014-01-26T19:31:32 | 2,454,269 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
from math import sin, pi
def sincSquare(x):
"""Return sinc(x)^2.
"""
if(x <> 0.0):
return (sin(pi*x)/(pi*x))**2
else:
return 1.0
if(__name__ == '__main__'):
x = sys.argv[1]
y = sincSquare(float(x))
print("sinc(%s)^2 = %s"%(x, y))
| UTF-8 | Python | false | false | 289 | py | 41 | HelloWorld.py | 20 | 0.474048 | 0.446367 | 0 | 17 | 16 | 36 |
ArcoSeal/eve-indy-tools | 644,245,096,675 | 5443e0ddd443d60245e835ad6a39fb609a5532c3 | e0c90a52a8e3bf036e19b7aaf06275fe51ef5390 | /marketstuff.py | 596782cfc8c46e98c469354dc7a1dbf5872dae74 | [] | no_license | https://github.com/ArcoSeal/eve-indy-tools | d3336f7b6f60bbc17f42f8a8918d829a01db7d5c | 0e1fc6ae027b4bd33bed7cf78feb1920851b51b9 | refs/heads/master | 2020-04-24T08:46:40.467439 | 2019-02-21T09:27:55 | 2019-02-21T09:27:55 | 171,841,299 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def initmarketDB():
conn = sqlite3.connect(presets.marketDB)
c = conn.cursor()
c.execute('''DROP TABLE IF EXISTS MarketItems''')
c.execute('''CREATE TABLE MarketItems
(EntryID INTEGER PRIMARY KEY,
ItemID INT,
systemID INT,
... | UTF-8 | Python | false | false | 9,792 | py | 11 | marketstuff.py | 9 | 0.604167 | 0.598141 | 0 | 232 | 41.206897 | 242 |
DanailYordanov/EasyCarUpload | 9,156,870,292,005 | 046d74247a68dc93aaa8481347dc57e1520d0614 | 0bc8be178edbc154aeb026fff6d4bdf4c714dbcc | /project/main/models.py | 57744364a1dadf97d641dab5ff64ed37ca8b9988 | [] | no_license | https://github.com/DanailYordanov/EasyCarUpload | 6b697524fa200f3c3ecfa17978b0df58265ab099 | e50338ac4e7768a0d6926123dc956c7746f2cb55 | refs/heads/master | 2023-09-04T19:40:43.658165 | 2021-11-04T16:25:49 | 2021-11-04T16:25:49 | 386,700,314 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
from django.conf import settings
import django.utils.timezone as timezone
from .scripts.cars_bg import CarsBgClass
TRANSMISSION_TYPE_CHOICES = [
('', 'Избери'),
('Автоматични', 'Автоматични'),
('Ръчни', 'Ръчни')
]
CATEGORY_CHOICES = [
('', 'Избери'),
('Седан', 'Седан'... | UTF-8 | Python | false | false | 5,345 | py | 21 | models.py | 18 | 0.597701 | 0.583699 | 0 | 178 | 25.882022 | 98 |
jcrabtr/Hardwire | 13,013,750,907,553 | 60154c628dfa26758ee96b9e228ffe9350e91221 | 03603bd426cb3d1b2243a7c70fc46cbd9705f30f | /hardwire/server.py | 8aad6bfd3922b9c239abcac0e755053595c98f4a | [
"MIT"
] | permissive | https://github.com/jcrabtr/Hardwire | ef0d7b09694256654e37753eae4dec0f410aec23 | 09fbc4fae96f7b576c26aa27eb2cbcdc799a5b74 | refs/heads/master | 2016-09-06T09:02:58.660144 | 2014-04-01T23:01:22 | 2014-04-01T23:01:22 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
hardwire.server
Copyright (C) 2014 Joseph P. Crabtree
Hardwire._site_init based on wsgi_echo example
https://github.com/tavendo/AutobahnPython/blob/master/examples/twisted/websocket/echo_wsgi/server.py
Copyright (C) 2012-2013 Tavendo GmbH
This module implements the Hardwire Web Interface Server.
"""
... | UTF-8 | Python | false | false | 8,841 | py | 19 | server.py | 10 | 0.595634 | 0.592128 | 0 | 228 | 36.767544 | 100 |
zhengshiguang/nltk | 16,320,875,754,676 | 95ccf9b4a8af5c85fa7ca63662afa3f869fcb3b8 | b4739c7c82ad1018bf844b07de2949899ad1a5fc | /nltk_test.py | 4bac7f691eacee4b62c406e95dabff9dfa8786f4 | [] | no_license | https://github.com/zhengshiguang/nltk | 56f775643d829fdf56c1de0b4b2090f458b486ba | 12cce4c083cb6394bfa34632aa3bddb55fa7135f | refs/heads/master | 2020-03-22T12:33:54.110305 | 2018-07-07T09:12:29 | 2018-07-07T09:12:29 | 140,047,736 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import nltk
from nltk.book import *
print(nltk.__file__)
print(text1) | UTF-8 | Python | false | false | 70 | py | 2 | nltk_test.py | 1 | 0.728571 | 0.714286 | 0 | 5 | 13.2 | 23 |
EvelynGiordano/Alphanumeric-Cipher-Crack | 15,848,429,331,872 | 973f2ad2753098be872303831ca868b0e4803645 | 536ae380b598ec838607cea3d087facc0892ad02 | /hack.py | 89709ce662cd15ba51dc270a84be3d26bf53b405 | [] | no_license | https://github.com/EvelynGiordano/Alphanumeric-Cipher-Crack | efb475316833e85f952d8e2b1213c19a28de8421 | 9bd2678fc728669b0db4cdd78928523aa92243cb | refs/heads/main | 2023-05-11T04:21:39.387568 | 2021-06-03T18:20:33 | 2021-06-03T18:20:33 | 373,602,636 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import Counter
import re
import sys
alphabet = {
"A": None, "B": None,
"C": None, "D": None,
"E": None, "F": None,
"G": None, "H": None,
"I": None, "J": None,
"K": None, "L": None,
"M": None, "N": None,
"O": None, "P": None,
"Q": ... | UTF-8 | Python | false | false | 8,451 | py | 1 | hack.py | 1 | 0.513194 | 0.505502 | 0 | 298 | 27.35906 | 144 |
Aswadhardi/WejapaInternships | 5,549,097,788,566 | e353ea5baa45540d83d5bb95ae9fc4c41ee8a372 | 80a45d385d306e26410ec742023e80850528c1a5 | /Wave3/for_loop_range.py | 12f74b9e5ccb221696be61aae26a29ef6a62ccd8 | [] | no_license | https://github.com/Aswadhardi/WejapaInternships | e87abcac76b35bf8cd49ca0abc51293c53bba6fd | 5dfafa1c58702a77f5ffc993b276c9167858202a | refs/heads/master | 2022-12-04T22:41:38.215442 | 2020-08-24T15:36:39 | 2020-08-24T15:36:39 | 282,212,775 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Write a for loop using range() to print out multiples of 5 up to 30 inclusive
for num in range(5, 31, 5):
print(num)
| UTF-8 | Python | false | false | 124 | py | 17 | for_loop_range.py | 17 | 0.685484 | 0.629032 | 0 | 4 | 30 | 79 |
Raymond-Xue/IR-final-project | 10,720,238,384,062 | f3e5229863402b556580981e5af1fe15ccbc699b | 5e3508395bef4627274d2ab43259e806bc0868c7 | /flaskapp/service/translate_service.py | a89f265badba136b0d3c71e92920efe14e907188 | [] | no_license | https://github.com/Raymond-Xue/IR-final-project | 0a7e4c84e88e54b871d116514a00164f116dd311 | fa41863523f3e9b9e1335d329c37d8d0b68331d1 | refs/heads/master | 2022-07-24T09:28:13.659195 | 2020-05-12T15:41:57 | 2020-05-12T15:41:57 | 264,462,212 | 1 | 0 | null | true | 2020-05-16T15:04:21 | 2020-05-16T15:04:20 | 2020-05-12T15:42:05 | 2020-05-12T15:42:02 | 403,740 | 0 | 0 | 0 | null | false | false | """
This module implements query translation funcitonality.
Author: Junda Li
"""
from googletrans import Translator
import jieba
class TranslateService:
def __init__(self, ser_url='translate.google.com'):
self.translator = Translator(service_urls=[ser_url])
def t... | UTF-8 | Python | false | false | 1,215 | py | 31 | translate_service.py | 16 | 0.590123 | 0.587654 | 0 | 38 | 28.342105 | 78 |
ThibaultHuyet/sensehat-container | 8,967,891,729,175 | e58c216b64f1145f8375d0fb02549a45bfde80f6 | f69b3e99177908cd5c54662377ed348872beb28d | /sensehat.py | 81c41d8dbe53362d88503e03f4910ac014645e4e | [] | no_license | https://github.com/ThibaultHuyet/sensehat-container | e186b935829f9d62367f535399a2be7891d1f839 | 4bba63ae1cea392b6775e036a780264a409ea31e | refs/heads/master | 2020-05-27T21:12:45.498846 | 2017-03-02T14:06:32 | 2017-03-02T14:06:32 | 83,615,028 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask, jsonify
import datetime
from sense_hat import SenseHat
sense = SenseHat()
app = Flask(__name__)
@app.route('/API/temp', methods=['GET'])
def temp():
temp = sense.get_temperature()
temp = round(temp, 1)
now = datetime.datetime.now()
Temp = [
{
'Te... | UTF-8 | Python | false | false | 666 | py | 3 | sensehat.py | 1 | 0.496997 | 0.489489 | 0 | 31 | 20.483871 | 40 |
gugajung/guppe | 11,106,785,468,540 | 13df777373bf6ae3eb97a9df79b4b3d1f3f5e08a | 844c7f8fb8d6bfab912583c71b93695167c59764 | /fixação/Seção07-P1/11-20/Sec07aEx20.py | 13fd2f586966c0c490d80940211c8469bd790b2f | [
"Apache-2.0"
] | permissive | https://github.com/gugajung/guppe | 2be10656cd9aa33be6afb8e86f20df82662bcc59 | a0ee7b85e8687e8fb8243fbb509119a94bc6460f | refs/heads/main | 2023-05-28T08:08:24.963356 | 2021-06-07T16:56:11 | 2021-06-07T16:56:11 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | lista = []
totalValores = 10
listaNova = []
for i in range(totalValores):
numero = -1
while numero < 0 or numero > 50:
numero = int(input(f"Entre com o numero {i + 1} :-> "))
lista.append(numero)
if numero % 2 != 0:
listaNova.append(numero)
print("====================================... | UTF-8 | Python | false | false | 630 | py | 397 | Sec07aEx20.py | 374 | 0.460317 | 0.442857 | 0 | 28 | 21.5 | 64 |
Jeong-Kyu/A_study | 2,388,001,854,935 | 78d35a0bf35475ef6f5f3a05a5cdc13d60242896 | 01932366dd322ec3459db9dd85a2fd8d22a82fcb | /keras/keras37_overfit.py | 85a5e0e98dfd2b0a1bc4c08b299a505259d6193a | [] | no_license | https://github.com/Jeong-Kyu/A_study | 653f5fd695109639badfa9e99fd5643d2e9ff1ac | 6866c88fcc25841ceae2cd278dcb5ad5654c2a69 | refs/heads/master | 2023-06-11T02:44:20.574147 | 2021-07-05T08:59:43 | 2021-07-05T08:59:43 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 과적합 Overfit 방지
# 1. 훈련 데이터 up
# 2. 피쳐 수 down
# 3. regularization
# 4. dropout(딥러닝 해당)
#5? 앙상블? 통상 2~5% 향상이 있다고 하는 구설 | UTF-8 | Python | false | false | 185 | py | 201 | keras37_overfit.py | 199 | 0.621849 | 0.563025 | 0 | 7 | 16.142857 | 30 |
brukhabtu/stitching | 16,097,537,441,554 | ff46d3eb7378e1656f14fa257a28c61954437e2e | 0d282e9b0e841df2b35a7286bb5673631a363ee1 | /stitching/exceptions.py | 7ac6f34def3d171072ca85ff0b89b13b232ed219 | [] | no_license | https://github.com/brukhabtu/stitching | 812bc23ce2ba5b2ce0a94048744713ddae0a4671 | 13855595e5b4b980727e97ef7470857e47af5f3b | refs/heads/master | 2021-01-13T09:08:00.738396 | 2016-07-28T17:31:20 | 2016-07-28T17:31:20 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class InvalidBrowserException(Exception):
def __init__(self, browser_name):
msg = '{} is not supported by the RegressionTestCase class.'.format(
browser_name)
super(InvalidBrowserException, self).__init__(msg)
class AssertScreenshotException(AssertionError):
def __init__(self, dist... | UTF-8 | Python | false | false | 809 | py | 5 | exceptions.py | 4 | 0.665019 | 0.665019 | 0 | 19 | 41.578947 | 80 |
Megha-Komarraju/Data-Science-Salary-Estimator | 5,961,414,635,629 | 048f354fae6ba7ef2c8a028590f6ab9aaf7bfad7 | 9082e7b9f5660b0a94677fd4ab35b177de61a602 | /data_collection.py | c4873b4e450c662624e911a28b289d67f5000f8d | [] | no_license | https://github.com/Megha-Komarraju/Data-Science-Salary-Estimator | 3e5f086237cefc604f675a8f15be3a9fb097b774 | 28c17cf085e6276489df682d2b8624218f3cdceb | refs/heads/master | 2023-02-14T14:40:52.800754 | 2021-01-09T17:05:36 | 2021-01-09T17:05:36 | 327,656,224 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 7 10:33:41 2021
@author: saime
"""
import glassdoor_scraper as gs
import pandas as pd
path="C:/Users/saime/Documents/Kaggle/survey_Project-2020/chromedriver"
df=gs.get_jobs('data scientist',1000, False,path,15)
df | UTF-8 | Python | false | false | 278 | py | 1 | data_collection.py | 1 | 0.679856 | 0.600719 | 0 | 14 | 18 | 71 |
andrewcooke/rxpy | 1,408,749,320,360 | e86345eb0d830efc3e3db9e95c5e8fd22ba07657 | cbd2f187fb60939c49a00f154570f53d4bb19910 | /rxpy/src/rxpy/parser/support.py | 241325bd1e08a2f8fadf0302c89a0ee97e197fee | [] | no_license | https://github.com/andrewcooke/rxpy | 3c4443f3ccba479d936f0e49d7d009a64dfc89b3 | e7f330dc8c5fa49392a1a018ceda6312270e9a93 | refs/heads/master | 2021-01-10T13:46:37.129155 | 2011-06-03T23:29:58 | 2011-06-03T23:29:58 | 52,740,676 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# The contents of this file are subject to the Mozilla Public License
# (MPL) Version 1.1 (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.mozilla.org/MPL/
# ... | UTF-8 | Python | false | false | 12,938 | py | 53 | support.py | 47 | 0.566239 | 0.564384 | 0 | 341 | 36.932551 | 155 |
AceMouty/Python | 15,779,709,893,859 | d088f50d2390dfadf27d0ed8043406d654f28666 | 7b10ee96c21659773d9d90f6105d1517ab4339dd | /2.Variables_and_Strings/variables.py | dbf894a70d20981aabd9a28977202b78afffef5c | [] | no_license | https://github.com/AceMouty/Python | a2a62f2f47da8c3bb8c3cf4371918816ccc89f50 | 3d85e37afdd44d80b70879fe2d11e9c5ca00fbae | refs/heads/master | 2022-07-31T17:55:32.802313 | 2020-05-20T04:07:46 | 2020-05-20T04:07:46 | 264,051,147 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def main():
# variables MUST start with a letter or underscore
# the rest of a varibale name can only have a
# letter, number or underscore
# variables are ways for us to store data that
myFavNumber = 7
fName = "John"
lName = "Doe"
print(myFavNumber)
print(fName + " " + lName)
... | UTF-8 | Python | false | false | 669 | py | 27 | variables.py | 27 | 0.599402 | 0.588939 | 0 | 24 | 26.875 | 72 |
python-monero/monero-python | 5,506,148,098,439 | d60f94aace2094a619424aa8d02c25ed65211934 | 2f26da08004b66e4ff1aa12b41c70ab80890101f | /utils/integraddr.py | 7a047b783a10bd42798f50b2eeea27d125e6ef8b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/python-monero/monero-python | 2c810aafebb63a933d946eab735afbfbf8c6bc80 | b0023953de9f96ad98e75f1b5c45e20867f69c02 | refs/heads/master | 2020-04-22T15:09:39.758569 | 2019-11-27T09:27:27 | 2019-11-27T09:27:27 | 170,468,602 | 2 | 2 | BSD-3-Clause | true | 2019-11-27T09:27:29 | 2019-02-13T08:19:56 | 2019-11-06T12:18:02 | 2019-11-27T09:27:29 | 558 | 2 | 1 | 2 | Python | false | false | #!/usr/bin/python
import sys
from monero.address import address
from monero.numbers import PaymentID
USAGE = "{0} <address> <payment_id>"
try:
addr = address(sys.argv[1])
pid = PaymentID(sys.argv[2])
except IndexError:
print(USAGE.format(*sys.argv), file=sys.stderr)
sys.exit(-1)
print(addr.with_payme... | UTF-8 | Python | false | false | 332 | py | 77 | integraddr.py | 45 | 0.698795 | 0.686747 | 0 | 15 | 21.133333 | 51 |
PacoMP/ProgramPractice_PacoMP | 18,854,906,433,939 | 3a25e7dbff05cc02ca346226164e904aadd51f82 | 1bd922798cf22a4ea20b19ac01faa2a23c9fcce0 | /Python/Verato/p2.py | 8d2cc58f1eab0017f0cd9370eee177caf6e921ce | [] | no_license | https://github.com/PacoMP/ProgramPractice_PacoMP | 085a959e1c78384a79e273b1c655c73d78552f38 | 5502546dee972b61348f016f1571923c9ebe10e7 | refs/heads/master | 2020-04-22T02:27:37.925522 | 2019-05-15T23:20:31 | 2019-05-15T23:20:31 | 170,049,943 | 0 | 0 | null | false | 2019-02-26T14:56:31 | 2019-02-11T01:42:46 | 2019-02-13T17:53:26 | 2019-02-26T14:56:31 | 25 | 0 | 0 | 0 | Python | false | null | import sys
list = []
list = sys.stdin.readline().split(',')
for word in list:
word.replace('\n','')
list.sort(key=len)
for word in list:
if word.len() == word[0].len():
print(word,end = ',')
for word in list:
if word.len() == word[-1].len():
print(word,end = ',')
| UTF-8 | Python | false | false | 296 | py | 33 | p2.py | 25 | 0.543919 | 0.537162 | 0 | 16 | 17.5 | 38 |
python4humanities/book | 12,704,513,305,970 | c68c79af37c5e1ad85a69f557762da87a01ab5c7 | 58c2d41e9493dda441a70cc3b8b79b75df54faf7 | /정리하기 스크립트/1.6 출력창에 출력하기/01.py | 039c8dea94c78ff9c886a2ccf7f071ee8b805641 | [] | no_license | https://github.com/python4humanities/book | 027c736237e6ea54e968574f3f6f5593291f4a37 | ae9c20fa50a7199c2ed5046feae5839d37ea1217 | refs/heads/master | 2022-11-05T16:06:51.129821 | 2020-06-28T15:07:49 | 2020-06-28T15:07:49 | 250,149,625 | 5 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | print(10)
print(20)
print(30)
| UTF-8 | Python | false | false | 30 | py | 127 | 01.py | 125 | 0.7 | 0.5 | 0 | 3 | 9 | 9 |
codl/markov_done_quick | 17,351,667,897,470 | 8fbd5bd4c0763f8eeb1320942bf6f3e72f0f5a55 | ad1aa74302b106090aa5537e3b6ffd973f208124 | /model.py | 74c1d7defd2270f1f36f4626077b0e53c2acfc64 | [] | no_license | https://github.com/codl/markov_done_quick | 1d52d10f76a6ea12df6d8cbe699fd96a9ac028ea | cdb821c25bf7a8d94b2d31692e20a112a21a6ed7 | refs/heads/master | 2022-12-14T03:32:11.031890 | 2019-06-24T08:33:00 | 2019-06-29T00:32:21 | 138,527,743 | 6 | 0 | null | false | 2022-12-08T02:10:01 | 2018-06-25T01:06:33 | 2019-06-29T02:35:27 | 2022-12-08T02:09:59 | 16,424 | 4 | 0 | 3 | Python | false | false | import unicodedata
import pickle
import logging
import random
logger = logging.getLogger(__name__)
class TrigramMarkovChain(object):
def __init__(self):
# trigrams format:
# key is (word_1, word_2)
# value is a dict with key = word_3 and value = frequency
# None in either of these... | UTF-8 | Python | false | false | 3,086 | py | 7 | model.py | 4 | 0.52722 | 0.521387 | 0 | 104 | 28.673077 | 91 |
Psojed/40K-ancient-list | 1,529,008,406,877 | 85540955d0014e41945558b44b1788ed2baf995b | 0470327d1d96464cadc7a04fd5e02e3d1fae3e24 | /parse_enchants.py | a98d9160ae84e6208e8e6f281424b627d5463d19 | [] | no_license | https://github.com/Psojed/40K-ancient-list | 71e73db672681b3db2ded6c0b6dffa3c5c903a23 | 93b80e1c824beed853e5d93612a8453ee65b0dc3 | refs/heads/master | 2023-06-21T02:04:50.841391 | 2021-07-14T18:14:29 | 2021-07-14T18:14:29 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
from enum import Enum
from fsm import FSM
# Exclude psalms, etc.
VALID_QUALITY=['primary','secondary','relic','morality']
class Enchant():
def __init__(self, name):
self.name = name # str
self.desc = None # str
self.desc_repl = None # str
self.slots = [] # [str, ...]
self... | UTF-8 | Python | false | false | 2,772 | py | 8 | parse_enchants.py | 4 | 0.556277 | 0.548341 | 0 | 102 | 26.176471 | 116 |
PaddlePaddle/PaddleTest | 5,291,399,735,558 | f58034d805f100eab6f217b93dec6a19c6228338 | bb150497a05203a718fb3630941231be9e3b6a32 | /models/PaddleDetection/module_test/test_module.py | 2853021236dd63edee4c8f2bb3335c095278e29f | [] | no_license | https://github.com/PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | false | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | 2023-08-22T09:37:52 | 2023-09-13T11:13:34 | 114,862 | 40 | 96 | 12 | Python | false | false | """
test functions for all modules
"""
import os
import sys
import wget
import paddle
class Test(object):
"""
test functions for all modules
"""
def __init__(self, cfg):
paddle.seed(33)
self.net = cfg.net
self.data = cfg.data
self.label = cfg.label
self.module_... | UTF-8 | Python | false | false | 5,505 | py | 2,348 | test_module.py | 1,564 | 0.541689 | 0.536785 | 0 | 150 | 35.7 | 108 |
csc/csc-agility-python-shell | 15,470,472,202,301 | ae65661e955e99233f8f5b759089f332b0d5332e | f13e2d2d812ca2e7b1dccc784de6c3c074707bd0 | /core/restclient/generator/v3_0/agilitymodel/base/InputVariableList.py | c7fd5f04364d5063f85ee11c5cfba041f35deb63 | [] | no_license | https://github.com/csc/csc-agility-python-shell | 92181ad26835b2924f3ce1a860eb76826595d398 | 3892fa4f9c1de14dbb8abb35d68a6c70ab0d6acc | refs/heads/master | 2020-03-01T10:43:41.390340 | 2016-02-17T22:02:11 | 2016-02-17T22:02:11 | 14,373,625 | 3 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | from AgilityModelBase import AgilityModelBase
class InputVariableListBase(AgilityModelBase):
'''
classdocs
'''
def __init__(self, inputvariable=[]):
AgilityModelBase.__init__(self)
self._attrSpecs = getattr(self, '_attrSpecs', {})
self._attrSpecs.update({'inputVariable': {'maxOc... | UTF-8 | Python | false | false | 471 | py | 598 | InputVariableList.py | 581 | 0.656051 | 0.653928 | 0 | 11 | 41.727273 | 162 |
karthikpappu/pyc_source | 4,114,578,690,058 | 20ad532b41675a3f1b70d8f2e230b019032f1011 | 91fa095f423a3bf47eba7178a355aab3ca22cf7f | /pycfiles/salve-2.4.2-py2.7/file.py | 0790424faaad3650d995903f8558a4028ffc85fd | [] | no_license | https://github.com/karthikpappu/pyc_source | 0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f | 739e7e73180f2c3da5fd25bd1304a3fecfff8d6e | refs/heads/master | 2023-02-04T11:27:19.098827 | 2020-12-27T04:51:17 | 2020-12-27T04:51:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.9 (default, Apr 18 2020, 01:56:04)
# [GCC 8.4.0]
# Embedded file name: build/bdist.linux-armv7l/egg/salve/block/file.py
# Compiled at: 2015-11-06 23:45:35
import os, salve
from salve.action import ActionList, backup, copy, create, m... | UTF-8 | Python | false | false | 4,148 | py | 114,545 | file.py | 111,506 | 0.572565 | 0.561716 | 0 | 109 | 37.06422 | 106 |
malva28/Cat-Jump-3D | 17,085,379,936,966 | a30411f4dbd37ddf97f59b41c355cadb148d8add | dbd3a307e11539780c16c0702e11594abad4e0c2 | /codigo/models/staticViewObjects.py | eff0e33a6925ec63634e4e7830657079fc405b96 | [
"MIT"
] | permissive | https://github.com/malva28/Cat-Jump-3D | 6ceb90ecd2bccf5e7d9d59a6e1fb75b87a644de7 | 1a7270d4a72c27749a223b57438265825da1333f | refs/heads/main | 2023-02-13T08:29:45.889033 | 2021-01-18T03:25:46 | 2021-01-18T03:25:46 | 330,538,340 | 0 | 0 | null | false | 2021-01-18T03:25:47 | 2021-01-18T02:54:14 | 2021-01-18T02:59:53 | 2021-01-18T03:25:47 | 0 | 0 | 0 | 0 | Python | false | false | """
autor: Valentina Garrido
"""
import scene_graph_3D as sg
import easy_shaders as es
import basic_shapes as bs
import transformations as tr
import numpy as np
import basic_shapes_extended as bs_ext
import lighting_shaders as ls
from models.block import Block
import scene_graph_3D as sg
from models.gameCameras impo... | UTF-8 | Python | false | false | 11,726 | py | 26 | staticViewObjects.py | 24 | 0.567627 | 0.550913 | 0 | 333 | 34.207207 | 131 |
HalimaBouzidi/CNN-people-detect | 12,850,542,186,364 | 8120847a8c11b135380befc006bef4d0df698859 | 2104614627b91d62740853d9acf68cb871ca94a8 | /train_person_classification.py | 5105d0541d0d6a3a5a1d4c79eaecf0be7fbbab78 | [] | no_license | https://github.com/HalimaBouzidi/CNN-people-detect | 31aeec53b043f14f2c3262833eff8bef770a49a2 | dcb7e4e4a32ca39f4cb3096d0f011b366cd8e496 | refs/heads/master | 2020-08-08T07:54:37.943847 | 2018-02-13T09:48:42 | 2018-02-13T09:48:42 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # import IN THIS ORDER - otherwise cv2 gets loaded after tensorflow,
# and tensorflow loads an incompatible internal version of libpng
# https://github.com/tensorflow/tensorflow/issues/1924
import cv2
import numpy as np
import tensorflow as tf
from Datasets.Dataset import batcher
from Datasets.tud import load_tud
fro... | UTF-8 | Python | false | false | 2,782 | py | 11 | train_person_classification.py | 9 | 0.659238 | 0.646298 | 0 | 61 | 44.606557 | 163 |
datanooblol/ggwp | 5,712,306,518,341 | ab68136805de69e274db452f5593eb4678198971 | fb8710c45e12c7b7f982eafe13e5acf7d212a2fd | /ggwp/EzUtils/__init__.py | 055d59419ed8122f012c04e14838b8c7a18b0353 | [] | no_license | https://github.com/datanooblol/ggwp | c59cd07be3f5595657450380bb8ed9d522110b4f | 249cbeb2988bfc8b448876fe1b207b35367d8667 | refs/heads/main | 2023-05-04T15:59:36.598932 | 2021-05-26T02:53:29 | 2021-05-26T02:53:29 | 363,434,757 | 1 | 0 | null | false | 2021-05-26T02:53:30 | 2021-05-01T14:49:51 | 2021-05-21T19:00:51 | 2021-05-26T02:53:29 | 104 | 1 | 0 | 0 | Python | false | false | from ggwp.EzUtils.EzUtils import * | UTF-8 | Python | false | false | 34 | py | 26 | __init__.py | 23 | 0.823529 | 0.823529 | 0 | 1 | 34 | 34 |
LeishenKOBE/2020-every-month-plan | 8,718,783,652,440 | cc552fd38d15bcc929723e8358087b652b5ecb80 | 35f40b2e33565ffbabc790aca7d8706d535f84ae | /learn-path/LearningPythonSpider/requests/1.py | ed5b63af5fb318c6a5bc863ad3fdbfeb420c4163 | [
"MIT"
] | permissive | https://github.com/LeishenKOBE/2020-every-month-plan | 1a9b890f85bbd5fcc04d1f12925699989f5ead24 | 3c4ba7e16af6ee5761b34663ad4800e18d350875 | refs/heads/master | 2020-12-03T06:38:05.486935 | 2020-12-02T17:10:08 | 2020-12-02T17:10:08 | 231,230,857 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
# params = {
# 'name':"geekdigging",
# 'age': '18'
# }
# headers = {
# }
# r = requests.get('https://httpbin.org/get',params=params)
# print(r.json())
# r = requests.get("https://www.baidu.com/img/bd_logo1.png?where=super")
# with open('baidu.png','wb') as f:
# f.write(r.content)
imp... | UTF-8 | Python | false | false | 4,270 | py | 202 | 1.py | 120 | 0.787354 | 0.480328 | 0 | 64 | 65.734375 | 911 |
Shan876/info3180-project1 | 4,999,341,962,868 | 3bfa078b30b5b0951b9a174ab9f5d76921c5a6e3 | ca2e32c3296aacc2c819ac018f25a51b0364bd33 | /app/models.py | 54a1608f882646e4cb2f20a3a13da90f34193758 | [] | no_license | https://github.com/Shan876/info3180-project1 | 76e63dd744aef44fca02a1a9b55e9e248a57726d | ae1af1099712eeecd97f7494884c0b71e9a1d5dc | refs/heads/master | 2023-03-29T07:49:36.732329 | 2021-03-24T05:04:27 | 2021-03-24T05:04:27 | 350,935,730 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from . import db
from sqlalchemy import Integer, Enum
import enum
class PropertyEnum(enum.Enum):
apartment = 'apartment'
house = 'house'
class PropertyModel(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(100))
no_bedrooms = db.Column(db.Integer)
descripti... | UTF-8 | Python | false | false | 1,013 | py | 7 | models.py | 4 | 0.661402 | 0.646594 | 0 | 32 | 30.65625 | 118 |
sahahn/ABCD_ML | 12,627,203,885,232 | 9dd3b5fc254cde0dfd40993002526cc5be03f051 | c56dfb37dbbb8ef55321aef5e7b74b091eeaa92b | /ABCD_ML/helpers/ML_Helpers.py | 2518ae07cc40d05fe8274ad0b31a32c849b846e7 | [
"MIT"
] | permissive | https://github.com/sahahn/ABCD_ML | 77c6bd3848b6098ff080b86e4e170d1a0cede590 | f0b6477038e02cb8e63ae27f4ac319da345089ba | refs/heads/master | 2020-06-07T05:51:16.034912 | 2020-05-11T19:09:15 | 2020-05-11T19:09:15 | 192,940,180 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
ML_Helpers.py
====================================
File with various ML helper functions for ABCD_ML.
These are non-class functions that are used in _ML.py and Scoring.py
"""
import numpy as np
import inspect
from .Default_Params import get_base_params, proc_params, show
from copy import deepcopy
import nevergrad a... | UTF-8 | Python | false | false | 21,189 | py | 77 | ML_Helpers.py | 48 | 0.540847 | 0.538629 | 0 | 772 | 26.446891 | 101 |
birdmw/Go-AI | 15,547,781,641,360 | 1f53bffefe41f4dad208f366af3ff53dee6770a6 | 3857e48b2ede13a951fa33312cbf3a5f3232a920 | /board_manager.py | 6e0f0b0fb758e059980988dd7be9c23ccbe3061f | [] | no_license | https://github.com/birdmw/Go-AI | 3fcb264e6cb3d9d8373ab2d69e41107c01192584 | 18823c9b253e47d67884ed9b49c385d46f32355f | refs/heads/master | 2016-09-05T21:00:45.291160 | 2015-10-03T00:13:40 | 2015-10-03T00:13:40 | 42,617,339 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Author: Matthew Bird <birdmw@gmail.com> (main author)
#
#
"""An interactive board game environment for playing Go and playing against the computer"""
### USE: W, A, S, D to manipulate cursor
### USE: C to have the computer play a move (models must be loaded)
### USE: space-bar to play a move
import data_manager
i... | UTF-8 | Python | false | false | 4,839 | py | 5 | board_manager.py | 4 | 0.50279 | 0.489977 | 0.000207 | 174 | 26.810345 | 91 |
Mytsu/Simplex-Python | 9,620,726,770,500 | dc4b980ae67d39e5baea633e9712a0c620ddc1dc | 96a4f105497c3d25d8c6b2f787638d28df2bcf34 | /src/simplex.py | 5c266c8a3821831443da613ca3823f126db75074 | [] | no_license | https://github.com/Mytsu/Simplex-Python | c7924e9a8ddd22ba3f86f2eed206d4157cc77921 | 176c7c20057f45ccb109690ff492068a8427d234 | refs/heads/master | 2020-04-04T19:16:20.166410 | 2018-12-07T12:17:06 | 2018-12-07T12:17:06 | 156,199,139 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from numbers import Number
from typing import List, Tuple, Union
from matrix import Matrix
class Simplex:
N_DIGITS = 5
def __init__(self,
A: Union[List[List[Number]], Matrix],
b: Union[List[Number], Matrix],
c: Union[List[Number], Matrix]):
if isi... | UTF-8 | Python | false | false | 4,326 | py | 8 | simplex.py | 6 | 0.576976 | 0.572353 | 0 | 118 | 35.661017 | 79 |
juhipawar/Data_Warehouse_Assignment_2 | 5,351,529,280,806 | 8d35ae8c538fc2b09468a969a995388a9616ad8d | a83ea31b7b8c7517d92baa6b0ad9a489899659ae | /Sentimental_Analysis.py | 2ae8852a0db330019da07ba3c32df3297987b69a | [] | no_license | https://github.com/juhipawar/Data_Warehouse_Assignment_2 | 0edad43b41ecbc96e36b41e625217381c7fc6cb8 | 7af1945f8e89dd13e4f03357c036abb66fe3bb7e | refs/heads/master | 2020-03-19T12:45:28.656706 | 2018-06-08T02:35:58 | 2018-06-08T02:35:58 | 136,538,235 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer # Adpeted from https://github.com/cjhutto/vaderSentiment
import csv
import numpy as np
import pandas as pd
inputFile = open('Clean_file.csv')
fileObject= csv.reader(inputFile)
sentimentIntensityAnalyzer = SentimentIntensityAnalyzer()
dataFrame = pd.... | UTF-8 | Python | false | false | 1,083 | py | 4 | Sentimental_Analysis.py | 3 | 0.704524 | 0.699908 | 0 | 33 | 31.818182 | 125 |
jonathanSeang/BlackJackPython | 5,703,716,585,009 | 5c752d8289255e238df8fc73f8dc0e91dc051459 | 9e734f874ddda92d6439c0f217d7e3e61df850df | /main.py | 5dc6cff07c5cc7f8de5b66615fb1993140c38211 | [] | no_license | https://github.com/jonathanSeang/BlackJackPython | 3504488bd19104f858f9dba45eb2e0d9db83ca29 | e60b23e76103c1e3f3d3a5bf699cd3bbcd0e9401 | refs/heads/main | 2023-05-21T02:14:45.433522 | 2021-06-13T23:20:35 | 2021-06-13T23:20:35 | 376,063,061 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # BlackJack Project
# Will have a dealer and human player
# Uses a normal deck of cards
# Player has limited amount of cash
# Player can HIT or STAY to get to 21
# Maybe add INSURANCE, SPLIT, or DOUBLE DOWN
# If player under 21, deal hits until they beat player or dealer busts
from Deck import Deck
from Hand impor... | UTF-8 | Python | false | false | 4,711 | py | 3 | main.py | 3 | 0.601571 | 0.596476 | 0 | 153 | 29.79085 | 116 |
jaspering21/Management | 16,166,256,931,122 | b3c6e7359fec03a9e962b6ae2eb24bd0d629d700 | 1c28b1c98d8ec92d2635934f19decbfa6d15c9ed | /Department/form.py | c1502f144a63f83a7733e57a3d19e85f6a1682fa | [] | no_license | https://github.com/jaspering21/Management | aed01c56ba161de4d340fb02f152752629565fa2 | 8b9b58f2fc7dee2166c1d8838c4bc4d052a4c46c | refs/heads/master | 2020-04-23T05:19:43.907150 | 2019-02-15T22:33:37 | 2019-02-15T22:33:37 | 170,936,879 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django import forms
from Department.models import EMPLOYEE
from Department.models import DEPARTMENT
class HomeForm(forms.ModelForm):
post = forms.CharField(required=False)
class Meta:
model1 = EMPLOYEE
model2 = DEPARTMENT
fields = ('post', )
| UTF-8 | Python | false | false | 282 | py | 9 | form.py | 4 | 0.702128 | 0.695035 | 0 | 11 | 24.545455 | 42 |
PyCN/eca | 249,108,155,731 | 0fbe12a869b0a5f4e35748de7becabda2c7ff19d | 7c7a7bb54341d88fec69a91b5f28a8e496ba0324 | /utils.py | 6455cadc67f0b39e49fc75bf8f8020506e25e7dd | [
"MIT"
] | permissive | https://github.com/PyCN/eca | 0b2d63bec342be45387fc5ac6f4bccb1fc23becf | 1427e4c57379ccdb1118160627ab987ecf63c49e | refs/heads/master | 2021-05-27T04:07:22.431481 | 2014-06-09T03:23:14 | 2014-06-09T04:36:35 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import cPickle
import gzip
import os
import theano.tensor as T
import numpy as np
rect = lambda x: T.where(x < 0., 0., x)
def rearrange_for_plot(w):
"""
Helper for tiling 1-dimensional square vectors into an array of images
Expecting w in form (n_pixels, n_images)
"""
assert w.ndim == 2
w = ... | UTF-8 | Python | false | false | 9,852 | py | 15 | utils.py | 13 | 0.539687 | 0.511165 | 0 | 300 | 31.84 | 117 |
dh-trier/topicmodeling | 10,746,008,178,943 | 8de14e2f7d3c748477986795ffe51e055579416b | 7626d21e6d5008a9e3f8a8097da365eca68377f9 | /scripts/preprocessing.py | 7b8c559f5bc3c2048fa2f6075f2de6d6ebb6289e | [
"Unlicense"
] | permissive | https://github.com/dh-trier/topicmodeling | 15e56075a138baf76235eda6ccf257a117c21423 | bb431346205cfa4d604349ffb0f7dc901d6d8af2 | refs/heads/master | 2022-12-21T08:44:15.941169 | 2022-12-15T07:44:43 | 2022-12-15T07:44:43 | 197,348,288 | 7 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
"""
Topic Modeling with gensim: Preprocessing.
Provides preprocessing for the input text files.
Adds linguistic annotation using TextBlob.
Uses this information to filter the tokens in the documents.
Works for English, French and German only!
For other languages, you need a different annotat... | UTF-8 | Python | false | false | 4,490 | py | 13,670 | preprocessing.py | 12 | 0.639644 | 0.635189 | 0 | 118 | 36.771186 | 170 |
UNGGUY/BXXT | 4,776,003,654,809 | 02d5bf33d7f352bf88abdf3d8f6660f880949513 | ae9d039124a115076db5fd6496c530e0ea7b4d3b | /customer/admin.py | 9a8fa3700f02bce0a32416055cece22ef71d2905 | [] | no_license | https://github.com/UNGGUY/BXXT | 8ebbb1c5f524ed9c89bb513f0d4add5012b9d186 | 86f739dade0f3ad33a394d9c01b7aa3620f7bb5f | refs/heads/main | 2023-01-31T02:33:49.349134 | 2020-12-14T09:20:00 | 2020-12-14T09:20:00 | 313,051,665 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
# Register your models here.
from django.contrib import admin
import xadmin
from django.contrib.auth.models import Group
from django.core.exceptions import PermissionDenied
from django.http import HttpResponse
from django.template.response import TemplateResponse
from xadmin.util impor... | UTF-8 | Python | false | false | 11,583 | py | 26 | admin.py | 8 | 0.557078 | 0.556451 | 0 | 340 | 31.847059 | 121 |
chrisglencross/advent-of-code | 3,015,067,052,564 | 29d2154f08c5706e718f3e624136927e19e48ee2 | ec931947aa3e06ce565637e7ee1cb707f56375a2 | /aoc2018/day22/day22.py | 5064f8e38e649d092828c7cfdca041c2c74e0e25 | [] | no_license | https://github.com/chrisglencross/advent-of-code | 5f16ed7e2265d27ce15f502ce2a1c2f11fc99fc0 | 21623d4aa01a9e20285a0233c50f8f56c4099af5 | refs/heads/master | 2023-01-24T22:01:30.829679 | 2023-01-12T23:03:03 | 2023-01-12T23:03:03 | 224,833,969 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # depth=510
# target=(10, 10)
depth = 11991
target = (6, 797)
# We really want an expandable grid...
# Set a fixed maximum
max_x = target[0] + 200
max_y = target[1] + 500
def empty_grid():
rows = []
for y in range(0, max_y + 1):
rows.append([None] * (max_x + 1))
return rows
erosion_levels = em... | UTF-8 | Python | false | false | 4,257 | py | 252 | day22.py | 237 | 0.569415 | 0.546159 | 0 | 146 | 28.157534 | 91 |
omoskovko/TestTask | 14,147,622,292,151 | 8c4024f3459355f77c060aa409fe852f0d6de6db | 8bb511210b6799ab986ef6fc8b1c15694069e3a0 | /common/http_receiver.py | b6131aff3531ca3b49f12d4288447726ee2bafa2 | [] | no_license | https://github.com/omoskovko/TestTask | 15d6856f7bcbadbf1047e6127f6f476ffea1a78e | f64152bd1d66b1fcc422deb65d122e6cb9e11c1c | refs/heads/master | 2021-07-14T19:27:39.508318 | 2017-10-20T17:02:03 | 2017-10-20T17:02:03 | 107,704,441 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from urllib import request
from urllib import parse
from . import utils as common_utils
class SmartRedirectHandler(request.HTTPRedirectHandler):
i = 0
def http_error_301(self, req, fp, code, msg, headers):
result = request.HTTPRedirectHandler.http_error_301(
self, req, fp, code... | UTF-8 | Python | false | false | 1,864 | py | 4 | http_receiver.py | 2 | 0.570279 | 0.555794 | 0 | 57 | 31.701754 | 96 |
geomeza/simulation | 3,813,930,982,743 | 3109d388c0ad24b192dc2dd14414bf2fdeca225a | 319b7d15da4e3eeb087c4ca8a7783f74c422c7b3 | /src/biological_neural_network.py | c0c876c96a6871bc025f5d683859629c4619b293 | [] | no_license | https://github.com/geomeza/simulation | bb0bc60b094d4a8e7e1b0cf0977adac803d97b3b | 0c0ef394201ed9787ff76128e2f2ab8ff1397878 | refs/heads/master | 2023-01-29T09:35:03.910639 | 2020-12-09T06:31:13 | 2020-12-09T06:31:13 | 319,864,330 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from biological_neuron import BiologicalNeuron
from euler_estimator import EulerEstimator
import matplotlib.pyplot as plt
class BiologicalNeuralNetwork:
def __init__(self, neurons, synapses):
self.neurons = neurons
self.synapses = synapses
def get_derivatives(self):
derivatives = []
... | UTF-8 | Python | false | false | 1,147 | py | 2 | biological_neural_network.py | 2 | 0.575414 | 0.553618 | 0 | 30 | 37.233333 | 151 |
prayswear/ICN | 16,114,717,301,961 | dcd54a3d31d59913e453216df88c18294321f08c | 5b96b6bf5ae357deab937ea66bda5f0f8d6b4df3 | /packet/test3.py | d8862b5a770817dcadff8c488d4d33a2dd2eab0c | [] | no_license | https://github.com/prayswear/ICN | 1154ea6d25e4ce0878f2055ebf2f82a9644e97d4 | 760caae64e8a79c8c31ca60af3e6a8095578da8b | refs/heads/master | 2021-08-18T23:35:25.843931 | 2017-11-24T06:44:55 | 2017-11-24T06:44:55 | 103,603,049 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import socket
import binascii
from packet import *
import hashlib
import time
a='c0a80264'
b=socket.inet_ntoa(binascii.a2b_hex(a))
print(b)
print(time.time())
| UTF-8 | Python | false | false | 160 | py | 33 | test3.py | 31 | 0.76875 | 0.725 | 0 | 10 | 15 | 39 |
dyuanjia/CTF-Pwn | 15,023,795,621,732 | 99f3a8e94af42a61ad33527798066ef474c524ff | 1c95023e63bc4d53f9df9ad10573660ec7c476fa | /how2orw/orw.py | 1e3481ddc1f2d944e05fad9374e0502e874b1968 | [] | no_license | https://github.com/dyuanjia/CTF-Pwn | af4f90b780289d55e3d5930668551a05e885fdab | 0f655b4f38293a4b2bfc375b9d0e8d1e591981d7 | refs/heads/master | 2020-12-21T02:31:54.061899 | 2020-01-27T12:48:33 | 2020-01-27T12:48:33 | 236,279,121 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python3
from pwn import *
context.arch = 'amd64'
binary = remote('edu-ctf.csie.org', 10171)
shellcode = asm('''
mov rax, 0x67616c662f77
push rax
mov rax, 0x726f2f656d6f682f
push rax
mov rdi, rsp
// move pointer to /home/orw/flag to rdi, little endian
... | UTF-8 | Python | false | false | 977 | py | 44 | orw.py | 19 | 0.555783 | 0.495394 | 0 | 44 | 21.181818 | 63 |
llienofdoom/nv_pdfmerge | 6,614,249,641,216 | 24ff9a12dd3594713a8d3af88616f3388236c237 | 9a6383dd3303d99cd495a1bb7da953a3d95322a0 | /nv_pdfmerge.py | 9a7ecc7208b93ce678663c6ba65b23c487c79f8e | [] | no_license | https://github.com/llienofdoom/nv_pdfmerge | 7f7f0254ce0be15092df8dc6a542687d4ef161d2 | 7610568e50cd19c68850e7585adf39dfee25ae34 | refs/heads/master | 2023-05-30T18:08:33.035761 | 2021-06-10T11:58:01 | 2021-06-10T11:58:01 | 372,633,965 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import os
import glob
from PyPDF2 import PdfFileReader, PdfFileWriter
input_folder = sys.argv[1]
if input_folder == None:
print('Please drag a folder onto the app, like a boss. Not what you just did. Like a lame-o...')
sys.exit()
else:
print('Working in %s' % input_folder)
print('Collectin... | UTF-8 | Python | false | false | 1,767 | py | 4 | nv_pdfmerge.py | 2 | 0.639502 | 0.634409 | 0 | 41 | 42.097561 | 107 |
Aparna-B/JudgingNorms | 12,618,613,919,658 | 22f4d8f26093957e173bc89e9353d8c59cbf7356 | 786c9b92d482b942ac9257a045feee688e2633b7 | /lib/compute_kruskal_wilcoxon.py | 1059cbf5afed7080e3988ea2471f44d185a5ac8e | [
"MIT"
] | permissive | https://github.com/Aparna-B/JudgingNorms | 6e6cd4c0c7d62bdce1bc5dd2cb7db3b16ef77b52 | 558640989d6d83f60ea393e7795585c79391bd96 | refs/heads/main | 2023-04-15T11:03:45.012036 | 2023-04-01T20:42:26 | 2023-04-01T20:42:26 | 620,075,917 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import argparse
import pandas as pd
import numpy as np
from scipy.stats import kruskal, wilcoxon
def compute_mean_sig(dataset, condition1,
condition2, category,
verbose=False):
"""Get proportion of images significantly different between conditions,
wrt contention_def ... | UTF-8 | Python | false | false | 3,663 | py | 39 | compute_kruskal_wilcoxon.py | 21 | 0.596779 | 0.583402 | 0 | 108 | 32.907407 | 83 |
rashiraffi/Tutorials | 18,013,092,852,140 | cf02cd8b438125c3b20a98fece3728c95bf896fb | ce5beb5e0e7abcfd8a5e90b8b4b5d5fb7cc1fd8a | /PYTHON/OOP/helloworld.py | ccefc02260e5be9edc81b6a5c0191490edba4c47 | [] | no_license | https://github.com/rashiraffi/Tutorials | f8b92dfe8388c4f617e277e3635c1c322708768c | 6fc6fb7a72e6774b7b785b2e37b5bcd853e31869 | refs/heads/master | 2021-06-09T05:45:01.558160 | 2021-05-29T16:16:04 | 2021-05-29T16:16:04 | 181,651,412 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Class creation
class MyClass:
s="Hello World..!"
#Object Creation
s1=MyClass
print(s1.s) | UTF-8 | Python | false | false | 93 | py | 111 | helloworld.py | 81 | 0.72043 | 0.698925 | 0 | 6 | 14.666667 | 22 |
bryan1188/DNHS-EVS | 13,632,226,204,485 | aade51625e76e42b2d0a894ad603a736e02c8baf | f4730681e6fd02ec9ab40b0b82d32955e44c0dc4 | /E_Voting/election/management/helpers/declare_winner.py | 39366a5fdf8a10792d6cb0ae6a6237dacba794ee | [] | no_license | https://github.com/bryan1188/DNHS-EVS | eb7dc1578be261bbe4fbafcd35c8238fc7f48e31 | 8449c552ba2c0d113b5f7dca2722a41897d11e56 | refs/heads/master | 2022-12-15T05:23:48.783753 | 2019-06-24T06:56:21 | 2019-06-24T06:56:21 | 168,844,378 | 0 | 0 | null | false | 2022-12-08T05:13:56 | 2019-02-02T15:13:47 | 2019-06-24T06:56:38 | 2022-12-08T05:13:55 | 83,432 | 0 | 0 | 3 | JavaScript | false | false | from registration.models import Vote
from reporting.models import WinnerCandidateDenormalized
from operator import itemgetter
from reporting.management.helpers.bulk_create_helper import BulkCreateManager
def declare_winners(election):
'''
For a given election, declare the winners based on the votes
... | UTF-8 | Python | false | false | 4,786 | py | 161 | declare_winner.py | 112 | 0.579816 | 0.574175 | 0 | 99 | 47.343434 | 127 |
jsong336/live-there | 584,115,594,311 | c7950b0837a9470c344a6ca2749ccb833d289179 | 51b0f4503aa608c716bf6cbc275411993bc93c5c | /_scripts/CSVConverters/__main__.py | bb9ce2834e1d7729b7540398922603a7f67235e2 | [] | no_license | https://github.com/jsong336/live-there | 11a3b584977d533bebf57d5895f6d90b490c1024 | d3f0ee0dc30a6595875cfef50fe13bd95a0dbeef | refs/heads/master | 2023-03-02T20:51:37.012348 | 2020-09-08T22:49:37 | 2020-09-08T22:49:37 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """ Entry point of conversion module """
from UniversityCSVConvert import UniversityConverter, UniversityUpdater, AverageUtilityFeeConverter
import os
import sys
CSV_RAW_PATH = os.path.join(os.path.dirname(__file__), 'csv', 'raw')
if __name__ == '__main__':
args = sys.argv
if len(args) > 1:
if args[1]... | UTF-8 | Python | false | false | 1,455 | py | 83 | __main__.py | 50 | 0.57732 | 0.558076 | 0 | 39 | 36.179487 | 99 |
djdhiraj/Machine-Learning | 9,216,999,850,500 | f2d28d4622dee393982cd9b4695bd317991a9a8a | ac79c8082d0def1a7f7ff42b9241c8bbfcf6b468 | /Python/Advance_sqlalchemy.py | f4efe755cfe54e8d257f2a857675cf7e7704608c | [] | no_license | https://github.com/djdhiraj/Machine-Learning | b0a272b4968750131a826868a2f03fd74eea9cf5 | ac6bba19e745a0d994ff9f118afbc4ff8dcda8ac | refs/heads/master | 2020-03-26T20:24:38.211017 | 2019-08-28T10:10:07 | 2019-08-28T10:10:07 | 145,322,260 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from sqlalchemy import create_engine, MetaData, Table, Column, Integer, String, union, union_all, except_, intersect
engine = create_engine('sqlite:///college.db', echo = True)
meta = MetaData()
conn = engine.connect()
addresses = Table(
'addresses', meta,
Column('id', Integer, primary_key = True),
Column('... | UTF-8 | Python | false | false | 1,172 | py | 23 | Advance_sqlalchemy.py | 13 | 0.709044 | 0.709044 | 0 | 25 | 45.88 | 151 |
durrantmm/bhattlab | 5,927,054,893,474 | 38aa755f40ebc0f3da7fe06524ca6899356a8c28 | ca442ba67cf621e6aad397806bae0fc11f5020a3 | /mytools/scripts/iscounter_consolidate_rank.py | 161ed61814b034f61f614af38399446bffac43ca | [] | no_license | https://github.com/durrantmm/bhattlab | 1424157a3ba5deaf005bc0b2f3d69da24b793c32 | d6d86dda754462bdce9de2c74681a3119dbb8da8 | refs/heads/master | 2021-01-11T03:41:21.118770 | 2016-12-06T01:10:23 | 2016-12-06T01:10:23 | 71,401,317 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import argparse
import sys
from collections import defaultdict
def main(args):
header = ''
results_dict = defaultdict(lambda: defaultdict(lambda: defaultdict(tuple)))
all_taxa = set()
with open(args['results']) as infile:
header = infile.readline().strip().split()
for line in infile:
... | UTF-8 | Python | false | false | 3,769 | py | 34 | iscounter_consolidate_rank.py | 34 | 0.561953 | 0.555585 | 0 | 84 | 43.880952 | 139 |
ddjddd/Algorithm-Study | 730,144,464,912 | 634b1fa76919c0d7df138894b596e536651d2377 | d0e2aa848f35efe2aae72e649ea9267d2443472c | /Backjoon_Onlie_Judge/2000/2052.py | 42db4b83774b7dff6eb8a9c97f357b487417f9b4 | [] | no_license | https://github.com/ddjddd/Algorithm-Study | 376f72849506841be0351dfdfe9b1ca95d197956 | 6ec72ae4de9d52592b76af6e4e8246c9fdeb946f | refs/heads/master | 2023-04-14T10:05:09.303548 | 2023-04-06T14:16:50 | 2023-04-06T14:16:50 | 121,474,738 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
input = int(sys.stdin.readline())
ret = str(5**input)
ret = '0.'+ret.zfill(input)
print(ret)
| UTF-8 | Python | false | false | 105 | py | 481 | 2052.py | 479 | 0.666667 | 0.647619 | 0 | 6 | 16.5 | 33 |
crosal-research/research | 7,980,049,249,355 | d63ed304cb6d0d599c993bbc4238c78b02c23d04 | 1f34184151e75b6e29a95f7f47bdf89d020991ac | /data/scripts/yahoo.py | 89d13602a9c2e21b6e89cf2bb67084f51001e32a | [] | no_license | https://github.com/crosal-research/research | ab9cc34a7d5fa56ba26b7580e1e9d4a59873981a | 8644500492e89c1c987633719706673b8129cf78 | refs/heads/master | 2020-04-12T06:33:33.227696 | 2016-10-19T02:09:59 | 2016-10-19T02:09:59 | 62,669,319 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | ######################################################################
# script to retrieve data from yahoo finance
# initial data: 16/07/2016
######################################################################
import pandas as pd
__all__ = ["fetch_yahoo"]
def fetch_yahoo(tickers, date_ini, date_final):
'''
... | UTF-8 | Python | false | false | 1,852 | py | 95 | yahoo.py | 91 | 0.518898 | 0.5 | 0 | 47 | 38.404255 | 89 |
kawazrepos/Kawaz | 1,915,555,437,208 | a1fecb279676342d692a10f22bceaa0dc5a40516 | c5266222639aae5054ebf409f345446514965f91 | /src/Kawaz/bugwaz/urls.py | d433d414bf41fbb268e1d5889fce306b56d15f6a | [] | no_license | https://github.com/kawazrepos/Kawaz | 1a2ac76ccb453fa060aaac31494bc6d25188255b | 13b86253d8b027530f32fc714d1e3738191a433e | refs/heads/master | 2016-08-06T00:33:53.361492 | 2014-05-04T19:32:59 | 2014-05-04T19:32:59 | 2,407,362 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
#
# Author: alisue
# Date: 2010/10/25
#
from django.conf.urls.defaults import *
import views
components_patterns = patterns('',
url(r'^$', views.component_list, name='bugwaz-component-list'),
url(r'^(?P<object_id>\d+)/$', v... | UTF-8 | Python | false | false | 2,998 | py | 627 | urls.py | 365 | 0.536358 | 0.533356 | 0 | 46 | 64.195652 | 112 |
adammpoland/homebase | 15,384,572,879,877 | 7b125a32b66e02657936fa8acc7473e2f2948e85 | 85c2e7405b305b20afb5a7b2716fe34a2c5f884e | /public/uploads/bigredIII.py | 0557ebf16adc788a567f47ef39fae622e5313fcd | [] | no_license | https://github.com/adammpoland/homebase | dd246d738f52d8babeef8287ef02cfd243efaa23 | 2975e31effa683f604d909143aa1de213c5f931d | refs/heads/master | 2022-12-13T16:43:59.603895 | 2019-06-21T17:53:47 | 2019-06-21T17:53:47 | 124,105,871 | 0 | 0 | null | false | 2022-12-10T19:18:38 | 2018-03-06T16:25:35 | 2019-06-21T17:53:49 | 2022-12-10T19:18:38 | 44,635 | 0 | 0 | 5 | HTML | false | false | from __future__ import division
import time
import RPi.GPIO as GPIO
from time import sleep
import Adafruit_PCA9685
pwm = Adafruit_PCA9685.PCA9685()
#servo_min 150 and servo_max = 600
servo_min = 150 # Min pulse length out of 4096
servo_max = 600 # Max pulse length out of 4096
straight_up = 390
def... | UTF-8 | Python | false | false | 2,275 | py | 5 | bigredIII.py | 2 | 0.615385 | 0.561319 | 0 | 106 | 19.481132 | 65 |
AkaiTsuki/machine-learning-feature-analysis | 16,312,285,798,311 | 89899a486dc53df465e68f8e03d0bfb81a7b2cbc | 7c8e0733b9eb138fc3a8f37a53281864afb1cc2b | /nulearn/linear_model.py | 7acb12bc485665e2d53169de4798d5ad8bf7020f | [] | no_license | https://github.com/AkaiTsuki/machine-learning-feature-analysis | 5bef501196c217624a4dbc805be305e74761440e | 220da2f446c64a603b87e4317dc038febbb86773 | refs/heads/master | 2020-04-05T23:25:35.829383 | 2014-11-12T21:35:30 | 2014-11-12T21:35:30 | 26,200,641 | 3 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = 'jiachiliu'
from numpy.linalg import inv
import numpy as np
from validation import mse
import sys
class LinearRegression(object):
"""docstring for LinearRegression"""
def __init__(self):
self.weights = None
def fit(self, train, target):
self.weights = inv(train.T.dot(train)... | UTF-8 | Python | false | false | 5,666 | py | 18 | linear_model.py | 17 | 0.567596 | 0.551712 | 0 | 174 | 31.568966 | 97 |
Einstein-NTE/einstein | 4,698,694,260,111 | 931d070e03bba04e31a8f0a6ba41ed327172622e | 92ae11d4f1c880ce77199184081d476717ffe3b1 | /GUI/DateTime.py | cae425d702d6fc068fb2472b2e2f83ca8ebdaf56 | [] | no_license | https://github.com/Einstein-NTE/einstein | 1af627038a071819a0d95b2f636c0a0f3f0355b7 | a8a4c963c710dfade3dbfae5bb5041c6bb2ff0eb | refs/heads/master | 2016-09-15T15:24:14.776508 | 2010-08-26T13:24:51 | 2010-08-26T13:24:51 | 370,138 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | """ Python part of the low-level DateTime[Delta] type implementation.
Copyright (c) 1998-2001, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2007, eGenix.com Software GmbH; mailto:info@egenix.com
See the documentation for further information on copyrights,
or contact the author. All Rig... | UTF-8 | Python | false | false | 32,116 | py | 221 | DateTime.py | 143 | 0.571148 | 0.547546 | 0 | 1,054 | 29.470588 | 79 |
luxaflow/ChatRoomMVC | 6,451,040,929,311 | 191b400fdcbacd6d8a04bcce667cd19685f0ad44 | 8fcfb38ebe5d3251f73ace213cfd073e0e047274 | /libaries/View.py | 7ebfeec3a4524baf22699cba2da77e801ff21ad7 | [] | no_license | https://github.com/luxaflow/ChatRoomMVC | aea7498eba670ad26cc3d7f23a275c90256ad026 | 4c6885c8a61f2d42defcf77a5f2d6d7a9a2c7526 | refs/heads/master | 2022-04-07T18:13:38.061060 | 2020-03-05T12:38:16 | 2020-03-05T12:38:16 | 245,158,694 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import tkinter as tk
class View(tk.Tk):
"""
Betreft het Window waarin alle Views geladen kunnen worden
Deze klasse kan niet overerft worden omdat hiermee het Window meerderee instanties gaat maken.
Daarna is het niet meer mogelijk te weten in welk window de applicatie draait
"""
def __init__(s... | UTF-8 | Python | false | false | 904 | py | 20 | View.py | 19 | 0.623894 | 0.617257 | 0 | 29 | 30.172414 | 98 |
davidcostaw/medicar | 4,707,284,169,358 | 1965455df7f97f6774968ffd32c200a6f97578fd | 9958b5b3ca39360c2b57ccb58d5478fa2ba7fa78 | /backend/agendas/filters.py | 06513a1794855c005d5881db032bda79a1d017d2 | [] | no_license | https://github.com/davidcostaw/medicar | 54067a03f3e1fd216f64d92ed6ec07230b73f269 | e1b1ef2f114c268cf5d987b41af89a0807cc4ebf | refs/heads/master | 2023-04-24T01:37:42.388026 | 2021-05-14T13:46:35 | 2021-05-14T13:46:35 | 367,164,283 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import django_filters
from .models import Agenda
from backend.medicos.models import Medico
from backend.especialidades.models import Especialidade
class AgendaFilter(django_filters.FilterSet):
medico = django_filters.filters.ModelMultipleChoiceFilter(
queryset=Medico.objects.all()
)
medico__espe... | UTF-8 | Python | false | false | 739 | py | 35 | filters.py | 34 | 0.705007 | 0.705007 | 0 | 24 | 29.791667 | 80 |
ebertx/thinking-python | 18,519,899,013,779 | 9abd2de2e03e56e299d93c88012dcf42102d8cc6 | 766896c67dc8099523a1895b884c020645a0c081 | /9-5.py | 539371d75d52b40a1ddb2235662c066fc33db11f | [] | no_license | https://github.com/ebertx/thinking-python | cf9daa02bc5106f872ec8c4f083d6a2d32fcb778 | bb08f58806e26a14d3420454f7b7271a8de85c28 | refs/heads/master | 2016-09-06T05:30:23.659158 | 2015-02-27T07:51:10 | 2015-02-27T07:51:10 | 29,249,177 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def uses_all(word, letters):
for l in letters.lower():
is_letter_in_word = False
for w in word.lower():
if l == w:
is_letter_in_word = True
if not is_letter_in_word:
return False
return True
letters = raw_input('input allowed letters >> ')
fin =... | UTF-8 | Python | false | false | 489 | py | 26 | 9-5.py | 25 | 0.568507 | 0.564417 | 0 | 21 | 22.333333 | 48 |
athletejuan/TIL | 18,373,870,094,664 | 20c8ef7a08bb07ccf822e571204bddec31d4345a | 6fa0d5d3b61fbce01fad5a7dd50258c09298ee00 | /Algorithm/BOJ/10833.py | 375e183cd7c63333c2a0688abe2a5c105057904f | [] | no_license | https://github.com/athletejuan/TIL | c8e6bd9f7e2c6f999dbac759adcdb6b2959de384 | 16b854928af2f27d91ba140ebc1aec0007e5eb04 | refs/heads/master | 2023-02-19T13:59:06.495110 | 2022-03-23T15:08:04 | 2022-03-23T15:08:04 | 188,750,527 | 1 | 0 | null | false | 2023-02-15T22:54:50 | 2019-05-27T01:27:09 | 2021-11-09T23:46:36 | 2023-02-15T22:54:48 | 11,469 | 0 | 0 | 4 | Python | false | false | N = int(input())
remain = 0
for _ in range(N):
S,A = map(int, input().split())
remain += A%S
print(remain) | UTF-8 | Python | false | false | 115 | py | 1,322 | 10833.py | 876 | 0.556522 | 0.547826 | 0 | 7 | 15.571429 | 35 |
nqxing/PythonProject | 4,724,464,046,650 | aa1946d6969008136b9f8d5e49cd341900a1b9e3 | e94c53d4d776eafa461e459af6559f8b0461cd5e | /selenium/baidu-jietu.py | fb5758e886906de327f48a4928d748f71c3e4a74 | [] | no_license | https://github.com/nqxing/PythonProject | f66859862fc85366f21a21f76a54227309c77bbf | d1ca59872e290d34ea9586e04cbce43c3e78f438 | refs/heads/master | 2022-05-23T05:37:19.514264 | 2022-05-20T07:25:03 | 2022-05-20T07:25:03 | 306,828,334 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get('http://www.baidu.com')
time.sleep(3)
driver.get_screenshot_as_file('b1.png')
driver.quit()
| UTF-8 | Python | false | false | 174 | py | 427 | baidu-jietu.py | 381 | 0.758621 | 0.747126 | 0 | 7 | 23.857143 | 39 |
Anais5/pendu | 6,305,012,022,462 | 3fbd228f04d366c3e716e2d3749cd40b80ce5a0c | da4398ae1da8086a97ef25e74123daaa0c49d4a8 | /projet_pendu_romain&anais.py | dccc5715ade9dc87565c297370b5e144df29b00a | [] | no_license | https://github.com/Anais5/pendu | 802069cbe4a574c151174f4f6953ceb34f55e596 | 416de024a6d1eac19f61b407c497f81fe4f6f964 | refs/heads/main | 2023-01-22T06:39:28.002880 | 2020-11-25T16:17:17 | 2020-11-25T16:17:17 | 315,989,527 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
ERREURS_POSSIBLES = 7 #ne pas changer ca créerai des erreurs
SYMOBOLE_MYSTERE = "?"
ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
LONGUEUR_MINIMALE = 4
def ascii(erreurs : int):
"""Cette fonction retourne un bonhomme pendu suivant le
nombre d'erreurs."""
bonhomme = ("|", "O", "|", "/", "... | UTF-8 | Python | false | false | 6,204 | py | 2 | projet_pendu_romain&anais.py | 1 | 0.605819 | 0.601268 | 0 | 131 | 44.961832 | 131 |
daniel-reich/ubiquitous-fiesta | 15,187,004,398,497 | 7b70ed4d752c7258b294814dad4deee7c3383727 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ruPm4LX6fEvvLJk9j_12.py | da9227043c7134d67a21c4391b7daf7748661358 | [] | no_license | https://github.com/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 | null | null | null | null | null | null | null | null | null |
def to_base(num, base):
digits = []
while num > 0:
digits.append(num % base)
num //= base
return digits
def esthetic(num):
res = []
for b in range(2, 11):
digits = to_base(num, b)
if all(abs(i - j) == 1 for i, j in zip(digits, digits[1:])):
res.append(b)
return res or "Anti-Esthetic... | UTF-8 | Python | false | false | 325 | py | 38,088 | ruPm4LX6fEvvLJk9j_12.py | 38,088 | 0.566563 | 0.547988 | 0 | 14 | 21.928571 | 64 |
edesai/openstack_automation | 12,567,074,310,586 | 7f57b5a39a29dd45dbe83dd33b1ed437d3bc7309 | 4c27a9f71b41cecb914e705a5b1722348625bb0c | /common/MySqlDbTables.py | 1baa6327e7959030adcd2a22187c69b6cfd9546d | [] | no_license | https://github.com/edesai/openstack_automation | d471812f28f7f181c57d884bcd204a0e829c6383 | cc57b0c3a3a25d87b96c6c18e2219a6f507bc24c | refs/heads/master | 2021-01-17T16:39:54.372110 | 2017-02-09T05:55:54 | 2017-02-09T05:55:54 | 69,001,703 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Created on Dec 12, 2016
@author: edesai
'''
class MySqlDbTables(object):
INSTANCES_INSTANCE_NAME = 1
INSTANCES_INSTANCE_IP = 6
INSTANCES_HOST_NAME = 10
INSTANCES_VDP_VLAN = 11
AGENTS_HOST_NAME = 0
AGENTS_AGENT_INFO = 3
| UTF-8 | Python | false | false | 250 | py | 29 | MySqlDbTables.py | 28 | 0.656 | 0.6 | 0 | 14 | 16.857143 | 31 |
joeypy/Django-E-commerce | 14,559,939,137,110 | 33db5c1d218572ec3882a362e8102762b60a7c74 | fd8e014160c060f4556b16570c0e44000ba5d2b2 | /store/admin.py | 8009514498b1ffdd79889604addda4b1f015e836 | [] | no_license | https://github.com/joeypy/Django-E-commerce | 66e1497bf635a1c0d099d1d3db2c804d898d38c4 | bcb6319c48628712174c63bc1b273789fbd2f90f | refs/heads/main | 2023-08-11T10:46:02.990070 | 2021-10-03T17:44:01 | 2021-10-03T17:44:01 | 403,164,471 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from django.utils.html import format_html
from import_export.admin import ImportExportActionModelAdmin
from store.models import Product, Variation
@admin.register(Product)
class ProductAdmin(ImportExportActionModelAdmin):
list_display = (
"id",
"product_name",
... | UTF-8 | Python | false | false | 1,229 | py | 6 | admin.py | 6 | 0.580146 | 0.576892 | 0 | 50 | 23.56 | 83 |
PiErr0r/aoc | 18,150,531,810,903 | 74283b59f1d63a7c2eb47b550842ab1f3fe54fe3 | e995b7b23c45207b29cb64680bb08be5e95a34d2 | /2017/15.py | d9e989d67f12d496ca2b1ec57baa0346d32c0d1f | [] | no_license | https://github.com/PiErr0r/aoc | 3592546a931b85785ec7249f693ded6ea9e04263 | aafc2333f3c79c6a969e074d4f3942e76c17e5f6 | refs/heads/master | 2023-01-09T15:15:33.060563 | 2022-12-25T10:26:36 | 2022-12-25T10:26:36 | 250,568,271 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import math, copy, re
GEN_A = 634
GEN_B = 301
FACTOR_A = 16807
FACTOR_B = 48271
MUL_A = 4
MUL_B = 8
DIV = 2147483647
PAIR_NUM_1 = 40000000
PAIR_NUM_2 = 5000000
def part_1():
curr_a = GEN_A
curr_b = GEN_B
L = 16
cnt = 0
for i in range(PAIR_NUM_1):
curr_a = (curr_a * FACTOR_A) % DIV
curr_b = (curr_b * FAC... | UTF-8 | Python | false | false | 1,376 | py | 218 | 15.py | 212 | 0.522529 | 0.458576 | 0 | 73 | 17.821918 | 41 |
holzschu/Carnets | 10,539,849,784,144 | 142e797aeff8ae3a02f087ba2e13328a987b4b1a | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/sympy/integrals/rubi/rules/piecewise_linear.py | d3ac12cc92b07c734659a5615ccc18307e654cf1 | [
"BSD-3-Clause"
] | permissive | https://github.com/holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | false | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | 2022-11-29T02:39:24 | 2022-02-16T10:31:09 | 69,752 | 461 | 32 | 191 | Python | false | false | """
This code is automatically generated. Never edit it manually.
For details of generating the code see `rubi_parsing_guide.md` in `parsetools`.
"""
from sympy.external import import_module
matchpy = import_module("matchpy")
if matchpy:
from matchpy import Pattern, ReplacementRule, CustomConstraint, is_match
... | UTF-8 | Python | false | false | 19,898 | py | 1,896 | piecewise_linear.py | 1,479 | 0.639964 | 0.591617 | 0 | 488 | 39.77459 | 360 |
ptrstn/certifier | 4,707,284,204,940 | 2660e0d7f014ea18b83735768bcebfb27e4cdfdb | 8af9a98f15c17367b9b1efd96626c66baa6348d4 | /analysis/views.py | 6db67846d38c823f582587c94f6320a206311ce2 | [] | no_license | https://github.com/ptrstn/certifier | c782310a65a1fe2a10a1d5ad42cb886abd12e66b | da20e317391b16f49f05615324bb9f72e4226395 | refs/heads/master | 2022-11-13T08:46:26.026756 | 2020-06-22T17:24:37 | 2020-06-22T17:24:37 | 172,786,402 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import authentication, permissions
from users.models import User
from django.shortcuts import render
from oms.utils import retrieve_run
from oms.models import OmsRun
from .analyse import run_principal_component_ana... | UTF-8 | Python | false | false | 3,435 | py | 68 | views.py | 59 | 0.622416 | 0.619505 | 0 | 104 | 32.028846 | 84 |
vaguely-right/Baseball | 19,593,640,824,601 | 1681ab059da8c66bd880a1b6d32463e498d9dc33 | 12f5a42183290a18f906146d7941861baf04b9cb | /Retrosheet/Old/6-retrosheetlogistic.py | 2a7290190c677db3dbdb1c06d43513b0b2f5eaed | [] | no_license | https://github.com/vaguely-right/Baseball | ac92e0a63ad9b0fbd07ceaf401e252bb7f53aa0f | 8b06fb779157d2c8951ccc2fa6d3f164c27490c7 | refs/heads/master | 2021-06-30T21:29:16.431884 | 2021-01-03T01:31:02 | 2021-01-03T01:31:02 | 206,458,040 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
import numpy as np
from tqdm import tqdm
import numpy.linalg as la
import seaborn as sns
from sklearn.linear_model import LogisticRegression
import seaborn as sns
pd.set_option('display.width',150)
pd.set_option('display.max_columns',16)
#%%
# Read the constants
fg = pd.read_csv('fgconstants.csv')
... | UTF-8 | Python | false | false | 9,423 | py | 66 | 6-retrosheetlogistic.py | 12 | 0.646503 | 0.633875 | 0 | 292 | 31.232877 | 133 |
berserg2010/family_and_history_backend | 14,181,982,017,011 | c9c5d54f8aa8a3159e8e623351b62d41494d3406 | d8e287db32e57e25e0cdebb3c03b07409e8cf66f | /backend/person_app/events/birth/tests/queries.py | 384e62f782c3d3b3e2063faf401671ff9d5495c7 | [
"Apache-2.0"
] | permissive | https://github.com/berserg2010/family_and_history_backend | 4adeb449b0c307b4d2853f0101ca67ee4deb07f3 | 08fd5901e6e0c9cbd75a72e46d69ac53c737786a | refs/heads/master | 2020-05-18T19:41:56.060827 | 2019-05-03T18:21:20 | 2019-05-03T18:21:20 | 184,614,338 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # BIRTH
ALL_BIRTH = '''
query AllBirth($idPerson: ID){
allBirth(idPerson: $idPerson){
id
}
}
'''
BIRTH = '''
query Birth($id: ID!){
birth(id: $id){
id
}
}
'''
SAVE_BIRTH = '''
mutation SaveBirth(
$data: BirthInput
){
saveBirth(
data: $data
){
status
... | UTF-8 | Python | false | false | 822 | py | 32 | queries.py | 31 | 0.469586 | 0.469586 | 0 | 63 | 12.047619 | 46 |
wmarenga/Python | 18,820,546,714,355 | cf18bf05190d30cd2d0abd062a20dc4ee48a4033 | 825799d25e40efc1af92c7252cb443be3ac8bed8 | /Python_para_Iniciantes_Direto_ao_que_interessa/Aulas/Aula28_Filtro_numpy.py | 18685b8f5c7f9f54fef497fb134d2d566d077993 | [
"MIT"
] | permissive | https://github.com/wmarenga/Python | 398f456c44260e52e1309102d99a144ac29d0838 | f7e8fb960733d744268a2c136c6034e1a1205ecf | refs/heads/main | 2023-03-16T07:09:59.769021 | 2023-02-13T21:28:07 | 2023-02-13T21:28:07 | 297,141,069 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
import numpy as np
"Lendo a planilha do Excel pelo pandas/Numpy"
caminho_arquivo ='D:\\23) Programação\\Cursos\\Python\\4) Python para Iniciantes (Direto ao que interessa)\\Aula 28 (Filtros_Numpy)\\caso_estudo.xlsx'
pessoas = np.array(pd.read_excel(caminho_arquivo, sheet_name='pessoas'))
print(pess... | UTF-8 | Python | false | false | 1,044 | py | 1,192 | Aula28_Filtro_numpy.py | 1,118 | 0.697697 | 0.673704 | 0 | 24 | 42.458333 | 150 |
brandonivey/mixtapes | 3,882,650,469,127 | 039c34a389d8a10ab16c35d90ce478d0fa01ade4 | 87cd994ad889b8700520b37eef6172827aeb9338 | /mixtapes/server.py | fff3e8cd74a2d9b99f51a967932d2182dbacff51 | [] | no_license | https://github.com/brandonivey/mixtapes | a319ba70cdd26bc5056fc717b712cf25a08000b8 | 1ab8fdcb410efb15c122628184a6dc9d34f3dbf7 | refs/heads/master | 2020-05-30T14:41:27.735582 | 2014-04-25T13:53:07 | 2014-04-25T13:53:07 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
import sys
class Log:
"""
Allows log files to replace sys.stderr or sys.stdout
If multipule file discriptors are passed to __init__, it will write
to each one
"""
def __init__(self, *fds):
self.fds = fds
def write(self, data):
for fd in self.fds:
... | UTF-8 | Python | false | false | 5,623 | py | 7 | server.py | 3 | 0.615863 | 0.610706 | 0 | 169 | 32.272189 | 80 |
Leonid3/neoart | 9,251,359,558,567 | 5972a6c2e32de0ae5cbcb6193678193b5a1e9ffc | c8412e6475de59e5596566d740c83b4d87c8c0b9 | /python/neoart/__init__.py | f334f432264a1749bf73ea97eaa056468e54e2c0 | [] | no_license | https://github.com/Leonid3/neoart | 1c5eac4e974b57523781ac7a663a92ac0e1575d9 | 91ec8447d89c849d8f7c8ee116eb365e3380f2d0 | refs/heads/master | 2020-12-24T14:27:33.984313 | 2013-01-18T13:39:11 | 2013-01-18T13:39:11 | 39,614,472 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | __all__ = ['Neoart', 'DefaultNumericArgs', 'CircularGeometry',
'CheaseGeometry']
from arguments import DefaultNumericArgs
from neoart import Neoart
from geometry import CircularGeometry, CheaseGeometry
| UTF-8 | Python | false | false | 214 | py | 125 | __init__.py | 14 | 0.766355 | 0.766355 | 0 | 6 | 34.666667 | 62 |
shinyu880509/stock | 12,962,211,310,388 | 12318763783125ac2f63a8281e203cae44ffe9fd | d9764f6d2e496f8c7eed781dc5cb21d0d66f6e6f | /getID.py | 10ecf3a55b0439e84a239a6e5edaffc86beca16b | [] | no_license | https://github.com/shinyu880509/stock | 4f61b68c8582f2e133bf0663e4fe041339dbe276 | e6256f1e4ec9a539f08bc33b16911fb3c060f2fa | refs/heads/master | 2023-02-08T12:54:47.694036 | 2021-01-04T07:47:11 | 2021-01-04T07:47:11 | 245,349,243 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sqlite3
#新聞用
def getNameData():
stockID = ['5203', '6112', '6183', '6214']
stockName = ['"訊連"' ,'"聚碩"' ,'"關貿"' ,'"精誠"']
return stockID,stockName
def getName(id):
stockID = ['2427', '2453', '2468', '2471', '2480', '3029', '3130', '4994', '5203', '6112', '6183', '6214']
stockName = ['2427三商電'... | UTF-8 | Python | false | false | 3,753 | py | 784 | getID.py | 13 | 0.494246 | 0.438114 | 0 | 116 | 29.724138 | 137 |
Max-coder1/Auto-Thermo-Converter | 9,680,856,325,353 | d7cfba2cd973e10383b9841059288ec0bbe03fdd | 915545c8e060a154ce069643b4d994216cfee1d4 | /THERMO-CONVERTER/tempconv.py | d1750ea65f62f65da2f9035b6af31b6939995f12 | [] | no_license | https://github.com/Max-coder1/Auto-Thermo-Converter | 944232744f00137809b9f1cb9c0cbfcc7962390d | 62f4fb1f14eb3611e11426d741bb7a7faed12777 | refs/heads/master | 2022-04-27T22:03:33.294937 | 2020-04-20T02:49:06 | 2020-04-20T02:49:06 | 257,145,972 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # TEMPERATURE CONVERTER
import tkinter as tk
from tkinter import *
import random
# declare global_Variables
temp_c = None
temp_f = None
#create the main window
root = tk.Tk()
root.title("AUTO-THERMO_CONVERTER")
# create main container
frame = tk.Frame(root,bg="yellow")
# Layout the main contaner, spec... | UTF-8 | Python | false | false | 4,689 | py | 2 | tempconv.py | 1 | 0.612284 | 0.577309 | 0 | 108 | 41.416667 | 135 |
Hamirall/lengow-test | 11,227,044,554,945 | f8678d4012465d05e3cb3fd3d348b1c2035872ac | e5e2df3410232a71feda5b246cda51254ecfb31d | /lengow/orders/urls.py | 91de7c7a2bf5ff9a8912c0d2daa71a05bf12c1e5 | [] | no_license | https://github.com/Hamirall/lengow-test | 72c890b2fe7b82667de1789f659d41255c5f6194 | 4cde5dc652dca5c2c58c0b2a15b237b7c146fe8a | refs/heads/master | 2023-01-05T00:00:04.202807 | 2020-11-02T16:03:40 | 2020-11-02T16:03:40 | 309,199,578 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path
from . import views
from orders.views import OrderList
from orders.views import OrderDetail
from orders.views import OrderUpdate
from orders.views import CreateOrder
urlpatterns = [
path('list/', OrderList.as_view(), name='order-list'),
path('create', CreateOrder.as_view(), name='c... | UTF-8 | Python | false | false | 509 | py | 11 | urls.py | 6 | 0.722986 | 0.722986 | 0 | 13 | 38.230769 | 102 |
neurodebian/snapshot-neuro.debian.net | 13,125,420,090,730 | b445ce7bbf5dae0cd5f29f7a4358f0dd5fb4bd06 | 85416680d980e773a369d0ee36d7db3128e08e98 | /misc/dump-tools/add-new-dumps-to-git | f7583555adab1fea78010df7ae9125c6f048052e | [] | no_license | https://github.com/neurodebian/snapshot-neuro.debian.net | e819c6e38bfa4b4ef795cc75d3f5649a0a11572e | 7848c5df1b3b853e81fa232923e782acfe9c47bd | refs/heads/master | 2021-10-25T15:59:58.603232 | 2017-09-23T18:12:58 | 2017-09-23T18:12:58 | 991,805 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# Copyright (c) 2010 Peter Palfrader
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | UTF-8 | Python | false | false | 6,258 | 73 | add-new-dumps-to-git | 42 | 0.665548 | 0.660754 | 0 | 184 | 33.01087 | 97 | |
Melih-Celik/file_explorer | 18,537,078,875,474 | 338f7711bcf57d7702bd133971761ac93516ad54 | 3cfd1f99fbeb754f0602eed05f1ed34d38c7711a | /Turkish/File_Explorer.py | c49f85d10f18ec5ae5ecd5ca01bf28145843cb6c | [
"MIT"
] | permissive | https://github.com/Melih-Celik/file_explorer | 8c1f119b74d5e9223b1a69f28f06b69bc11abee9 | 9d7afb9bc32bd167fb19e891adf751bae804d6e4 | refs/heads/master | 2021-09-06T17:25:48.211104 | 2018-02-09T01:05:07 | 2018-02-09T01:05:07 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
from time import sleep
from shutil import rmtree
def info():
print("\n\t\tİşlem Rehberi\n1.Yeni dosya oluşturmak için -d\n2.Dosya içeriğini ekrana yazdırmak için -r(Beta)\n3.Yeni Klasör oluşturmak için -k\
\n4.Klasör silmek için -ks\t!!!Klasör kalıcı olarak silinir!!!\n5.Dosya silmek için -ds \t!!!... | UTF-8 | Python | false | false | 6,485 | py | 4 | File_Explorer.py | 2 | 0.486899 | 0.479593 | 0 | 169 | 35.260355 | 159 |
562794175/at_demo | 11,501,922,464,292 | 0f2742d32defbe9ca09ec0c329d3afa0c89fdbe6 | 6ed7523aea6ce8f650604c963d5c04c3c99ff52c | /DRLHappyDemo/HappyDemoUtils.py | b53bc62018ae13ad99a567d30f821cd75830d540 | [] | no_license | https://github.com/562794175/at_demo | 96b576c96a3cdac6e80f0651e5d74b117cdfb957 | e237dc86ecc5ace721e12998ada02ae9a2e373e1 | refs/heads/master | 2021-06-02T22:31:02.064066 | 2020-03-07T13:38:37 | 2020-03-07T13:38:37 | 135,537,132 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
def load():
IMAGES, HITMASKS = {}, {}
return IMAGES, HITMASKS
def getHitmask(image):
"""returns a hitmask using an image's alpha."""
mask = []
for x in range(image.get_width()):
mask.append([])
for y in range(image.get_height()):
mask[x].append(bool(image.ge... | UTF-8 | Python | false | false | 353 | py | 552 | HappyDemoUtils.py | 308 | 0.572238 | 0.569405 | 0 | 15 | 22.533333 | 56 |
rmanzoni/cmg-cmssw | 18,116,172,087,716 | 65fc08c38d1e4183774a943175dcb655a8554614 | e9998430626270ba20dc17eb807899def97209a1 | /CMGTools/TTHAnalysis/python/samples/samples_13TeV_PHYS14.py | 23fbd1b7b0dd99cdb1abd0128c9495256a7a16dd | [] | no_license | https://github.com/rmanzoni/cmg-cmssw | 7cdec3f0b7cbb789ab5b105259a1b58a78e7defb | 71e96154765289ddcb5b64470e08dc339e38f072 | refs/heads/CMGTools-from-CMSSW_7_4_2 | 2020-12-25T23:53:29.190645 | 2015-05-22T15:56:14 | 2015-05-22T15:56:14 | 13,803,005 | 0 | 1 | null | true | 2015-08-20T15:51:30 | 2013-10-23T13:08:32 | 2015-04-15T15:34:01 | 2015-08-20T15:42:08 | 790,017 | 0 | 0 | 0 | C++ | null | null | import PhysicsTools.HeppyCore.framework.config as cfg
import os
################## Triggers
from CMGTools.TTHAnalysis.samples.triggers_13TeV_PHYS14 import *
#####COMPONENT CREATOR
from CMGTools.TTHAnalysis.samples.ComponentCreator import ComponentCreator
kreator = ComponentCreator()
## CENTRALLY PRODUCED MINIAO... | UTF-8 | Python | false | false | 38,258 | py | 10 | samples_13TeV_PHYS14.py | 8 | 0.770924 | 0.589289 | 0 | 419 | 90.307876 | 318 |
rsagun/CMPS-146-Game-AI | 5,454,608,477,068 | fd889ed87b41e539fb42656844b962c541adb0f9 | c6edae277d207ded481bb7dc8ecc469f24d9a127 | /final/Animal.py | d1ffcbb43d908dc564fc922177f60b82b1c8a198 | [] | no_license | https://github.com/rsagun/CMPS-146-Game-AI | 128486ef8fbfa55fb7f1c5207fb17f6d80b4de2f | c595d117ae919e5e118e60179e350b335e94516b | refs/heads/master | 2020-03-22T12:04:51.050481 | 2018-07-06T18:27:26 | 2018-07-06T18:27:26 | 140,015,626 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from random import choice, random, randint, choices
from math import ceil
import os
from time import time
import multiprocessing.pool as mpool
from functools import partial
from Environment import Environment
# No matter what environment is we hav esimilar creatures.
# Not weighting environment when taking in to accou... | UTF-8 | Python | false | false | 21,093 | py | 8 | Animal.py | 4 | 0.570995 | 0.553833 | 0 | 506 | 40.685771 | 240 |
wingskh/mmskeleton | 8,349,416,431,622 | ed23953bd1170663cc59723ea625e1ba7888ad34 | bb4c8f2ca1cbde8fc05f54643705f3a13871c785 | /mmskeleton/models/loss/__init__.py | 1689757031bbd2c71ffc11609182ae6f4f84ebac | [
"Apache-2.0"
] | permissive | https://github.com/wingskh/mmskeleton | 999c7ee18a0a084c7aef7e88021ac6f63faaabdc | 0d179386e63d6d34ee374163d7b5aff95ef78cec | refs/heads/master | 2022-12-14T23:54:39.427020 | 2020-09-12T12:17:45 | 2020-09-12T12:17:45 | 294,425,242 | 1 | 0 | Apache-2.0 | true | 2020-09-10T13:56:10 | 2020-09-10T13:56:09 | 2020-09-10T13:56:06 | 2020-08-07T02:49:40 | 95,581 | 0 | 0 | 0 | null | false | false | from .JointsMSELoss import JointsMSELoss
from .JointsOHKMMSELoss import JointsOHKMMSELoss | UTF-8 | Python | false | false | 90 | py | 69 | __init__.py | 43 | 0.888889 | 0.888889 | 0 | 2 | 44 | 48 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.