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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
franck-roland/django-gitlean | 5,617,817,234,034 | 5e339e4a26e5560a931710a9bade5d86fb913c69 | 5049bf1c915459d8b7deae532843a452d63da478 | /gitlean/apps.py | 406f5f4a9ccefb9ce64d0561af843c3ccafd4c27 | [
"Apache-2.0"
] | permissive | https://github.com/franck-roland/django-gitlean | 27f5eeb97fd7cdd8083cdf5c85e4b4c0d81575de | 76260186d2d78bbe5ba3b2c6222a437d6d535d7e | refs/heads/master | 2020-12-03T05:16:01.855877 | 2016-08-03T17:07:55 | 2016-08-03T17:07:55 | 63,898,827 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.apps import AppConfig
class GitleanConfig(AppConfig):
name = 'gitlean'
| UTF-8 | Python | false | false | 89 | py | 10 | apps.py | 8 | 0.752809 | 0.752809 | 0 | 5 | 16.8 | 33 |
earlew/py_scripts | 13,915,694,064,361 | afc00ad664dc3b2c0219509b593cf4bac6489b96 | 66f4b432ba38dbd75fbd54e12577b096ea76c4cb | /BoB_work/compare_hycom_argo.py | c84218a9065b5bb572b9064a9205c5a7573f09e1 | [] | no_license | https://github.com/earlew/py_scripts | 7eadeaa5724f55bd3ea9c5dd83f56cf77ee51d8a | 269780a4453956b2af46d3b4dda466f51491e469 | refs/heads/master | 2016-09-06T05:28:08.791427 | 2015-03-18T18:37:24 | 2015-03-18T18:37:24 | 27,857,664 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import netCDF4 as nc4
import os
import numpy as np
from IPython.core.debugger import Tracer
import nc_functions as ncf
import sys
import timeit
reload(ncf)
debug_here = Tracer()
def drawPolyOnMap(m, verts, facecolor='orange', alpha=0.3):
import matplotlib.pyplot as plt
from matplotlib.path import Path
... | UTF-8 | Python | false | false | 35,283 | py | 25 | compare_hycom_argo.py | 24 | 0.583822 | 0.562084 | 0 | 961 | 35.683663 | 159 |
cash2one/xai | 4,827,543,283,195 | fddbc023b9f6a8f42b59d8bfaccb0abb005b0824 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_foxiest.py | 86bda8a51b4f3712a3b5d317196bd67ada4da945 | [
"MIT"
] | permissive | https://github.com/cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
#calss header
class _FOXIEST():
def __init__(self,):
self.name = "FOXIEST"
self.definitions = foxy
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['foxy']
| UTF-8 | Python | false | false | 218 | py | 37,275 | _foxiest.py | 37,266 | 0.591743 | 0.591743 | 0 | 13 | 15.615385 | 25 |
vaidasj/alg-mod-rev | 13,262,859,044,321 | 8725d6ce30f582d73cb757be71c45aa1bd0fc6d5 | c4249ce9e7cb26ae006bc9951ea676ae2250777b | /gamslib/indus/indus-scalar.py | 4d24cd61866fb8560cd12be80bc2f5134b876969 | [] | no_license | https://github.com/vaidasj/alg-mod-rev | 79de3ef1e110f4bd07cbdef6951de2e4216f47f1 | a3ec6b5c21700a2f28ac6bf7db6aa22540748c6e | refs/heads/master | 2021-06-27T14:06:39.997411 | 2020-10-19T15:47:54 | 2020-10-19T15:47:54 | 180,074,989 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # LP written by GAMS Convert at 12/13/18 10:24:46
#
# Equation counts
# Total E G L N X C B
# 275 183 18 74 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | UTF-8 | Python | false | false | 114,776 | py | 1,335 | indus-scalar.py | 246 | 0.575373 | 0.237637 | 0 | 1,604 | 70.55611 | 120 |
vietodoo/course-rest-api | 1,778,116,504,134 | cec01723076770077aadb8b6c060c95fdbae0b14 | f6171f08f645b7a50b8bac88d378f758eefe16e8 | /src/profiles_project/profiles_api/views.py | 46a60dc8d3fb7598841d11e3687f4861e2513acc | [
"MIT"
] | permissive | https://github.com/vietodoo/course-rest-api | c5c63c8c756914a39a108ff5c8941f4671d7ee47 | 3872549a277bb85ae139968a8a0d2aa9dd7266dc | refs/heads/master | 2023-01-27T15:58:08.882816 | 2020-12-16T09:42:00 | 2020-12-16T09:42:00 | 319,248,863 | 0 | 0 | MIT | true | 2020-12-07T08:15:07 | 2020-12-07T08:15:07 | 2020-10-27T15:28:13 | 2018-09-01T08:42:09 | 26 | 0 | 0 | 0 | null | false | false | from django.shortcuts import render
from rest_framework.response import Response
from rest_framework import viewsets
# Create your views here.
from . import serializers, models
class UserProfileViewSet(viewsets.ModelViewSet):
"""Handles creating, reading and updating profiles."""
serializer_class = seriali... | UTF-8 | Python | false | false | 395 | py | 5 | views.py | 3 | 0.792405 | 0.792405 | 0 | 14 | 27.214286 | 58 |
epidersis/olymps | 8,899,172,252,460 | fe7c5207350fb8f6c1b03445bcb0e1b68f35ce56 | ba1061443f83d65033347c8e8896618005fbb32e | /617B/617B.py | 56b9c0998828e4a64c10a5b00d28410758f34f57 | [] | no_license | https://github.com/epidersis/olymps | 9388f690d4cc282bb5af2b8f57094a5bacce77eb | ff22f97d8cc7e6779dc8533e246d0d651e96033e | refs/heads/master | 2022-07-31T01:50:42.950753 | 2022-07-18T21:51:47 | 2022-07-18T21:51:47 | 130,722,706 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | input()
nuts = input().replace(' ', '').replace('0', ' ').strip().split('1')
if len(nuts) == 1 and nuts[0] == '':
print(0)
exit(0)
mult = 1
for el in nuts:
mult *= len(el) + 1
print(mult)
| UTF-8 | Python | false | false | 204 | py | 126 | 617B.py | 125 | 0.509804 | 0.470588 | 0 | 13 | 14.692308 | 68 |
AhmadRazaAwan/Files | 14,602,888,833,294 | 561daf012a698f8f1f05d424a1bfcc53bd7fac8e | f590fa124c2818297cdd44e5a6d8aeb5e0e71d6d | /dir_4.py | 66267a75a26f64b0c3bb9c70092b9e01dfc7a637 | [] | no_license | https://github.com/AhmadRazaAwan/Files | 45a7364e99048f78f9360bfb68b820409536d1f7 | 0e6bd0c18c085a8f9e021eb22fb160493ec42a18 | refs/heads/master | 2023-01-24T09:18:01.749087 | 2020-11-11T14:16:10 | 2020-11-11T14:16:10 | 311,991,721 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Removing a directory or a file
import os
# Print list of directory
print(os.listdir())
# rename name (old name), (new name)
os.rename("Allah", "My Allah")
# Again print list to check
print(os.listdir())
| UTF-8 | Python | false | false | 208 | py | 40 | dir_4.py | 38 | 0.701923 | 0.701923 | 0 | 11 | 17.909091 | 36 |
aqp1234/gitVR | 15,599,321,245,448 | e2637dadaf41b8be05e286042a9994ece9ce677a | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/encodings/mac_arabic.py | 646fc054f035aa04b9eb5302bd543b89452cd093 | [] | no_license | https://github.com/aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | false | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | 2020-08-25T09:03:47 | 2020-08-25T09:15:40 | 0 | 0 | 1 | 0 | C# | false | false | version https://git-lfs.github.com/spec/v1
oid sha256:f5c262f930f3b7d83466283347f8b0d7b5c7cbf18dd6fceb4faf93dbcd58839e
size 37165
| UTF-8 | Python | false | false | 130 | py | 9,567 | mac_arabic.py | 1,742 | 0.884615 | 0.538462 | 0 | 3 | 42.333333 | 75 |
jirenuki-69/AlienStrike_RetributionDay | 4,303,557,269,561 | 60417848444f0fc55351d733cbe17ad5d359a192 | eca81659957eb096179e3dc992487e2ca7d882f7 | /intro_LVL_2.py | ef6666886e9e5ff425cc0343d139156406532c3f | [] | no_license | https://github.com/jirenuki-69/AlienStrike_RetributionDay | 26e59abbda7ad831e72cdbfbde225e76fe0c9266 | 1c95349b14218630ca1a3efad8468410ecaf7821 | refs/heads/main | 2023-01-28T12:38:27.466690 | 2020-12-09T06:04:25 | 2020-12-09T06:04:25 | 310,120,201 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pygame, sys, const, LVL_2
from clases.Sound import Sound
from clases.Music import Music
from clases.Nave import Nave
from clases.Texto import Texto
def conseguir_nombre():
with open ("nombre.txt") as archivo:
for linea in archivo.readlines():
return str(linea.split("-")[0])
def intro_lv... | UTF-8 | Python | false | false | 4,334 | py | 38 | intro_LVL_2.py | 35 | 0.506922 | 0.490309 | 0 | 128 | 32.859375 | 123 |
breenbo/tictactoe | 10,522,669,902,094 | f45faef60b43c4ada206e92da75a088f0eddfbf0 | 11e867eaabe3a8ab01b823696955ef3dd553d2aa | /ticTacToe.py | 7a15ca3a3abe2ffbac91719765136fbd43a8c54d | [] | no_license | https://github.com/breenbo/tictactoe | 11c7b8a2730ca685200571210ebe293748a82cda | a0fc5d8fdcbead53af426ce6e45f75512d403383 | refs/heads/master | 2021-07-20T11:23:01.109958 | 2017-10-27T18:57:46 | 2017-10-27T18:57:46 | 108,582,801 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from random import *
def printBoard(liste, lenLine=3):
'''
liste : list of num or string
lenLine : length of the desired board
return : line to be printed to have the board
'''
counter = 1
line = ''
# set a counter and add \n every lenLine
for char in liste:
if counter % l... | UTF-8 | Python | false | false | 4,826 | py | 2 | ticTacToe.py | 1 | 0.52528 | 0.506838 | 0 | 161 | 28.975155 | 86 |
apolopino/4G-Final-Backend | 5,299,989,684,032 | 664c2173d95b4150dd20682d8301506a645bef64 | 4ef2f21bffc23336097fcb3b96b35c381ada0001 | /src/admin.py | da4599b1954a435cf8b8b54e19925b27fe549c60 | [] | no_license | https://github.com/apolopino/4G-Final-Backend | 2ee7920e02f940a9fbbf82eb25c65dbcb39fbfdb | 56332592ae9aa877556e7a9d78166e1eab74e045 | refs/heads/develop | 2023-08-07T07:53:01.159833 | 2021-09-29T19:03:20 | 2021-09-29T19:03:20 | 396,526,383 | 0 | 3 | null | false | 2021-09-29T19:03:21 | 2021-08-15T23:04:35 | 2021-09-29T18:56:09 | 2021-09-29T19:03:20 | 4,684 | 0 | 1 | 0 | Python | false | false | import os
from flask_admin import Admin
from models import db, User, ExtrasUsuarios, TodoUsuario, Extras, TemplateTodo, Dias, Desafios
from flask_admin.contrib.sqla import ModelView
def setup_admin(app):
app.secret_key = os.environ.get('FLASK_APP_KEY', 'sample key')
app.config['FLASK_ADMIN_SWATCH'] = 'cerulean... | UTF-8 | Python | false | false | 967 | py | 7 | admin.py | 5 | 0.730093 | 0.728025 | 0 | 22 | 43 | 94 |
DanielBok/copulae | 11,175,504,926,900 | 490a2fd2ab96d565fe3ab89f83c015de672730eb | c8d98c2101a2932c4449183c9e8bd6501c57345f | /copulae/mixtures/gmc/summary.py | 3486e2dca9475042b37b023f03d8bc8f02e0a6f4 | [
"MIT"
] | permissive | https://github.com/DanielBok/copulae | a9af8fa88a212a5436226a22d59799d671d78645 | d48fbd064426605b8784684114844758e3ffc90d | refs/heads/master | 2023-07-08T09:52:31.815899 | 2023-06-14T04:29:39 | 2023-06-14T05:22:31 | 165,516,660 | 131 | 30 | MIT | false | 2023-06-14T05:22:32 | 2019-01-13T14:43:39 | 2023-06-13T07:41:45 | 2023-06-14T05:22:31 | 1,888 | 113 | 24 | 7 | Jupyter Notebook | false | false | import pandas as pd
from copulae.copula.summary import SummaryType
from .parameter import GMCParam
class Summary(SummaryType):
def __init__(self, params: GMCParam, fit_details: dict):
self.name = "Gaussian Mixture Copula"
self.params = params
self.fit = fit_details
def _repr_html_(se... | UTF-8 | Python | false | false | 1,523 | py | 161 | summary.py | 116 | 0.523309 | 0.5174 | 0 | 54 | 27.203704 | 103 |
danmao124/url_shortener | 3,530,463,150,810 | bfdc6556190ee2b1a3c887f1908faba2bbed33c5 | 862edac0971f5b5449773b8a3419c2b005fc3eea | /link_shortener.py | e20f46cb6e87c1e78747de230d88bcdc8c11d049 | [] | no_license | https://github.com/danmao124/url_shortener | d2e093454c7f13bf6c0ad68dcc22f178648de7d2 | a986e28831e491567708d4f2028b749cddb2cb27 | refs/heads/master | 2021-06-09T18:24:32.304005 | 2017-01-13T19:54:03 | 2017-01-13T19:54:03 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask, url_for, request, json, redirect
import MySQLdb, sys, ConfigParser
#Config reader helper method. Taken from online
def ConfigSectionMap(section):
dict1 = {}
options = Config.options(section)
for option in options:
try:
dict1[option] = Config.get(section, option)... | UTF-8 | Python | false | false | 3,928 | py | 3 | link_shortener.py | 1 | 0.641548 | 0.631619 | 0 | 109 | 35.018349 | 125 |
Vohsty/Awaards | 18,047,452,615,234 | a152c6643016f3dca7bd72009c365207438a3cd2 | 890a7db25425d21743199677fe79071b97934f78 | /rating/views.py | 0526a117ba302ce8bc9ad99ece6fe03f12fa31d7 | [
"MIT"
] | permissive | https://github.com/Vohsty/Awaards | 841828523d4168c69c2cabca876071beaad99697 | 4add09ac6b48fd6963ad6f2b36f921530536a83c | refs/heads/master | 2021-09-09T11:53:23.368667 | 2019-07-08T06:34:38 | 2019-07-08T06:34:38 | 194,614,928 | 0 | 1 | MIT | false | 2021-09-08T01:06:47 | 2019-07-01T06:43:00 | 2019-07-08T13:02:27 | 2021-09-08T01:06:45 | 37,212 | 0 | 1 | 4 | Python | false | false | from django.shortcuts import render, redirect
from django.http import HttpResponse, Http404
from django.contrib.auth.decorators import login_required
from .models import Project, Profile, Rating, categories, technologies
from .forms import ProfileForm, UploadForm, RatingForm
from rest_framework.response import Response... | UTF-8 | Python | false | false | 7,072 | py | 14 | views.py | 6 | 0.680713 | 0.676188 | 0 | 186 | 37.026882 | 261 |
Dantes-Shade/Code_Guild | 7,507,602,862,481 | 3f0ef4909173fd3dd18a980f5a3fd4004ef0bd2c | 6ad7763cfe3e3cbe9be5c0cf31fde4c88f79cc78 | /IronEnclave/IronEnclave/iEaccounts/migrations/0002_auto_20200625_1846.py | be01eb85f1bb37a29c55606e380e67aaca5ac1b1 | [] | no_license | https://github.com/Dantes-Shade/Code_Guild | 3766e4d063045444a110b56d712dee646058bc94 | 102a1f709796e6dff9431d38235e826a5a930ff3 | refs/heads/master | 2021-12-12T19:07:00.751277 | 2020-07-29T02:52:44 | 2020-07-29T02:52:44 | 243,426,674 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.0.7 on 2020-06-26 01:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('iEaccounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profiles',
name='profile_img',
... | UTF-8 | Python | false | false | 410 | py | 93 | 0002_auto_20200625_1846.py | 58 | 0.597561 | 0.55122 | 0 | 18 | 21.777778 | 75 |
michaelhe/micserver | 16,183,436,787,908 | 768391c0f1ab11afbbad019cc5e346faf90991f6 | 78bc1cee3a9990e6f0601f6afaf275661413410e | /micsocket.py | 662f47212e34ff14ed0c10ca880ed8fb22a27c56 | [] | no_license | https://github.com/michaelhe/micserver | 07d9fdffadea7893564d6325d5e5d3d7121d825d | 8897ead9c0d219bdcd0a08cff900b2324700ffc5 | refs/heads/master | 2021-01-19T20:30:23.124259 | 2017-05-02T01:35:29 | 2017-05-02T01:35:29 | 88,512,269 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import SocketServer
import logging
import time
logging.basicConfig(
level = logging.DEBUG,
format = '%(threadName)s | %(message)s'
)
class MicSocket(SocketServer.BaseRequestHandler):
def handle(self):
data = self.request[0].strip()
addr = self.request[1]
logging.d... | UTF-8 | Python | false | false | 518 | py | 14 | micsocket.py | 13 | 0.689189 | 0.660232 | 0 | 24 | 20.625 | 74 |
imsardine/learning | 738,734,383,510 | 0ef6925e0bd4463b0f3233ac69a6fade52112fdc | b43c6c03eea348d68d6582c3594760bbe0ecaa08 | /python/tests/test_enum.py | 5e845a0f81191d2151135c9cff75f90b53924388 | [
"MIT"
] | permissive | https://github.com/imsardine/learning | 1b41a13a4c71c8d9cdd8bd4ba264a3407f8e05f5 | 925841ddd93d60c740a62e12d9f57ef15b6e0a20 | refs/heads/master | 2022-12-22T18:23:24.764273 | 2020-02-21T01:35:40 | 2020-02-21T01:35:40 | 24,145,674 | 0 | 0 | MIT | false | 2022-12-14T20:43:28 | 2014-09-17T13:24:37 | 2020-02-21T01:35:54 | 2022-12-14T20:43:25 | 2,751 | 0 | 0 | 15 | Python | false | false | import pytest
from enum import Enum
class Season(Enum):
SPRING = 1
SUMMER = 9
FALL = 3
WINTER = 5
AUTUMN = 3 # alias
def test_str_name_repr():
assert str(Season.SPRING) == 'Season.SPRING' # w/ type
assert Season.SPRING.name == 'SPRING' # w/o type
assert repr(Season.SPRING) ==... | UTF-8 | Python | false | false | 2,243 | py | 313 | test_enum.py | 218 | 0.599643 | 0.584485 | 0 | 81 | 26.703704 | 66 |
jbitshine/hacker-rank | 3,633,542,333,829 | 50e7d9a228c4e4db390343dce45687b2b544e5b5 | fce0bffdca4eddc15d6288ae4a204de666819bb6 | /python/itertools/01-product.py | c89d105eb7707b176e75c993b3573a242ddcf774 | [] | no_license | https://github.com/jbitshine/hacker-rank | c8d7e7445e87b837f4fae3096e87e4dcb549a705 | 27b746c8a0b399b4f69eb40218fcb7b8795c69c7 | refs/heads/master | 2016-09-14T06:09:40.811046 | 2016-09-05T18:58:57 | 2016-09-05T18:58:57 | 64,609,894 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # itertools.product() - Python
from itertools import product
for element in product(map(int, raw_input().strip().split()), map(int, raw_input().strip().split())):
print element,
| UTF-8 | Python | false | false | 184 | py | 143 | 01-product.py | 137 | 0.690217 | 0.690217 | 0 | 6 | 29.666667 | 101 |
rsd13/wetherPLN | 19,069,654,799,922 | d09894bac6abc98362cf528142327e4ef0d213e7 | 2714ce48b53d7c1c614b9f481f223b9e1956230b | /src/BBDD/BDHora.py | 4e3aa535294f5f7d3a41802560da90608be9f74a | [] | no_license | https://github.com/rsd13/wetherPLN | 96a84921a2f91cd7e74131c4de980bfb80db87b9 | dab6aad5e20733f438c11b27d18ecbcbf63c26d8 | refs/heads/master | 2020-08-05T05:21:55.026807 | 2019-10-02T18:27:08 | 2019-10-02T18:27:08 | 212,411,438 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import sqlite3
import os
from src.Dataset.Hora import Hora
from llvmlite.tests.test_binding import asm_inlineasm
class BDHora:
#hora,dai,mes,año,estadoCielo,precipitacion,probPreci,probTormenta,nieve,probNieve
#temperatura,sensTeermica,humedadRelativa,velocidadV,rachaMax,direcionViento,codLocalidad
#codProvincia
... | UTF-8 | Python | false | false | 9,968 | py | 233 | BDHora.py | 31 | 0.443574 | 0.437651 | 0 | 333 | 28.372372 | 123 |
elioudakis/COMP211_Software-development-tools-and-systems-programming | 13,606,456,397,013 | e8d32e18a5a18fe73366729d6dc9aa106c0dea92 | cf618901be5bb4fb8c397a767b86022982bd2e90 | /2_Python exercise/computeSales.py | cedb6adee6714a539ca5907aaaa5972206777b18 | [] | no_license | https://github.com/elioudakis/COMP211_Software-development-tools-and-systems-programming | d0c304399bed1119216607bde287f443c869d68b | 0307a93c62339102efa18de16a3af5ce3f21c7fb | refs/heads/master | 2020-12-30T04:44:16.308196 | 2020-02-07T07:45:10 | 2020-02-07T07:45:10 | 238,864,810 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | ##
##Author: elioudakis
##A.M.:
##email: elioudakis@isc.tuc.gr
##
###################################################
#
#function checkFile(arg1, arg2)
#The function checkFile gets two arguments, the input file (which contains correct and incorrect receipts) and the output file.
#The correct receipts are appended to ... | UTF-8 | Python | false | false | 8,489 | py | 7 | computeSales.py | 3 | 0.507738 | 0.49746 | 0 | 229 | 35.965066 | 184 |
robin3773/Codeforces-Problem-Solution-in-Python-3 | 9,637,906,641,865 | 192928ee813f38faef877eb0e89debb7652cd4fc | ee1e6c0c2234387b9040527206a01b4b60587c48 | /Type A/996A - Hit the Lottery.py | 8ce20e61feeffbd54e0a70c0d2dd8c0ab3367923 | [] | no_license | https://github.com/robin3773/Codeforces-Problem-Solution-in-Python-3 | 2d8e7cdf11e4823c1a8fe64dad9af53211132d5f | 9bb5e6cdf64fe0cf6628c40fd64324b70acc0cb9 | refs/heads/master | 2022-11-29T19:19:04.550904 | 2020-08-05T14:44:03 | 2020-08-05T14:44:03 | 276,883,825 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | n = int(input())
number_of_bills = 0
if n >= 100:
number_of_bills += n // 100
n = n % 100
if n >= 20:
number_of_bills += n // 20
n = n % 20
if n >= 10:
number_of_bills += n // 10
n = n % 10
if n >= 5:
number_of_bills += n // 5
n = n % 5
number_of_bills += n
print(num... | UTF-8 | Python | false | false | 337 | py | 150 | 996A - Hit the Lottery.py | 149 | 0.459941 | 0.385757 | 0 | 19 | 15.631579 | 31 |
enridaga/data-journey | 5,592,047,460,680 | 652bd68cf5e3580861a3dfc96180decf3f25cf66 | 23ffdb532938efb80b4710b63b488af2f4d31224 | /sources/what-makes-a-kaggler-valuable.py | 035c60b1e78fac563d936d0cb9a93df424243d9b | [] | no_license | https://github.com/enridaga/data-journey | 6865622739d318dfd4e1157a2d535b3478d0ed94 | 252353a61874005cd0d8854a61a0caf3c0bc9671 | refs/heads/master | 2021-07-19T14:00:53.824896 | 2021-06-21T10:34:28 | 2021-06-21T10:34:28 | 250,588,858 | 5 | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import numpy as np
import pandas as pd
# Loading the multiple choices dataset, we will not look to the free form data on this study
mc = pd.read_csv('../input/kaggle-survey-2018/multipleChoiceResponses.csv', low_memory=False)
# Separating questions from answers
# This Series stores all questions
mcQ = mc.iloc[0,:]
... | UTF-8 | Python | false | false | 48,501 | py | 2,600 | what-makes-a-kaggler-valuable.py | 860 | 0.639344 | 0.606434 | 0 | 1,104 | 42.92663 | 193 |
MatthewSteen/Toolbox | 9,964,324,135,621 | 37ae14f7b7399d369de09215ed3ca1c5fa492050 | 7c4f4568f2322c42d202f8e68e0e92692b4f9fee | /keeplines.py | 3f74d60dc66ca4e3c3350b98d1144febafe7e09d | [] | no_license | https://github.com/MatthewSteen/Toolbox | 4048520c7c867489e04de5661adce9f7d5c42017 | c3a34c1f44aeeb729c9b26f52b0a5f24f81e542c | refs/heads/master | 2020-04-09T23:55:13.825326 | 2015-08-11T14:51:19 | 2015-08-11T14:51:19 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# coding: utf-8
# In[1]:
import os
# In[7]:
'''
cwd = os.getcwd()
file_name = "14095_Kilroy_T24_v3.log"
string_list = ["Warning:"]
suffix = "_errors"
ext = ".log"
'''
def remove_lines(string, read_file, read_file_suffix, read_file_ext):
# Assign file paths
cwd = os.getcwd()
read_path = os.path.join(... | UTF-8 | Python | false | false | 1,339 | py | 2 | keeplines.py | 1 | 0.577296 | 0.563107 | 0 | 57 | 22.473684 | 88 |
1e16miin/backjoon | 5,677,946,793,454 | 89cd983bf1ae2290b80951f214de52b0523a515e | d51ad1d67502e651c8d7aaba7f262109c4d188a9 | /1222.py | d76ef07e305d69a73d62e0a98999e228a99aab00 | [] | no_license | https://github.com/1e16miin/backjoon | 94fd8ff69d100a58a036788db21d665e3143edc7 | 78f6cdf4bd19b70371415cfcc468c7331c44e669 | refs/heads/master | 2023-06-12T14:11:49.764491 | 2021-06-22T04:08:20 | 2021-06-22T04:08:20 | 379,137,562 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | for test_case in range(1,11):
N = int(input())
numbers = list(map(int, input().split("+")))
print("#" + str(test_case) + " " + str(sum(numbers))) | UTF-8 | Python | false | false | 157 | py | 42 | 1222.py | 42 | 0.547771 | 0.528662 | 0 | 4 | 38.5 | 57 |
adrianrojek/Bakalarka | 8,392,366,128,478 | a1dc30aaddb25dfa0cdb86d46561a9ff613bea3f | 965a750cb28ac1a48c4ee5a7f1d5a0bc6aa2c722 | /AttributeClasses/AnonymizaciaIpAdresy.py | 695eb74c4f60d0177fa030d360408331a86108c1 | [] | no_license | https://github.com/adrianrojek/Bakalarka | 11d2f187b73aa68c27ec227b0748c6386a523ebf | a2987bf16b75a0af00fa5be1a3718018153b43da | refs/heads/master | 2023-05-04T06:51:50.279247 | 2021-05-16T23:28:29 | 2021-05-16T23:28:29 | 344,475,700 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
from AttributeClasses.AttributeExtractor import AttributeExtractor
class anonymizacia_ip_adresy(AttributeExtractor):
def __init__(self):
pass
def extrahuj_txt(self, Dokument):
array=Dokument.naSlova()
i = 0
while i < len(array):
if array[i] == "IP":
... | UTF-8 | Python | false | false | 535 | py | 444 | AnonymizaciaIpAdresy.py | 24 | 0.543925 | 0.53271 | 0 | 22 | 23.272727 | 66 |
jztang/scalica-access-control | 14,860,586,863,394 | f8d2ef2054b50ab16a1bdb283f100fe37d8ac065 | f8f22938533f04569d0256e7fa6304963be6d7b7 | /groupDatabase-Django/accessControl/groupDB_server.py | 15b3c513c281f4dbd00d71e6d11e79ce08f4a8b0 | [] | no_license | https://github.com/jztang/scalica-access-control | 09061719058eda506197b44aefbd50fc400672c8 | dbb6aeb1d6ea6c949e8b219c850ec708a55993a9 | refs/heads/master | 2021-06-23T11:59:02.350561 | 2019-12-16T01:28:52 | 2019-12-16T01:28:52 | 221,736,715 | 1 | 0 | null | false | 2021-06-10T22:15:37 | 2019-11-14T16:06:47 | 2019-12-16T01:29:11 | 2021-06-10T22:15:35 | 22,125 | 1 | 0 | 2 | Python | false | false | import copy
import grpc
import logging
import os
import django
import sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "accessControl.settings")
#from django.core.management import execute_from_command_line
django.setup()
from groupDatabase.models import user, group
from concurrent import futures
import groupDB_p... | UTF-8 | Python | false | false | 3,732 | py | 21 | groupDB_server.py | 16 | 0.748124 | 0.737138 | 0 | 131 | 27.48855 | 86 |
markillob/python_basics | 10,883,447,151,435 | d239fa7478813bf527216b14d3f2d1da104bab0c | 75022fcc62508ebe5f9e075b4ad6c4826e145b97 | /basics/strings_search.py | 2c765d258a7a30fbf46c9d81e0694430a76bc63e | [] | no_license | https://github.com/markillob/python_basics | 5304a8f4733c94ba389ee333f691a6def4aade31 | c285816e9432566337f832daa1493ff69df6c4f5 | refs/heads/master | 2021-07-01T14:02:22.575904 | 2021-03-20T13:07:28 | 2021-03-20T13:07:28 | 222,870,357 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
def get_longest_substring ( full_string : str):
counter = 0
counter_temp = 0
anchor_str_temp = ""
i = 0
anchor_str = ""
if full_string == "" :
return print("empty")
while i < (len(full_string)-1): #7
if full_string[i+1] != full_string[i] and full_string[i] ... | UTF-8 | Python | false | false | 2,493 | py | 22 | strings_search.py | 19 | 0.532692 | 0.518652 | 0 | 78 | 30.961538 | 85 |
fabregas/nimbusfs-client | 14,448,270,028,443 | b2e188eda8e20610b242fcc18bbceab687d8bfec | 67696fc94000dede419d0943cf6a98722addc641 | /id_client/webdav_mounter.py | eb51847f2ac10269c97b6506c35cb35fb8821757 | [] | no_license | https://github.com/fabregas/nimbusfs-client | 35ffca5efc421c44ffa57e1f8e03181d385cd3dc | 2be2db7f6dce6f47407ba5537b64d56efa7f51de | refs/heads/master | 2020-05-18T10:17:49.926114 | 2013-07-10T15:17:34 | 2013-07-10T15:17:34 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
"""
Copyright (C) 2013 Konstantin Andrusenko
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
@package id_client.webdav_mounter
@author Konstantin Andrusenko
@date May 08, 2013
"""
import os
import sys
import string
from id_client.u... | UTF-8 | Python | false | false | 6,426 | py | 66 | webdav_mounter.py | 63 | 0.552132 | 0.543573 | 0 | 199 | 31.286432 | 110 |
du-debug/tornado_SDK | 15,899,968,937,486 | 6007af90ee28a9762e8b45ac15c6be3999bb20ed | c656411d42db388c805c14e3b46dd402d2048d16 | /tornado_SDK/common/notify_url.py | 5194bd76a1d373c789f7475ab58e9ce8dd1c4f4a | [] | no_license | https://github.com/du-debug/tornado_SDK | ebff9606c5f9fb0e88430966b71e28ac1009d29b | 8b78411413aae01e7ade0eec36f37746d0e54cd4 | refs/heads/master | 2020-09-11T00:14:34.456824 | 2019-11-27T05:28:55 | 2019-11-27T05:28:55 | 221,876,675 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
单线程的去维护 notify_url
"""
from utils.cache import CacheMixin
class NotifyUrl(CacheMixin):
is_instance = None
def __new__(cls, *args, **kwargs):
if not cls.is_instance:
cls.is_instance = super(NotifyUrl, cls).__new__(cls, *args, **kwargs)
return cls.is_instance
@classmethod
... | UTF-8 | Python | false | false | 572 | py | 30 | notify_url.py | 30 | 0.584229 | 0.569892 | 0 | 27 | 19.62963 | 81 |
marcelocra/generic-code | 4,054,449,170,878 | 5dfb6482ad03140f63a064a6245273442223e387 | 89d8a87f6f9eca558f874e7f9f9bc294f9b7b486 | /sort_quicksort.py | 7621c88805fa5e56cae805ddeec326e71a485ce2 | [] | no_license | https://github.com/marcelocra/generic-code | 18cc8bfa44da0f856783be2f4f2c69104d03dbc9 | 9844a228f2a91e50625cdf72c49d23f8bcdaf06f | refs/heads/master | 2016-09-06T14:32:59.000196 | 2013-02-28T04:08:22 | 2013-02-28T04:08:22 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
import random
import time
def quicksort(array):
if len(array) <= 1:
return array
pivot = array[len(array)/2]
array.remove(pivot)
smaller = []
bigger = []
for x in array:
if x <= pivot:
smaller.append(x)
else:
bigger.append(x)
retu... | UTF-8 | Python | false | false | 980 | py | 15 | sort_quicksort.py | 13 | 0.585714 | 0.567347 | 0 | 45 | 20.777778 | 59 |
kool7/Data_Structures_And_Algorithms_nd256 | 13,984,413,527,640 | 095c551b0e3be8fcd4bc473eeb1aaa11641d0e38 | fa264b31b1fdc13dc0532f99a86b8dd7615b0116 | /interview_Cake/Array and strings/merging_meeting_times.py | 498f9c30c4348e6a0639c9aec68b48039c057065 | [] | no_license | https://github.com/kool7/Data_Structures_And_Algorithms_nd256 | 7e718a1a8ae81f4d08c245a9a6a1bccf8c562fd3 | 24d37d011a3914b667a97efedd5f0078bdce9913 | refs/heads/master | 2021-02-18T01:48:51.462575 | 2021-01-16T11:03:51 | 2021-01-16T11:03:51 | 245,146,425 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
data = [(0, 1), (3, 5), (4, 8), (10, 12), (9, 10)]
def merge_range(time:list):
'''
Arguments
time -- list of meeting time ranges
'''
output = []
for item in sorted(data, key=lambda x: x[0]):
if output and item[0] <= output[-1][1]:
output[-1][1] = max(item[1], output[-1][1... | UTF-8 | Python | false | false | 406 | py | 49 | merging_meeting_times.py | 48 | 0.504926 | 0.450739 | 0 | 19 | 20.368421 | 55 |
tinajer/personal | 3,272,765,080,214 | 878aa24c3987356ef5694c8cac61c311581a4374 | 110150911ec1e4b54dc1d8b12c006b3636a766c9 | /solopy/dorade.py | 365e0d0097649327b47a731aebd8dcacb629acad | [] | no_license | https://github.com/tinajer/personal | ee8400249afbbc4633096a4b09fd44874a768cfb | 807e50ce3ba8a1287165fc28ab1da3274bb9f8fc | refs/heads/master | 2021-01-18T12:36:31.320074 | 2015-06-07T03:09:05 | 2015-06-07T03:09:05 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import struct
import numpy as np
class DoradeFile:
def __init__(self, file_name, mode):
self._defaults = []
self._dorade = open(file_name, mode)
self._defaults = dir(self)
if 'r' in mode:
self._readHeaders()
self._readSweep()
return
def _read... | UTF-8 | Python | false | false | 14,594 | py | 39 | dorade.py | 34 | 0.509182 | 0.501919 | 0 | 382 | 37.201571 | 115 |
DracoMindz/holbertonschool-machine_learning | 1,151,051,283,055 | 30f92306744f4c8844cbba02c8b1e6184e241008 | 8406a55dcd26a111486a99d4a7a0cd556bd8348c | /supervised_learning/0x06-keras/9-model.py | 60d9690c5534ead83339476cf5bc442297368430 | [] | no_license | https://github.com/DracoMindz/holbertonschool-machine_learning | d486ad55865622d81527a31ee844c82b7d06286b | 4ac942126918c7acaa9ef88d18efe299b2f726fe | refs/heads/master | 2020-12-21T20:44:01.026482 | 2020-10-09T02:31:36 | 2020-10-09T02:31:36 | 236,553,914 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
"""
function save_model: saves entire model
function load_model: loadsd entire model
"""
import tensorflow.keras as K
def save_model(network, filename):
"""
saves entire model
"""
network.save(filename)
return None
def load_model(filename):
"""
loads entire model
... | UTF-8 | Python | false | false | 401 | py | 274 | 9-model.py | 220 | 0.665835 | 0.663342 | 0 | 23 | 16.434783 | 48 |
zexpp5/houseAiApi | 6,502,580,499,703 | 7876668c07fa8554328585ef61ae136cb2a4610c | 332b2aad6c2ca2cafe4209c9789285b80ed76190 | /src/AnalyAPI.py | dfa8b7dbd40625fcdf969143af68ea2c032678ab | [
"Apache-2.0"
] | permissive | https://github.com/zexpp5/houseAiApi | 4e65c90973044ddf15f73cc7fd88ba00a3448fcc | 8784c1bac82f21b5f8f96eb68e6aab9ea0694aa7 | refs/heads/master | 2020-05-27T21:14:12.108127 | 2016-06-02T09:52:02 | 2016-06-02T09:52:02 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #coding:utf-8
#语义解析api接口,端口号8778
import subprocess
import os
import logging
from flask import Flask,request
app = Flask(__name__)
@app.route('/fc/<text>')
def hello_world(text):
#param = request.args.get('text')
fc=subprocess.check_output('/usr/bin/python ../ree.py ' + text,shell=True)
return f... | UTF-8 | Python | false | false | 418 | py | 31 | AnalyAPI.py | 19 | 0.638191 | 0.605528 | 0 | 16 | 23.9375 | 82 |
fank-cd/python_leetcode | 7,052,336,324,199 | 3f7ec0715afd128548c8af4a83d6ca7fbc85c600 | 8f7b7a910520ba49a2e614da72f7b6297f617409 | /Problemset/jewels-and-stones/jewels-and-stones.py | f8ac7f2af5a27836f21b9364b4179ddd0dd6d87d | [] | no_license | https://github.com/fank-cd/python_leetcode | 69c4466e9e202e48502252439b4cc318712043a2 | 61f07d7c7e76a1eada21eb3e6a1a177af3d56948 | refs/heads/master | 2021-06-16T23:41:55.591095 | 2021-03-04T08:31:47 | 2021-03-04T08:31:47 | 173,226,640 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# @Title: 宝石与石头 (Jewels and Stones)
# @Author: 2464512446@qq.com
# @Date: 2020-10-02 20:38:40
# @Runtime: 40 ms
# @Memory: 13.4 MB
class Solution:
def numJewelsInStones(self, J: str, S: str) -> int:
d = Counter(S)
res = 0
for i in J:
res += d[i]
return res
| UTF-8 | Python | false | false | 317 | py | 287 | jewels-and-stones.py | 277 | 0.547231 | 0.449511 | 0 | 13 | 22.538462 | 55 |
ngoclam9415/all-authorization | 9,947,144,270,572 | 9edd39c247a18a7ff33b558a764a38342956f8b8 | 4fe6b7a8f149cfbf16c3f47e7de607a05cc40157 | /all_authentication.py | e726f76323389ecd78330afb60c1cc6fd2d46e06 | [] | no_license | https://github.com/ngoclam9415/all-authorization | 4759ce50269deffb977cec846836dba683ff4999 | e8e2b9eec5d576700bf9dafa15512f5f149294b0 | refs/heads/master | 2020-09-20T03:44:18.608663 | 2019-11-27T07:22:17 | 2019-11-27T07:22:17 | 224,369,382 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask, request, render_template, session, jsonify
import base64
import jwt
import time
import random
import re
import hashlib
app = Flask(__name__)
app.config["BASIC_AUTH_USERNAME"] = "ngoclam_athena"
app.config["BASIC_AUTH_PASSWORD"] = "athenaforthewin"
app.secret_key = 'any random string'
data = b... | UTF-8 | Python | false | false | 2,873 | py | 2 | all_authentication.py | 2 | 0.619213 | 0.604595 | 0 | 75 | 37.32 | 167 |
Joakimad/IINI4014-Python-for-programmers | 14,053,132,997,929 | 6f6728131d1b8e27c4b9587376edd4ce26eeb82b | 6f84027b5d3cb29ccd75409bf713c5a5fe932aa5 | /oving7/decrypt.py | 156db6081e141374a647744a35c2c64d5c211d4d | [] | no_license | https://github.com/Joakimad/IINI4014-Python-for-programmers | de77f093406bdbdbf53aef409e8fe8a48fab67c9 | 8b4959d9bcadce58e28c9264b30982767ee19a4f | refs/heads/master | 2021-01-14T20:48:48.335124 | 2020-04-19T15:47:19 | 2020-04-19T15:47:19 | 242,755,030 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from oving7.rsa import decrypt
def decrypt_with_publickey(publickey, encrypted_msg, start, end):
e, n = publickey
possible_solutions = []
counter = 0
for i in range(start, end):
if counter == 100:
print(i)
counter = 0
counter += 1
decrypted_msg = decrypt... | UTF-8 | Python | false | false | 1,418 | py | 10 | decrypt.py | 8 | 0.603667 | 0.324401 | 0 | 38 | 36.315789 | 120 |
Aasthaengg/IBMdataset | 13,503,377,215,686 | fa6d642ece22153be2315b6325b7db1547631299 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02797/s604469972.py | 3c4c4d455f81e5f7cf9f26b9659943f6db4d8491 | [] | 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,K,S=map(int,input().split())
ans=[S]*K
if N-K>=S:
ans.extend([S+1]*(N-K))
else:
ans.extend([1]*(N-K))
print(*ans) | UTF-8 | Python | false | false | 123 | py | 202,060 | s604469972.py | 202,055 | 0.536585 | 0.520325 | 0 | 9 | 12.777778 | 30 |
kigold/fullApp | 1,640,677,547,667 | f5236ce8ef8339bca3aad72f64f81aa9f3a9d799 | a5937fd971d8c728c3652c49b96796db0f3da153 | /api/fullapp/userprofile/migrations/0002_auto_20200409_0021.py | 1c67ec7831f20898241bd8a1ac8a31f95d225279 | [
"MIT"
] | permissive | https://github.com/kigold/fullApp | a779b5354db335636f30b59820bbfd9b736a3770 | 0782648590524739df07eeeefdacf7e5ceb66332 | refs/heads/master | 2023-01-29T00:37:31.522077 | 2020-10-31T16:20:52 | 2020-10-31T16:20:52 | 214,624,839 | 0 | 0 | null | false | 2023-01-06T15:52:13 | 2019-10-12T10:07:39 | 2020-10-31T16:20:55 | 2023-01-06T15:52:12 | 1,766 | 0 | 0 | 36 | Python | false | false | # Generated by Django 3.0.5 on 2020-04-09 00:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='game',
name='away_score',
... | UTF-8 | Python | false | false | 694 | py | 71 | 0002_auto_20200409_0021.py | 61 | 0.550432 | 0.523055 | 0 | 28 | 23.785714 | 49 |
lsjsss/PythonClass | 5,437,428,598,816 | 416d4dd650f759dc53e1ed8909ed49f786a76c66 | da99b8e2a22318f1cafb0c78adb17c8fdebe01df | /PythonBookAdditional/第09章 GUI编程/code/tkinter_RegionCapture.py | e43d485df7e75e9d4cfa0ac694857580a4384128 | [
"MIT"
] | permissive | https://github.com/lsjsss/PythonClass | f185873113d54ed6ae9b3ccc22cc5a71bf8f611d | 0d38d2ca4d14d5e0e2062e22ae2dbbefea279179 | refs/heads/master | 2023-02-18T13:43:32.453478 | 2023-02-08T07:17:09 | 2023-02-08T07:17:09 | 247,711,629 | 0 | 0 | null | false | 2022-04-25T07:03:53 | 2020-03-16T13:38:15 | 2020-06-23T15:11:37 | 2022-04-25T07:03:53 | 29,236 | 0 | 0 | 1 | Python | false | false | import tkinter
import tkinter.filedialog
import os
from PIL import ImageGrab
from time import sleep
root = tkinter.Tk()
root.geometry('100x40+400+300')
root.resizable(False, False)
class MyCapture:
def __init__(self, png):
#变量X和Y用来记录鼠标左键按下的位置
self.X = tkinter.IntVar(value=0)
self.Y = tkin... | UTF-8 | Python | false | false | 3,333 | py | 252 | tkinter_RegionCapture.py | 244 | 0.597506 | 0.586422 | 0 | 86 | 32.569767 | 114 |
camillemonchicourt/Geotrek | 12,962,211,343,817 | e55ba4f4338edffbd29a5da0d2be1486f7d4d557 | ba6ac9acfbf969eac1d6f3e06e9ce8174fef1cfd | /geotrek/trekking/tests/__init__.py | 1a32c7cf858e7ec3d8b83fbe23815676d192ee60 | [
"BSD-2-Clause"
] | permissive | https://github.com/camillemonchicourt/Geotrek | 550e71917ff577ccd99506432fde55d731c59475 | c33eac7e4479e3aa5b16608c0aa7665c4a72e9a1 | refs/heads/master | 2023-08-03T13:16:51.929524 | 2014-11-28T16:16:21 | 2014-11-28T16:16:21 | 24,842,186 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # pylint: disable=W0401
from .base import *
from .test_views import *
from .test_filters import *
from .test_translation import *
from .test_trek_relationship import *
from .test_models import *
from .test_admin import * | UTF-8 | Python | false | false | 221 | py | 38 | __init__.py | 28 | 0.751131 | 0.733032 | 0 | 9 | 23.666667 | 37 |
lavaluv/hadoop-test | 7,894,149,924,452 | 36a736c62830a5f8631a13b8aa966aab06a3959b | 539eb0d494d22c67c5f0c4a075382acf1bbe322d | /pcap/pcap.py | 6bce84b7449d8c98baf17a96c8d8b29e2f7626da | [] | no_license | https://github.com/lavaluv/hadoop-test | 9679142072aa0cecc6bf1ec662edc6e3366d921a | aec1e7ef760c1357de3eabd102ea2d20c272aec4 | refs/heads/master | 2020-04-01T20:13:54.080103 | 2019-03-08T07:37:59 | 2019-03-08T07:37:59 | 153,594,518 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding=utf-8
import copy
import PcapAnalyzer.protocol as protocol
inputFilePath = 'test.pcap'
outputFilePath = 'result.txt'
fpcap = open(inputFilePath,'rb')
file = open(outputFilePath,'w')
input_data = fpcap.read()
#pcap header
pHeader = protocol.Pcap(input_data[0:24])
pHeader.writeIntoFile(file,'magicNum','verMaj... | UTF-8 | Python | false | false | 793 | py | 28 | pcap.py | 20 | 0.726356 | 0.716267 | 0 | 31 | 24.612903 | 102 |
bgruening/ngsutils | 17,214,228,958,724 | 1014cce40fffea7656ff2a81f473501c4f2da19a | 94bd032bc21bfd24e6dcbcfe642331f58829e574 | /ngsutils/bam/junctioncount.py | 46114dfa66cdebeb374eb973bbbc4f4d575ecac1 | [
"BSD-3-Clause",
"BSD-3-Clause-Open-MPI"
] | permissive | https://github.com/bgruening/ngsutils | 4c1d935eb0ff337de996ce9d71b8e79ebf2faee7 | 417e90dc1918fb553dd84990f2c54bd8cea8f44d | refs/heads/master | 2021-01-21T20:33:45.678884 | 2019-06-25T20:48:45 | 2019-06-25T20:48:45 | 45,920,499 | 0 | 0 | BSD-3-Clause | true | 2019-07-16T10:09:01 | 2015-11-10T15:21:30 | 2015-11-10T15:21:32 | 2019-07-16T10:08:58 | 5,658 | 0 | 0 | 0 | Python | false | false | #!/usr/bin/env python
## category General
## desc Counts the number of reads spanning individual junctions.
'''
Counts the number of reads that span each junction found in the BAM file.
You can specify a particular genome range to scan (like a gene region).
'''
import sys
import os
from ngsutils.bam import bam_iter, ... | UTF-8 | Python | false | false | 2,393 | py | 126 | junctioncount.py | 121 | 0.522357 | 0.518596 | 0 | 95 | 24.189474 | 89 |
fair-workflows/fairworkflows-ui | 9,354,438,795,664 | d1c66e8703c4177b9dd5c4b55b631fc22c0e2270 | b1f816d36ec77ea4f7a622d5708cb0268844445b | /app/app.py | e30eec92dcdbe3a9ebc0328db1ae125d19b45a3a | [
"Apache-2.0"
] | permissive | https://github.com/fair-workflows/fairworkflows-ui | 03380033a39705e9522f14814342c177cb9c2c75 | 0036e2ff9a2cd9039dc955d21b8175386a44c8d5 | refs/heads/main | 2022-12-27T05:56:13.975755 | 2020-10-06T10:40:42 | 2020-10-06T10:40:42 | 301,308,768 | 0 | 0 | Apache-2.0 | false | 2020-10-06T10:40:44 | 2020-10-05T06:05:00 | 2020-10-05T13:37:17 | 2020-10-06T10:40:43 | 20 | 0 | 0 | 0 | HTML | false | false | import time
from fairworkflows import FairWorkflow, FairStep
from flask import Flask, render_template, request, redirect, jsonify
cache = {}
def create_app():
app = Flask(__name__)
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0
@app.route("/", methods=['GET', 'POST'])
def index():
all_count, i... | UTF-8 | Python | false | false | 2,504 | py | 5 | app.py | 1 | 0.527955 | 0.52516 | 0 | 72 | 33.777778 | 73 |
afarrellsherman/Woolf | 15,453,292,340,023 | 0b62a79825dbf28cc78a0e3062ecc5a2fea09982 | e8a8b8c6b308ef7ee353e5207dcafddd125011b8 | /tests/test_scripts.py | 315d30765669500fd6271dfd1ba0985a3ebdcdc7 | [
"MIT"
] | permissive | https://github.com/afarrellsherman/Woolf | 0cd112aefcb1c03ead97302165e6f0dad7331f1d | 43fd5ba3ac74c115a7e59203a876701ab0aac03f | refs/heads/master | 2020-03-30T08:04:03.230669 | 2019-06-27T17:07:41 | 2019-06-27T17:57:30 | 150,986,346 | 2 | 1 | MIT | false | 2019-06-27T17:57:32 | 2018-09-30T16:52:59 | 2019-06-27T17:52:19 | 2019-06-27T17:57:31 | 12,293 | 1 | 1 | 9 | Python | false | false | import os
import tempfile
import wget
import zipfile
tut_file_url = 'https://osf.io/gtjfq/download'
def command_filter(line):
commands = ['trainWoolf', 'featureTable']
cmd = line.split()[0] # get first item
return cmd in commands
tmp = tempfile.TemporaryDirectory()
tutorial_file = os.path.normpath(os.pa... | UTF-8 | Python | false | false | 1,349 | py | 18 | test_scripts.py | 11 | 0.617494 | 0.616753 | 0 | 48 | 27.104167 | 73 |
shangqd/BlockChain | 644,245,143,671 | f788cff132f733767a6f01841866aae94608147c | e2ddc18286efd27ac7d59be64131302eca0fd731 | /python/btc.py | b59f0a7aea765c8f77295d252d657f23d403650f | [] | no_license | https://github.com/shangqd/BlockChain | cebceca6460be8f99684a22c667afc2b566d9808 | d4d8db6fce415f5bf2ad650b40f5340acbd3e152 | refs/heads/master | 2023-04-07T10:54:28.294663 | 2023-03-27T14:54:35 | 2023-03-27T14:54:35 | 143,091,340 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: UTF-8 -*-
'''
富豪榜
https://btc.com/stats/rich-list
'''
import requests
import json
import time
import os
import pymysql.cursors
import sys
import threading
from decimal import Decimal
import re
import traceback
reload(sys)
sys.setdefaultencoding('utf8')
sys.path.append(re.sub("btc$"... | UTF-8 | Python | false | false | 6,281 | py | 81 | btc.py | 53 | 0.423083 | 0.417504 | 0 | 125 | 48.2 | 191 |
hoon4233/Data-Science | 13,597,866,464,027 | e9711d74ef50e61a8a2a10c77ad039dbabbd3ea2 | ed60b2983bd14601df31c283a40c9f560fb66865 | /assignment1/apriori.py | fa3ab7e45a9d8d206a29f2a20ab801b77ee6b4f4 | [] | no_license | https://github.com/hoon4233/Data-Science | e01cd3988d69742afc1560f33e5089af3e17bde2 | 43b866e1bc97c0c864c762e1b6b9007639a2f6c9 | refs/heads/master | 2023-07-19T02:06:01.665867 | 2021-09-04T06:31:07 | 2021-09-04T06:31:07 | 364,768,689 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
from itertools import chain, combinations
min_support = float(sys.argv[1]) / 100
input_file, output_file = sys.argv[2], sys.argv[3]
def apriori(trxs):
global min_support
trxs_len = len(trxs)
idxs = set([])
for trx in trxs :
idxs = idxs.union(trx)
# 일반 set 은 unhashable type... | UTF-8 | Python | false | false | 2,396 | py | 17 | apriori.py | 4 | 0.510924 | 0.50084 | 0 | 75 | 30.746667 | 137 |
awmace/Demo | 15,607,911,161,878 | 70c1a32b2ab4ed6c44c4814f5f34726ccb9cd9be | f2ba48da8c66c454470dd1441904797e5fbc509c | /Crawl/tender2/crawl_data.py | d96e47232743f6e686a9cf2a492cf5bda9727348 | [] | no_license | https://github.com/awmace/Demo | 862800b81e4088615a92d2da0a576a5660e0fec9 | 9734e50578bda139d3781478b7170af723c5881a | refs/heads/master | 2023-03-06T09:01:02.321914 | 2021-02-20T07:41:25 | 2021-02-20T07:41:25 | 340,599,537 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import jieba, json
import scrapy, requests
import time, hashlib, re
from simhash import Simhash
from lxml import etree
from Crawl.tender2.read_data import filter_data, set_data
def md5_jm(v):
md5 = hashlib.md5()
md5.update(v.encode())
md5_v = str(md5.hexdigest())
return md5_v
for page in range(1, 10... | UTF-8 | Python | false | false | 2,418 | py | 85 | crawl_data.py | 81 | 0.597071 | 0.550628 | 0 | 52 | 44.961538 | 268 |
Marilyth/mss-data-retrieval | 5,282,809,820,131 | 7700cffca26dd1f0d664077dba0a4ffb06ac9f85 | 8497c58b1758925ed29726b69d8f00820b5e3afd | /bin/add_ancillary.py | ac59b73a79464cbbbb13f49f420a2e36575e8ebf | [] | no_license | https://github.com/Marilyth/mss-data-retrieval | 45da4ab9856819820adbda32a648b398bcb0c347 | 33fbacd4c787e583d0f63cde7924b756e48b346b | refs/heads/main | 2023-04-05T18:15:21.437651 | 2021-04-22T09:48:17 | 2021-04-22T09:48:17 | 354,835,334 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Copyright (C) 2012 by Forschungszentrum Juelich GmbH
Author(s): Joern Ungermann
Please see docstring of main().
"""
import datetime
import itertools
import optparse
import os
import sys
from metpy.calc import potential_temperature, potential_vorticity_baroclinic, brunt_vaisala_frequency_squared, geopotential_to_he... | UTF-8 | Python | false | false | 19,228 | py | 9 | add_ancillary.py | 6 | 0.556012 | 0.535833 | 0 | 457 | 41.074398 | 133 |
wujonathan/517proj | 12,541,304,542,538 | a6838f1034c03516c9938a41f0f09b1a376fb4e3 | f00b716a220810b80d0f09feee98f2480754be0b | /milestone_4/modelFitting.py | e98cdedc51433c5d45bedff8614a39d06cde34b2 | [] | no_license | https://github.com/wujonathan/517proj | 453b607d4ce8f68d16a58f2e0e898ccbcd4ceb3d | 78320eb9cda2fc30fcc1f80aef8c46eb6a82cedb | refs/heads/master | 2021-01-24T16:19:33.751247 | 2018-05-05T06:55:30 | 2018-05-05T06:55:30 | 123,183,650 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from sklearn import linear_model as lm
from sklearn import svm
from sklearn.decomposition import PCA
from sklearn.metrics import mean_squared_error as mse
import pyGPs
import json
xFilename = '../dataset/bostonX.csv'
yFilename = '../dataset/bostonY.csv'
XTrain = np.loadtxt(xFilename, delimiter=","... | UTF-8 | Python | false | false | 1,796 | py | 30 | modelFitting.py | 9 | 0.642539 | 0.637528 | 0 | 68 | 25.411765 | 119 |
kxu68/Cell_model | 4,105,988,778,363 | 89cdea91e740cf2cbfdfc0c8dcb88e43f3a0eb6d | 036efa8e627e6ec5cada0a115dd42c5c50830525 | /files made by Ke/testfiles/test_iml1515second_check.py | dd82f586bbb345070d9a3daae8d454b1cd004a29 | [] | no_license | https://github.com/kxu68/Cell_model | 2c68f321b3a8e43bda169d23fcf77ef72ef7aed2 | ce095d10760d4d3ec2f7d4d492fc34ab096c8ce8 | refs/heads/main | 2023-07-15T19:49:00.277231 | 2022-02-02T19:42:16 | 2022-02-02T19:42:16 | 436,499,505 | 0 | 0 | null | true | 2021-12-09T05:56:21 | 2021-12-09T05:56:21 | 2021-08-18T16:22:37 | 2021-08-18T16:22:35 | 11,060 | 0 | 0 | 0 | null | false | false | #!/usr/bin/env python
# coding: utf-8
# In[21]:
import unittest
# import pytest
import cobra
import copy
# generate a sample for loading the models in the origin way for comparison
model_origin= cobra.io.read_sbml_model('iML1515.xml')
OV_origin= model_origin.optimize()
#this is objective value
model_test = cobra.io... | UTF-8 | Python | false | false | 3,525 | py | 34 | test_iml1515second_check.py | 31 | 0.65617 | 0.638865 | 0 | 120 | 28.341667 | 99 |
shekhuverma/competitive-coding | 7,567,732,425,798 | b055019eb89a7c154fc3e148fc97633465ca2e06 | f7e0fa8fc5e944e9f6da2e6382072ad27580cf53 | /Gridland_metro/gridland_metro.py | d8561472b375ef7cf7e85f9a17057f7518976484 | [] | no_license | https://github.com/shekhuverma/competitive-coding | 0b897b7602311826d31e0c266f2de47349d060b8 | b263c401f3681e7c18970cff9420fa814b8c4064 | refs/heads/master | 2021-01-21T23:45:14.355595 | 2018-02-03T15:26:02 | 2018-02-03T15:26:02 | 102,180,926 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #gridland metro
ip=[int(x) for x in raw_input().split()]
temp={}
j=0
ans=0
while(j<ip[2]):
ip1=[int(y) for y in raw_input().split()]
r=ip1[0]
c1=ip1[1]
c2=ip1[2]
if temp.has_key(r):
temp[r].extend([c1,c2])
else:
temp[r]=[c1,c2]
j+=1
print temp
##for key,value in temp.iteritem... | UTF-8 | Python | false | false | 394 | py | 30 | gridland_metro.py | 26 | 0.525381 | 0.479695 | 0 | 20 | 18.7 | 45 |
Kay212MD/breakfast_planner_online | 2,628,520,009,560 | 8373e4772cae65cef36d59d5946cafbe4ff7209a | 50f2277623e177dd3484a4e7a6a6381512bfe97f | /plan/views.py | d84d12ff16512c24d8e2c507d2eea95e6b24fbd1 | [] | no_license | https://github.com/Kay212MD/breakfast_planner_online | c43bf3a79abe3616ded0b0b3d909761d73bc681e | ea0a22a0de3d36643cf83234934ea2c7f686159b | refs/heads/master | 2022-06-28T17:03:19.095487 | 2020-05-09T17:51:37 | 2020-05-09T17:51:37 | 260,449,615 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.shortcuts import render, redirect
from .models import PersonalPlan, FoodMainInformation
from .forms import PersonalPlanForm, FoodMainInformationForm
# Create your views here.
def index(request):
"""The home page of breakfast planner online"""
return render(request, 'plan/index.html')
def personal... | UTF-8 | Python | false | false | 2,208 | py | 10 | views.py | 5 | 0.675725 | 0.675725 | 0 | 58 | 37.017241 | 84 |
andersthuesen/DTU-Course-Project-02466 | 12,962,211,329,255 | 37f409f2448327a98efe599eefa07c013b1dd5e5 | c42f1e68acac80855d79002d5ffe910656eec35e | /scripts/synthesize_dataset.py | 87c2e5d09ae30a3831c891a6d1f61b2b23f9ec3e | [
"MIT"
] | permissive | https://github.com/andersthuesen/DTU-Course-Project-02466 | ff8a7bb77f34fed97b08640a7627bab3f0ef2167 | 67f16f0264fb2ec5e76d7b0edbafc92bced1f73c | refs/heads/master | 2022-11-13T02:19:00.576789 | 2020-06-24T10:21:38 | 2020-06-24T10:21:38 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/bin/env python
import sys
import os
import argparse
import json
import sys
import numpy as np
import torch
import soundfile
from tqdm import tqdm
import shutil
import matplotlib.pyplot as plt
from torchaudio.transforms import Resample
os.chdir("flowtron")
sys.path.insert(0, ".")
from flowtron import Flowtron
from ... | UTF-8 | Python | false | false | 5,419 | py | 25 | synthesize_dataset.py | 15 | 0.635173 | 0.626684 | 0 | 178 | 29.449438 | 80 |
RainingNight0329/JerryHW | 18,262,200,964,616 | 47f99317ff4b2899cd85bd498998dbd96e3fe5d5 | f0d4bfac9918fc32656fa08542c8111ef1200f02 | /0416/0416/mysite/cms/views.py | 9e532a6b4f629b848f03631263709c56ef027718 | [] | no_license | https://github.com/RainingNight0329/JerryHW | 299e09ac9fe062b932587e3dc5bd3b57c43c450f | 3e0c939dd71d2ca30df76c917c31648738f4ef10 | refs/heads/master | 2021-03-30T20:57:14.049674 | 2018-05-21T04:18:21 | 2018-05-21T04:18:21 | 124,831,974 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.shortcuts import render_to_response
from django.http import HttpResponse
from .models import Information
# Create your views here.
def index(request):
informations=Information.objects.all()
return render_to_response('cms/menu.html',locals())
#return HttpResponse("Hello mom I'm Here") | UTF-8 | Python | false | false | 308 | py | 15 | views.py | 6 | 0.772727 | 0.772727 | 0 | 8 | 37.625 | 55 |
dencesun/Algorithm | 16,544,214,051,872 | 2f9612f3a53b0e86eefec90e89ed450dcfc23851 | e4fdb9cd960e6366cc56417bd26a134d0d0b0073 | /387.py | d4e96a5a0b272bbc1c41f6eaef4413b7bc99af7c | [] | no_license | https://github.com/dencesun/Algorithm | 9ea98d6baf13020ef1c9cca40e5e3e2b5b259d1a | 846bcc0a304c12535fd353f78f041a2b8da89d9d | refs/heads/master | 2020-07-13T02:36:27.353763 | 2017-11-04T02:24:52 | 2017-11-04T02:24:52 | 67,869,179 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import collections
class Solution(object):
def firstUniqChar(self, s):
"""
:type s: str
:rtype: int
"""
if len(s) == 0: return -1
counts = collections.Counter(s)
for ch in s:
if counts[ch] == 1:
return s.index(ch)
return -1
test = ... | UTF-8 | Python | false | false | 470 | py | 80 | 387.py | 79 | 0.582979 | 0.574468 | 0 | 21 | 21.380952 | 40 |
Engineering-Course/CIHP_PGN | 10,496,900,074,529 | e35b6b8da7683db2c7e5fd3c8a619f9f155aa50b | 7e873b17a7e464ddb5b0e3367ef277f1254bdd6c | /train_pgn.py | 328e766c17f8986e3be81c11f57c052126483e97 | [
"MIT"
] | permissive | https://github.com/Engineering-Course/CIHP_PGN | b230976dfffd8ab0bf4c39d08728aabbb90ed88c | 0cf1cbe54a44fc86abe2023b0e762df3f9605242 | refs/heads/master | 2023-08-31T12:16:40.864057 | 2022-11-24T03:25:21 | 2022-11-24T03:25:21 | 143,100,053 | 408 | 122 | MIT | false | 2023-08-20T12:57:15 | 2018-08-01T03:38:07 | 2023-08-17T04:33:26 | 2023-08-20T12:57:05 | 843 | 386 | 104 | 40 | Python | false | false | from __future__ import print_function
import os
import time
import tensorflow as tf
import numpy as np
import random
from utils import *
# Set gpus
gpus = [0]
os.environ["CUDA_VISIBLE_DEVICES"]=','.join([str(i) for i in gpus])
num_gpus = len(gpus) # number of GPUs to use
### parameters setting
DATA_DIR = './datasets/... | UTF-8 | Python | false | false | 14,522 | py | 1,996 | train_pgn.py | 18 | 0.603154 | 0.576573 | 0 | 285 | 49.954386 | 161 |
jujoohwan/Algorithm_Problem | 15,977,278,375,630 | a6f91666acf722ce5f0119a32466ddc90040a145 | abdee00961399404666d7d9e9c181b1f55e89767 | /CodeUp/6067.py | caa9c69f49bf9b28de07952be8ed79579a2b8cb9 | [] | no_license | https://github.com/jujoohwan/Algorithm_Problem | e744240f155071038b75da217fb48541a178e4e9 | bebe3f13ce16b9a821dce8057658bec41022d8aa | refs/heads/main | 2023-08-01T11:47:23.750263 | 2022-12-21T14:24:26 | 2022-12-21T14:24:26 | 406,480,036 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | result = int(input())
if result%2==0 and result<0:
print('A')
elif result%2 !=0 and result<0:
print('B')
elif result%2==0 and result>0:
print('C')
elif result%2!=0 and result>0:
print('D') | UTF-8 | Python | false | false | 214 | py | 74 | 6067.py | 71 | 0.579439 | 0.523364 | 0 | 10 | 19.6 | 31 |
beshoyAtefZaki/diet | 1,391,569,421,905 | 79e129c6fc8f0cc241a9710b521107bea8897878 | 6bdd77b2b716f738225768caa56f989209e600f2 | /doctors/migrations/0006_auto_20201114_1233.py | ed36e9435b0de073605c01f613e7975747365ffe | [] | no_license | https://github.com/beshoyAtefZaki/diet | 9bbcfef732aa3d4bfe1dcb849fa8fff0a80634ba | 891b4a0f48aaad8b5c43c324db78203c0e2b7acb | refs/heads/master | 2023-01-27T14:00:10.104349 | 2020-11-20T21:22:10 | 2020-11-20T21:22:10 | 308,125,859 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-11-14 12:33
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('doctors', '0005_auto_20201114_1219'),
]
operations = [
migrat... | UTF-8 | Python | false | false | 4,516 | py | 23 | 0006_auto_20201114_1233.py | 19 | 0.570195 | 0.545394 | 0 | 121 | 36.322314 | 96 |
evanchan92/learnpython | 19,585,050,898,325 | 6a4afa4b9dba8e5d39547fe3eb0ed6852112278a | 59f01588055395ae1b3b1981326a2b46780c6d56 | /Oreilly-Scraper/ScrappingENV/lib/python3.7/ntpath.py | a4489ee454ed06a4c5d0c5f67ec9170035c3bb2d | [] | no_license | https://github.com/evanchan92/learnpython | bf05d93771ebf21ba7bf628a44697947b9af3ce8 | 6174d0f650dbeb514ac7aee9eddba4481f1b3d6b | refs/heads/master | 2020-09-02T13:12:12.736723 | 2019-04-02T15:57:02 | 2019-04-02T15:57:02 | 98,376,246 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | /Users/evan/anaconda3/lib/python3.7/ntpath.py | UTF-8 | Python | false | false | 45 | py | 49 | ntpath.py | 45 | 0.822222 | 0.755556 | 0 | 1 | 45 | 45 |
RevansChen/online-judge | 8,581,344,679,116 | 5bec560d6dc704afe76756169b04ba23e1984ed1 | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/4kyu/codewars-style-ranking-system/Python/solution1.py | 1d2a030572d8083ec55324c6b99ba85bb9598624 | [
"MIT"
] | permissive | https://github.com/RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Python - 3.6.0
class User:
RANK = [-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8]
def __init__(self):
self.progress = 0
self.rank = User.RANK[0]
def inc_progress(self, activityRank):
if not activityRank in User.RANK:
raise ValueError()
if self.rank ... | UTF-8 | Python | false | false | 794 | py | 2,569 | solution1.py | 1,607 | 0.5 | 0.453401 | 0 | 26 | 29.538462 | 70 |
RachelElysia/ratings-v2 | 13,872,744,390,884 | c74d4cd9c1a82cd0f3aae3aed1eedc40429a29c5 | a9a050b4464b8de43e58900f7bdc2377909e6b9c | /seed_database.py | 40c7ecd3e7e9cd7a748726003897a23083fae7d3 | [] | no_license | https://github.com/RachelElysia/ratings-v2 | 70a9e38b72ab07de444e5df8bbfd5826ceed2d3e | 971503752a46a3dfacfdfc97ab11268801f7cc51 | refs/heads/main | 2023-02-26T03:07:11.234342 | 2021-02-04T07:45:53 | 2021-02-04T07:45:53 | 335,814,255 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Script to seed database."""
import os
import json
from random import choice, randint
from datetime import datetime
import crud
import model
import server
os.system('dropdb ratings')
os.system('createdb ratings')
model.connect_to_db(server.app)
model.db.create_all()
# read in movie data to movie_data variable
wit... | UTF-8 | Python | false | false | 1,202 | py | 2 | seed_database.py | 2 | 0.671381 | 0.658902 | 0 | 45 | 25.511111 | 105 |
anishnarang/data_mining_project | 12,498,354,843,121 | 1493f033a23b3ccd4b7edcadd0c3325552ce2f26 | 59401a6d106960f22edd54e47d8575c3216e7eb2 | /remove_redundant.py | 8532558257371c64bce7411b524d0b077f520605 | [] | no_license | https://github.com/anishnarang/data_mining_project | e666d309889da5eed5c477e273531ad6b01fb771 | 8b42fe2dc31943e82d4a305922dd1d6bed1d0cd0 | refs/heads/master | 2020-03-31T20:34:37.068794 | 2018-12-04T02:05:16 | 2018-12-04T02:05:16 | 152,546,099 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | data = {}
with open("util_data/user_to_cuicine_test.csv") as input_file:
for row in input_file:
user, category, rating = row.strip().split(",")
rating = int(rating)
if user in data:
if category in data[user]:
data[user][category] = (data[user][category][0]+rating... | UTF-8 | Python | false | false | 973 | py | 23 | remove_redundant.py | 15 | 0.561151 | 0.553957 | 0 | 27 | 35.074074 | 103 |
veronikanska/pyladies | 2,284,922,633,731 | db1fc5c4c1195a9f9df2201e8386975e068d868a | ee10ae2dddfac07e2cfbbabfe41484b5989c16bf | /03/kalkulacka.py | 29b80f14d60fc36ff6bc0a2090ac9d62ebee8ccc | [] | no_license | https://github.com/veronikanska/pyladies | 4f5e69199b9000b8fd15dfe75f2735a4bc67d27d | a8a191fceddff0bba8c8553e4326e3f85e6f2326 | refs/heads/master | 2020-05-04T12:42:17.507172 | 2019-04-15T18:15:30 | 2019-04-15T18:15:30 | 179,130,866 | 0 | 0 | null | false | 2019-06-11T19:31:38 | 2019-04-02T17:55:43 | 2019-04-15T18:15:33 | 2019-06-11T19:25:33 | 38 | 0 | 0 | 4 | Python | false | false | # Uzivatel zada dve cisla a operaci a program operaci s cislz provede
cislo_1 = int(input('Zadej prvni cislo: '))
cislo_2 = int(input('Zadej druhe cislo: '))
operace = str(input('Vyber operaci: +, -, * nebo /: '))
if operace != '+' and operace != '-' and operace != '*' and operace != '/':
print('Nerozumim')
else:... | UTF-8 | Python | false | false | 791 | py | 34 | kalkulacka.py | 34 | 0.532238 | 0.506953 | 0 | 21 | 36.52381 | 75 |
joewen85/mycmdb | 9,483,287,799,487 | f538932262f69303685311cdeac1ac7558e6dac0 | 20f37928911ec08475aa44c8226eb1671553b069 | /apps/domain/urls.py | 4198136fad8a4e1c806835d43da0e5fbe031a482 | [
"Apache-2.0"
] | permissive | https://github.com/joewen85/mycmdb | b63a747780704eceab5c504d11dd9cc5c28293f7 | cd5883b1a884fea645d5488d55bed0a0ce4d81c0 | refs/heads/main | 2023-09-01T12:54:15.587227 | 2023-08-21T02:12:58 | 2023-08-21T02:12:58 | 188,344,131 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2019-08-09 22:38
# @Author : Joe
# @Site :
# @File : urls.py
# @Software: PyCharm
# @function: xxxxx
from django.urls import path
from domain.views import DomainView, BlackListList, BlackListDetail
from rest_framework.documentation import include_docs_urls
API_TITLE = 'devo... | UTF-8 | Python | false | false | 711 | py | 207 | urls.py | 77 | 0.697609 | 0.679325 | 0 | 21 | 32.857143 | 132 |
thelearningcurves/ERINN | 15,049,565,446,619 | 974c9bb57238e4d14ffb54c932863618539ddc92 | 768e5cd65886cc092f50e5507e94bf6aa4f66ae6 | /erinn/preprocessing.py | 659cac7fe6f7f1c115b286fd77024f034bf806fe | [
"MIT"
] | permissive | https://github.com/thelearningcurves/ERINN | b6ca4170d159304777463430139ea41ae209e00f | 8297db51f63d5ef961672ae7ccb01c5ef18c70a3 | refs/heads/master | 2022-04-12T00:04:56.506791 | 2020-03-20T08:36:21 | 2020-03-20T08:36:21 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Custom preprocessing functions."""
from __future__ import absolute_import
from __future__ import division
from __future__ import generator_stop
from __future__ import print_function
import multiprocessing as mp
import os
import re
from functools import partial
import numba
import numpy as np
import te... | UTF-8 | Python | false | false | 17,009 | py | 13 | preprocessing.py | 10 | 0.568346 | 0.552943 | 0 | 440 | 36.656818 | 125 |
TheCulliganMan/flask-admin-profiler | 5,334,349,425,705 | 0f912f432848c077e5cb71bad718f2da1ac35d47 | ae349c0dea196b637632cb3220115e68b13d4895 | /flask_admin_profiler/base.py | 48ffc8dfe17c7867f2155b2e7340b7c6d672b633 | [] | no_license | https://github.com/TheCulliganMan/flask-admin-profiler | 20a728f888d6a0a09c8332404522b675f06a6892 | c343586c1155418fa95553c84e2cf1a3b2be0b95 | refs/heads/master | 2020-05-15T23:51:10.488962 | 2019-04-22T15:05:21 | 2019-04-22T15:05:21 | 182,563,464 | 0 | 0 | null | true | 2019-04-21T17:35:00 | 2019-04-21T17:34:59 | 2017-08-03T10:32:03 | 2015-05-29T15:44:35 | 124 | 0 | 0 | 0 | null | false | false | import os
import os.path as op
from flask_admin import BaseView
class ProfilerBaseView(BaseView):
base_template = 'admin/base.html'
def __init__(self, name, category=None, **kwargs):
self.base_path = op.dirname(__file__)
print(self.base_path)
super(ProfilerBaseView, self).__init__(n... | UTF-8 | Python | false | false | 892 | py | 15 | base.py | 7 | 0.57287 | 0.57287 | 0 | 25 | 34.68 | 95 |
MichaelGlasbrenner/MGFileSystem | 2,834,678,419,452 | 697b81c1f986f245b234cf85c66ab12ba79a856f | 9401eda4be1d15a0fae20a33a3d68de3b20f8c11 | /tests/test_touch.py | 789dddf2bf9c9bccbbf446f5834cc4bf404aede0 | [] | no_license | https://github.com/MichaelGlasbrenner/MGFileSystem | 6d23503508e09596e5e8204d6e41b65a2f702235 | 10fdd49eebb2a7ee06ebcab4191743c24f41ce4b | refs/heads/master | 2020-06-28T08:51:52.030216 | 2020-06-26T21:31:48 | 2020-06-26T21:31:48 | 200,192,369 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import test_tools
import subprocess
def test_touch_new_file():
success = False;
error_message = "";
file_list = test_tools.get_list_of_files("testdir");
if test_tools.file_exists( "new_file", file_list ):
success = False;
error_message = "file already existed";
subprocess.call([... | UTF-8 | Python | false | false | 1,227 | py | 22 | test_touch.py | 18 | 0.599022 | 0.599022 | 0 | 38 | 31.263158 | 100 |
AnimaTakeshi/windmill-django | 7,627,861,966,880 | 3f08e00b9330ba69ba442a2c22b2247c79e6cb57 | 65e73c6c4a9e66715be2cbdd93339ebcab93976e | /windmill/ativos/migrations/0015_auto_20181018_1801.py | 94d876e1e2de5cc99fed28dfc8bd1e2bdaf58cf3 | [] | no_license | https://github.com/AnimaTakeshi/windmill-django | 3577f304d5e7f74750c7d95369e87d37209f1ac6 | 78bde49ace1ed215f6238fe94c142eac16e164dc | refs/heads/master | 2022-12-13T11:13:21.859012 | 2019-02-07T20:50:01 | 2019-02-07T20:50:01 | 150,470,109 | 0 | 0 | null | false | 2022-12-08T01:29:36 | 2018-09-26T18:13:54 | 2019-02-07T20:53:11 | 2022-12-08T01:29:36 | 1,254 | 0 | 0 | 19 | Python | false | false | # Generated by Django 2.0 on 2018-10-18 21:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ativos', '0014_auto_20181018_1754'),
]
operations = [
migrations.RemoveField(
model_name='fundo_local',
name='data_cot... | UTF-8 | Python | false | false | 2,574 | py | 161 | 0015_auto_20181018_1801.py | 149 | 0.539239 | 0.527584 | 0 | 85 | 29.282353 | 46 |
rlcjj/cequant | 14,817,637,203,304 | 4f98922d0a0217c22f557853fc41092e2dea2067 | adc1f09c948d4250e4cbfedfa2daf3158c4e954b | /service/dumpdata/main.py | 19085f13210ddbf6f96dcaa5b43d0ff75a5c4599 | [] | no_license | https://github.com/rlcjj/cequant | e1dd85237826911c45ab1adb4e549bc7a0f8dcc8 | 597d3151a9991d35244ce5c061acd31742189d6f | refs/heads/master | 2017-12-03T17:35:53.683787 | 2017-03-23T16:56:16 | 2017-03-23T16:56:16 | 86,044,280 | 1 | 0 | null | true | 2017-03-24T08:22:06 | 2017-03-24T08:22:06 | 2017-03-23T16:57:28 | 2017-03-23T16:57:26 | 45 | 0 | 0 | 0 | null | null | null | #coding=utf-8
from core.scanner import set_trace
from core.settings import DATA_BASE_PATH
from .dumpdbtrace import dump_trace
@set_trace('dumpdata.stock_value_factor')
def dump_stock_value_factor(iostream,cmd):
model_class_name = 'StockValueFactor'
dump_trace(model_class_name,DATA_BASE_PATH)
return iostr... | UTF-8 | Python | false | false | 522 | py | 48 | main.py | 43 | 0.758621 | 0.756705 | 0 | 18 | 28.055556 | 47 |
TheVinhLuong102/FLAML | 15,702,400,458,201 | e174c6a09e3f485bca875140a45aca6f8dd3572a | ac5e821a3016d7157ed0558e32f6c7e379b31057 | /test/tune/test_flaml_raytune_consistency.py | dee393c3a5d719e19a80cf92f93cfb5ebad1d784 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | https://github.com/TheVinhLuong102/FLAML | 06d1d6227902e9345c995868f24d7188c69a0ea8 | 2f5d6169d3b5cc025eb2516cbd003fced924a88e | refs/heads/main | 2023-06-23T23:22:22.749417 | 2021-12-26T00:13:39 | 2021-12-26T00:13:39 | 389,860,327 | 0 | 0 | MIT | true | 2021-07-27T05:32:00 | 2021-07-27T05:31:59 | 2021-07-27T05:31:58 | 2021-07-25T06:28:31 | 18,277 | 0 | 0 | 0 | null | false | false | # import unittest
import numpy as np
# require: pip install flaml[blendsearch, ray]
# require: pip install flaml[ray]
import time
from flaml import tune
def evaluate_config(config):
"""evaluate a hyperparameter configuration"""
# we uss a toy example with 2 hyperparameters
metric = (round(config["x"]) - ... | UTF-8 | Python | false | false | 4,684 | py | 84 | test_flaml_raytune_consistency.py | 44 | 0.661827 | 0.652007 | 0 | 123 | 37.081301 | 100 |
jnash2001/unfone | 19,061,064,903,021 | ecd9b1b3908d420d634545b57fc0eee5c995f533 | 6e81b08e7a8c64f7c92136acee8c80e8ee959f2c | /run2.py | dccf5ad3f0fab5b8596a04a3f3e9a2eaff10f942 | [] | no_license | https://github.com/jnash2001/unfone | b49650848f282c0bee38f113fbdf983eb9f736b7 | ed1e063907bbadbd57499807773259f3b333b0b7 | refs/heads/master | 2022-11-27T14:16:20.168669 | 2020-08-04T08:13:12 | 2020-08-04T08:13:12 | 284,918,405 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import datetime
from pytz import timezone
os.system("sudo airmon-ng start wlan1")
timestamp = str(datetime.datetime.now(timezone('Asia/Kolkata')))
newstamp = ""
for i in range(len(timestamp)):
if timestamp[i] == "." or timestamp[i]== ":" or timestamp[i]== " ":
newstamp = newstamp +... | UTF-8 | Python | false | false | 475 | py | 1 | run2.py | 1 | 0.614737 | 0.608421 | 0 | 18 | 25.388889 | 82 |
ccjeremiahlin/DataAnalytics_96_777 | 16,758,962,401,227 | a26115d87a2434b3e30ea64af33a8e958e9b2bf5 | 3232d72500afc4c0d23ad6f4d3cf6d51aa039804 | /xlsx2csv_p3.py | c02b3dab49489b34a8d481b4308e295febeeb69e | [] | no_license | https://github.com/ccjeremiahlin/DataAnalytics_96_777 | 805c687f126702340371ace7fa519418dd35c0ed | 02a627f189035ac3b7d31abae53982ba53016e39 | refs/heads/master | 2021-01-17T06:33:47.247571 | 2015-04-26T00:03:55 | 2015-04-26T00:03:55 | 33,592,632 | 0 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Simple python script to convert XLSX sheets to CSV
Usage:
python xls2csv.py <excelfile.xlsx>
Restrictions:
Requires xlrd module:
sudo pip install xlrd
Sheet name hardcoded: EKO_NEFTDetailsAuto
"""
import xlrd
import csv
import sys
import os
import pandas as pd
def csv_from_excel(xlsx_file):
... | UTF-8 | Python | false | false | 962 | py | 5 | xlsx2csv_p3.py | 5 | 0.638254 | 0.635135 | 0 | 40 | 23.025 | 87 |
SPSingh1998/Banking | 7,086,696,086,163 | 49384c5eb4ccb62713e7a8fd86dbf5f350bdc0ad | fa7ed7e7b97d7a4a7dfa78507855cdbc2f0a118b | /View.py | d0781041379114f9fecec570b81b647ac666c3be | [] | no_license | https://github.com/SPSingh1998/Banking | a895a9319e3c202cfd61cf0a409f83ec889e378e | 8f1b84d6ed4550f9eb4bf35e0757714485236cf1 | refs/heads/master | 2020-08-31T03:14:24.739620 | 2019-10-30T16:56:47 | 2019-10-30T16:56:47 | 218,570,554 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from pymysql import cursors
from tkinter import *
from tkinter import messagebox
from PIL import ImageTk,Image
import pymysql.cursors
from time import gmtime, strftime
import DB
import main
class view_class:
def __init__(self,id):
self.id=id
self.root=Tk()
self.root.geometry("600x500+40... | UTF-8 | Python | false | false | 4,114 | py | 19 | View.py | 19 | 0.599174 | 0.547642 | 0 | 110 | 36.409091 | 91 |
rdevnoah/python_practice03 | 1,451,698,964,784 | 273f7ad02fe54162e870154403e435e545156f54 | 199d9f0dfb86bd85f8b9cc975469c942eaeb3f94 | /prob02.py | bdb21e7b627ef03f83413c0e647d835eaad41987 | [] | no_license | https://github.com/rdevnoah/python_practice03 | 1a7493caf00768cdeb033ad6f2d50243d633854d | 223ed81ed06c08d721683ad0358c5669533172f0 | refs/heads/master | 2020-06-04T06:42:05.908596 | 2019-06-14T08:54:22 | 2019-06-14T08:54:22 | 191,909,129 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # range() 함수와 유사한 frange() 함수를 작성해 보세요. frange() 함수는 실수 리스트를 반환합니다.
def frange(stop, start=0.0, step=0.1):
if stop < start:
stop, start = start, stop
i = start
l = []
while i < stop:
l.append(round(i, 2))
i += step
return l
print(frange(2))
print(frange(2.0))
print(frange... | UTF-8 | Python | false | false | 438 | py | 3 | prob02.py | 3 | 0.560526 | 0.510526 | 0 | 19 | 18.894737 | 67 |
westzyan/blastpipeline | 12,283,606,471,484 | 734abc963f56f952c3701fbffc0c359498f8a99c | d444aa5b6de348e63e0036c4c9c37de40714bd67 | /logreader-dill.py | 043d65c7670dced15f4d01c5de4f7b82954ac9be | [] | no_license | https://github.com/westzyan/blastpipeline | 1fbb3ae39b6821937f100ea1ba006d9d496f51d1 | 8dab8f86e8e861bab58e422c67898719a28ba04f | refs/heads/master | 2021-02-12T11:57:06.751727 | 2020-02-07T05:05:21 | 2020-02-07T05:05:21 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #logreader.py produces 3 dill files "-small" "-large" "-open"
#this file reads them to get results
import time
import calendar
import re
##import parse
#change from tbrreader: Server contains both ent and ci, replacing them in Resources and Connection.
class Resource: #holds data for a HttpTransaction
def __ini... | UTF-8 | Python | false | false | 24,986 | py | 8 | logreader-dill.py | 5 | 0.484511 | 0.468943 | 0 | 745 | 32.538255 | 111 |
will-hill/AI_Based_Hyperparameter_Tuning | 4,398,046,521,257 | f9b0a2590972d01026e13026e49425f603f4ccdc | 2a9b6d13213a8a8e816cf0480ddee80ed6af5102 | /src/rf_objective.py | b5ad4d1ccdd1059df4e7f0415ce0740f1fe6d17a | [] | no_license | https://github.com/will-hill/AI_Based_Hyperparameter_Tuning | 84ab65156bb0ce4be94b8d87005323207bfb4893 | abd0090113fd1e90d5c47d9997a9920c5c41f946 | refs/heads/master | 2020-12-13T15:53:04.104367 | 2020-02-11T04:01:10 | 2020-02-11T04:01:10 | 234,463,468 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # %%
def rf_ojbective(trial):
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import roc_curve
from sklearn.metrics import auc
import pandas as pd
# Random Forest Params
rf_params = {
'n_estimators': trial.suggest_int('n_estimators', 5, 2000),
'm... | UTF-8 | Python | false | false | 2,656 | py | 13 | rf_objective.py | 4 | 0.596386 | 0.572289 | 0 | 62 | 41.854839 | 112 |
fkuhn/fedora_microservices | 11,527,692,273,304 | ef27d8d7944d741d5ef23146301da9632a98fbca | a29bf8fba2deb473580e12b9e24326df772f6ba6 | /src/content_model_listeners/islandoradm.py | 2757f771554ff0e93066dfece341b7c500f73d60 | [] | no_license | https://github.com/fkuhn/fedora_microservices | 18b269f4d1e7a19dbf5b7415fc0a54208be486f8 | b0701e258c77732fa0aff450c96f96acf6c6060a | refs/heads/master | 2021-01-16T17:45:39.514082 | 2010-11-24T19:55:34 | 2010-11-24T19:55:34 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Created on 2010-10-16
@author: jesterhazy
'''
import os
import subprocess
import sys
import fcrepo.connection
import tempfile
from shutil import rmtree
from fcrepo.client import FedoraClient
from fcrepo.utils import NS
abby_home = '/usr/local/ABBYYData/FRE80_M5_Linux_part_498-28_build_8-1-0-7030/Samples/CLI/'
... | UTF-8 | Python | false | false | 3,646 | py | 6 | islandoradm.py | 4 | 0.575699 | 0.532913 | 0 | 94 | 37.787234 | 290 |
eldojk/Workspace | 2,903,397,918,501 | a2073f92abdb8a0812eb6b522ca36d1b308d9957 | a9dfc35814bde9f387bb78db2e8566c08e38b635 | /WS/G4G/Problems/arrays/check_duplicates_at_k_distance.py | 231fa0c474c7fb2ff3f8e47c9d46bc51d65338cb | [] | no_license | https://github.com/eldojk/Workspace | b6c87f7ab74c4a3bb8585fdfa36a24a731f280f8 | 224626665a2b4c0cf701731f4e4dc96c93a26266 | refs/heads/master | 2021-01-19T13:33:09.378172 | 2017-11-14T17:53:09 | 2017-11-14T17:53:09 | 82,396,876 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
amzn
http://www.geeksforgeeks.org/check-given-array-contains-duplicate-elements-within-k-distance/
"""
def check_duplicates(array, k):
dict = {}
for i in range(len(array)):
if dict.get(array[i]):
return True
else:
dict[array[i]] = True
if i - k >= 0:
... | UTF-8 | Python | false | false | 602 | py | 586 | check_duplicates_at_k_distance.py | 583 | 0.534884 | 0.486711 | 0 | 27 | 21.296296 | 93 |
PetrCala/Hearthstone_Archmage | 4,492,535,828,703 | dfa9374bf7e92e106b3fb9885f60a6eed27fc5a2 | f3c16983880fc5f8b3824e81ebc9686f176340fd | /pyscripts/DataExtractor.py | 47976c175cf13adeb75c8a719075f9c836f82a67 | [] | no_license | https://github.com/PetrCala/Hearthstone_Archmage | 32697a75e4fc0e7efd060c937df82ee06e99c532 | 621c6ec7ac0be99078f1320738bce4918beacf71 | refs/heads/main | 2023-07-11T06:40:32.128171 | 2021-08-11T14:55:30 | 2021-08-11T14:55:30 | 377,523,117 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #External browser Selenium
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
#Other useful packages
import sys
from d... | UTF-8 | Python | false | false | 18,503 | py | 27 | DataExtractor.py | 9 | 0.529132 | 0.524858 | 0 | 452 | 39.89823 | 164 |
gwgundersen/codebook | 16,338,055,602,200 | d933a447a92b9a9cc2850c37fdfb9bef04864274 | 25757d40e1b2640dbed688d6cc803e3d9a5341be | /codebook/endpoints/index.py | fd52e02293ed43739d7187dad3edaf852d33911b | [
"MIT"
] | permissive | https://github.com/gwgundersen/codebook | 99d0b2c1fa65e81222e78a29d2bdcd6045b178b1 | ff6d808c4c50de80f9a3c3f9d6898b9b3fdeae74 | refs/heads/master | 2021-01-20T04:47:55.469912 | 2017-04-30T22:41:19 | 2017-04-30T22:41:19 | 89,736,423 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Return JSON representations of codebook data."""
from flask import Blueprint, jsonify, request
import pickle
index_blueprint = Blueprint('index',
__name__,
url_prefix='/api')
db = pickle.load(file('codebook/db.pck', 'rb'))
@index_blueprint.route('/codebo... | UTF-8 | Python | false | false | 1,817 | py | 19 | index.py | 5 | 0.583379 | 0.583379 | 0 | 71 | 24.605634 | 74 |
alejogonza/holbertonschool-higher_level_programming | 9,680,856,329,045 | 0059474ee5ce6b774597d21533fd2d3771224c5d | 0c47c4fe166c2d457c608aa9339ec4aac5f19bb3 | /0x04-python-more_data_structures/12-roman_to_int.py | efa88951ced6f0b103cedd23bff39ffaf1fba99d | [] | no_license | https://github.com/alejogonza/holbertonschool-higher_level_programming | dbc6c933be158e330aff7f035a107af62b3dd61c | 7a7ab877a8eb220e3238ede9110353069ddfe3c7 | refs/heads/master | 2020-07-22T21:11:59.823541 | 2020-02-13T21:42:19 | 2020-02-13T21:42:19 | 207,329,112 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python3
def roman_to_int(roman_string):
if isinstance(roman_string, str) is False or roman_string is None:
return (0)
res = 0
rom_str = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}
for i in range(len(roman_string), 0, -1):
if roman_string[i-1] in rom_str:
... | UTF-8 | Python | false | false | 600 | py | 72 | 12-roman_to_int.py | 61 | 0.49 | 0.438333 | 0 | 15 | 39 | 79 |
rkaramc/celery-dedupe | 6,949,257,088,648 | 2df7aa75a166786e05db11380290b1778cf5d170 | 1384f98033dbd5020f53506b524263322c7a7e30 | /setup.py | a50f9c6d22aa82e75ea957b63a771a45d06e0df8 | [
"MIT"
] | permissive | https://github.com/rkaramc/celery-dedupe | a626de0c2d0b74b2639382e4e19f450e664f58b5 | d31c8ec3e40b58c7b58fb1adb1472e46db1bbafd | refs/heads/master | 2020-07-28T08:50:19.912255 | 2016-11-10T22:00:37 | 2016-11-10T22:00:37 | 73,416,331 | 0 | 0 | null | true | 2016-11-10T20:19:54 | 2016-11-10T19:57:16 | 2016-11-10T19:57:17 | 2016-11-10T20:19:53 | 196 | 0 | 0 | 0 | Python | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
setup(
name='celery-dedupe',
version='0.0.1',
description='Deduplication of Celery tasks',
author='Joe Alcorn',
author_email='joealcorn123@gmail.com',
url='https://github.com/... | UTF-8 | Python | false | false | 740 | py | 13 | setup.py | 9 | 0.614865 | 0.604054 | 0 | 29 | 24.517241 | 53 |
cindy820219/python-realbook | 5,454,608,501,748 | a36bcb422b4b36df6f0b382b3bd4fd81efbcc979 | b89bc3608d525d6b3719e0d14269f8d28b285196 | /realbook/measure.py | 96631df1deec1f9941f6262d92367fecd674010b | [] | no_license | https://github.com/cindy820219/python-realbook | 4764b53b2a200112d3a9d82b3476cbea5661c850 | b99daace9f05095c64c23337c03ab986f48bd2f3 | refs/heads/master | 2021-01-10T13:41:57.842336 | 2010-05-20T13:47:57 | 2010-05-20T13:47:57 | 42,981,886 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright (C) 2010 Vittorio Palmisano <vpalmisano at gmail dot com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of th... | UTF-8 | Python | false | false | 16,646 | py | 6 | measure.py | 6 | 0.556779 | 0.540711 | 0 | 412 | 39.332524 | 86 |
vzhng/python_practice | 18,021,682,805,873 | e154618816eb20295ba04506ae07f44b8f664e33 | d1f35be125b2ac85f0cb123c461e00dd6f21cdd6 | /python_learn1/wordcount1.py | 9fc9a65b6c81bb53e2534ed1f769d71ba1bde813 | [] | no_license | https://github.com/vzhng/python_practice | 5ceeaf1441622f227ac691b76f3621817a268e5c | eb454c8833038e20250af85751fe124bfc539575 | refs/heads/main | 2023-06-01T13:13:15.955964 | 2021-06-11T21:15:06 | 2021-06-11T21:15:06 | 376,143,210 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
#s1 = "nba cxy word history type cxy nba history word word type type history"
s1 = input("Please input words:")
s2 = s1.split()
dict={}
for word in s2:
print (word)
if word in dict:
n = dict[word]
n = n+1
dict[word] = n
else:
dict[word] = 1
print (dict)
| UTF-8 | Python | false | false | 317 | py | 51 | wordcount1.py | 47 | 0.536278 | 0.514196 | 0 | 15 | 19 | 77 |
ddank0/Python-ex | 10,642,928,961,836 | 59554e5c3ba66c247cc77e415251d89bb95fb658 | 4438a397db52f1dad60edc7f583d2dad103f217a | /lista 1.26.py | 69c10678d31ca51af9ebf07d32ce803cb0f56a3d | [] | no_license | https://github.com/ddank0/Python-ex | 07c20ed2f609fad700f0801d7d174626285a3bb2 | ab0ed0d7228d19695e7e320a973a928cddbe9055 | refs/heads/master | 2021-07-01T18:17:05.729400 | 2021-02-22T01:30:05 | 2021-02-22T01:30:05 | 224,468,844 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | n = float(input("Digite um numero:"))
maior_n = 0
soma = 0
cont = 0
while n > 0:
cont += 1
soma += n
if n > maior_n:
maior_n = n
x = soma - maior_n
n = float(input("Digite um numero:"))
if cont < 3:
print('Não é possivel formar o poligono')
elif maior_n < x:
print('É possivel form... | UTF-8 | Python | false | false | 393 | py | 119 | lista 1.26.py | 114 | 0.582474 | 0.56701 | 0 | 19 | 19.421053 | 45 |
kalachand/codes | 12,249,246,751,930 | 074e08f9d39e37f8cb8c4fd461a64825c02b248a | 26551769200eafa5bdd72ea5a51f87e61dbd8d6d | /codechef/julylong2k14/lastsgarden.py | 930671191f760b59a80466d1ccb31cc962504c9d | [] | no_license | https://github.com/kalachand/codes | f894945a2cdc4c7868fd1f24c3b7727f32cf5ba1 | ed45d7ffe380e4e5d52f95e9542a108e4ceeceb7 | refs/heads/master | 2021-01-15T12:44:29.552598 | 2015-11-03T21:02:36 | 2015-11-03T21:02:36 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def gcd(a,b):
if(b==0):
return a
return gcd(b,a%b)
maxit=100009
primeit=[]
isprime={}
for i in range(0,maxit+1):
isprime[i]=0
isprime[0]=1
isprime[1]=1
isprime[2]=1
primeit.append(2)
for i in range(4,maxit,2):
isprime[i]=1
sqrtit=maxit**0.5
sqrtit=int(sqrtit)+1
for i in range(3,sqrtit,2):
if(isprime[i]==0):
fo... | UTF-8 | Python | false | false | 1,181 | py | 401 | lastsgarden.py | 378 | 0.624894 | 0.566469 | 0 | 67 | 16.626866 | 44 |
syslabcomarchive/gfb.policy | 6,287,832,133,030 | 58d635aadc15ba8a753f46e6d42b728833ba2469 | 071cf102c9ccb8c833cadb782029aaa4f553bda8 | /gfb/policy/order.py | c0b2b0306e7ef312847be3c4ade1633b9eb59e49 | [] | no_license | https://github.com/syslabcomarchive/gfb.policy | f8975cc8b44966b03b9d38928446d4f8419ae40e | 32d11b8a408f2f43580bc012b8460950725d881a | refs/heads/master | 2023-02-25T04:37:55.385359 | 2016-11-04T16:55:58 | 2016-11-04T16:55:58 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from plone.folder.default import DefaultOrdering
class PrependOrdering(DefaultOrdering):
"""prepend new added content
copied from collective.folderorder
"""
def notifyAdded(self, id):
"""
Inform the ordering implementation that an item was added
"""
order = self._order... | UTF-8 | Python | false | false | 536 | py | 48 | order.py | 27 | 0.615672 | 0.613806 | 0 | 22 | 23.363636 | 65 |
zebengberg/wasatch | 10,625,749,128,761 | ba2bc7ea1947b697cb6ebb3861f427ad73b2b338 | abca6158aafd16a5be7fd81a9743eac09c99dd10 | /python/pygame_examples/snake.py | bd6398be18ae264a2b13f1cbf74541fc95427461 | [] | no_license | https://github.com/zebengberg/wasatch | 0a6bed336220772e216ca4e01930d1efd392a4c6 | 423b679644901f5bec0272175ab582de0ae61997 | refs/heads/master | 2023-03-31T12:12:51.295511 | 2021-04-14T20:18:34 | 2021-04-14T20:18:34 | 240,130,163 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # run with pythonw on mac
import random
import pygame
pygame.init()
screen = pygame.display.set_mode([400, 400])
pygame.display.set_caption('Hello World')
class Snake:
def __init__(self):
self.x = screen.get_width() // 2
self.y = screen.get_height() // 2
self.r = 10
self.direction = 'RIGHT'
se... | UTF-8 | Python | false | false | 2,541 | py | 26 | snake.py | 19 | 0.558835 | 0.534042 | 0 | 92 | 26.619565 | 71 |
ustcrding/ai-study | 17,824,114,282,737 | a83736b506345f9062c6451b11907d2089bca5e8 | 9d5531e60a7b2866952fb0e30af7e89c6739fc08 | /作业/第一次作业/代码/ljw/文本分类/cluster.py | de607a7ad56c9548eb3a67ecadf753bb35f15aad | [
"Apache-2.0"
] | permissive | https://github.com/ustcrding/ai-study | 8e99db453fae6ad9f7687a3aba77b155957445cc | d09bf8e1ae15e8b4c2d5eeb81a733087495475ca | refs/heads/master | 2020-04-30T09:15:03.927375 | 2019-03-23T12:57:02 | 2019-03-23T12:57:02 | 176,741,730 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import jieba
from sklearn.cluster import KMeans
import numpy as np
import os
def read_from_file(file_name):
with open(file_name, "r", encoding="utf-8") as fp:
words = fp.read()
return words
def stop_words(stop_word_file):
words = read_from_file(stop_word_file)
result = jieba.cut(words)
n... | UTF-8 | Python | false | false | 2,503 | py | 14 | cluster.py | 8 | 0.591872 | 0.584522 | 0 | 83 | 26.86747 | 100 |
Gvex95/BlackJackMindFuck | 13,511,967,118,706 | 29c0b13b1fc493a920bcf4bf567b7e9737204b81 | e088dbd98fcfecc0c95bc7d1693e252d86fc4385 | /BlackJack/BlackJack.py | f34a91b11589a02e8ba9a7502db736b0c4559e52 | [] | no_license | https://github.com/Gvex95/BlackJackMindFuck | 872713c9202ae318826b159385d7683588aeb699 | 84a26a4292ec6eaa0967ecd5ef06d5519401a62f | refs/heads/master | 2021-01-25T07:55:07.619589 | 2017-06-07T23:09:21 | 2017-06-07T23:09:21 | 93,686,163 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import random
izracunato = [None] * 52
spil = [1,2,3,4,5,6,7,8,9,10,10,10,10,
1,2,3,4,5,6,7,8,9,10,10,10,10,
1,2,3,4,5,6,7,8,9,10,10,10,10,
1,2,3,4,5,6,7,8,9,10,10,10,10,]
def IzracunajMaxPara(i):
if izracunato[i] == -1: #taj slucaj nije obradjen
izbor = [0]
for... | UTF-8 | Python | false | false | 2,485 | py | 1 | BlackJack.py | 1 | 0.495775 | 0.433803 | 0 | 84 | 28.52381 | 141 |
bx0709/Price_Comparator | 19,095,424,624,976 | 0e4f967c04b770b4f784a98b975c5734fa3a3c4d | dfaa566aea6dcd5d8c94802154a309e102869385 | /book_comp.py | 19818be642081612cd68a76b96faa4f3452d7222 | [] | no_license | https://github.com/bx0709/Price_Comparator | cd5cc4dfeeadd85f37ec25397f217c60a609dd00 | dafe3ee6adedd11bfea8af9d494a9a6565ff0d61 | refs/heads/master | 2022-11-26T06:40:50.919598 | 2020-08-08T20:50:39 | 2020-08-08T20:50:39 | 286,116,818 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import *
import time
from tkinter import ttk
from tkinter.ttk import *
import local_price
import ib_store
import compare_prices
import sqlite3
from tkinter import Tk
book_name = ['18 Years JEE Main Physics Chapterwise Solutions',
'Daily Practice Problems of PCM for JEE Main/Advanced 1... | UTF-8 | Python | false | false | 19,018 | py | 5 | book_comp.py | 4 | 0.562888 | 0.535177 | 0 | 394 | 47.271574 | 174 |
genomoncology/related | 12,360,915,894,899 | cef3726bf446d02eff10eb1d2ba8d85742c16405 | a21ccc8ced1b57b351e3772e3939714e330de2d5 | /tests/ex08_self_reference/models.py | 34564014a623eea4f5b534a8000e7835f40c0e03 | [
"MIT"
] | permissive | https://github.com/genomoncology/related | f7d4310fd5776441afd045a96f07f9dad9797a6c | 2f3db6b07f5515792370d97f790cd46ec0882a9d | refs/heads/master | 2023-01-12T08:46:16.068921 | 2022-08-05T13:34:47 | 2022-08-05T13:34:47 | 92,290,249 | 208 | 18 | MIT | false | 2022-12-27T17:03:18 | 2017-05-24T12:31:44 | 2022-12-19T22:03:05 | 2022-12-27T17:03:16 | 328 | 190 | 15 | 21 | Python | false | false | import related
node_cls = "ex08_self_reference.models.Node"
@related.mutable
class Node(object):
name = related.StringField()
node_child = related.ChildField(node_cls, required=False)
node_list = related.SequenceField(node_cls, required=False)
node_map = related.MappingField(node_cls, "name", require... | UTF-8 | Python | false | false | 329 | py | 42 | models.py | 31 | 0.735562 | 0.729483 | 0 | 11 | 28.909091 | 69 |
fedspendingtransparency/data-act-broker-backend | 12,524,124,641,488 | 7033d7005c88eaf5a027556d78cd02e8c6f17831 | d0081f81996635e913b1f267a4586eb0bfd3dcd5 | /tests/unit/dataactvalidator/test_b7_object_class_program_activity_1.py | 70b9591f77b0130db935e1bb7b512cb1f882e414 | [
"CC0-1.0"
] | permissive | https://github.com/fedspendingtransparency/data-act-broker-backend | 71c10a6c7c284c8fa6556ccc0efce798870b059b | b12c73976fd7eb5728eda90e56e053759c733c35 | refs/heads/master | 2023-09-01T07:41:35.449877 | 2023-08-29T20:14:45 | 2023-08-29T20:14:45 | 57,313,310 | 55 | 36 | CC0-1.0 | false | 2023-09-13T16:40:58 | 2016-04-28T15:39:36 | 2023-04-06T18:18:03 | 2023-09-13T16:40:56 | 94,931 | 44 | 30 | 5 | Python | false | false | from tests.unit.dataactcore.factories.staging import ObjectClassProgramActivityFactory
from tests.unit.dataactvalidator.utils import number_of_errors, query_columns
_FILE = 'b7_object_class_program_activity_1'
def test_column_headers(database):
expected_subset = {'row_number', 'gross_outlays_delivered_or_fyb', ... | UTF-8 | Python | false | false | 1,394 | py | 931 | test_b7_object_class_program_activity_1.py | 790 | 0.725968 | 0.698709 | 0 | 32 | 42.5625 | 118 |
jinwei2016211483/jinwei | 4,191,888,121,023 | 9dac69432aea4225318a66e15063b3f1dec1df33 | b5a7dada98e842ba08063a5eb2573879c0d416a5 | /untitled0.py | d6da41a9e336bbe6d759201d9e70f473fcb77cc7 | [] | no_license | https://github.com/jinwei2016211483/jinwei | 1c03d86ee462c6653a576bf5ed0cd7b72c04d8b5 | cbc47b6474c7ee280f7f60baa8416a2b50cba3fb | refs/heads/master | 2023-08-14T01:58:18.036150 | 2021-09-22T07:56:16 | 2021-09-22T07:56:16 | 410,473,975 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 22 15:10:07 2021
@author: Dell
"""
import tensorflow as tf
| UTF-8 | Python | false | false | 108 | py | 1 | untitled0.py | 1 | 0.62037 | 0.5 | 0 | 8 | 12.5 | 35 |
cheneyuwu/TD3fD-through-Shaping-using-Generative-Models | 163,208,790,172 | 69c33375393a9c74cf7ff377a6bc3ad3be8a838b | 9488b24f3b44577529de25b71919c01de3f161f9 | /Package/td3fd/td3fd/ddpg/torch/ddpg.py | c718033ddebd192bf173bc21403fc11ee4d6d25c | [
"MIT"
] | permissive | https://github.com/cheneyuwu/TD3fD-through-Shaping-using-Generative-Models | 0858b6227a5b77e123b38257ea157903bd8c469b | f23bf3f219fa20cb7d14370acdf22c17f49f9b7d | refs/heads/master | 2020-04-10T14:14:53.357667 | 2019-11-12T21:26:16 | 2019-11-12T21:26:16 | 161,072,134 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pickle
import numpy as np
import torch
from td3fd.memory import RingReplayBuffer, UniformReplayBuffer
from td3fd.ddpg.torch.model import Actor, Critic
# from td3fd.actor_critic import ActorCritic
# from td3fd.demo_shaping import EnsGANDemoShaping, EnsNFDemoShaping
from td3fd.ddpg.torch.normalizer import Norma... | UTF-8 | Python | false | false | 17,003 | py | 124 | ddpg.py | 74 | 0.570311 | 0.565724 | 0 | 391 | 42.485934 | 123 |
le1nux/pandattack | 16,183,436,776,373 | a15e45e1be823da050f1205bb9942b53192dcb4c | 5bc231e45984a2bfb1d93c548e0d8cb395fa9d05 | /tests/dataset_loaders/test_dataset.py | 54471ee8d38db4eeb4f304a9183efb55c0f471c2 | [
"MIT"
] | permissive | https://github.com/le1nux/pandattack | 9232075c160bca11876e314e6b3f8c4bd2f2ce98 | c3671fc11b74019fb20b7507e09f7b8425f9bb81 | refs/heads/master | 2022-12-24T21:17:05.442606 | 2019-10-08T14:28:32 | 2019-10-08T14:28:32 | 207,798,327 | 2 | 1 | MIT | false | 2022-12-15T18:35:06 | 2019-09-11T11:42:53 | 2021-05-13T13:29:59 | 2019-10-08T14:28:43 | 335 | 1 | 1 | 1 | Python | false | false | #!/usr/bin/env python3
import pytest
import tempfile
class TestDataset:
@pytest.fixture(autouse=True)
def setup_and_teardown(self):
tmp_dir = tempfile.TemporaryDirectory()
yield
tmp_dir.cleanup()
| UTF-8 | Python | false | false | 230 | py | 28 | test_dataset.py | 26 | 0.673913 | 0.669565 | 0 | 11 | 19.909091 | 47 |
Reyoth/initiationPython | 15,839,839,429,658 | a0df200b73e445df460230cc32bfb28574a0ed2d | 0102ccf6c44c225868813bbcc9b37e22092e67cf | /06_exercices.py | 9d8589d7d48ac3dd0f37bff161754b9ee449e5ed | [] | no_license | https://github.com/Reyoth/initiationPython | c1e72ec4669c22a4ff5c06c8fa978b2af1625af0 | d0cc3473be0b9f286e89921f9ff72a34c1eedcb0 | refs/heads/master | 2022-03-26T07:35:00.040124 | 2022-02-28T10:51:42 | 2022-02-28T10:51:42 | 150,640,858 | 0 | 10 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Règles du jeu de la roulette ZCasino de OpenClassRooms.com
# On va simplifier les règles et je vous présente tout de suite ce que l'on obtient :
# Le joueur mise sur un numéro compris entre 0 et 49 (50 numéros en tout).
# En choisissant son numéro, il y dépose la somme qu'il souhaite miser.
# La roulette est consti... | UTF-8 | Python | false | false | 5,528 | py | 18 | 06_exercices.py | 18 | 0.655255 | 0.644763 | 0 | 195 | 26.866667 | 113 |
davidbrownell/Common_Environment | 4,011,499,481,987 | ea96589fcc6b9fab622d8e1ec5a662b7e09ef257 | 8ac43a158d42db9b9b4098415cb8119f9e8d092c | /Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/SchemaConverters/UnitTests/SimpleSchemaConverter_UnitTest.py | af0809e260f4ff5f0f243374434e62044399009d | [
"BSL-1.0"
] | permissive | https://github.com/davidbrownell/Common_Environment | 834ae4fd86284115dc2f0c2a85434ebc6bffeb89 | 4015872aeac8d5da30a6aa7940e1035a6aa6a75d | refs/heads/master | 2021-01-23T04:29:17.336612 | 2018-04-15T18:58:41 | 2018-04-15T18:58:41 | 88,362,950 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # ----------------------------------------------------------------------
# |
# | SimpleSchemaConverter_UnitTest.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2016-09-06 17:31:15
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell ... | UTF-8 | Python | false | false | 6,374 | py | 222 | SimpleSchemaConverter_UnitTest.py | 196 | 0.559931 | 0.542673 | 0 | 100 | 61.74 | 209 |
madskillz254/watchlist-tutorial | 16,106,127,402,549 | 30355eefb5b70748d2673da7d7eb17874711dbd0 | 50a72c754521700825bb0fd2e7a38af200435525 | /config.py | 0eb0c29c08645643fdd2f554bb8540a83996e1dc | [] | no_license | https://github.com/madskillz254/watchlist-tutorial | 4160945c24c79e686560de81b417a376db1df7f3 | 977f001031c9b32ef9248a4ce13b3143bd801e34 | refs/heads/master | 2020-05-07T09:30:05.783420 | 2019-04-17T09:40:31 | 2019-04-17T09:40:31 | 180,379,966 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
class Config:
'''
General configuration parent class
'''
# simple mde configurations
SIMPLEMDE_JS_IIFE = True
SIMPLEMDE_USE_CDN = True
MOVIE_API_BASE_URL ='https://api.themoviedb.org/3/movie/{}?api_key={}'
MOVIE_API_KEY = os.environ.get('MOVIE_API_KEY')
SECRET_KEY = os.e... | UTF-8 | Python | false | false | 1,730 | py | 12 | config.py | 11 | 0.704046 | 0.69711 | 0 | 43 | 39.255814 | 314 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.