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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DanielAbrahamDzulPech/articicial-inteligence-and-data-science | 11,785,390,289,211 | fc2d22de53d361df0655a81e13e87143a6ccd211 | d137ca8c04da3b01e51f68e2f173114baef4b19c | /05_python_intermedio/modulo_III_comprehensions/complementos/list-comprehensions/reto.py | 1e8dc892f2adf69c546ee640f96db3c669d8c639 | [
"MIT"
] | permissive | https://github.com/DanielAbrahamDzulPech/articicial-inteligence-and-data-science | b4e9258071f5c3208b078d1f60d09dd07e4355c6 | 953566220e64cbd8f732c2667b818da807bb54c0 | refs/heads/master | 2023-08-11T08:40:15.301204 | 2021-09-20T04:28:57 | 2021-09-20T04:28:57 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Resolviendo Retos y agregandole un nivel mas de dificultad
alumno: @edinsonrequena
"""
def func_reto():
arr = [i for i in range(1, 10000) if i % 4 == 0 and i % 6 == 0 and i % 9 == 0]
print(arr)
| UTF-8 | Python | false | false | 211 | py | 208 | reto.py | 113 | 0.601896 | 0.545024 | 0 | 12 | 16.583333 | 82 |
yusukew62/redmine-issue-registerd | 16,621,523,439,972 | 9f5cb95053a0563859b8807d8cefefbea4661c1e | 7d26da553c77ef4bed9555af2700d809ec64ee3f | /setup.py | f9cecdfd48677c798c8b4dadd3cd4fca53d9251c | [] | no_license | https://github.com/yusukew62/redmine-issue-registerd | e4272d345f81f7880a6267cd08626af03c75976d | 39a2a20f3f31928322c8f08b97be7f4cd323ad24 | refs/heads/master | 2021-01-12T09:10:23.893040 | 2017-01-20T16:38:07 | 2017-01-20T16:38:07 | 76,780,962 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name = 'redmine-issue-registerd',
version = '0.0.1',
description = 'Register auto issue of Redmine by receiving e-mail',
license = 'MIT license',
author = 'Yusuke Watanabe',
author_email = 'yusuke.w62@g... | UTF-8 | Python | false | false | 626 | py | 3 | setup.py | 2 | 0.610224 | 0.597444 | 0 | 22 | 27.227273 | 71 |
simonegymondo/BucketFillCompare | 5,617,817,255,306 | 1e3a17ac1ac3109d41be6f5e0ea53992392090c4 | d471a71c2811d2254f03ed8add65e9402a045216 | /scanline_opencv.py | d7a036868f091186ee3df982df2a43a8aeab7eef | [] | no_license | https://github.com/simonegymondo/BucketFillCompare | f845ce6c03acd4979627e403aecff83f2613e849 | 8211c3162376e2151a0482e964d1a71bef335598 | refs/heads/master | 2021-01-17T16:01:10.615061 | 2016-03-04T10:27:37 | 2016-03-04T10:27:37 | 53,127,630 | 0 | 0 | null | true | 2016-03-04T10:28:34 | 2016-03-04T10:28:34 | 2016-03-04T07:40:30 | 2016-03-04T10:28:16 | 2,978 | 0 | 0 | 0 | null | null | null | from canvas import Canvas
from canvas import timing
class ScanlineOpenCV(Canvas):
"""
This is a scan line approach as designed by OpenCV. The algorithm is similar to
the scanline as described above but it uses a different flow. Instead of filling
from left to right, it starts filling from the center to... | UTF-8 | Python | false | false | 2,258 | py | 7 | scanline_opencv.py | 6 | 0.431798 | 0.419841 | 0 | 76 | 28.723684 | 88 |
paulromano/serpent-tools | 11,656,541,246,620 | 9dccfa31b5d5177345c7022b6c9218896f28395e | 7eeb75666d8d41271569e8088aa65359c1de1d43 | /serpentTools/seed.py | 0848b0cad687633ccb89bab5bb07411f10e7e487 | [
"MIT"
] | permissive | https://github.com/paulromano/serpent-tools | 39377bc439e7ec5d1a184bc6ca2dcdbb66ba2677 | e991c2311a4b5f63b8534a70b65807507bdc1b3e | refs/heads/master | 2022-06-22T15:53:19.239019 | 2018-05-11T12:36:44 | 2018-05-11T12:36:44 | 133,976,907 | 1 | 0 | null | true | 2018-05-18T16:08:00 | 2018-05-18T16:07:59 | 2018-05-18T16:07:37 | 2018-05-18T15:42:35 | 10,623 | 0 | 0 | 0 | null | false | null | """
Function to copy an input file N times with N randomly generated seeds
"""
import os
from os import path
from shutil import copy
import random
from six.moves import range
from serpentTools.messages import error, debug
__all__ = ['seedFiles']
SLOPE = 0.3010142116935483
OFFSET = 0.0701126088709696
def _writeSee... | UTF-8 | Python | false | false | 3,213 | py | 64 | seed.py | 24 | 0.626829 | 0.614379 | 0 | 118 | 26.228814 | 77 |
cloudmesh/client | 16,338,055,595,055 | c24f87cf9ba01cc323de4eb0f29682d6b405741d | 25445f9e3ad9440a3ef3757b96933c33ac1b1daa | /cloudmesh_client/api/impl/openstack.py | fdd35e64d94c25c33519619f489b592ca299710e | [
"Apache-2.0"
] | permissive | https://github.com/cloudmesh/client | 9d0d024b5f48ef59f8f02a2619fc34ed65cbfa17 | a5fc7dbaf2c51f1227cff346aedea4bf7f563fa9 | refs/heads/master | 2022-10-13T13:59:12.201306 | 2019-02-08T21:04:50 | 2019-02-08T21:04:50 | 37,379,872 | 3 | 19 | NOASSERTION | false | 2022-09-16T19:34:16 | 2015-06-13T16:56:22 | 2020-10-05T13:43:34 | 2022-09-16T19:34:15 | 49,462 | 3 | 12 | 101 | Python | false | false | from cloudmesh_client.cloud.network import Network
from cloudmesh_client.cloud.image import Image
from cloudmesh_client.cloud.vm import Vm
from cloudmesh_client import Console
from cloudmesh_client.api import Resource, Provider, Node
from cloudmesh_client.db.openstack.model import IMAGE_OPENSTACK, VM_OPENSTACK
from... | UTF-8 | Python | false | false | 4,698 | py | 244 | openstack.py | 179 | 0.603661 | 0.601533 | 0 | 181 | 24.955801 | 93 |
blazeghost/doctorfinder | 14,293,651,194,399 | b9908c7bcf00f37e79e947f91c722c0504f39cb6 | eacf02e8e3ba089cbbbdae584b3f59581ccef8b3 | /app/migrations/0012_delete_appoinment.py | 1ee2b7135f5bc23317e67243056144cee3953e4b | [] | no_license | https://github.com/blazeghost/doctorfinder | bea6c84b3ece4fc64a75b7a5f6fc5cc2dca41061 | 8ddeda32125d19c1e8060888f335418dbb052f2e | refs/heads/main | 2023-05-11T00:50:17.420008 | 2021-05-24T19:52:31 | 2021-05-24T19:52:31 | 338,102,994 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.1.6 on 2021-03-10 06:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0011_appoinment'),
]
operations = [
migrations.DeleteModel(
name='Appoinment',
),
]
| UTF-8 | Python | false | false | 287 | py | 34 | 0012_delete_appoinment.py | 14 | 0.58885 | 0.522648 | 0 | 16 | 16.9375 | 47 |
Mike-Revy/Python-Simple-examples | 94,489,324,466 | 6da20f2ef87feadf1502c040a44603efbf72d961 | 8e434aa4669fdee7faff7401309d5de6f82eb6aa | /dict.py | 7bb3cb629bee776982fedd686aa0c201692c4526 | [] | no_license | https://github.com/Mike-Revy/Python-Simple-examples | 6651e6a6bbfb3e20181debdbec33bebb7bd771b7 | b95148f5a1e49db7e59e00152c40a1e6bc63758e | refs/heads/master | 2022-01-09T23:38:08.478505 | 2019-07-05T07:00:31 | 2019-07-05T07:00:31 | 109,949,471 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # dictionaries - 2 parts - Key & Value
course = {"title": "Python Collections"}
course["title"] # 'Python Collections'
# No Index / sorting of Dictionaries
nameDict = dict([["name","Kenneth"]])
course ={"title": "Python Collections", "teacher": "Kenneth Love", "videos":22}
course["videos"] # 22
# KeyError - when no... | UTF-8 | Python | false | false | 909 | py | 58 | dict.py | 51 | 0.654565 | 0.646865 | 0 | 21 | 42.142857 | 113 |
Juanky92/Basico | 11,158,325,075,194 | ea85446c0313d1b431ce96b79a71f417eb4cdd3d | 195405791f6c4d829f37b9a52d3adc40a88d5249 | /Funcion18.py | 3a48c7235dd02636ba82ad8f07bdae1450e3f803 | [] | no_license | https://github.com/Juanky92/Basico | 6bfcee9938e5f7726cec50fd06f2f9410eee881c | 786ff572652ceeac8909e45d34d3048dc9a80003 | refs/heads/master | 2021-01-12T10:47:05.836983 | 2016-11-10T00:34:36 | 2016-11-10T00:34:36 | 72,698,532 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def multiplicar(numero):
Rango=range(1,11)
for ele in Rango:
multi=numero*ele
print numero,'X',ele,'=',multi
return
print multiplicar(2)
print multiplicar(5)
print multiplicar(9)
print multiplicar(3)
#Hay que pulirlo
| UTF-8 | Python | false | false | 231 | py | 10 | Funcion18.py | 10 | 0.722944 | 0.692641 | 0 | 13 | 16.615385 | 32 |
doloopwhile/utask | 807,453,873,644 | eff44c66f92ad8da78ec30e7bcb9e70a8199e00b | 922bb9efc32e41580ebe2ae2f14c225480b8669f | /utask/view.py | 0cff53af44271755c65181c1e4758b5f2dcc112c | [] | no_license | https://github.com/doloopwhile/utask | eeda4c8bc105d983b8475bd870cbabd7953b717e | 18b2352c095d0852c3f11c902ec450cd1f48f7e3 | refs/heads/master | 2021-01-01T17:00:17.555683 | 2013-06-26T11:28:15 | 2013-06-26T11:28:15 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from pyramid.view import view_config
from pyramid.response import Response
@view_config(route_name='timelines')
def timelines(request):
return Response('OK')
@view_config(route_name='tasks')
def tasks(request):
return Response('OK')
@view_config(route_name='projects')
def projects(request):
return ... | UTF-8 | Python | false | false | 335 | py | 3 | view.py | 2 | 0.725373 | 0.725373 | 0 | 14 | 22.928571 | 37 |
vaskocuturilo/GoogleSearch-Python- | 2,027,224,609,238 | 04d72311464ea761a0fe70ef0412c42ceef277a5 | 2d90259827e5283250c6ddf68a294c88954afc9d | /google_search.py | 54d4a5a3ff04a2a0c65ac969a40e8a7dd3aab996 | [] | no_license | https://github.com/vaskocuturilo/GoogleSearch-Python- | 6d55e34f0edebc296191bad083f9088f92840e32 | ee687bbb971edc9d5c6121271a6f93731542a6e1 | refs/heads/master | 2017-12-03T20:44:19.370953 | 2017-03-25T10:35:13 | 2017-03-25T10:35:13 | 86,149,104 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import unittest
from page import page
from selenium import webdriver
class search_data(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.get("http://www.google.com/ncr")
self.driver.implicitly_wait(10)
self.driver.maximize_window()
def search_g... | UTF-8 | Python | false | false | 886 | py | 3 | google_search.py | 3 | 0.639955 | 0.637698 | 0 | 29 | 29.551724 | 65 |
braybaud/dtk-tools | 3,083,786,567,209 | 8bf38ee262912b306e325344749f778c521ad008 | 12c7a452fb196a73925a399a7ae62bff0f1bbc08 | /calibtool/resamplers/BaseResampler.py | 7e0a3fc8349e611e2d98fcc4fc7a6cd4ba52ddbb | [
"MIT"
] | permissive | https://github.com/braybaud/dtk-tools | fec8fb743a01c8cacf2d0d5d4697dec1391af266 | 389ce75ab013a9b1f5fd2a7a0fee6434dd240cde | refs/heads/master | 2020-04-17T02:27:31.863445 | 2020-04-14T17:42:27 | 2020-04-14T17:42:27 | 166,135,502 | 0 | 0 | NOASSERTION | true | 2019-07-16T22:11:04 | 2019-01-17T00:59:18 | 2019-07-14T23:05:53 | 2019-07-16T22:11:04 | 401,488 | 0 | 0 | 0 | Python | false | false | from abc import ABCMeta, abstractmethod
from itertools import zip_longest
import os
from simtools.Analysis.AnalyzeManager import AnalyzeManager
from simtools.ExperimentManager.ExperimentManagerFactory import ExperimentManagerFactory
from calibtool.resamplers.CalibrationPoint import CalibrationPoint, CalibrationParamete... | UTF-8 | Python | false | false | 6,579 | py | 609 | BaseResampler.py | 431 | 0.660739 | 0.659371 | 0 | 129 | 50 | 149 |
lpierzchala/gameTest | 10,050,223,490,951 | df9cb43c933763c18f957ce3843c27226930542a | 862d23eceb7d4421b2018794de0e911a2d802f47 | /Pages/BasePage.py | 9160b39b712a6bdd39b7b56dc7ac3925408e4ba9 | [] | no_license | https://github.com/lpierzchala/gameTest | df89d828b6d9183e40329b16984a9f010933eb4c | 3d640533a54a27f52deea3f86f3173969fedeb12 | refs/heads/master | 2022-01-18T00:54:33.672068 | 2019-05-16T20:27:39 | 2019-05-16T20:27:39 | 186,867,790 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
class BasePage(object):
def __init__(self, driver):
self.driver = driver
def findElement(self, locator, timeout=30):
... | UTF-8 | Python | false | false | 980 | py | 5 | BasePage.py | 4 | 0.686735 | 0.682653 | 0 | 25 | 38.2 | 103 |
TheJakey/JCP | 7,473,243,129,876 | 7ab276d675aae6e4d8b94b44d3efe85aea0392fb | 35ede0074f53b2c01f10a06a7a0b98c5b6173eca | /sender.py | e7581bff0f11777e8268256bb8762de38862a03e | [] | no_license | https://github.com/TheJakey/JCP | 8ad6048d1c9b58c57f84f1b2c550b609cdda4b42 | f8b12cbba53bc728e2f491485688f70892a1b25d | refs/heads/master | 2020-08-12T00:30:58.164805 | 2019-12-31T12:31:55 | 2019-12-31T12:31:55 | 214,656,178 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import cryptograph
import settings
def build_and_send(soc, identifier, flag, fragmentNumber, paycheck, message, *args):
'''
Builds and sends message as UDP packet.
:param soc:
:param identifier:
:param flag:
:param fragmentNumber:
:param message:
:return: encoded message that's ready t... | UTF-8 | Python | false | false | 1,016 | py | 10 | sender.py | 7 | 0.655512 | 0.651575 | 0 | 38 | 25.736842 | 94 |
OlexaNdrus/big_data_test_task | 4,896,262,747,686 | 9605118cfb31a7d8f58855c6c76e2d87db1313ce | e8e1814a1a8375c8e30cf71331fdff401f97c1f9 | /main.py | edd450d65297599439da61c6b5dc5d8c732ac83b | [] | no_license | https://github.com/OlexaNdrus/big_data_test_task | 9d038b6f9de539ea9685f89da1ac391300b772c4 | 4cd85c2bea95ab73885fea0f0bf31a8b713127f8 | refs/heads/master | 2023-07-13T07:46:57.940980 | 2021-08-16T17:00:48 | 2021-08-16T17:00:48 | 396,887,381 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
import numpy as np
products_csv = 'test-task_dataset_summer_products.csv'
def main_body(csv_file):
products_df = pd.read_csv(csv_file)
products_df = products_df[['price', 'rating_five_count', 'rating_count', 'origin_country']]
products_df.replace(r'^\s*$', np.nan, regex=True)
agg... | UTF-8 | Python | false | false | 818 | py | 3 | main.py | 1 | 0.622249 | 0.616137 | 0 | 24 | 33.083333 | 111 |
WN1695173791/CNN-Pytorch | 16,320,875,739,265 | 95202683b0c1ac98531012c58ba702a3f1b8ddfa | 11ce8ed5965de77859aa413469239d1b96ce54c7 | /RunBuilder.py | 4f7bc741119d91745cae68c2e0722beed1af3c02 | [] | no_license | https://github.com/WN1695173791/CNN-Pytorch | 329b5f59388b623ae9e8ba480f9e813fa17c421a | 7ef8c10a06ca545b95424301137fe47b80fbc16b | refs/heads/main | 2023-03-16T14:02:29.526092 | 2021-01-26T06:32:34 | 2021-01-26T06:32:34 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
created by PyCharm
date: 2021/1/15
time: 0:16
user: wkc
"""
from collections import namedtuple
from itertools import product
class RunBuilder:
@staticmethod
def get_run(params): # 静态方法,不需要实例化
Run = namedtuple('Run', params.keys())
runs = []
for v in product(*params.values()):
... | UTF-8 | Python | false | false | 393 | py | 6 | RunBuilder.py | 2 | 0.617251 | 0.590296 | 0 | 20 | 17.55 | 46 |
HephyAnalysisSW/TopEFT | 13,116,830,142,360 | 0737af286e9c58704163dba5492d71ff666b6314 | aef8eb6681e555ecb61ac67151e4c54d6fdd1023 | /plots/plotsDaniel/SUSY/ttZcomposition.py | 434ce10c92ad0c8a10084351604c9a9b70c90ee7 | [] | no_license | https://github.com/HephyAnalysisSW/TopEFT | 0e2dc89f7a43bacf50c77a042f56663e9d4f3404 | 53174807c96dffa6654e4dc63bef92f2b71706ee | refs/heads/master | 2022-11-07T02:41:53.120759 | 2020-03-31T08:08:27 | 2020-03-31T08:08:27 | 98,643,866 | 0 | 3 | null | false | 2019-10-14T09:02:09 | 2017-07-28T11:38:23 | 2019-10-14T08:17:14 | 2019-10-14T09:02:08 | 5,222 | 1 | 5 | 0 | Python | false | false | ''' Analysis script for 1D 2l plots (RootTools)
'''
#Standard imports
import ROOT
from math import sqrt, cos, sin, pi, acos
import itertools,os
import copy
import argparse
argParser = argparse.ArgumentParser(description = "Argument parser")
argParser.add_argument('--small', action='store_true', help="Fo... | UTF-8 | Python | false | false | 8,031 | py | 190 | ttZcomposition.py | 179 | 0.665048 | 0.640269 | 0 | 202 | 38.752475 | 212 |
tamagrijr/pocketTrainer | 1,108,101,579,964 | 84c5e590f7f0d605051018e9fc586106493c0603 | 83dd01fe1bd1bb241299bc82fe87a12b38cea88c | /app/models/exercise.py | ecd2b23664b482495bc7d7d4a469b2fe4f33eacb | [] | no_license | https://github.com/tamagrijr/pocketTrainer | 2c88475270c397520af1a4d86f2792d8dd124d86 | 25232864ff676dd0092a37d409502c3fb2b9af9a | refs/heads/main | 2023-04-07T16:57:35.479451 | 2021-04-20T13:36:31 | 2021-04-20T13:36:31 | 317,941,681 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from .db import db
class Exercise(db.Model):
__tablename__ = "exercises"
id = db.Column(db.Integer, primary_key=True)
sessionId = db.Column(db.Integer, db.ForeignKey('sessions.id'), nullable=False)
workoutId = db.Column(db.Integer, db.ForeignKey('workouts.id'), nullable=False)
order = db.Column(db.Integer)
... | UTF-8 | Python | false | false | 1,518 | py | 85 | exercise.py | 76 | 0.660079 | 0.660079 | 0 | 52 | 28.192308 | 98 |
Wotipati/studyPyQt | 4,750,233,860,495 | 36c7c1e1814a4492c921c9a104eda322d3be9838 | 6117b365a3afd77207f0a99d0040f45f720ac71f | /07Slider/07Slider.py | 76888c623148af914e47615b62009c06063d4c72 | [] | no_license | https://github.com/Wotipati/studyPyQt | d7e196d508e9b2f1dacd047d3c0d0b1df55c0a6a | 2eafc707bd216fd3c9a620d801e4fa8768f5712c | refs/heads/master | 2021-09-10T07:45:57.012098 | 2018-03-22T10:19:30 | 2018-03-22T10:19:30 | 105,001,539 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QSlider, QLabel, QAction, QVBoxLayout,\
QHBoxLayout, QLCDNumber, QLineEdit
from PyQt5.QtCore import Qt, QCoreApplication
from PyQt5.QtGui import QPixmap, QIcon
class Slider(QMainWindow):
... | UTF-8 | Python | false | false | 3,893 | py | 18 | 07Slider.py | 9 | 0.628307 | 0.616491 | 0 | 111 | 34.063063 | 103 |
CTimmerman/PyPico8 | 4,681,514,365,942 | 999451c7645d7443a063b1248bc46a7f19431475 | 695721571bc292ef5a249e73d3117d4f597c0270 | /src/music_generator.py | 6d0d65a4144e12de9c28a96e2fd23a673d18671f | [
"MIT"
] | permissive | https://github.com/CTimmerman/PyPico8 | fbe2ee065f916a74955ba106e4280bf3ef68cd06 | a68c83ae5a9dc53221ab39d6e55bb68bb5a1e479 | refs/heads/main | 2023-04-18T23:31:53.199356 | 2021-05-04T22:48:46 | 2021-05-04T22:48:46 | 337,238,311 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Music Generator ported from https://www.youtube.com/watch?v=1EWR6gVyPh4
"""
# fmt: off
from pypico8 import cls, flip, flr, line, pico8_to_python, poke, printh, pset, sfx, stat, Table, rnd, run
# fmt: on
printh(
pico8_to_python(
r"""
q=poke
r=0x3200
s={0x2d2c,3,65,16,67,32}
t={0,2,3,5,7}
for i=1,#s,2 do
... | UTF-8 | Python | false | false | 1,394 | py | 58 | music_generator.py | 55 | 0.464849 | 0.368006 | 0 | 70 | 18.928571 | 110 |
computer0796579/hello-world | 4,544,075,430,863 | ace07efde522205e5d1d0c6154b93a0949cc531e | 55f1bd45eabc3d5d4baf17c03ec0499018c9247d | /schedule.py | 9fa8716fcae954b1aeed63c59074a1b8f7b361e3 | [] | no_license | https://github.com/computer0796579/hello-world | a4352c3d9372dd78c92062b77fadafde2796dcfd | 6355de030937fed4bdb68f89a62193897c18764c | refs/heads/main | 2023-06-27T20:31:32.936572 | 2021-08-03T10:45:52 | 2021-08-03T10:45:52 | 387,781,493 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | myteam = {
"emp1" : {
"name" : "X",
"schedule" : "A/T"
},
"emp2" : {
"name" : "Y",
"schedule" : "B"
},
"emp3" : {
"name" : "Z",
"schedule" : "C"
}
}
d = iter(myteam.items())
print(next(d))
| UTF-8 | Python | false | false | 245 | py | 5 | schedule.py | 5 | 0.355102 | 0.342857 | 0 | 18 | 11.611111 | 24 |
depopescu/Django-2-Web-Development-Cookbook-Third-Edition | 16,063,177,690,330 | 1f8c442dffbb688f2864e45d1f4d778574ff2f9e | 5bf282e8e2f7c39e42b9433b46efba48b2c7e774 | /Chapter12/myproject_docker/project/urls.py | 165291015e220591040d2d1a15a52053c8904a6b | [
"MIT"
] | permissive | https://github.com/depopescu/Django-2-Web-Development-Cookbook-Third-Edition | 1b8bef30fef4614088180a669c452e796cbaa312 | f129613e2b1d00f5c76649025ae4d568f6286f2c | refs/heads/master | 2023-08-14T06:10:28.559231 | 2021-01-15T11:16:23 | 2021-01-15T11:16:23 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """myproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | UTF-8 | Python | false | false | 2,729 | py | 138 | urls.py | 98 | 0.662147 | 0.655185 | 0 | 78 | 33.987179 | 77 |
geenutts/trinity | 10,677,288,727,841 | bfafdd5f5540c80d7a1670d8c7f500d6861d8e0b | 0a3fe43b5b092d8f257dd6f0e15a8df4935b9bf8 | /eth2/beacon/state_machines/__init__.py | 1827602627f724d1e2846f2205b2558be32c2edc | [
"MIT"
] | permissive | https://github.com/geenutts/trinity | f5358d94daa4fd0ea2236db9d9b38d9649b1d7ca | 1b667f50d15524b5f11ae6c8046f04ba54ba7a1e | refs/heads/eth2_sim | 2023-04-13T12:19:37.350131 | 2023-04-08T07:20:46 | 2023-04-08T07:20:46 | 603,926,025 | 0 | 0 | MIT | true | 2023-04-08T07:20:47 | 2023-02-20T00:22:28 | 2023-04-08T07:19:33 | 2023-04-08T07:20:46 | 18,231 | 0 | 0 | 0 | Python | false | false | https://github.com/geenutts/trinity/blob/eth2_sim/eth2/beacon/state_machines/state_transitions.py | UTF-8 | Python | false | false | 97 | py | 1 | __init__.py | 1 | 0.835052 | 0.814433 | 0 | 1 | 97 | 97 |
akhileshvvn/django-settime | 2,817,498,560,611 | 50f0951ef670e730714fb278d974cae14ee4480d | 35c1d0bb6d5e8b467f4150085b964b790ed64589 | /Slotbooking/syat/urls.py | cc01ccccf2a7234b626a5b4fec5624dee2ba8169 | [] | no_license | https://github.com/akhileshvvn/django-settime | b9180ef7d92f877151dbff3df469c0b42e16a3ce | f07eb0ae3926c87cd2d6a4e0cffca237a5af1de3 | refs/heads/master | 2022-10-11T18:55:32.303415 | 2020-06-14T10:50:23 | 2020-06-14T10:50:23 | 272,179,120 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import url,include
from . import views
app_name = 'syat'
urlpatterns = [
url(r'^form/$',views.fill, name = 'fillform'),
url(r'^error/$',views.error,name='error'),
url(r'^book/$',views.book,name='book'),
] | UTF-8 | Python | false | false | 242 | py | 13 | urls.py | 8 | 0.632231 | 0.632231 | 0 | 12 | 19.25 | 50 |
keithpenney/Python | 6,038,724,057,833 | 62aa051b0abb77a88c45467eab0f93142e67a126 | 13998a4aedf1945199549da9a5b633959581c164 | /PyQt/t20.py | 97ad11c67b25b13f0d09b49a43a8360739658ac5 | [] | no_license | https://github.com/keithpenney/Python | 9bb466e8fc053ac0a88eb1da9930cf192b523d27 | 94567c6bada51b5389ded0cb5313ff07ebce3efc | refs/heads/master | 2020-03-02T18:26:21.472928 | 2020-02-22T22:33:29 | 2020-02-22T22:33:29 | 102,804,228 | 0 | 0 | null | false | 2017-09-09T05:13:36 | 2017-09-08T01:46:40 | 2017-09-08T01:48:55 | 2017-09-09T05:13:36 | 6 | 0 | 0 | 0 | Python | null | null | """
PyQt4 tutorial
Color-select dialog
http://zetcode.com/gui/pyqt4/
"""
import sys
from PyQt4 import QtGui
class Example(QtGui.QWidget):
def __init__(self):
super(Example, self).__init__()
self.initUI()
def initUI(self):
"""Initiate the user interface"""
col = QtGui.QColo... | UTF-8 | Python | false | false | 1,777 | py | 78 | t20.py | 61 | 0.611142 | 0.583568 | 0 | 58 | 29.655172 | 121 |
simon-ritchie/apyscript | 4,982,162,080,760 | 31ca26faa709034b2c6be61b63eb350b5f87b5d0 | 175bf8bae6f380e2134fe7332d5ee4cfca756c0a | /apysc/_event/animation_event.py | 6d38bf8159c2f9897a3d91762069964f861fbeea | [
"MIT",
"CC-BY-4.0"
] | permissive | https://github.com/simon-ritchie/apyscript | 7fb8a4b7bf75a5189127b59b78f55e4185918c54 | 6e3f2881f40deeb5409e93cf0a8971819845e689 | refs/heads/main | 2023-03-19T12:38:17.113129 | 2023-03-18T02:35:36 | 2023-03-18T02:35:36 | 334,394,290 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Class implementation for the animation event.
"""
from typing import Generic
from typing import TypeVar
from typing_extensions import final
from apysc._animation import animation_base
from apysc._event.event import Event
from apysc._html.debug_mode import add_debug_info_setting
from apysc._type.variabl... | UTF-8 | Python | false | false | 3,225 | py | 1,701 | animation_event.py | 889 | 0.562791 | 0.551628 | 0 | 98 | 30.908163 | 86 |
spedas/pyspedas | 1,297,080,150,889 | 16a16b705afe684775e88c862377fd904a57b401 | 88dd4380e0d33d4a118ca4e69e4ca9b1c8f45e1f | /pyspedas/particles/spd_part_products/spd_pgs_limit_range.py | d40109a137760e623866c423a94938ce8604c3cf | [
"MIT"
] | permissive | https://github.com/spedas/pyspedas | 16d34015961e3a4d3eaf8637d3cb6abca95df1b1 | 1d07b148753afa96e148c5835ed9545c507577da | refs/heads/master | 2023-09-01T16:07:47.131334 | 2023-08-25T17:15:35 | 2023-08-25T17:15:35 | 167,614,292 | 125 | 61 | MIT | false | 2023-09-08T18:41:27 | 2019-01-25T21:11:14 | 2023-08-30T12:49:43 | 2023-09-08T18:41:26 | 84,582 | 117 | 51 | 92 | Python | false | false |
def spd_pgs_limit_range(data, phi=None, theta=None, energy=None):
"""
Applies phi, theta, and energy limits to data structure(s) by
turning off the corresponding bin flags.
Input:
data: dict
Particle data structure
Parameters:
phi: np.ndarray
Minimum and ma... | UTF-8 | Python | false | false | 2,160 | py | 494 | spd_pgs_limit_range.py | 399 | 0.568519 | 0.548148 | 0 | 69 | 30.289855 | 120 |
aCoffeeYin/pyreco | 9,603,546,881,224 | 579520044fd950fd89010b180ed4fbb5af38b199 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/stripe-monospace-django/allPythonContent.py | f3aa309994a59e4878e16d7556db8d25a436a9ea | [] | no_license | https://github.com/aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | __FILENAME__ = admin
from django.contrib import admin
import models
admin.site.register(models.User)
########NEW FILE########
__FILENAME__ = forms
from django import forms
from django.core.exceptions import NON_FIELD_ERRORS
class MonospaceForm(forms.Form):
def addError(self, message):
self._erro... | UTF-8 | Python | false | false | 9,626 | py | 16,703 | allPythonContent.py | 3,862 | 0.629961 | 0.620923 | 0 | 358 | 24.888268 | 216 |
herobird1981/kunlun_cdl_auto_script | 6,863,357,756,262 | 4d2b192bdb36d50dd1f37627cd652e35b163f915 | c9977acba0d5432ca41b7f9e53be9dbeb6132516 | /cdl_fpga/dsp0/test_dsp0_ptc.py | 16b1ed6b312f34acd2b7c6d324f6f131ad63437a | [] | no_license | https://github.com/herobird1981/kunlun_cdl_auto_script | d965d12874898d0327131adf91aad64477f283b2 | a7689e2969054581b24e263b7b7d7c066cd51dd4 | refs/heads/master | 2020-04-04T18:55:26.816369 | 2018-11-05T08:37:31 | 2018-11-05T08:37:31 | 156,185,242 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # $language = "Python"
# $interface = "1.0"
import sys
sys.path.append('.')
import testlib
reload(testlib)
testlib.init()
if __name__ == '__builtin__':
testlib.crt = crt
sys.dont_write_bytecode = True
###################################################
############################################... | UTF-8 | Python | false | false | 944 | py | 24 | test_dsp0_ptc.py | 19 | 0.441737 | 0.422669 | 0 | 41 | 21.02439 | 72 |
huskeypm/amylin | 3,169,685,888,096 | 10fa04d2f552f0b1dbd6ef8c57f63726fd3fbaae | ac2c2c4a305d7e74aa173afa0d6ad500dc729065 | /fittingAlgorithm.py | 12d2fca5049e851797e5c6d4639dc8cb298ef54d | [] | no_license | https://github.com/huskeypm/amylin | 6896614516d734170a7c4088860508ac2b89ea01 | 6d7848b9528bfd8c942dc6db891dc591d658a85d | refs/heads/master | 2022-11-14T07:56:16.606500 | 2017-12-26T17:39:15 | 2017-12-26T17:39:15 | 277,685,559 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
sys.path.append("./fitting_sensitivity/")
import multiprocessing
from os import getpid
import runShannonTest as rs
import numpy as np
import analyzeODE as ao
import copy
import pandas as pd
import taufitting as tf
import matplotlib.pylab as plt
import fitter
import daisychain as dc
class outputObj:
#... | UTF-8 | Python | false | false | 19,225 | py | 24 | fittingAlgorithm.py | 6 | 0.653888 | 0.642029 | 0 | 616 | 30.206169 | 311 |
acrajasekar/m3d-api | 2,473,901,200,815 | c70e680db4119070a80d6a803ee6de89f89be24c | 7a141b04cf7be834f12bf1cfc1a5af0dfd634659 | /m3d/hadoop/algorithm/algorithm_gzip_decompression_emr.py | 229fe72676bfeb896beae08fcdcf3a00b4bf7e98 | [
"Apache-2.0"
] | permissive | https://github.com/acrajasekar/m3d-api | d29212d4fedfe01f0b8e69f4e8f9ff15653ee8c9 | d25d246334f89209e706e8e14f753d04e3094e06 | refs/heads/master | 2020-09-02T20:54:25.130399 | 2020-05-05T22:30:53 | 2020-05-05T22:30:53 | 219,302,196 | 0 | 0 | Apache-2.0 | true | 2020-05-05T22:30:55 | 2019-11-03T13:05:33 | 2019-11-03T13:05:34 | 2020-05-05T22:30:54 | 292 | 0 | 0 | 0 | null | false | false | from m3d.hadoop.algorithm.algorithm_hadoop import AlgorithmHadoop
from m3d.hadoop.algorithm.scala_classes import ScalaClasses
from m3d.hadoop.emr.s3_table import S3Table
class AlgorithmGzipDecompressionEMR(AlgorithmHadoop):
def __init__(self, execution_system, algorithm_instance, algorithm_params):
"""
... | UTF-8 | Python | false | false | 1,482 | py | 22 | algorithm_gzip_decompression_emr.py | 13 | 0.71525 | 0.711201 | 0 | 37 | 39.054054 | 116 |
nkuraeva/python-exercises | 16,157,666,984,121 | 8ca6b5853a0f9d3f3cdc7125fff652160fa5fdc8 | 2c45a9d0fe239c9bb5f7541a4d2cf4a30a084cfa | /week6/count_sort.py | 1079fdd19318d114fd4fba2aa907cf9a811cc5f3 | [] | no_license | https://github.com/nkuraeva/python-exercises | 22e71a94bbf45968978a7da9887b47adb4795fbd | 45bfc179f7f3402ff32bae8e9828ec8fa24345c9 | refs/heads/master | 2022-07-04T11:02:37.839214 | 2020-05-15T09:44:31 | 2020-05-15T09:44:31 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Given a list of N (N≤2 * 10⁵) elements that
# take integer values from 0 to 100 (100 including).
# Sort this list in non-decreasing order. Print the resulting list.
numbers = list(map(int, input().split()))
newNumbers = [0] * 101
for number in numbers:
newNumbers[number] += 1
for nowNumber in range(101):
pri... | UTF-8 | Python | false | false | 383 | py | 93 | count_sort.py | 92 | 0.683377 | 0.633245 | 0 | 10 | 36.9 | 67 |
imperialguy/fivesquare | 4,389,456,615,609 | 37db9f96964d1438ed845a46f4c01aba3c1395b0 | b33375ca8ff1145b19e9b1b116df64ae8bb40114 | /app001/web/forms/business.py | afd4b8012322427051feba9a21ed1ccca5c96cee | [] | no_license | https://github.com/imperialguy/fivesquare | 52cff922ada62d9342264416cad842bfaaf63790 | eec257a3276c712492250a9b45a74556d5c87bb3 | refs/heads/master | 2020-04-10T16:09:16.427564 | 2015-06-22T13:25:17 | 2015-06-22T13:25:17 | 37,095,684 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from app001.web.models.business import BusinessModel
from wtforms import (
Form,
validators,
TextField,
IntegerField,
ValidationError
)
class NewBusinessForm(Form):
name = TextField(u'name', [validators.required()])
location = TextField(u'coordinates', [validators.required()])
def val... | UTF-8 | Python | false | false | 1,735 | py | 13 | business.py | 10 | 0.67781 | 0.673775 | 0 | 51 | 33.019608 | 79 |
berkealgul/DeepLearning-stuff | 5,171,140,675,203 | 5291ee7eec1e9d74bdc4ddffa3e406565187e339 | 74d4a78a831eb78b076f8c16e1b9bb0e29bbb687 | /self-driving/NeuroEvolution/geneticAlgorithm.py | 36141ec4cec3488a4410e32bb3bbdee73aeb9f66 | [] | no_license | https://github.com/berkealgul/DeepLearning-stuff | ad9eb7c95ec2e7ba2029588c16c73158efe03b91 | a76d89e3b65ac7fffcf899feb2c05d99164658a5 | refs/heads/master | 2022-02-12T14:33:23.186834 | 2022-02-02T22:02:21 | 2022-02-02T22:02:21 | 197,758,052 | 0 | 0 | null | false | 2020-06-10T11:18:29 | 2019-07-19T11:03:11 | 2020-06-07T16:01:03 | 2020-06-10T11:18:09 | 42,509 | 0 | 0 | 0 | Python | false | false | import random
import math
from car import Car
mutationRate = 0.01
# ana fonksiyon
def create_new_generation(oldGeneration, generationlen=None):
if generationlen is None:
generationlen = len(oldGeneration)
best_fitness = pick_best_fitness(oldGeneration)
clear_bad_ones(oldGenerati... | UTF-8 | Python | false | false | 3,952 | py | 42 | geneticAlgorithm.py | 33 | 0.626831 | 0.610383 | 0 | 141 | 25.595745 | 91 |
DAVIDMIGWI/python | 12,558,484,410,111 | a892a8ae3bd479f5b65f59880a0c73c24a00b87d | 81c504854beede7af947dcb48b5bff79bd308627 | /Lesson 2a.py | aff26fb591836a3a4a5f086981e86e95050f6991 | [] | no_license | https://github.com/DAVIDMIGWI/python | d74072b77d73e868052e4c4323fd9525d4ad6301 | c16769dd614858ae764b80d76573b460e35b992b | refs/heads/master | 2023-07-31T09:37:06.133273 | 2021-09-17T12:29:03 | 2021-09-17T12:29:03 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # body mass index
# formula
print(5%2) # modulus is the remainder
print(4**2)
weight = float(input("What is your weight-Kgs:"))
height = float(input("what is your height-Meters:"))
PI = 3.14
#find BMI
bmi = weight/pow(height,2)
print("your Body Mass Index is", bmi)
#modulus
| UTF-8 | Python | false | false | 290 | py | 44 | Lesson 2a.py | 42 | 0.665517 | 0.637931 | 0 | 13 | 20.307692 | 52 |
sherlockdoyle/Animator | 9,887,014,755,334 | af7ae7a90f967b3c36102d99762838225f7e0c6b | 03ed1dcb0bdda6df2dbe4d8e18f5d0f7710badea | /animator/graphics/gradient.py | d3de94a41c016eeb30a0c9a7fbe9e255bb131938 | [
"MIT",
"BSD-3-Clause"
] | permissive | https://github.com/sherlockdoyle/Animator | 14a8ac9984b818fe79d5c7c8e68c76e95dc8e7b0 | ebd5e93f3f47cce5b841425fabed1c1afb4bb41b | refs/heads/main | 2023-08-05T05:23:43.508859 | 2023-07-01T15:31:47 | 2023-07-01T15:31:47 | 193,889,153 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import annotations
from abc import abstractmethod
from typing import Literal
import numpy
from animator import skia
from animator._common_types import ColorLike
from animator.graphics.color import color as parse_color
TileMode = Literal['clamp', 'repeat', 'mirror', 'decal']
_tile_mode: dict[TileMode... | UTF-8 | Python | false | false | 5,719 | py | 88 | gradient.py | 84 | 0.574401 | 0.554118 | 0 | 164 | 33.871951 | 120 |
ceache/treadmill | 13,683,765,852,442 | a77cf2c65fa0bbd5b0b74842ff4a172f6c210891 | 7f0c02b3eef636cc382484dd8015207c35cc83a8 | /lib/python/treadmill/ldap3kerberos.py | c4c1ec898536a84baf18aa0b88d449c9758a4606 | [
"Apache-2.0"
] | permissive | https://github.com/ceache/treadmill | 4efa69482dafb990978bfdcb54b24c16ca5d1147 | 26a1f667fe272ff1762a558acfd66963494020ca | refs/heads/master | 2021-01-12T12:44:13.474640 | 2019-08-20T23:22:37 | 2019-08-20T23:22:37 | 151,146,942 | 0 | 0 | Apache-2.0 | true | 2018-10-01T19:31:51 | 2018-10-01T19:31:51 | 2018-09-17T16:20:27 | 2018-10-01T19:30:10 | 3,851 | 0 | 0 | 0 | null | false | null | """Replaces the use of python-gssapi with kerberos in ldap3.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import base64
import socket
from ldap3.core.exceptions import LDAPCommunicationError
from ldap3.protoco... | UTF-8 | Python | false | false | 4,508 | py | 141 | ldap3kerberos.py | 131 | 0.622893 | 0.609139 | 0.000665 | 128 | 34.21875 | 79 |
akojif/codevscolor | 773,094,117,079 | 2fa0799e7e921c95f9efbc773e100ea32029704f | 9ce5f2161212b7c95269f5d04252629582ca5f2d | /python/del_all_files_with_specific_extn.py | c8b1727d78a59e84abe5575c8d8c09bee7fdf38a | [
"Apache-2.0"
] | permissive | https://github.com/akojif/codevscolor | 2eecc915516ab47b7ccf6057b01c3ba01919f285 | 56db3dffeac8f8d76ff8fcf5656770f33765941f | refs/heads/master | 2022-05-14T06:33:17.274925 | 2022-04-06T02:15:30 | 2022-04-06T02:15:30 | 184,721,105 | 1 | 0 | Apache-2.0 | true | 2019-05-03T08:16:09 | 2019-05-03T08:16:08 | 2019-04-29T17:36:28 | 2019-04-29T17:36:27 | 125 | 0 | 0 | 0 | null | false | false | #1
import os
from os import listdir
#2
folder_path = 'C:\Sample\'
#3
for file_name in listdir(folder_path):
#4
if file_name.endswith('.txt'):
#5
os.remove(folder_path + file_name)
| UTF-8 | Python | false | false | 205 | py | 111 | del_all_files_with_specific_extn.py | 98 | 0.614634 | 0.590244 | 0 | 11 | 17.636364 | 42 |
edu-athensoft/ceit4101python | 2,877,628,100,729 | 3b4b2b2acc4fcb1a4254c0d80980ac4de9e21623 | 5f66f92c2dbfcee2460e79e43880c915210c2735 | /stem1400_modules/module_6_datatype/m6_5_set/set_issuperset.py | ce9bc541716cb53c406af3310512244ce679bd6b | [] | no_license | https://github.com/edu-athensoft/ceit4101python | 0bf7e8a3e06b4c54aabffac6777e8284e0593c0d | b6a63b489c8acf0f1d8e676d3f63c56c5897ab6d | refs/heads/master | 2023-08-31T02:59:12.044402 | 2023-08-25T06:22:54 | 2023-08-25T06:22:54 | 170,928,822 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # isupperset
A = {1, 2, 3, 4, 5}
B = {1, 2, 3, 4, 5, 6, 7, 8}
C = {'a','b'}
print(B.issuperset(A))
print(A.issuperset(A))
| UTF-8 | Python | false | false | 127 | py | 1,007 | set_issuperset.py | 974 | 0.488189 | 0.385827 | 0 | 8 | 14.5 | 28 |
yell/python-utils | 11,544,872,137,856 | 3c66c7038a7a8e51f9589ee371b96eb742c523d9 | e182be71da0833bb3a8e3d14d9e150dbff2a2983 | /utils/dict_utils.py | 3ee907ea11cd81faa33bd0076f895bd676b78f50 | [
"MIT"
] | permissive | https://github.com/yell/python-utils | 93a734b206e7cff99c026420ee4c87b3cd38570c | 9fa452e8c9902c090a61d07d8e3b0ff706c047c4 | refs/heads/master | 2020-04-08T12:37:46.394515 | 2020-03-26T17:06:13 | 2020-03-26T17:06:13 | 159,355,153 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import operator as op
from types import DictionaryType
def is_dict(object_):
return isinstance(object_, DictionaryType)
class AttrDict(dict):
"""
A dictionary that allows attribute-style access.
References
----------
* https://danijar.com/patterns-for-fast-prototyping-with-tensorflow/
*... | UTF-8 | Python | false | false | 5,726 | py | 42 | dict_utils.py | 38 | 0.523577 | 0.50978 | 0 | 208 | 26.528846 | 115 |
rummepa/homeautomation | 2,001,454,800,120 | ff6cbaf054342f05428711ad85cd424c1e226cac | ec33d238f44f6ad1d51cca59525103c38067982f | /rolluiken_op.py | 8b10d3c948b543e6258c2243a3b9cbd1d5b2acb6 | [] | no_license | https://github.com/rummepa/homeautomation | c156706afe19b0e655b28f0d77f02d4140221c5b | 12a4188f5e3ad629e3f37132e9c29ac6ce79fb17 | refs/heads/master | 2019-12-24T10:18:53.814334 | 2017-04-11T11:36:36 | 2017-04-11T11:36:36 | 84,371,487 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python3
import RPi.GPIO as GPIO
import time
import timings
down=timings.down
up=timings.up
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7,GPIO.OUT)
GPIO.setup(11,GPIO.OUT)
GPIO.setup(13,GPIO.OUT)
GPIO.setup(15,GPIO.OUT)
GPIO.setup(19,GPIO.OUT)
GPIO.setup(21,GPIO.OUT)
GPIO.setup(23,GPIO.OUT)
GPIO.setup(29,GPIO.OUT)
G... | UTF-8 | Python | false | false | 649 | py | 17 | rolluiken_op.py | 15 | 0.75963 | 0.694915 | 0 | 34 | 18.088235 | 24 |
ductandev/do_an2 | 9,302,899,189,170 | 9a6fcf39dc61c83372b3a8bebfa2122bb266ee84 | f4620bb44ca9f971e5df26b053fc5b28df2f00c0 | /buoi2/bbb.py | 76469ac21b0756b47a5a24b428f6f56944e78092 | [] | no_license | https://github.com/ductandev/do_an2 | c13f89cbc2f4976d13c130a63eaabb9171ab47b8 | f2fb236bf4b5d56423b5f79e22fc87d0a809003f | refs/heads/main | 2023-07-04T23:35:20.304632 | 2021-08-22T02:30:42 | 2021-08-22T02:30:42 | 391,139,591 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import cv2
from matplotlib import pyplot as plt
img = cv2.imread('anh1.jpg', 0)
plt.imshow(img, cmap='gray', interpolation='bicubic')
plt.xticks([]), plt.yticks([])
plt.show()
| UTF-8 | Python | false | false | 198 | py | 95 | bbb.py | 87 | 0.707071 | 0.686869 | 0 | 8 | 23.75 | 53 |
cbain1/DataScience210 | 3,143,916,106,775 | 524f4ba0992f01b0a4c96494263df46128df5b18 | 37a7948722566bfd5fc140621dda59eb2167f43a | /python/poofQ1.py | a6b1486b8be3b3633b0d4ee70796887237aa2db1 | [] | no_license | https://github.com/cbain1/DataScience210 | 54b130b060dedb4f75552230bda0ed30c02f4fc7 | abcefc7dfd2f0776f26fbedd11b451933ae0d1ff | refs/heads/master | 2023-01-23T07:23:47.831193 | 2020-12-03T22:26:38 | 2020-12-03T22:26:38 | 235,894,851 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import random
import re
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def findStuff(babyFile, relevantInfo):
#finding patterns
info = re.finditer(r'<td>(\d*)</td><td>([A-Z]\w*)</td><td>([A-Z]\w*)',babyFile)
for line in info:
relevantInfo[(line.group(2),'Male')] = line.grou... | UTF-8 | Python | false | false | 1,161 | py | 117 | poofQ1.py | 38 | 0.652024 | 0.638243 | 0 | 42 | 26.666667 | 81 |
MDAIceland/WaterSecurity | 2,164,663,555,584 | ca1bbbe1ca1eaea9eced39730c2167703a16e8ed | eac4bc62f668f0760512f87ebc0fea6bda5bc265 | /water_security/data/model/metrics/__init__.py | eaa827c31f1ee3dac29249b41fa03a9c23cc0087 | [] | no_license | https://github.com/MDAIceland/WaterSecurity | e3e20f1f13fe63fdded3acc0311b38c83fca545a | af5d5ca5c26a3fdd7c6b6f8ac578248f4f97393b | refs/heads/master | 2023-04-21T08:43:27.559849 | 2021-05-31T15:25:28 | 2021-05-31T15:25:28 | 357,867,996 | 1 | 1 | null | false | 2021-05-31T15:25:29 | 2021-04-14T10:40:49 | 2021-05-31T15:25:17 | 2021-05-31T15:25:28 | 94,871 | 0 | 0 | 4 | Jupyter Notebook | false | false | import pandas as pd
import os
import pickle
METRICS_DIR = os.sep.join(os.path.split(__file__)[:-1])
VALIDATION_METRICS_PATH = os.path.join(METRICS_DIR, "validation_metrics.pkl")
TRAINING_METRICS_PATH = os.path.join(METRICS_DIR, "training_metrics.pkl")
FEATURES_IMPORTANCES_PATH = os.path.join(METRICS_DIR, "features_imp... | UTF-8 | Python | false | false | 663 | py | 79 | __init__.py | 25 | 0.711916 | 0.710407 | 0 | 18 | 35.833333 | 81 |
swift-nav/ros_rover | 249,108,124,703 | a02e255cd77c30488cc9bc906a96a4ec667b5e23 | 428989cb9837b6fedeb95e4fcc0a89f705542b24 | /erle/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py | 86e964c16f7e674313dc86273efd40eb91445518 | [] | no_license | https://github.com/swift-nav/ros_rover | 70406572cfcf413ce13cf6e6b47a43d5298d64fc | 308f10114b35c70b933ee2a47be342e6c2f2887a | refs/heads/master | 2020-04-14T22:51:38.911378 | 2016-07-08T21:44:22 | 2016-07-08T21:44:22 | 60,873,336 | 1 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | /home/erle/ros2_ws/src/ament/ament_cmake/ament_cmake_test/cmake/run_test.py | UTF-8 | Python | false | false | 75 | py | 4,461 | run_test.py | 1,798 | 0.8 | 0.786667 | 0 | 1 | 75 | 75 |
pdevine/suburbia | 12,472,585,051,262 | 2283c23a4da5f1e5266accea27644146a1569936 | c211359400a01b11d3bd44bfa927aabeba836d1c | /run_game.py | 34a666d652a0d85b8a6069c7e4d39b8991e12331 | [
"LicenseRef-scancode-public-domain"
] | permissive | https://github.com/pdevine/suburbia | 4c1a0140c2884f2c4c3e3b8ca098295d53da0e45 | 82d2d755c6b5b8554f4d62574f97f3e9270851b8 | refs/heads/master | 2021-01-16T19:00:18.603808 | 2009-05-03T21:48:49 | 2009-05-03T21:48:49 | 185,588 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #! /usr/bin/env python
from gamelib import main
import sys
sound = True
fps = False
if '--nosound' in sys.argv:
sound = False
if '--fps' in sys.argv:
fps = True
main.main(sound, fps)
| UTF-8 | Python | false | false | 197 | py | 34 | run_game.py | 19 | 0.64467 | 0.64467 | 0 | 15 | 12.066667 | 27 |
GaimeWolves/advent-of-code-2018 | 7,232,724,949,688 | b5af9952eb12ac6a66d00fc6492b402d1abf32b2 | 71bece124d402ef19fa903c2ef7721a02a83051b | /8.py | bd99b5be63f855f099370ab03465496a71b5db20 | [] | no_license | https://github.com/GaimeWolves/advent-of-code-2018 | 6d7d6407799e49775f4f11968b13699a06f29d5a | 1d3a61e41a257efc0e6f648f732b5bf1e4030d5e | refs/heads/master | 2022-11-09T01:27:06.155373 | 2020-06-23T22:08:33 | 2020-06-23T22:08:33 | 274,518,387 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class node:
parent = None
index = 0
nOfChilds = 0
nOfMetadata = 0
lenOfChilds = 0
metadata = []
childs = []
def toString(self):
print("#{} {}, {}".format(self.index, self.nOfChilds, self.metadata))
for child in self.childs:
print(" {}, {}".forma... | UTF-8 | Python | false | false | 2,844 | py | 24 | 8.py | 23 | 0.625527 | 0.616385 | 0 | 85 | 31.482353 | 90 |
yezyvibe/Algorithm_2 | 10,024,453,693,830 | f9853530ca8955fe088ad63ffb78293f457f7c92 | b492abb3d1bdd66dbb51217aed00e6beb440ffe2 | /Programmers/p_순위2.py | ed10469350c391f8a56891cc4665ff47e6945761 | [] | no_license | https://github.com/yezyvibe/Algorithm_2 | fb56299683e5c5dab09568bffbaa2c8045bba74c | 87cc3e6a1d87487a37b8dd6088c89865d4845cb2 | refs/heads/master | 2023-01-29T13:23:58.662403 | 2022-12-03T16:24:26 | 2022-12-03T16:24:26 | 242,994,289 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def dfs(start, adj, n):
visit = [0] * (n+1)
stack = [start]
visit[start] = 1
while stack:
cur = stack.pop()
if cur not in adj:
continue
for k in adj[cur]:
if not visit[k]:
visit[k] = 1
stack.append(k)
visit[start] = 0
... | UTF-8 | Python | false | false | 1,082 | py | 702 | p_순위2.py | 701 | 0.458569 | 0.437853 | 0 | 42 | 24.309524 | 60 |
thibault/phase | 15,453,292,371,407 | 5ebd88c576b5e975245ed7b9c9d127c7556784a8 | e5c382c2175eef90e914604262a641131b68daea | /src/transmittals/models.py | a06bcf345eafc95f1455d894c883502c786f62a8 | [
"MIT"
] | permissive | https://github.com/thibault/phase | 198231911072c9156eb2af28615024aa250e54fa | 3790b6175d7eaf69f614cfe9f207fbf40745d2ec | refs/heads/master | 2021-01-17T21:02:01.114393 | 2016-01-07T13:45:16 | 2016-01-07T13:45:16 | 47,611,709 | 0 | 0 | null | true | 2015-12-08T09:21:52 | 2015-12-08T09:21:52 | 2015-03-27T14:17:34 | 2015-12-08T09:13:05 | 4,463 | 0 | 0 | 0 | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import logging
import shutil
import uuid
import zipfile
import tempfile
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse
from django.db import transaction
from dj... | UTF-8 | Python | false | false | 23,874 | py | 42 | models.py | 36 | 0.591438 | 0.587962 | 0 | 712 | 32.530899 | 84 |
zephylac/Climbing_Recognition | 3,753,801,438,354 | f22784e2cb82c56ae81bc8ded311fa602f08d32c | 6a17b093c9e98619dc3bb1c1ebf646fd5d25f887 | /main.py | 304687b1a4cf473f5606cef07fd72283532805af | [
"Apache-2.0"
] | permissive | https://github.com/zephylac/Climbing_Recognition | 1e56b689dcf93949b1da494a7056d63ba461341b | 120e3223d5b8c95fe2ba648ac95926c75f50a8a8 | refs/heads/master | 2021-01-25T11:27:53.651133 | 2017-12-28T21:13:39 | 2017-12-28T21:13:39 | 93,928,100 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
import webcolors
from PIL import Image
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 8 09:48:50 2017
@author: zephylac
In this version we try to locate the holds, identify their colors.
"""
# Find the closest color for an RGB value
# Returns the color found in plain text
# @param
# requested_colo... | UTF-8 | Python | false | false | 14,775 | py | 3 | main.py | 2 | 0.571574 | 0.560948 | 0 | 415 | 34.60241 | 139 |
sinabeulo90/RL-Testbed | 14,894,946,621,963 | 5d314e7d5d4fedde48b03b83d8d3cb33a74b8e2f | c080f9dc24adc769c8f8662b15f8a4ebd677460b | /NGU/wrapper.py | 0b6a997ca6fcf53297f4102da6367944e00c095b | [] | no_license | https://github.com/sinabeulo90/RL-Testbed | 9fe3f3ad80fe47540078e5b379034389b86efe72 | 446a74288a287eb62d64c6fa2a43cd668eb441a0 | refs/heads/master | 2023-07-01T05:35:17.084542 | 2021-08-08T08:40:11 | 2021-08-08T08:40:11 | 314,519,635 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import cv2
import numpy as np
from gym import Wrapper
from gym import Env
class MyWrapper(Wrapper):
def __init__(self, env: Env) -> None:
super().__init__(env)
def reset(self):
self.env.reset()
obs = self.env.render(mode="rgb_array")
new_obs = self.preprocessing(obs)
... | UTF-8 | Python | false | false | 960 | py | 25 | wrapper.py | 14 | 0.602083 | 0.570833 | 0 | 29 | 32.103448 | 87 |
Sapphirine/NYC_subway_analysis | 7,713,761,305,541 | c2d5e30e55a4fb4190db513e54187e8428b7a4f0 | 18e25f55905f8b69dd0f5d0b0682f79e11751650 | /MTA/gatherData.py | 8a8e8b3005841212be5420859a2a4e05c63b273a | [] | no_license | https://github.com/Sapphirine/NYC_subway_analysis | 75f7ddb824af396b24ec624318f39ae63fe90450 | 142e40ba36513cf9566044065eb3f79d691bf258 | refs/heads/master | 2021-01-01T03:45:02.845469 | 2016-05-13T11:38:14 | 2016-05-13T11:38:14 | 58,731,809 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys, json, time, csv, datetime
sys.path.append('../utils')
from pytz import timezone
import gtfs_realtime_pb2
import google.protobuf
import alert, tripupdate, vehicle, mtaUpdate
try:
today = time.strftime("%Y-%m-%d")
t_midnight = "%s 00:00:00" %(today)
t_midnight = datetime.datetime.strptime(t_midnight, "%Y-... | UTF-8 | Python | false | false | 2,464 | py | 7 | gatherData.py | 3 | 0.652192 | 0.622159 | 0 | 71 | 33.71831 | 331 |
iwoca/django-seven | 3,573,412,834,583 | 19da498a767e2117efe26f93827d67e52c12c95d | 9623abb3c6fbcfa7e836fd6139926c546a7b0629 | /tests/deprecation_rules/deprecated_utils_unittest/test_checked_file.py | 8ff0f07613f334823161e03575771a54e9e52f31 | [
"BSD-2-Clause"
] | permissive | https://github.com/iwoca/django-seven | 954690e689cbdf55e49e88daea364a12fea4b3b0 | c7be98b73c139c9e74a9be94a0f20a723c739c80 | refs/heads/develop | 2020-04-15T16:22:13.852738 | 2016-11-20T22:46:14 | 2016-11-20T22:46:14 | 51,710,374 | 9 | 1 | null | false | 2016-08-18T21:19:56 | 2016-02-14T19:48:03 | 2016-08-11T07:27:24 | 2016-08-18T21:18:55 | 62 | 5 | 1 | 2 | Python | null | null |
from django.test import TestCase
from django.test.utils import override_settings
from django_seven.deprecated_rules.rules import DEPRECATED_UTILS_UNITTEST
from tests.deprecation_rules.mixins import RuleCheckMixin
class TestDeprecatedUtilsUnittestRule(RuleCheckMixin, TestCase):
@override_settings(DEPRECATED_RULE... | UTF-8 | Python | false | false | 1,140 | py | 49 | test_checked_file.py | 44 | 0.513158 | 0.511404 | 0 | 28 | 39.678571 | 108 |
jdswan/clquiz | 4,337,917,010,050 | 4fdd7b5f0c252296f285578dc28d0fcdeab9a349 | dae587ad705448cbbdc4a766bdaf658a47734e96 | /JSONInterface.py | 9112366cfdc008f42c9c9742f713218dcfaa9e16 | [] | no_license | https://github.com/jdswan/clquiz | eca23e00eeb7b73d98d484dc4febcbfcbdadfad4 | f36c9c4767f280924326bed08e0837f9289b02a2 | refs/heads/master | 2018-01-09T19:08:05.960412 | 2016-01-21T21:01:07 | 2016-01-21T21:01:07 | 50,203,758 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | try:
import ujson as json
except:
import json
class JSONInterface():
def __init__(self):
self.json_data = {}
def loadJSON(self, json_f):
with open(json_f) as f:
self.json_data = json.loads(f.read())
def get_q_dict(self):
return self.json_data["questions"]
... | UTF-8 | Python | false | false | 450 | py | 5 | JSONInterface.py | 4 | 0.575556 | 0.575556 | 0 | 22 | 19.454545 | 49 |
MasQchips/plugin.video.balandro | 11,416,023,122,788 | 8e316036555417a4c4578ff3680724b165af82ba | 90a7b50edfd401b613809ebe3eb4c4f1bac3bd0c | /channels/seriesflv.py | ccb07289f46192db9e85526d6d1bce37b815c97c | [] | no_license | https://github.com/MasQchips/plugin.video.balandro | a21c7e28d5d9a5c4934e399f7b1b5ec45e5cc6ff | 64d9d34501e5bdd6f07b46ef3cd9a0c611a91dbc | refs/heads/master | 2022-11-20T07:20:10.184042 | 2020-07-20T23:47:27 | 2020-07-20T23:47:27 | 281,248,049 | 0 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from platformcode import config, logger
from core.item import Item
from core import httptools, scrapertools, jsontools, servertools, tmdb
import re
# ~ host = 'https://seriesf.lv/'
host = 'https://seriesflv.org/'
headers = {'Referer': host, 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_6... | UTF-8 | Python | false | false | 11,660 | py | 104 | seriesflv.py | 85 | 0.599278 | 0.594553 | 0 | 300 | 37.796667 | 152 |
j-wilson/GPflowPILCO | 103,079,226,188 | 74304a5f7266a9928019d889e43d9e11de9c60f6 | 8811f05b65465e1abff1f43559c8257f63a57724 | /gpflow_pilco/dynamics/__init__.py | e4b07ad12fa5b9ca6695de820718cb822c3a72c8 | [] | no_license | https://github.com/j-wilson/GPflowPILCO | d2d1a1dbb12a75780d89943a2a7e90bfe46c86a6 | 414c3d4bf3c65831791a26bed281c35811fb4ae9 | refs/heads/master | 2023-05-11T06:31:21.778292 | 2021-06-01T19:46:40 | 2021-06-01T19:46:40 | 372,943,915 | 10 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | __all__ = (
"DynamicalSystem",
"solvers",
)
from gpflow_pilco.dynamics.dynamical_system import DynamicalSystem
from gpflow_pilco.dynamics import solvers as solvers | UTF-8 | Python | false | false | 168 | py | 45 | __init__.py | 44 | 0.767857 | 0.767857 | 0 | 7 | 23.142857 | 66 |
hchiba1/refex-add-rdf | 13,752,485,313,848 | cdb34b9722ff1f317138970ebc24b73c2455b592 | 7164d795527614c728be3e26fdfc84d7788585d5 | /analysis/hypergeom.py | 41124e008a662be12e04862fac08d63c5bbe5c01 | [
"CC-BY-4.0"
] | permissive | https://github.com/hchiba1/refex-add-rdf | 3d7221c416f165d4df8180cd3747c6b10da1525b | ad0c5268139c0cee033ac3066570f5fcc8389995 | refs/heads/main | 2023-03-20T07:57:51.402740 | 2021-03-18T04:58:58 | 2021-03-18T04:58:58 | 322,147,996 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
import sys
from scipy.stats import hypergeom
if (len(sys.argv) != 5):
print("Usage: ./hypergeom.py total group1 group2 overlap")
sys.exit(1)
total = int(sys.argv[1])
group1 = int(sys.argv[2])
group2 = int(sys.argv[3])
overlap = int(sys.argv[4])
less_enriched = hypergeom.cdf(overlap, to... | UTF-8 | Python | false | false | 442 | py | 52 | hypergeom.py | 4 | 0.708145 | 0.671946 | 0 | 16 | 26.625 | 64 |
matsitka/django-goose | 2,362,232,030,295 | 568bcbdbc126b0448fd2641381352cdb06af7025 | 7b8a7f82f01926cfee30697201699da7b77989f7 | /gooseproject/urls.py | 0aa0d8c5080cef4fcdd67136a4e05981cace15cf | [] | no_license | https://github.com/matsitka/django-goose | 452e6fdc73e1628d28a5827eafc3dd9c84fc4524 | 054155204c69d1cfda9002847d7f822ec01d16c3 | refs/heads/master | 2016-09-06T05:51:06.087006 | 2014-09-12T21:10:14 | 2014-09-12T21:10:14 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
#mat
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = patterns('',
url(r'^$', 'gooseapp.views.home', name='home'),
url(r'^new/$', 'gooseapp.views.add_article',... | UTF-8 | Python | false | false | 555 | py | 11 | urls.py | 4 | 0.699099 | 0.695495 | 0 | 20 | 26.75 | 95 |
martinhaagmans/zorganimatie | 11,209,864,671,003 | dda39e512fbf3c5e19bb2e9f07809f328d3ccced | ac3ab78d0b3094c452843cf2905d8b7e0c200231 | /zorganimaties/views.py | 49fd66c26fd3ecc2be8228c7db83bdd2d90feb96 | [] | no_license | https://github.com/martinhaagmans/zorganimatie | 2aa5c9b5637970f9f23c13ea92ad126fa67d9d4e | 15672c8599522c8e6bcbb6b08b49fe716da9fe22 | refs/heads/master | 2021-06-02T17:19:17.812285 | 2020-02-24T19:16:58 | 2020-02-24T19:16:58 | 144,148,684 | 0 | 0 | null | false | 2019-04-10T12:42:46 | 2018-08-09T12:19:20 | 2019-04-09T15:11:52 | 2019-04-10T12:42:45 | 115 | 0 | 0 | 1 | Python | false | false | """This script is for zorganimaties. It parses a textfile and returns JSON."""
import os
# import math
import time
import zipfile
from decimal import Decimal
from flask import Flask
from flask import flash
from flask import url_for
from flask import request
from flask import redirect
from flask import render_templat... | UTF-8 | Python | false | false | 8,870 | py | 11 | views.py | 5 | 0.578805 | 0.574859 | 0 | 276 | 31.137681 | 114 |
Ayush456/MyJavascript | 6,957,847,048,477 | 3da0f88e95fd2f2c21e5e8ac8b6cb224c4d8e925 | 291cbf164c4e4db5e94c5fe8c2644e33bdb4741e | /Desktop/ayush/python/Anonymous.py | 85877dc385db8891983fa04d46290ca961a80d1d | [] | no_license | https://github.com/Ayush456/MyJavascript | a750f3a472a4e9e404f4769a72a9c3b776fb88d0 | 832aafae0b71c3840832e968a228bba7986aebb0 | refs/heads/master | 2021-05-08T13:07:22.783296 | 2018-02-02T15:38:54 | 2018-02-02T15:38:54 | 119,998,353 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | sum = lambda arg1,arg2 : arg1+arg2
print("The total value is : ",sum(10,15))
print("The total value is ",sum(10,0.5)) | UTF-8 | Python | false | false | 118 | py | 9 | Anonymous.py | 8 | 0.669492 | 0.567797 | 0 | 4 | 28.75 | 41 |
SRMSE-V4/Modules | 1,108,101,605,277 | 391a77171f0273c2004d463bee0442f499c3791d | 4bc3fc50085df5cd8451529cef209aeb5ed55402 | /smart/getSmartAns.py | 80842fc28af0ee5f1332f5519c988e145c1d5906 | [] | no_license | https://github.com/SRMSE-V4/Modules | 502cb0f7414627e7882678c2a6329bdd3e3992b9 | c1e5594a033af606f019bb144409393c27544386 | refs/heads/master | 2020-04-28T07:25:13.721322 | 2015-02-19T11:51:44 | 2015-02-19T11:51:44 | 30,155,481 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
import cgi,cgitb,json
form = cgi.FieldStorage()
print "Content-type:text/html\r\n\r"
f = form.getvalue("q","india") #Gets input from the form
import test2
if f!="##123##":
try:
result = test2.get(f) #Gets result out of the smart answer module
#print result
if len(result)!=0:
... | UTF-8 | Python | false | false | 967 | py | 20 | getSmartAns.py | 16 | 0.509824 | 0.501551 | 0 | 32 | 29.21875 | 72 |
zizle/FuturesAssistant | 8,555,574,886,677 | 66349c128531a87f8d4c1a6d92f3aaaa79ed2386 | b336eb48db4382b6a42f07fdb1273ead219b1794 | /modules/delivery/__init__.py | c96c59936f6e4c8da28d6997775278287aebae00 | [] | no_license | https://github.com/zizle/FuturesAssistant | ccdbd4c901a7898c547b4043a8b8de8bd8627a0e | 57f71f6ecf2242528188ea48b92141053f614a29 | refs/heads/main | 2023-06-18T08:23:38.094480 | 2020-12-31T07:41:37 | 2020-12-31T07:41:37 | 304,499,229 | 2 | 0 | null | false | 2021-03-26T00:35:29 | 2020-10-16T02:31:34 | 2020-12-31T07:41:45 | 2021-03-26T00:35:28 | 366 | 1 | 0 | 0 | Python | false | false | # _*_ coding:utf-8 _*_
# @File : __init__.py.py
# @Time : 2020-09-22 13:25
# @Author: zizle
from fastapi import APIRouter
from .warehouse import warehouse_router
from .discussion import discussion_router
from .receipt import receipt_router
delivery_router = APIRouter()
delivery_router.include_router(warehouse_router... | UTF-8 | Python | false | false | 419 | py | 77 | __init__.py | 71 | 0.770883 | 0.739857 | 0 | 13 | 31.230769 | 49 |
tonylibing/DeepER | 14,757,507,660,673 | 7c793f1a4cebac3fa2bc943bbe32d8d57b9275c8 | 6e1fa017e467bd633738440d0288e97ef61a2c8d | /emergency_model_running/emergency_model/model/Pytorch_prevVersions/rnnPred.py | 3f3d76b4834e25632eaaba978db98f972c702033 | [] | no_license | https://github.com/tonylibing/DeepER | 62bce71db82be5cc5f3e16ffa5d5474c1a4ddb5a | 7f75062529fa99dd358b6bd6c065fa0ef1faedd8 | refs/heads/main | 2023-08-11T01:07:25.636340 | 2021-09-16T04:21:52 | 2021-09-16T04:21:52 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import math
import torch
import torch.nn as nn
import torch.utils
import torch.utils.data
from torchvision import datasets, transforms
from torch.autograd import Variable
import time
class RNNPred(nn.Module):
def __init__(self, x_dim, nlayers=1, hiddenUnits=48 ):
super(RNNPred, self).__init__()
self.nLayers = n... | UTF-8 | Python | false | false | 1,382 | py | 4,074 | rnnPred.py | 23 | 0.695369 | 0.68741 | 0 | 42 | 31.928571 | 137 |
Aasthaengg/IBMdataset | 4,363,686,800,889 | c70d5c3ef68e8ea43b6fae526dd26947f913c641 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02259/s184035076.py | c0dbd075ffad772c0bd45ec67c3f71d68bf556b3 | [] | no_license | https://github.com/Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | n = int(input()) - 1
a = list(map(int, input().split()))
count = 0
flag = 1
while flag:
flag = 0
j = 0
for i in range( n, j, -1 ):
if a[i] < a[i-1]:
t = a[i]
a[i] = a[i-1]
a[i-1] = t
count += 1
flag = 1
j += 1
print(*a)
print... | UTF-8 | Python | false | false | 327 | py | 202,060 | s184035076.py | 202,055 | 0.366972 | 0.330275 | 0 | 20 | 15.4 | 35 |
kergoth/dotfiles | 13,417,477,836,100 | e8faf3251adf326b8607496a0fe7de564b744287 | cbccdeb9e7c33ece05af059b7152744652250c2b | /os-macos/scripts/recreate-iso | 709f6aba374c6a72581b1de362a31ff7da6d159f | [] | no_license | https://github.com/kergoth/dotfiles | bf4cd3331ed45bdcf557b67400ab92fd2bee94d9 | 9558396c0b4288a37bf65ed72e033cd8d8221fbe | refs/heads/master | 2023-08-27T23:01:27.917829 | 2023-06-02T00:07:04 | 2023-06-02T00:07:04 | 1,935,933 | 16 | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# TODO: Also handle UDF
# TODO: Also handle El Torito boot images
import argparse
import os
import pathlib
import re
import subprocess
import tempfile
import xml.etree.ElementTree as etree
from typing import List
joliet_line = re.compile(r'Joliet.*found')
makehybrid_arg_map = [
['image/fil... | UTF-8 | Python | false | false | 6,503 | 368 | recreate-iso | 346 | 0.655851 | 0.64724 | 0 | 171 | 37.02924 | 127 | |
tripupp/Sep19 | 19,250,043,440,410 | 6620c0e5a27e76bc74f5d7987aa4bcc87ca11eb8 | 8eadd4c7db6872f28592333207b23a6e9309aba7 | /cities/migrations/0016_food_city.py | 3e2faf60cf299db35ea4e119ce7b97d18c30e0b5 | [] | no_license | https://github.com/tripupp/Sep19 | 142255904d186845f0f5cdc5b04064fa081c9e6d | 4e9ab2077be21c914f2f0207e64268fe6f98224d | refs/heads/master | 2022-11-23T23:46:01.512565 | 2019-09-19T19:46:20 | 2019-09-19T19:46:20 | 205,845,957 | 0 | 1 | null | false | 2022-11-22T04:13:26 | 2019-09-02T11:51:07 | 2019-09-19T19:47:01 | 2022-11-22T04:13:23 | 10,029 | 0 | 1 | 3 | CSS | false | false | # Generated by Django 2.2.4 on 2019-09-16 14:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cities', '0015_food_foodcuisine_fooddietarytypes_foodfeatures_foodmeal'),
]
operations = [
migrations.AddFi... | UTF-8 | Python | false | false | 545 | py | 81 | 0016_food_city.py | 43 | 0.640367 | 0.60367 | 0 | 20 | 26.25 | 110 |
dr-dos-ok/Code_Jam_Webscraper | 6,012,954,232,797 | 8aabc5548fc6cfca6c42013ef9bf802a866c502f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_138/1517.py | c8f04760ce2486dc4143f0f490944c642345b649 | [] | no_license | https://github.com/dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def stairs(Na, Ke):
key_Na = []
key_Ke = []
for i in range(n):
key_Na.append('N')
key_Ke.append('K')
dict_Na = dict(zip(Na, key_Na))
dict_Ke = dict(zip(Ke, key_Ke))
dict_both = dict(dict_Na, **dict_Ke)
value = []
for k in sorted(dict_both.keys()):
value.append(dict_both[k])
return value
de... | UTF-8 | Python | false | false | 987 | py | 60,747 | 1517.py | 60,742 | 0.559271 | 0.550152 | 0 | 50 | 18.62 | 75 |
sky-dream/LeetCodeProblemsStudy | 18,854,906,462,026 | edc6a72058170b74474af38b527ee852e7f9cbe2 | 6d25434ca8ce03f8fef3247fd4fc3a1707f380fc | /[0367][Easy][Valid_Perfect_Square]/Valid_Perfect_Square_2.py | bc798b00021614e817c6d18fa8829039de0c6c0c | [] | no_license | https://github.com/sky-dream/LeetCodeProblemsStudy | 145f620e217f54b5b124de09624c87821a5bea1b | e0fde671cdc9e53b83a66632935f98931d729de9 | refs/heads/master | 2020-09-13T08:58:30.712604 | 2020-09-09T15:54:06 | 2020-09-09T15:54:06 | 222,716,337 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # solution 4, Integer Newton,pls refer to No.69
# leetcode time cost : 100 ms
# leetcode memory cost : 28.1 MB
# Time Complexity: O(logN)
# Space Complexity: O(1)
class Solution:
def isPerfectSquare(self, num: int) -> bool:
if num < 2:
return True
x = num // 2
wh... | UTF-8 | Python | false | false | 400 | py | 794 | Valid_Perfect_Square_2.py | 763 | 0.525 | 0.4925 | 0 | 14 | 27.642857 | 48 |
guillemarsan/Computational-Geometry | 11,055,245,838,895 | 53f6c88291c4316cdb79a5b97ec001f4269d0bff | 49faf45795fe4acb5debc44cdcd69ad5700f63f8 | /1.5-Hausdorff/Hausdorff.py | 43d8c39e61f560a6eedd0abd6be0926268f64b25 | [
"MIT"
] | permissive | https://github.com/guillemarsan/Computational-Geometry | 57bdf73d98f37d77aa703c138a9b51862619566b | 59b6e2c821d2c367084b1432e6447740a58bf65a | refs/heads/master | 2021-05-21T19:41:15.827878 | 2020-05-15T11:43:13 | 2020-05-15T11:43:13 | 252,774,102 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Extra: Sierpinski Triangle
"""
import numpy as np
import matplotlib.pyplot as plt
# Generate n points in Sierpinski Triangle
def generate_triangle(n):
p0 = [0,0]
p1 = [2,0]
p2 = [1,np.sqrt(3)]
p = np.array([p0, p1, p2])
vi = 1/2 * (p[0] + p[1])
varr = np.array(... | UTF-8 | Python | false | false | 2,319 | py | 10 | Hausdorff.py | 9 | 0.538594 | 0.483829 | 0 | 112 | 19.714286 | 72 |
pedromela/upwork_scanner | 10,179,072,539,880 | 983e9a9ff1847d0176200301abda675b8c457387 | bc300eb1e8a9dcb605a02994cc2b2e929bda8dc5 | /argylescanner/test_deserialize.py | 3745dbf9ddc79233e65feca092c921dfc8f52c6c | [] | no_license | https://github.com/pedromela/upwork_scanner | 9989e021ef1feb555c8f8ae172d38dbcdf2bf90c | b61c662aae23eeeaf44b0d909a1ed5590268255d | refs/heads/main | 2023-03-02T06:06:04.475727 | 2021-02-02T11:29:22 | 2021-02-02T11:29:22 | 335,041,658 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Module to test serialization/deserialization.
Deserializes the objects stored in the pickles folder.
(these objects are created during the scanner execution)
"""
import os
import items.profile
from items.base_item import BaseItem
from items.job import Job
from items.profile import Profile
for file_name in os.lis... | UTF-8 | Python | false | false | 448 | py | 12 | test_deserialize.py | 10 | 0.747768 | 0.747768 | 0 | 16 | 27 | 56 |
Miss-Inputs/resource-dumper | 5,128,190,982,217 | 4b4b94a49fd764e9f00531a0bdfda3fbb44ed73a | 68f7b8b756732dda3e03b9c2ab6765e912479a4b | /Resource Dumper.py | 459a30378911ee84bf2dfab60a4a7b50c2d7d7cc | [
"MIT"
] | permissive | https://github.com/Miss-Inputs/resource-dumper | f13e5cad326450a7eff029956dd8cc84f9dcf959 | cbee4c36741f2f8b002c226e062a44a1e18fd79a | refs/heads/master | 2022-09-16T20:47:08.488861 | 2017-10-16T11:50:21 | 2017-10-16T11:50:21 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Copyright (c) 2017 Megan "Zowayix" Leet
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, merge, publish, distr... | UTF-8 | Python | false | false | 4,732 | py | 4 | Resource Dumper.py | 1 | 0.729924 | 0.723373 | 0 | 137 | 33.540146 | 98 |
2Min0r/Study | 7,172,595,410,155 | 59b3832dfa52a99033f201c8d9f1ebf10e849070 | 21decace0b49d6c24ac628ad03af58e6420bee68 | /Python/Algorithm/basic/09_isort.py | 8bd16b9bbced6b3e74841cc1f9b3f6a40d851bde | [] | no_license | https://github.com/2Min0r/Study | bb0c49dd4469f241cb8b55990113dae1b3216c90 | b5e7e609386e571339e3f9888d8e49b03b081b46 | refs/heads/master | 2020-11-24T04:31:05.957823 | 2020-03-18T01:40:34 | 2020-03-18T01:40:34 | 227,965,545 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding: utf-8
# O(n^2)
def find_ins_idx(r, v):
for i in range(0, len(r)):
if v < r[i]:
return i
return len(r) # r은 v가 들어가지 않은 상태, 마지막 자리에 새로 값을 넣으므로 len(r)의 idx
def ins_sort(a):
result = []
while a:
value = a.pop(0)
ins_idx = find_ins... | UTF-8 | Python | false | false | 487 | py | 152 | 09_isort.py | 147 | 0.489703 | 0.469108 | 0 | 21 | 19.857143 | 98 |
mmir415/emotion | 13,657,996,024,137 | 6a2ec775b65a1db66ca226ff9c155ae720a546ae | 2f37582d8906312280f54398d6f78c88a1335cc2 | /emorec/tensorflow/classification.py | 2882b8f1adb9d36eb64d0deb301381bbaefd89c4 | [
"MIT"
] | permissive | https://github.com/mmir415/emotion | 31902ae94e7946cd27398a8e2e5c3fdd5d9c7979 | fae5271d344b02e2552c4d3dd080e0ae3d5c0cbb | refs/heads/master | 2023-05-31T10:40:45.615280 | 2021-06-12T05:15:04 | 2021-06-12T05:15:04 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import defaultdict
from functools import partial
from itertools import chain
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
import numpy as np
import tensorflow as tf
from sklearn.metrics import get_scorer
from sklearn.model_selection import BaseCrossVali... | UTF-8 | Python | false | false | 15,972 | py | 24 | classification.py | 21 | 0.61013 | 0.607313 | 0 | 459 | 33.797386 | 88 |
Gabriel-ino/python_basics | 11,484,742,569,379 | fb6fcb081c11e5e47f6f15251b569844c468176c | cde06d205db8c46867c169d2ceb77012046dcc42 | /maior_menor.py | cf97c54d5326760fc6d20e766933b2a091b963b3 | [] | no_license | https://github.com/Gabriel-ino/python_basics | eace2e74e886867178c6396ed958f4e037fadd71 | be415cc58ca3b2452210a832a373fb229d46e416 | refs/heads/master | 2023-01-11T00:17:46.096412 | 2020-11-11T20:57:28 | 2020-11-11T20:57:28 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
n1 = float(input('Digite aqui um valor qualquer: '))
n2 = float(input('Digite aqui outro valor qualquer: '))
print('-='*20, '\nOs valores digitados foram: {} e {}'.format(n1, n2))
if n1 > n2:
print('Dentre eles, o maior valor é: {}'.format(n1))
elif n2 > n1:
print('Dentre eles, o maior valor é: {}'.format(n2))... | UTF-8 | Python | false | false | 385 | py | 67 | maior_menor.py | 66 | 0.63089 | 0.594241 | 0 | 10 | 37.2 | 70 |
austil/AdventOfCode2020 | 3,685,081,949,350 | 9910d1e675c2b07ccba2d9de96304326bbbc0a95 | 8841a1680dfd5e3d37908b102b6bd19eb601c41b | /day18_operation_order.py | 7abc448ff313904425983ae23cf6e3f51a80c368 | [] | no_license | https://github.com/austil/AdventOfCode2020 | 10d701907bd4ba70dac71316525daac4dc9d8c37 | eda7d40d5fea3149515ea2c6902bf307050e959e | refs/heads/main | 2023-02-02T18:03:53.220676 | 2020-12-19T21:16:00 | 2020-12-19T21:16:00 | 318,813,310 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Day 18 : Operation Order
#
# Input : a math operation
# Part 1 : find the sum of all the operation
import unittest
from typing import List
def apply(stack, operators):
while ( len(stack) >= 3
and stack[-3].isdigit()
and stack[-2] in operators
and stack[-1].isdigit()):
expr = f'{s... | UTF-8 | Python | false | false | 2,897 | py | 15 | day18_operation_order.py | 14 | 0.501899 | 0.434933 | 0 | 84 | 33.488095 | 92 |
LittleBlue512/LittleBluePublic | 8,117,488,231,362 | cf2f9b8ab4aa0d14aa40a974edd592b8696523f8 | 6332d7e1e1cadd1f215900de15a2b9158adeb540 | /Lab/Computer Programming/L07/Files/P4.py | 757904711a5090c5b1d8cba63f58a13b92185ec3 | [] | no_license | https://github.com/LittleBlue512/LittleBluePublic | 05d30a92d3a4d3a3d5a3f0a4bad944107788cce9 | 49935ea968a2a895f4e50438e00b367de497a4cf | refs/heads/master | 2020-10-02T08:29:29.185162 | 2020-03-28T08:46:08 | 2020-03-28T08:46:08 | 212,817,613 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null |
def add_place(_dict, k, val):
_dict[k] = val
return _dict
if __name__ == '__main__':
visits = {'Denali NP': 2007, 'Arequipa': 2006, 'Taktsang': 2015}
visits = add_place(visits, 'Taktsang', 2014)
print(visits)
visits = add_place(visits, 'Provins', 2013)
print(visits)
| UTF-8 | Python | false | false | 298 | py | 115 | P4.py | 88 | 0.583893 | 0.516779 | 0 | 11 | 26 | 68 |
samolkz/ILearnDeepLearning.py | 11,828,339,970,368 | ead56602a8d0d3cbfd3395a7449e68855aea9c17 | b45ec2b49f2efbd777ec7496edb5fe88fc130c7d | /01_mysteries_of_neural_networks/06_numpy_convolutional_neural_net/src/errors.py | 0fb5b0891af56a791238106a06a48c4a701f61d2 | [
"MIT"
] | permissive | https://github.com/samolkz/ILearnDeepLearning.py | 068ac404e5ab6fa12346a440b16de26437f324a7 | dd4344c833ceb7e277eb33549efa6afe52194738 | refs/heads/master | 2023-03-11T12:04:58.873146 | 2021-03-02T06:31:07 | 2021-03-02T06:31:07 | 269,059,379 | 0 | 0 | MIT | true | 2020-06-03T10:33:56 | 2020-06-03T10:33:55 | 2020-06-03T08:30:38 | 2020-06-01T22:24:05 | 280,466 | 0 | 0 | 0 | null | false | false | class InvalidPaddingModeError(Exception):
pass
| UTF-8 | Python | false | false | 51 | py | 62 | errors.py | 34 | 0.803922 | 0.803922 | 0 | 2 | 24.5 | 41 |
COVID19Tracking/quality-control | 15,496,242,029,453 | a40cb46b97f29b841276e58ea071f6deb37be000 | 4dac39e0fbdecede3b2ab23ea80c62776301e4cf | /flaskapp.py | e1e295f4caf8fa463a1f4cbb756f742b70174d4d | [
"Apache-2.0"
] | permissive | https://github.com/COVID19Tracking/quality-control | 409cc4ad4bec39b0cbdb78b8d74230c40b811263 | a4395d98c29f534ee0ec2d49fb88fec77ffc6dd9 | refs/heads/master | 2021-05-17T13:18:54.147140 | 2020-05-26T01:05:35 | 2020-05-26T01:05:35 | 250,794,254 | 10 | 5 | Apache-2.0 | false | 2020-05-26T00:52:03 | 2020-03-28T12:52:24 | 2020-05-20T00:16:29 | 2020-05-26T00:52:03 | 13,061 | 9 | 5 | 4 | Python | false | false | #
# Flask App for serving check results
#
# To test local:
# 1. run_check_service.py to start a Pyro4 server
# 2. set FLASK_APP=flaskapp.py
# 3. flask run
# 4. browse http://127.0.0.1:5000/
#
# To run in production, use gunicorn and wsgi. see example in _system.
#
import os
from flask import Flask, ren... | UTF-8 | Python | false | false | 1,561 | py | 36 | flaskapp.py | 22 | 0.594491 | 0.570788 | 0 | 53 | 28.45283 | 102 |
camilolaiton/Compiler-Online | 6,932,077,258,122 | ce2244abfe59184f90454ebb55d021300d074216 | 80c53c295a9f2640e2e8e45cf911bcc8f4283e03 | /compiladores/apps/codigo/admin.py | ea96b4b67b3b86ec97ea7be7e1ca24e61ba6b39d | [] | no_license | https://github.com/camilolaiton/Compiler-Online | d4a30e3996f5e0119e4d0385180c4c7d9b1e260a | 224664208006275c7557a149d39fc8a4127a28bc | refs/heads/total | 2021-06-13T04:03:22.079365 | 2020-01-19T22:02:10 | 2020-01-19T22:02:10 | 133,278,715 | 1 | 0 | null | false | 2021-06-10T20:16:21 | 2018-05-13T22:20:20 | 2020-05-24T04:19:09 | 2021-06-10T20:16:19 | 412 | 1 | 0 | 2 | Python | false | false | from django.contrib import admin
from apps.codigo.models import Codigo
# Register your models here.
admin.site.register(Codigo) | UTF-8 | Python | false | false | 129 | py | 47 | admin.py | 31 | 0.813953 | 0.813953 | 0 | 6 | 20.666667 | 37 |
scraperwiki/newsreader-api | 5,763,846,157,790 | 785cc580165750b1e157793b22565ab32dcf2441 | 4bed2eeec674906951f9e5a8773fdf5147771f17 | /app/queries/framenet_frequency_count.py | af6655486f007bea890ae1df5a8f798974d64543 | [
"Apache-2.0"
] | permissive | https://github.com/scraperwiki/newsreader-api | 70deda00d998df0a093115dbc3163202d352b390 | db9a95b173c805cf67748e6ae75f2552b7fb5e54 | refs/heads/dev | 2021-01-21T04:35:36.988984 | 2016-08-11T15:08:46 | 2016-08-11T15:08:46 | 35,954,838 | 5 | 3 | null | false | 2016-08-11T15:08:47 | 2015-05-20T14:57:11 | 2016-07-26T02:41:29 | 2016-08-11T15:08:47 | 370 | 2 | 0 | 6 | Python | null | null | #!/usr/bin/env python
# encoding: utf-8
from __future__ import unicode_literals
from queries import SparqlQuery
class framenet_frequency_count(SparqlQuery):
""" Get the frequency of Framenet terms across all events
"""
def __init__(self, *args, **kwargs):
super(framenet_frequency_count, self)._... | UTF-8 | Python | false | false | 1,867 | py | 45 | framenet_frequency_count.py | 31 | 0.633637 | 0.632566 | 0 | 57 | 31.754386 | 95 |
sjtuzyl/Read | 6,975,026,895,138 | cec5eaabe9c537f960d0a659ed98b103758e6c74 | ca2c2289f10aee3be1a085d6d147aac49f7225ba | /myapps/redis_/__init__.py | 638620cf834996e4d62d273600f0ca44ae671a5b | [] | no_license | https://github.com/sjtuzyl/Read | 275a04e86817062e92e79e0e6a9a4c211217e2f7 | 838968e65ed01b21b2e517efbdf8abb06fe240b8 | refs/heads/master | 2020-03-26T08:59:13.738561 | 2018-08-17T03:45:24 | 2018-08-17T03:45:24 | 144,729,433 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from redis import Redis
rd = Redis('127.0.0.1', db=12) # 创建redis对象
def incrTopRank(id):
# 自增id的阅读排行
rd.zincrby('ReadTopRank', id)
def getReadTopRank(top):
# 获取排名前top的文章
topRanks = rd.zrevrange('ReadTopRank', 0, top - 1, withscores=True)
try:
from art.models import Articl
# top... | UTF-8 | Python | false | false | 554 | py | 13 | __init__.py | 10 | 0.637597 | 0.618217 | 0 | 20 | 24.8 | 96 |
itamaradin15/hidden_cat_netflix | 8,589,960,002 | 2a80ed748c15813f26188e1926dde16c19a05cdd | fba37693f5e7be82c3bfcd7a535707ac2455fbea | /categories/admin.py | 887f517fff596f313fd84e322fe99682cdef5379 | [] | no_license | https://github.com/itamaradin15/hidden_cat_netflix | 33546fc05826c1a08428f67eceeb7de2633b769b | 23f2d1a2ca0e9da93644c1b623645683e038c70e | refs/heads/master | 2022-11-15T12:33:36.146534 | 2020-06-22T18:42:51 | 2020-06-22T18:42:51 | 274,039,370 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from .models import Category
from .models import CategoryType
admin.site.register(Category)
admin.site.register(CategoryType) | UTF-8 | Python | false | false | 159 | py | 6 | admin.py | 4 | 0.842767 | 0.842767 | 0 | 6 | 25.666667 | 33 |
Mitya-Avadyaev/python_projects | 7,275,674,635,064 | 1577aee0813d0210543abeb0408c2a457537cacd | c4d988f4e3bf4f2ba6f93514ad47b78d40bb2309 | /Yandex contest/D_race.py | dee106fa86012a91035da82859e955e98641a858 | [] | no_license | https://github.com/Mitya-Avadyaev/python_projects | 09fc7b7fa069b719a5efbae0ac91ff5480205646 | 1fd76b927775541399b155e8ec970666c85af2c1 | refs/heads/main | 2023-05-29T10:14:07.326680 | 2022-01-11T16:55:39 | 2022-01-11T16:55:39 | 339,777,652 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from abc import ABC, abstractmethod
class Transport(ABC):
def __init__(self, number, type, speed):
self.number = number
self.type = type
self.speed = speed
def countDistance(self, time, cycle):
return abs(cycle - time * self.speed) % cycle
class Carriage(Transport):
def ... | UTF-8 | Python | false | false | 1,806 | py | 34 | D_race.py | 29 | 0.502769 | 0.472868 | 0 | 63 | 27.666667 | 54 |
GabrielHeffer/INF1407 | 10,187,662,456,439 | f5c6ee08d1a7893b5bd1e4e9f299035210bc0cbb | b436e7f36c300f77ccd83eba96dd0dc34f7bb30c | /Servidor.py | 9aa81cfce60d939aadad023f8ef18ff3ea02838f | [] | no_license | https://github.com/GabrielHeffer/INF1407 | 9b0bf78582abe9ea071b74b3089ed1b9d1fb7d44 | f2713e536c49dd0879bcde96b6086638048cec0a | refs/heads/master | 2023-01-02T18:04:35.060905 | 2020-10-29T18:33:51 | 2020-10-29T18:33:51 | 299,701,353 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Trabalho 1 de INF1407
# Jéssica Pereira - 1711179
# Gabriel Heffer Matheus - 1710603
from sys import argv, exit
from socket import socket, AF_INET, SOCK_STREAM
import _thread
from gtts import gTTS
from speech_recognition import AudioData
import speech_recognition as sr
import time
class _Text2Speech:
def __ini... | UTF-8 | Python | false | false | 2,958 | py | 3 | Servidor.py | 2 | 0.56959 | 0.551642 | 0 | 110 | 25.845455 | 84 |
ramgopal18998/hackoverflow | 8,048,768,751,493 | ce4f7a00c2f3f539e228783a6ed4f32b5461ddec | e8f18a6b5dba560c4e6ed35dc13e973d17aad631 | /cart/admin.py | d4b0daeb4f56e3363773d273b6f468c7760cc590 | [] | no_license | https://github.com/ramgopal18998/hackoverflow | f9d1232e364325e7363d1d0aa602651e68a1975a | ad15eedc6e332e62a0228d4cf81f4262b150972e | refs/heads/master | 2018-11-06T16:37:15.137916 | 2018-02-04T10:15:23 | 2018-02-04T10:15:23 | 118,801,754 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from .models import Cart
class CartAdmin(admin.ModelAdmin):
list_display = ["customer","product","quantity","total_price","status"]
admin.site.register(Cart,CartAdmin)
| UTF-8 | Python | false | false | 202 | py | 62 | admin.py | 38 | 0.777228 | 0.777228 | 0 | 5 | 39.4 | 72 |
stlehmann/esp8266_iot_nodes | 2,989,297,268,090 | 80c1fc1b9656abfce106a66fd803d2dded219f5b | 4e0abb9cc6cf3870d4f5a850f49491afc7683af8 | /nodes/hc_sr501/src/config.py | 705b9d8eacd9f085770f104f9e3954fe94ab5d44 | [
"MIT"
] | permissive | https://github.com/stlehmann/esp8266_iot_nodes | 9f1d05e44e42d29cd692b83aba3ce2115ac4b9a3 | 270cd6321151c11f2d77d5aa6b5445d1c0f8e494 | refs/heads/master | 2021-06-22T16:20:59.961319 | 2017-08-08T20:01:49 | 2017-08-08T20:01:49 | 86,674,054 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from credentials import WifiConfig, MQTTConfig
class Config(WifiConfig, MQTTConfig):
MQTT_CLIENT_ID = 'hcscr501node'
MQTT_TOPIC = 'home/hcsr501'
PIN_SENSOR = 4 # Pin for reading the sensor
config = Config()
| UTF-8 | Python | false | false | 225 | py | 21 | config.py | 15 | 0.711111 | 0.68 | 0 | 11 | 19.454545 | 48 |
leeren/Vim-Demo | 6,373,731,498,741 | 77d63c2fe913ce944517bfab6e98851fa4d0d4dc | e98484544cc0c6b57a86cc48b112768108b6ef75 | /1/1.py | 92b08f0cea1808c775ae9ef3310f4d26dd0f045a | [] | no_license | https://github.com/leeren/Vim-Demo | 8cca5f0ceb3d260c8671c5219cd46d7f05a406fc | 7bc530459b5226f80220a419b74c4ae70558e8ec | refs/heads/master | 2020-03-15T04:45:25.594193 | 2018-05-03T09:37:09 | 2018-05-03T09:37:09 | 131,973,080 | 5 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
class ELGExampleOne(object):
BASE_VARIABLE_1 = "Your problem with Vim is that you don't grok vi"
BASE_VARIABLE_2 = "Think in terms of verbs, prepositions, and nouns."
BASE_VARIABLE_3 = "syoy!"
def __init__(self, exampleA):
""" This header needs to be changed.
... | UTF-8 | Python | false | false | 618 | py | 14 | 1.py | 9 | 0.584142 | 0.559871 | 0 | 23 | 25.869565 | 73 |
Jyoti1706/Algortihms-and-Data-Structures | 13,142,599,949,000 | b6e0f50c9cbfc562e8f08c57b09d6864f63b1bc0 | 8db243a61d43e133aac01a67294d26df3381a8f5 | /Tree/AE_BST_Find_Closest_Value.py | 362a28df3347e842a7bd6eaa7cdd8b1aeacadff0 | [] | no_license | https://github.com/Jyoti1706/Algortihms-and-Data-Structures | ccdd93ad0811585f9b3e1e9f639476ccdf15a359 | 3458a80e02b9957c9aeaf00bf691cc7aebfd3bff | refs/heads/master | 2023-06-21T18:07:13.419498 | 2023-06-16T17:42:55 | 2023-06-16T17:42:55 | 149,984,584 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # This is the class of the input tree. Do not edit.
import math
class BST:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def findClosestValueInBst(tree, target):
# Write your code here.
diff = math.inf
if tree.value == target:
return t... | UTF-8 | Python | false | false | 404 | py | 139 | AE_BST_Find_Closest_Value.py | 139 | 0.628713 | 0.628713 | 0 | 16 | 24.3125 | 51 |
SNaveenMathew/TextMining | 18,030,272,715,644 | e7cad3ddba31a8ea905e1ab66b9676b3c22cd1b5 | 61ff7de6fb00e9adb4c0479bec8d01661808098c | /pos_tagging_spark.py | 79af53b37010df148290dc467f8e3af5ab58048d | [] | no_license | https://github.com/SNaveenMathew/TextMining | da017ae8ae74b91685716c57a1b34138ef364b39 | 614cd86a4972e89319ffd414255ec5e6cfd95286 | refs/heads/master | 2021-05-07T17:23:00.062701 | 2019-01-20T00:25:39 | 2019-01-20T00:25:39 | 108,678,010 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from pos_tagging import run_treetagger_pos_tag_text
from pyspark.sql.functions import udf
from pyspark.sql.types import ArrayType, StringType
def run_treetagger_pos_tag_spark(df, in_col, out_col = None, get_lemma = False):
run_treetagger_pos_tag_text_udf = udf(lambda x: [run_treetagger_pos_tag_text(y, get_lemma = ... | UTF-8 | Python | false | false | 638 | py | 27 | pos_tagging_spark.py | 17 | 0.719436 | 0.719436 | 0 | 11 | 57 | 208 |
ec2604/import_anywhere | 3,848,290,735,225 | 83fb532cb2b4a8976359904a943e27a556f827af | b0785e104e4f5264884d2ee44312d76fb9d267a5 | /import_anywhere/import_anywhere.py | e9f32e867ca810b668e8fea36e80f7a57989a991 | [
"MIT"
] | permissive | https://github.com/ec2604/import_anywhere | b0d16d0e16e74a6d1c0a0f2904746cfd345a6bd5 | 4aed837dca873cb9e9d931398642c67bc72b9286 | refs/heads/master | 2021-04-27T05:45:47.579985 | 2018-02-24T15:55:28 | 2018-02-24T15:55:28 | 122,600,797 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import sys
from inspect import currentframe
try:
if os.name == 'nt':
dir_names = os.environ['IMPORT_ANYWHERE_DIRS'].split(';')
else:
dir_names = os.environ['IMPORT_ANYWHERE_DIRS'].split(':')
except KeyError:
print("Please set the environment variable IMPORT_ANYWHERE_DIRS", sys.stde... | UTF-8 | Python | false | false | 957 | py | 3 | import_anywhere.py | 2 | 0.698015 | 0.695925 | 0 | 27 | 34.407407 | 81 |
gangshen101/Python-Rest-Service | 11,132,555,237,138 | 711fa4358da31db9cf2fb8b89344f911d903f189 | da5100d4370e0665f63b9c03a1b7bc31af06aaad | /ws/handlers/organization_handler.py | 9cc72fcd59343b5a8a9f1d11cb6cd3d9eec937c7 | [] | no_license | https://github.com/gangshen101/Python-Rest-Service | 5c92781624cbcf5bc25db2fedb010bf59621cb92 | 692c7d407ce1e816d06a2a2fa5acab70571a4c7d | refs/heads/master | 2018-04-20T15:27:26.210520 | 2017-05-10T03:14:30 | 2017-05-10T03:14:30 | 90,815,395 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
#
# Licensed Materials - Property of esse.io
#
# (C) Copyright esse.io. 2015 All Rights Reserved
#
# Author: frank (frank@esse.io)
#
#
from ws.resources import organization
from zencomm.api import constants as CONST
from zencomm.utils import timeutils
import json
resource_name = CONST.RESOUR... | UTF-8 | Python | false | false | 7,454 | py | 78 | organization_handler.py | 73 | 0.636571 | 0.627046 | 0 | 219 | 33.004566 | 99 |
taishengy/tympeg | 8,297,876,821,070 | 0e8d48d7e081210bea5c72bc98c8c32df891f49b | 297447a2059a13def84e02f1130e1fa402b58fc3 | /tympeg/queue.py | 58b7844d4505f22bef6fb195b6f554d04d091339 | [
"MIT"
] | permissive | https://github.com/taishengy/tympeg | e57ab5285086f0b7c82e83db23f388b68af9069e | 459a7732f4e5cb14496b6e85d099d33d92089237 | refs/heads/master | 2021-09-09T04:34:27.607694 | 2018-03-13T22:31:26 | 2018-03-13T22:31:26 | 71,312,227 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import time
from multiprocessing import Process
from threading import Timer
from .timecode import seconds_to_timecode
from .converter import MediaConverter
class MediaConverterQueue:
def __init__(self, log_directory='', max_processes=1, logging=False, debug=False):
self.job_list = []
self.proces... | UTF-8 | Python | false | false | 3,474 | py | 17 | queue.py | 15 | 0.586068 | 0.581462 | 0 | 106 | 31.783019 | 113 |
cachar/calculator-2 | 1,571,958,062,870 | 0582bea9676dd27151de1ab2d9f5f2f63711da0a | 48b298b0e825eb15a566eb7cd1a20d46ecac2e73 | /calculator.py | eefb3458a13e1084544aa2f6917aff2468721c50 | [] | no_license | https://github.com/cachar/calculator-2 | 9023f1048e798dbdbf518e4a1fb31d4368d77212 | b776a5e1c33b9782b3695d01df92843a364779be | refs/heads/master | 2016-08-11T19:08:10.701886 | 2016-01-07T20:59:04 | 2016-01-07T20:59:04 | 49,169,220 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
calculator.py
Using our arithmetic.py file from Euser_entryercise02, create the
calculator program yourself in this file.
"""
from arithmetic_2 import *
integer_nums =[]
def integerizing(numbers):
"""We are turning a list of strings into a list of integers"""
for num in numbers:
try:
... | UTF-8 | Python | false | false | 1,894 | py | 2 | calculator.py | 2 | 0.607181 | 0.592397 | 0 | 59 | 31.118644 | 110 |
mikeyq122/simple-text-recognition-python | 6,442,450,961,025 | 1beb182742773e02f577b2ebfef3bf87f2248a6f | 745d8df76208262703919910b72dfeef081878ef | /screen-to-text.py | 1cdc9be83dd18150011269997ad6fbec4aeb9e16 | [] | no_license | https://github.com/mikeyq122/simple-text-recognition-python | aec1cbd9888024a67e153bf7b899a647f4e6b8c7 | 2d7d48055640e07ae733c99aae8fc59438e50729 | refs/heads/main | 2023-08-26T00:07:45.784702 | 2021-10-26T10:26:12 | 2021-10-26T10:26:12 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import Tk, Label, Button, Text
import tkinter
from pynput import keyboard
import sys
import get_pos
from time import sleep
import pyautogui
from PIL import Image
import pytesseract
import pyperclip
import re
if len(sys.argv) > 1:
multi = sys.argv[1]
else:
multi = 4
multi = int(multi)
run = ""
GUI... | UTF-8 | Python | false | false | 2,765 | py | 3 | screen-to-text.py | 2 | 0.521157 | 0.508137 | 0 | 127 | 20.76378 | 80 |
sleirsgoevy/brutejudge | 10,797,547,791,619 | 88bd636538c954519b6ec719fa123260f36f0ccd | 33a382998b082991fcae6e68f7f7c32a1bddc2f0 | /brutejudge/commands/asubmit/format_str.py | 044d8454cc7bcf39b9c6652d76dafd9743f38466 | [
"MIT"
] | permissive | https://github.com/sleirsgoevy/brutejudge | 3a6ded9d7db00dd8af2925d192a4c2b3c60b51f5 | 10a5318fbc429682fee4e759782ece61e684cf91 | refs/heads/master | 2023-04-16T20:34:39.636927 | 2023-03-20T15:35:18 | 2023-03-20T15:35:18 | 174,011,932 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | def check_exists(file, options=set()):
return True
def read_file(name, options=set()):
return name
def format(s, options=set()):
return s
| UTF-8 | Python | false | false | 152 | py | 69 | format_str.py | 67 | 0.657895 | 0.657895 | 0 | 8 | 18 | 38 |
yeyeto2788/OpenNoteScannerPDF | 2,894,808,000,042 | ff5b4a930a887a15259e86bc96eadff926f09e51 | b1da0538368f9bba4a0af84eee0564186b8d0c21 | /open_note_scanner/pdf_server/api/tests/controller_test.py | 1a0d1c88393b9ef9c039ae2ef1c88a4ed2b7e264 | [] | no_license | https://github.com/yeyeto2788/OpenNoteScannerPDF | 677e351a2ddd11ea8e84ecea8da5f1b5c166d3ce | 1d344d01c4d4417e5d8b107f63f794fe485d7d70 | refs/heads/master | 2023-03-18T03:41:12.089099 | 2023-03-07T08:53:02 | 2023-03-07T08:53:02 | 79,562,293 | 1 | 1 | null | false | 2023-03-07T08:53:35 | 2017-01-20T13:41:56 | 2021-11-10T23:10:34 | 2023-03-07T08:53:15 | 2,017 | 1 | 1 | 1 | Python | false | false | from unittest import TestCase
from unittest import mock
from open_note_scanner.pdf_server.api import controller
class ControllerTest(TestCase):
def setUp(self):
self._patches = [
mock.patch(
"open_note_scanner.pdf_server.api.controller.pdf_generator.PDFGenerator"
)... | UTF-8 | Python | false | false | 1,946 | py | 28 | controller_test.py | 16 | 0.562693 | 0.552929 | 0 | 57 | 33.140351 | 88 |
StevenLarge/StochasticControl | 8,375,186,227,762 | 51bd53477734a8c348cdbaca9751455b272c8369 | 2bb18b0fdc3f3f2157a27b84af222cbbe702fc32 | /LagApproximation/Output/Plotting.py | f295ab4ca073b5638798f335f91a9a92c8c736d9 | [] | no_license | https://github.com/StevenLarge/StochasticControl | b6af3add5af0608c097f0d2a4e1c508958e8abf1 | 84fab21f41974e46d868103380864f6194d5a370 | refs/heads/master | 2021-01-20T09:16:31.681490 | 2017-05-15T02:00:52 | 2017-05-15T02:00:52 | 90,230,776 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Plotting Script for Local Tests of Lag-Time Approximation
#
#Steven Large
#January 18th 2017
import matplotlib.pyplot as plt
filename1 = 'WorkTotalTheory_k16.dat'
filename2 = 'WorkTotalTheory_k2.dat'
#filename3 = 'WorkTotal_k2.dat'
file1 = open(filename1,'r')
file2 = open(filename2,'r')
#file3 = open(filename3,'r')... | UTF-8 | Python | false | false | 954 | py | 255 | Plotting.py | 220 | 0.689727 | 0.6174 | 0 | 50 | 18.06 | 58 |
alexp25/wdn-model-experiments-s2 | 5,729,486,408,057 | c697705e8d218156366ec85227685d1aebf9cc97 | 1ca0c1c6ce11d69a2b2ce607a987e36b9380cdf5 | /instalatie_ident/show_data_chart.py | 66d29696b0145f2a30c3eaa909afacb063d97bb4 | [] | no_license | https://github.com/alexp25/wdn-model-experiments-s2 | 8b16ec877c327c07693ac12014fe02296366e9cb | 6b86660ba061928ab9a60d122fd3ff616337c51c | refs/heads/master | 2023-02-04T05:54:54.706604 | 2020-12-27T20:01:59 | 2020-12-27T20:01:59 | 271,288,387 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import pandas as pd
# import our modules
from modules import loader, graph
from modules.graph import Timeseries
from modules import clustering
import time
import os
import yaml
from typing import List
import math
import sys
import matplotlib.pyplot as plt
import matplotlib.cm as cm
root_data_folde... | UTF-8 | Python | false | false | 6,138 | py | 81 | show_data_chart.py | 9 | 0.539101 | 0.511079 | 0 | 270 | 21.733333 | 141 |
AdamZhouSE/pythonHomework | 5,540,507,845,666 | 07bebc40c1e62152c4efbaf3d8ee8b1794aa127a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2789/60677/234803.py | e6309be28ebedeb67f765c102952984dd7590865 | [] | no_license | https://github.com/AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | def fun():
n=int(input())
boards=input().split()
boards.sort(reverse=True)
square=True
for i in range(n):
if int(boards[i])<=i:
square=False
print(i)
break;
if square:
print(n)
times=int(input())
for i in range(times):
fun() | UTF-8 | Python | false | false | 313 | py | 45,079 | 234803.py | 43,489 | 0.495208 | 0.495208 | 0 | 16 | 18.625 | 29 |
nsawant55ip/DataBatch_ETF3 | 3,676,492,033,198 | 3ea4282458d82fb06c9c428041c2b537d351020b | 6a4f647a41ededbc33f8e7b20cb219c98ec30098 | /Code/bbgCountry_fundamentals.py | 4aacc89bcf6656e4de25c8f8c6a5080b6efda9a6 | [] | no_license | https://github.com/nsawant55ip/DataBatch_ETF3 | dca7259a42c19faf746cb698c34b4808bf1866c6 | 7f0c2eb623fcc32b1dd2f54b559fd46de6191575 | refs/heads/master | 2021-05-24T10:35:45.960825 | 2020-04-16T15:05:11 | 2020-04-16T15:05:11 | 253,522,204 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os, sys
import csv
import datetime
from datetime import timedelta
from dateutil.relativedelta import relativedelta
import argparse
import bbgClient
FIELDS_LIST = ["PE_RATIO",
"EQY_DVD_YLD_12M",
"RETURN_ON_ASSET",
"INDX_GENERAL_EARN",
"BS_TOT_ASSET",
... | UTF-8 | Python | false | false | 3,984 | py | 54 | bbgCountry_fundamentals.py | 24 | 0.604167 | 0.600402 | 0 | 105 | 36.933333 | 131 |
alexandrdidenko/project_2 | 15,745,350,145,831 | bd98a7fcc361caba238921218abcbeb97b79f269 | 2d17bbe5e8465469d9fcb3535059d4efe1c24965 | /home_page/views.py | 93b543d71be7a1a9c4c3ab57b2ffc049c36fd545 | [] | no_license | https://github.com/alexandrdidenko/project_2 | dcbc6323b44c602fe827936b69168d322b5f0453 | 98238552d4d457ac41f28bfc46a3af53dd0a0964 | refs/heads/prod | 2021-01-25T14:23:26.316437 | 2018-03-03T20:33:41 | 2018-03-03T20:33:41 | 123,692,138 | 0 | 0 | null | false | 2018-03-03T20:33:42 | 2018-03-03T12:59:17 | 2018-03-03T13:56:12 | 2018-03-03T20:33:42 | 1,952 | 0 | 0 | 0 | JavaScript | false | null | # -*- coding: utf-8 -*-
from django.contrib import auth
from django.shortcuts import render, redirect, HttpResponse
from home_page.models import *
# Create your views here.
def index_view(request):
return render(request, 'home_page/index.html', locals())
| UTF-8 | Python | false | false | 261 | py | 2 | views.py | 2 | 0.735632 | 0.731801 | 0 | 9 | 28 | 60 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.