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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BCLibraries/bc-lib-search | 14,396,730,406,512 | e6180d8ca61afa94c9dfc0564ea75dbfd680d6dc | 2fe74d7252afb91bdb1fc10649fde3e8abe1a7a7 | /indexer/index_record.py | 030678eb6430be93198166ed28c81ce05c956fbc | [
"MIT"
] | permissive | https://github.com/BCLibraries/bc-lib-search | 0bbf931d9a303518a172ad85892ffd2f0a07678d | 68e8404d9529d20e6936a95c86323abd92401ce3 | refs/heads/master | 2020-05-27T14:43:45.266697 | 2018-12-03T21:50:14 | 2018-12-03T21:50:14 | 22,269,009 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class IndexRecord(object):
def __init__(self):
self.title = None
self.author = None
self.subjects = None
self.location = None
self.issn = None
self.isbn = None
self.collections = None
self.series = None
self.callnum = None
self.notes = ... | UTF-8 | Python | false | false | 587 | py | 40 | index_record.py | 21 | 0.516184 | 0.511073 | 0 | 22 | 25.727273 | 31 |
decko/sistema-nacional-cultura | 3,848,290,732,734 | 057c7ef133838df983f40ad76594301fefa3faf9 | 9833046fce96cbaa05682b3e244273a4a773fbf4 | /adesao/views.py | 45182b041652b05ce4d2de7eb64a7c38ce2b1bb9 | [] | no_license | https://github.com/decko/sistema-nacional-cultura | aaca65dd14567e1a2e9397087ad67a92a5b2ee91 | f727bf428fcdc9c16776953a0a0a4a8c8bd5897f | refs/heads/master | 2021-01-18T01:51:55.848700 | 2015-05-23T05:29:32 | 2015-05-23T05:29:32 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.shortcuts import render, redirect
from django.views.generic.edit import CreateView, UpdateView, FormView
from django.core.urlresolvers import reverse_lazy
from django.contrib.auth.decorators import login_required
from adesao.models import Municipio, Responsavel, Secretario
from adesao.forms import Cadastra... | UTF-8 | Python | false | false | 4,488 | py | 19 | views.py | 5 | 0.708111 | 0.706774 | 0 | 135 | 32.244444 | 78 |
pulumi/pulumi-azure | 16,604,343,609,612 | 64c13c14245b8fa092b1228c8237416bf3e47440 | f487532281c1c6a36a5c62a29744d8323584891b | /sdk/python/pulumi_azure/paloalto/local_rulestack_rule.py | 30a59eb1a3f219538e365700122843e88feb5281 | [
"MPL-2.0",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | https://github.com/pulumi/pulumi-azure | a8f8f21c46c802aecf1397c737662ddcc438a2db | c16962e5c4f5810efec2806b8bb49d0da960d1ea | refs/heads/master | 2023-08-25T00:17:05.290397 | 2023-08-24T06:11:55 | 2023-08-24T06:11:55 | 103,183,737 | 129 | 57 | Apache-2.0 | false | 2023-09-13T05:44:10 | 2017-09-11T20:19:15 | 2023-08-09T05:39:20 | 2023-09-13T05:44:08 | 186,735 | 125 | 46 | 62 | Java | false | false | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
fr... | UTF-8 | Python | false | false | 52,081 | py | 11,864 | local_rulestack_rule.py | 8,604 | 0.641578 | 0.637833 | 0 | 1,074 | 47.49162 | 250 |
D6C92FE5/oucfeed.server | 2,001,454,796,483 | dc1540aea2f8916634f8168c7318b00a3457bbb8 | cb01850ea1a138ce13e4e3e27abeb3085aad7531 | /oucfeed/server/db/__init__.py | e2e83d12cd45672ccc461bf7113975f38ff01c98 | [
"MIT"
] | permissive | https://github.com/D6C92FE5/oucfeed.server | 92ebaffd52929e84006a75eff962999be7e92f2e | ba9d64c71a1e8b20a5db34c6d4d61500e05a92a4 | refs/heads/master | 2020-12-24T13:28:42.316276 | 2014-05-02T03:12:10 | 2014-05-02T03:12:10 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division, absolute_import, print_function, unicode_literals
try:
from google.appengine.ext import ndb
except:
from oucfeed.server.db.sqlite import *
else:
from oucfeed.server.db.gae import *
| UTF-8 | Python | false | false | 253 | py | 25 | __init__.py | 19 | 0.70751 | 0.703557 | 0 | 11 | 22 | 82 |
zhenglingl/sass | 13,615,046,370,594 | 83239449c4101f5f05a7226c147c9c3123e0a79f | 33dca20901f90bfbe57c0c35292c8ec7f6aa4048 | /web/views/account.py | 4db62bb6d9e80290a42ada84358812e175ec156c | [] | no_license | https://github.com/zhenglingl/sass | b66dcadebe1d713e0fa2ef16266c3e111f2e7aa4 | bcfbc3d4f4fc9f3f6dd6251323a98326d17e9741 | refs/heads/master | 2023-05-26T18:04:24.751567 | 2020-07-10T11:45:54 | 2020-07-10T11:45:54 | 278,227,833 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
用户账户相关功能:注册、短信、登录、注销
"""
from django.shortcuts import render
from web.forms.account import RegisterModeForm
def register(request):
# 实例化modelform
form = RegisterModeForm()
return render(request,'register.html',{'form':form}) | UTF-8 | Python | false | false | 286 | py | 3 | account.py | 3 | 0.7375 | 0.7375 | 0 | 9 | 25.777778 | 56 |
elim723/ezfit | 7,687,991,470,651 | b0af854814fce1eda0e85b27dd91b4118fd5125f | f461bdf150abdd7f02df2dd6097d10f838ac6fad | /likelihood.py | baa278a3c748f4cca4e9b94f19eb06b0d0ebb12b | [] | no_license | https://github.com/elim723/ezfit | 35280645700018cf1c3668644b7888a5e67e01e0 | b4ca0eb7f88fb9f844bb66767807e383b1de092d | refs/heads/master | 2020-03-25T05:51:20.764704 | 2018-09-10T01:54:59 | 2018-09-10T01:54:59 | 143,469,107 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
####
#### Originally by Michael Larson
#### Modified by Elim Cheung (07/24/2018)
####
#### This script contains the likelihood class. One can
#### choose regular / modified chi2 or poisson / barlow
#### LLH.
####
#### More info on BarlowLLH:
#### http://lss.fnal.gov/archive/other/man-hep-93-1... | UTF-8 | Python | false | false | 24,957 | py | 13 | likelihood.py | 12 | 0.455383 | 0.444244 | 0 | 675 | 35.973333 | 91 |
DeyangWang3849/LeetcodeRepository | 19,052,474,949,166 | cfb2a6690c5c0875518bf692a4200115e0f88c11 | ebb47a8603d81846ca55ef402500fba433898b05 | /003LongestSubstring.py | 8a24c3c0dd97ac683dc15533e2d1d18b2a848b33 | [] | no_license | https://github.com/DeyangWang3849/LeetcodeRepository | 844ed304863fc92585d70fb033d8b9df274f2e09 | 5618e001ef53647a0e15222398bde90508e52cdb | refs/heads/master | 2020-05-01T05:12:48.079628 | 2019-03-24T11:52:20 | 2019-03-24T11:52:20 | 177,295,609 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def lengthOfLongestSubstring(s:str):
diction = {}
lenList = []
if s == '':
return 0
diction[s[0]]=0
lenList.append(1)
for i in range(1,len(s)):
if diction.__contains__(s[i]):
lenList.append(min(i - diction[s[i]],lenList[i-1]+1))
diction[s[i]]=i
el... | UTF-8 | Python | false | false | 560 | py | 4 | 003LongestSubstring.py | 4 | 0.528571 | 0.5125 | 0 | 21 | 25.666667 | 65 |
liqichen6688/alpha | 8,658,654,079,029 | 0075d1c8e572e0dcfa335351ff8ad02a438f8f2d | 0513fb90bf9d15f5ba6bba0f9b76595a7a297990 | /XtechAlpha.py | 2b73a7da5dba54c0c9113cf1beeb4c650ff2e764 | [] | no_license | https://github.com/liqichen6688/alpha | f62374b82dbfde4aae10c29458894c4b681b2d04 | 570ce700db4774a3adf78f56e492e7ac242c37e8 | refs/heads/master | 2020-06-05T03:04:44.778032 | 2019-06-17T07:44:44 | 2019-06-17T07:44:44 | 192,291,986 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import pandas as pd
from scipy.stats import rankdata
def ts_max(x: pd.core.frame.DataFrame, d: int) -> pd.core.frame.DataFrame:
return x.rolling(d).max()
def ts_argmax(x: pd.core.frame.DataFrame, d: int) -> pd.core.frame.DataFrame:
return x.rolling(d).apply(np.argmax)
def ts_argmin(x:... | UTF-8 | Python | false | false | 891 | py | 1 | XtechAlpha.py | 1 | 0.685746 | 0.684624 | 0 | 38 | 22.447368 | 77 |
andres06-hub/app_tenderos | 19,301,583,050,256 | cf4daff78c7fce6415c11b0f483f699fa6d16414 | 43319fddc5bb3f50336391d7fd06b370fe2f3d43 | /app.py | 2b21c4517eab9e8ed9f9e0703b8c6c9bd65f4733 | [] | no_license | https://github.com/andres06-hub/app_tenderos | 89b7bf87b5678c447ffbacef3743c1ea5c4c8aba | 8d1af152681c365ad32eebda5bc1ba3cf8555d85 | refs/heads/main | 2023-08-16T13:55:17.047356 | 2021-10-01T02:06:56 | 2021-10-01T02:06:56 | 410,353,185 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Se importa flask
import re
from data import usuario
from data.usuario import Usuario
from itertools import product
from flask import Flask, request, render_template, session, redirect, url_for
from flask import json
from flask.helpers import flash
from flask.json import jsonify
# # se importa la libreria bcrypt p... | UTF-8 | Python | false | false | 12,068 | py | 27 | app.py | 5 | 0.636612 | 0.63396 | 0 | 397 | 29.390428 | 164 |
zhouchch3/TS3D_tapeout | 10,883,447,142,785 | b293bdbd7f2b5e689c49a625bf9791953ae81304 | 69a1fe67746690f08410669ffdbc5c3d26daea25 | /zhoucc/scripts/Statistic.py | d337f13923805aabed875c5080804cceeb72cf72 | [] | no_license | https://github.com/zhouchch3/TS3D_tapeout | 581fafb39f7b1249b9ee0b2eea6e777d138ddf04 | a827670fec12dac2993f948806ef039e21af4e1f | refs/heads/master | 2023-06-23T20:20:22.039109 | 2021-07-24T17:22:23 | 2021-07-24T17:22:23 | 389,029,905 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # ***********************************************************************
# statistic weight
# ***********************************************************************
import matplotlib.pyplot as plt
import pandas as pd
import heapq
def Statistic( actBlk, PECMAC_Wei,
Len, NumFtrGrp, NumBlk, NumWei, NumChn, Nu... | UTF-8 | Python | false | false | 16,340 | py | 375 | Statistic.py | 14 | 0.525949 | 0.510343 | 0 | 277 | 57.98917 | 243 |
a376714574/ceshi2 | 3,195,455,699,928 | 8088c9329d4870cb1e72807a746ebf910c5c35bd | 911d3e430fb980d76804a6372ffb8eee917137e2 | /old/new/Requests_Processing.py | d22b5fea5550de638978f90c9a27d440dfe00732 | [] | no_license | https://github.com/a376714574/ceshi2 | a11526d9c1dea0fa33baf0677ff046b35a850b27 | 50130cae01f673522ede3ba43cefff6ff7c1ac0a | refs/heads/master | 2022-12-08T14:50:09.492291 | 2019-05-13T15:31:05 | 2019-05-13T15:31:05 | 186,026,781 | 0 | 0 | null | false | 2022-12-08T01:45:25 | 2019-05-10T17:19:30 | 2019-05-13T15:31:16 | 2022-12-08T01:45:25 | 174 | 0 | 0 | 3 | Python | false | false | # from new_123.excel_rz import excel
# from new_123 import os_path
# from new_123.requests_GP import get_post
# from ddt import ddt,data
# from new_123.mysql_r import mysql
# import unittest
#
#
# @ddt
# class Requests_Cls(unittest.TestCase):
#
# ex_rz=excel(excel_name=os_path.live_path,sheet="register")
# ex_r... | UTF-8 | Python | false | false | 1,640 | py | 41 | Requests_Processing.py | 36 | 0.569241 | 0.547936 | 0 | 46 | 31.673913 | 84 |
sparsh-ai/reco-tut-ocr | 1,537,598,338,089 | 79d0a7021655b072d02eadf5839b49bc32ab4f24 | b587ced7d80ab4c6cb86234882c79adc96d3c0d3 | /recommenders/utils/tools.py | a4ec6465f53e9b60a6c8ffc1f64273fcfbc10679 | [] | no_license | https://github.com/sparsh-ai/reco-tut-ocr | 7969e27d100070838154e1a7193cc6eb95a47cd5 | 979971b95462a2bfe3426cabebb5a007166af709 | refs/heads/main | 2023-07-01T20:34:13.485256 | 2021-08-05T19:16:17 | 2021-08-05T19:16:17 | 383,611,031 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Helper functions for preparing example dataset
import functools
import pandas as pd
from time import time
from database.manager import utils as db_main
from .logger import get_logger
logger = get_logger(__name__)
def load_data(env: str) -> dict:
"""Load Users and Content Data from SQLite
Parameters
--... | UTF-8 | Python | false | false | 3,562 | py | 32 | tools.py | 15 | 0.58338 | 0.57973 | 0 | 118 | 29.186441 | 86 |
JeanPool22/platzi | 9,062,381,004,393 | a4c22038ebe88cde3ca76526eeb98e39fe06e6fc | 4f8d2517143c38241f00bdc56bcc736fc0e94ac7 | /basicoPython/estructuda_de_datos/diccionarios.py | af1995abe0e3861cdc78224ae3e188e1973d8f19 | [] | no_license | https://github.com/JeanPool22/platzi | 25efd34f8f3d5e53bac00798cfe88384c656b69c | 339e750e2aedd831eb61ea70c2d583cb4e414a3b | refs/heads/main | 2023-06-20T20:49:14.124261 | 2021-07-25T01:38:40 | 2021-07-25T01:38:40 | 389,232,169 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def run():
mi_diccionario = {
'llave1': 1,
'llave2': 2,
'llave3': 3
}
# print(mi_diccionario['llave1'])
# print(mi_diccionario['llave2'])
# print(mi_diccionario['llave3'])
poblacion_pais = {
'Argentina': 4493872,
'Brazil': 210147125,
'Colombia': 5... | UTF-8 | Python | false | false | 657 | py | 47 | diccionarios.py | 18 | 0.538813 | 0.488584 | 0 | 28 | 22.5 | 64 |
Egor-oop/geekshop1 | 5,497,558,155,390 | 00310c7722cf4c83c190b4c5b54f2f37b5698c47 | 58accaadb8d3ae7b8b82085dec35539c487d5090 | /products/views.py | af42e2f70d3d90e5da101e23bdec296073cffd81 | [] | no_license | https://github.com/Egor-oop/geekshop1 | 02b9147d8f442ae87009a3f433d267b5d367ccb1 | 1ce2dc3efdd566718594d4c4a22964f674ada900 | refs/heads/master | 2023-08-25T10:39:32.339421 | 2021-10-17T11:21:15 | 2021-10-17T11:21:15 | 396,658,624 | 2 | 0 | null | false | 2021-10-17T11:21:17 | 2021-08-16T06:45:17 | 2021-10-07T07:30:53 | 2021-10-17T11:21:15 | 10,001 | 1 | 0 | 0 | CSS | false | false | from django.shortcuts import render
from products.models import ProductsCategory, Product
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
def index(request):
context = {
'title': 'Geekshop',
}
return render(request, 'products/index.html', context)
def products(request, ... | UTF-8 | Python | false | false | 929 | py | 25 | views.py | 15 | 0.720174 | 0.71692 | 0 | 26 | 34.461538 | 104 |
Minhan93/Expected_Risk_AUC | 60,129,570,087 | ba16bfed39d56b67372f470147b5e2df100f872a | 3484cd79e488d2e0b651dd14f236adab0b15d02e | /AUC_code/defObj.py | 2ecf50a9365ab5bf7f6647c750bba5f2704f995f | [] | no_license | https://github.com/Minhan93/Expected_Risk_AUC | 7bea51c7903ab9dd81e5802b99cab3fc75f95dd2 | 36fffef22f9f3f12ece49338f12cb5a5fcee7c89 | refs/heads/master | 2020-04-08T10:31:20.963831 | 2018-11-27T03:56:21 | 2018-11-27T03:56:21 | 159,272,255 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from numpy import linalg as la
from scipy.stats import norm
import timeit
class defObj:
def __init__(obj, param, data):
obj.max_iter = param.max_iter
obj.gtol = param.opt_tol
obj.inctol = param.opt_inc
obj.p = param.dim
obj.method = param.method
... | UTF-8 | Python | false | false | 5,487 | py | 14 | defObj.py | 14 | 0.468015 | 0.457445 | 0 | 169 | 31.467456 | 102 |
jabbalaci/teaching-assets | 9,646,496,587,019 | a23db7300af5e21225346a841afa4405d3bd505a | 9ffd4beca0dc486cc94073cbb980a4407bcd379a | /eng/nosql/07-crud_with_pymongo/080_insert_many.py | 753b73fc99f9e3ccbf66ce33351f0e7003ccd849 | [] | no_license | https://github.com/jabbalaci/teaching-assets | bf0c0feb2ae1dd67b12766f63e50381866257deb | 59b6c4bf52e93039afb2da47c5f9ed5c931e5077 | refs/heads/master | 2023-08-05T06:43:39.830595 | 2023-07-23T18:11:27 | 2023-07-23T18:11:27 | 69,950,635 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
import pymongo
# establish a connection to the database
connection = pymongo.MongoClient("mongodb://localhost")
db = connection.school
coll = db.people
coll.drop()
def insert_many():
print("insert_many()")
print()
# coll.count() is deprecated in the newest driver :(
print("b... | UTF-8 | Python | false | false | 1,160 | py | 291 | 080_insert_many.py | 105 | 0.559483 | 0.558621 | 0 | 42 | 26.619048 | 77 |
BQSKit/bqskit | 14,620,068,692,741 | e877e90a7933e98b2a42deb213c4809ae7778dce | fcc955fd5b3fc997f5b1651c5c8b9032a6b9b177 | /tests/ir/circuit/test_point_methods.py | e5f69b5e14af4e5b019e68dea56d0553349da677 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | https://github.com/BQSKit/bqskit | cf393d75b26349f7258e9caf9d5c8fa37d0c8de6 | c89112d15072e8ffffb68cf1757b184e2aeb3dc8 | refs/heads/main | 2023-09-01T04:11:18.212722 | 2023-08-29T17:34:38 | 2023-08-29T17:34:38 | 331,370,483 | 54 | 18 | NOASSERTION | false | 2023-09-14T14:33:26 | 2021-01-20T16:49:36 | 2023-09-11T15:18:08 | 2023-09-14T14:33:26 | 2,920 | 57 | 16 | 11 | OpenQASM | false | false | """This test module tests circuit point methods."""
from __future__ import annotations
import pytest
from hypothesis import given
from bqskit.ir.circuit import Circuit
from bqskit.ir.gates import HGate
from bqskit.ir.point import CircuitPoint
from bqskit.ir.point import CircuitPointLike
from bqskit.utils.test.strateg... | UTF-8 | Python | false | false | 5,241 | py | 419 | test_point_methods.py | 393 | 0.552757 | 0.533486 | 0 | 161 | 31.552795 | 72 |
bwopez/restaurant_scheduler | 12,876,311,982,967 | 5cf4fb75325765cf37ef6eec3a915fe9a96040cb | 8cc27099d9a5ebf481a56470778435ee33e9b4a3 | /Table.py | e087dd8acaa06680f93221775554ed3ce320f880 | [] | no_license | https://github.com/bwopez/restaurant_scheduler | 5cf8f9ad473af4cb7deea5819852312d319fdfcb | a057eb07263926fc735dafd6441e8d2009228dff | refs/heads/master | 2021-10-21T19:01:51.932396 | 2019-03-05T22:22:51 | 2019-03-05T22:22:51 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import Person
import menu
class Table:
def __init__(self, _table_num, _chairs=3, _name="walk in"):
"""
Constructor for the Table class
:param _chairs: The amount of chairs set at the table
:param _name: The optional name for a potential reservation or walk in
"""
se... | UTF-8 | Python | false | false | 2,818 | py | 7 | Table.py | 6 | 0.600071 | 0.596167 | 0 | 89 | 30.662921 | 78 |
feilaoda/easyspider | 3,934,190,092,209 | ee66aa81e00ca5116a59d1f2b9715be665f1ed40 | 6a551a6397c38d9a9dc43ce9378ad93e0344bddc | /setup.py | 08e65833aabcfa31e272a46848dd4bd2fb37a8f1 | [
"Apache-2.0"
] | permissive | https://github.com/feilaoda/easyspider | d8ae018be749c76126955f75be6ffbac14a4a419 | e80b224a036141b17a21445c94de646d5e4d1482 | refs/heads/master | 2020-12-13T12:52:26.765461 | 2018-08-21T08:49:47 | 2018-08-21T08:49:47 | 37,138,321 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from setuptools import setup, find_packages
setup(
name = "coderspider",
version = "0.1",
py_modules = ["spider","dbconfig"],
packages=find_packages(exclude=['tmp/*', 'test/*']),
package_data = {
# If any package contains *.txt or *.rst files, include them:
'': ['*.yaml', '*... | UTF-8 | Python | false | false | 590 | py | 21 | setup.py | 18 | 0.542373 | 0.538983 | 0 | 18 | 31.444444 | 69 |
alexioso/CPE365 | 6,244,882,494,850 | cac7205c6f46cd901cb68c0fde96ca1c7493b43e | 73d8f7f18cf7964510973ab82521e34fd1bb25de | /lab1/schoolsearch.py | dc652d80909e6ddec921e9464c84233d9473eba3 | [] | no_license | https://github.com/alexioso/CPE365 | 1a63f11a0e70b64c7e08eb7733b528ca15ca7a3a | be606d2be95cf5e2b7f9c77e78df799326116773 | refs/heads/master | 2021-01-19T07:43:46.288736 | 2017-04-07T15:43:00 | 2017-04-07T15:43:00 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Mitchel Davis
# Alex Braksator
# April 7 2017
# Lab01 CPE 365
# Trivial Requirements Satisfied
# R1 - Python runs on lab machines
# R2 - No command line parameters are needed
# R3 - Language for Search instructions is implemented See main loop and functions
import time
# Initializing arrays to store attributes o... | UTF-8 | Python | false | false | 6,920 | py | 2 | schoolsearch.py | 1 | 0.584827 | 0.572254 | 0 | 230 | 29.086957 | 177 |
openwns/wimemac | 2,619,930,075,762 | f553f4f8d5de9f32ee057a7b707a828d04288cfa | aa858436e0884ffb1674631976b334e4abf0f232 | /PyConfig/wimemac/evaluation/default.py | 34ace252ec899fc1f3910cc6dfb3f3ac7fa42afe | [] | no_license | https://github.com/openwns/wimemac | aaaa760776b0cabb2fa0dd0c6decd09834990de9 | 11d70674338de976b172823c2f036f2f74045e44 | refs/heads/master | 2021-01-18T13:42:52.519942 | 2014-06-29T23:27:19 | 2014-06-29T23:27:19 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | ###############################################################################
# This file is part of openWNS (open Wireless Network Simulator)
# _____________________________________________________________________________
#
# Copyright (C) 2004-2011
# Chair of Communication Networks (ComNets)
# Kopernikusstr. 5, D-5... | UTF-8 | Python | false | false | 11,575 | py | 114 | default.py | 113 | 0.555248 | 0.535637 | 0 | 222 | 51.13964 | 113 |
Jill0fAllTrades/Python_Crash_Course | 18,966,575,600,870 | 8b7c1d63d8e3b723d11701e61bb5995a224cd691 | 8ec920d3d56ebe8c6bfd99f575cc89983bf22a50 | /chapter_2/names.py | ae607d4a333999c349147a42d1278ad10c1e4271 | [] | no_license | https://github.com/Jill0fAllTrades/Python_Crash_Course | ec19a729a9d6feeff74949d0b40609100e1f1c4a | 44862d544dede7ba29a7c6139e5c17c56419def5 | refs/heads/main | 2023-08-04T19:41:43.231426 | 2021-09-14T23:41:14 | 2021-09-14T23:41:14 | 391,203,416 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | names = ['Kathy', 'Josh', 'Cassie']
print("Hello " + names[0] + "!")
print("Hello " + names[1] + "!")
print("Hello " + names[-1] + "!")
| UTF-8 | Python | false | false | 137 | py | 74 | names.py | 74 | 0.49635 | 0.474453 | 0 | 4 | 33 | 35 |
DransyHe/Computing | 19,628,000,564,942 | e3469f9243c65a7565d270029c838c533bdcf0fb | afcdc581aa59e4c1692a67f40564a118e2deeae4 | /3_5.py | f192924d580d437dbaba0ccc5fd2b3d20b3f35b1 | [] | no_license | https://github.com/DransyHe/Computing | 1088a6a14c5876e57fca1b8ef3bff55755d9e5ce | c4897654ce31c9c23d44adb808eee219eb338e09 | refs/heads/master | 2020-03-03T21:10:25.759099 | 2017-03-05T08:38:38 | 2017-03-05T08:38:38 | 83,552,743 | 0 | 0 | null | false | 2017-03-05T08:38:39 | 2017-03-01T12:35:43 | 2017-03-01T12:43:38 | 2017-03-05T08:38:39 | 3 | 0 | 0 | 0 | Python | null | null | f=open("shakespeare-romeo-48.txt","r")
fw=open("R_&_J_Word_Frequencies.txt","w")
words=[]
volcab=[]
count=[]
for line in f:
k=0
while k<len(line):
while (not ((line[k]>="a" and line[k]<="z") or (line[k]>="A" and line[k]<="Z"))):
k=k+1
if k==len(line):
break
... | UTF-8 | Python | false | false | 770 | py | 23 | 3_5.py | 20 | 0.463636 | 0.453247 | 0 | 29 | 25.551724 | 89 |
Jjiya/python_openTutorials | 6,975,026,930,436 | 9bb58a48f809e3fd8735d5896250b5d1b7d1345f | f6ca3a0263a1e9a25a948491c30b896ebb951c8d | /syntax/list.py | 42203a5867fbbf0a7b9c32884e5709a97cf3c0e2 | [] | no_license | https://github.com/Jjiya/python_openTutorials | 78d947a560ca592be3136532f090d12f7b6797df | a9a30fcd59ca42e72a3034b423df4706aff8bf03 | refs/heads/master | 2023-08-31T23:08:31.991010 | 2021-11-01T14:08:10 | 2021-11-01T14:08:10 | 370,041,300 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | person = {"name":"Jjiya","age":0}
print(person["name"])
# print(person.name) -> 파이썬은 객체에 접근할 때, person.key가 아니라 배열 가져오듯이 해야되네... 이렇게하면 AttributeError: 'dict' object has no attribute 'name' 에러남
| UTF-8 | Python | false | false | 265 | py | 14 | list.py | 14 | 0.680203 | 0.675127 | 0 | 4 | 48.25 | 139 |
NSLS-II-SMI/ipython_ophyd | 11,871,289,614,642 | 05f9dd675388806e18e3654176347b21158a74ea | b850b803bcd776631eb8619ff74a9d2134cc621d | /startup/users/33-oleg.py | 2da609a9823f9de62512166a581bddc485e93035 | [
"BSD-3-Clause"
] | permissive | https://github.com/NSLS-II-SMI/ipython_ophyd | 2ac5daa7f530e4900d2265b25ffdd71dceccf2f2 | 70903ca91934ef849c999fe4b4f6607dac21db1f | refs/heads/master | 2021-01-20T18:20:56.793985 | 2021-01-15T20:24:49 | 2021-01-15T20:24:49 | 60,647,450 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | ####line scan
def aaron_rot(t=8):
sample_id(user_name='AM', sample_name='tetrahedral')
det_exposure_time(t)
yield from bp.inner_product_scan([pil1M], 24, prs, 45, 22, stage.x, 0.23, 0.15, piezo.y, -1792.6, -1792.6)
yield from bp.inner_product_scan([pil1M], 22, prs, 21, 0, stage.x, 0.15, 0.11, piezo.y, ... | UTF-8 | Python | false | false | 6,965 | py | 47 | 33-oleg.py | 46 | 0.562383 | 0.388658 | 0 | 143 | 47.706294 | 149 |
jkrclaro/megaphonely | 10,703,058,519,802 | 8ac0145df4f5af9f2671ce72332949acb707f575 | aa2bb4ef0852029ab88c7caa06d511593c0e1503 | /megaphonely/billing/admin.py | 3af4dbce9f0d649b696533f7101faf993fa1bd1d | [] | no_license | https://github.com/jkrclaro/megaphonely | 0c25ee4c7f0658751f21d2b1df02d52c6283b1aa | 7e6bb5941317d9731e7e14cb1d338e3d6bd54ec8 | refs/heads/master | 2021-03-22T05:13:26.110620 | 2019-12-12T17:28:51 | 2019-12-12T17:28:51 | 104,248,145 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from .models import (Customer, PaymentMethod, Subscription, Plan)
admin.site.register(Customer)
admin.site.register(PaymentMethod)
admin.site.register(Subscription)
admin.site.register(Plan)
| UTF-8 | Python | false | false | 226 | py | 90 | admin.py | 39 | 0.823009 | 0.823009 | 0 | 8 | 27.25 | 65 |
NicolasBertrand/tdcpb-tools | 10,402,410,821,315 | ef24b74313179898d6d69587fc046aace6f2a4d8 | 5150fcd88662e11b44a13754c6c07a739bae1451 | /bin/tdcpb-make-torrent | 71b54c22e48441dd1f079ef9fe42a0a7fa528d9d | [] | no_license | https://github.com/NicolasBertrand/tdcpb-tools | 154ac7a8f66265fde094661b00f28ec96cc7b723 | 848f28da6d2817fcff75bf4438d0c31f49a26cb6 | refs/heads/master | 2020-07-18T23:01:58.624249 | 2017-06-14T15:44:51 | 2017-06-14T15:44:51 | 94,329,618 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# -*- Mode: Python -*-
# vim:si:ai:et:sw=4:sts=4:ts=4
#
#
# Copyright Nicolas Bertrand (nico@isf.cc), 2014
#
# This file is part of DcpIngest.
#
# DcpIngest is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as p... | UTF-8 | Python | false | false | 5,728 | 18 | tdcpb-make-torrent | 15 | 0.596369 | 0.590433 | 0 | 156 | 35.705128 | 154 | |
nikhilkmr300/pso-solver | 1,245,540,561,122 | f2701ad35dbb8cd083485f2052bcedc06fe30fe6 | d014fef83d639ca02e1b4ce10bbc6e51836b5120 | /tests/tests_bivariate/test_sphere.py | 455ab25055221d21af356561ea2d93eb979ca849 | [
"MIT"
] | permissive | https://github.com/nikhilkmr300/pso-solver | febebff884ecca54a1021ada2b4f2b14934f231f | 77b471e3fd85788aacaa5d19e53022333c48ea2d | refs/heads/master | 2022-12-28T03:19:34.372259 | 2020-10-06T19:40:41 | 2020-10-06T19:40:41 | 274,802,709 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Refer: https://en.wikipedia.org/wiki/Test_functions_for_optimization
import numpy as np
import matplotlib.pyplot as plt
import pso_solver
pso_solver.setSeed(1)
lower = xlower = ylower = -50
upper = xupper = yupper = 50
particleList = pso_solver.createRandomParticleList(2, numParticles=10, lower=lower, upper=upper)... | UTF-8 | Python | false | false | 565 | py | 14 | test_sphere.py | 11 | 0.750442 | 0.707965 | 0 | 16 | 34.3125 | 183 |
sailesh-b/nakshatra-official | 14,113,262,538,431 | 35c8ebe9ef8759862b01c2ecaf1455d8990a2140 | 5a3d9eef90215f077ceb9f54153f4baccf8bdcca | /app/urls.py | ed3f90e06cad69cccfa63668eeff210c6e618b82 | [] | no_license | https://github.com/sailesh-b/nakshatra-official | 2ffe9861bb901f5b56e84f6ed28a9b4fa52d2adc | 2cde8b1114c74d4d239e9653a538775ea55f70f3 | refs/heads/main | 2023-06-14T05:25:31.828425 | 2021-07-07T14:04:00 | 2021-07-07T14:04:00 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path
from . import views
from .api import apiViews
urlpatterns=[
path("product/new/", apiViews.new, name="newProduct"),
path("products/<int:id>", apiViews.delete, name="deleteProduct"),
path("products/edit/<int:id>/", apiViews.edit, name="editProduct"),
path("products/", apiVie... | UTF-8 | Python | false | false | 592 | py | 8 | urls.py | 6 | 0.668919 | 0.668919 | 0 | 19 | 30.105263 | 88 |
readdy/readdy | 8,804,682,964,191 | 534dad257d74069b4dade48e673ce6c298f31e82 | 632a642c241fe5f40d0263e5cff4d9ea5e30bc59 | /wrappers/python/src/python/readdy/tests/test_topology_graphs.py | 89caba33ede97d7b3286d5ec258d7de73b498ed7 | [
"BSD-3-Clause"
] | permissive | https://github.com/readdy/readdy | b03bbcc8aabc634ed8dd31be4eaca206e1408248 | 97901fb4fdb1f708b31399a5c7b33c316769727f | refs/heads/master | 2022-07-20T05:58:11.614900 | 2022-07-11T13:59:29 | 2022-07-11T13:59:29 | 59,560,469 | 50 | 15 | BSD-3-Clause | false | 2022-07-11T13:59:31 | 2016-05-24T09:41:44 | 2022-05-30T07:57:11 | 2022-07-11T13:59:30 | 7,485 | 48 | 12 | 13 | C++ | false | false | # coding=utf-8
# Copyright © 2018 Computational Molecular Biology Group,
# Freie Universität Berlin (GER)
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the
# following conditions are met:
# 1. Redistributions of source code must ret... | UTF-8 | Python | false | false | 6,211 | py | 334 | test_topology_graphs.py | 300 | 0.659526 | 0.641488 | 0 | 133 | 45.684211 | 113 |
Tynukua/getManga | 4,286,377,378,716 | 4dd88824c03d789614d05c3b2eb1ba59f45a5e23 | e4cbae3bf90f514eaf578bc555bc1f2b615276e3 | /getmanga/parsers/readmanga.py | a369300631ecc109b25de45369a3a05836b91993 | [
"MIT"
] | permissive | https://github.com/Tynukua/getManga | 875694f04d94e25cc4548d913ff45a582b3b929e | 8cc5b090ec3dfcc6cfa7db3ce9e5220e7ef54d2b | refs/heads/master | 2021-06-24T15:14:13.478561 | 2021-01-13T17:38:46 | 2021-01-13T17:38:46 | 197,462,493 | 3 | 0 | MIT | false | 2020-01-03T13:53:18 | 2019-07-17T21:03:15 | 2019-11-20T20:41:33 | 2020-01-03T13:51:34 | 68 | 0 | 0 | 0 | Python | false | false | import re, json
import asyncio
import io
from aiohttp import ClientSession
from scrapy import Selector
from ..loader import AsyncLoader
from .abcparser import ParserABC
mangaidregexp = re.compile(r'https:\/\/[rm][ei][an][dt]manga.live\/([^\/]+)')
scriptparser = re.compile('init\((.+)\)')
class ReadManga(ParserABC)... | UTF-8 | Python | false | false | 4,169 | py | 11 | readmanga.py | 9 | 0.519309 | 0.515231 | 0 | 115 | 35.226087 | 87 |
ar4s/ralph | 11,201,274,713,026 | 2eebd23f05808c9c6473318ad62a7a45142e5e9a | 72d542bc7fb86a47d29dd38f3040a5193bcbe080 | /src/ralph/middleware.py | 4d0d6227ded066907d2f43763114cfebc1d0d1e7 | [
"Apache-2.0"
] | permissive | https://github.com/ar4s/ralph | 8f5da56887d9fb4882811868740eec6c1ee7367a | 8249cb79bd2c5d7dba25b07ec8abfa61eb5fab07 | refs/heads/develop | 2021-10-25T14:01:52.061444 | 2016-07-27T13:36:07 | 2016-07-27T13:36:07 | 19,566,764 | 0 | 1 | NOASSERTION | true | 2019-08-14T09:59:49 | 2014-05-08T08:48:11 | 2016-07-08T07:54:35 | 2018-12-28T19:04:32 | 34,237 | 0 | 1 | 1 | Python | false | false | from threading import current_thread
from django.conf import settings
from django.contrib.auth.models import User
from ralph.account.models import Region
_requests = {}
def get_actual_regions():
thread_name = current_thread().name
if thread_name not in _requests:
return Region.objects.filter(
... | UTF-8 | Python | false | false | 1,338 | py | 552 | middleware.py | 366 | 0.546338 | 0.546338 | 0 | 44 | 29.409091 | 72 |
Roboy/LSM_SpiNNaker_MyoArm | 11,587,821,776,943 | 1fc900e8a27749649806c166d5a3f7714d7fd5eb | a1dce04838e2a4aa85e8a98459ae384aa00911bc | /src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinn_front_end_common/utilities/report_functions/front_end_common_memory_map_on_chip_report.py | c5956168724e4947fbff6038c732901ad94931be | [
"BSD-3-Clause"
] | permissive | https://github.com/Roboy/LSM_SpiNNaker_MyoArm | 8cb5b44c772bd9843989c64265dfcabd08905b4c | 04fa1eaf78778edea3ba3afa4c527d20c491718e | refs/heads/master | 2021-01-23T17:42:33.122281 | 2017-10-30T11:34:22 | 2017-10-30T11:34:22 | 102,772,213 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from data_specification import constants
from spinn_machine.utilities.progress_bar import ProgressBar
import logging
import os
import struct
logger = logging.getLogger(__name__)
MEM_MAP_SUBDIR_NAME = "memory_map_reports"
class FrontEndCommonMemoryMapOnChipReport(object):
""" Report on memory usage
"""
... | UTF-8 | Python | false | false | 4,834 | py | 752 | front_end_common_memory_map_on_chip_report.py | 664 | 0.538064 | 0.531651 | 0 | 151 | 31.013245 | 75 |
Square789/Demomgr | 13,915,694,049,779 | 07a0b6f008759db5f84b82ebf0f648d411472d52 | f95067e684894edb3148925c7b84ad803dee0aa0 | /demomgr/handle_events.py | ca29b7bf6994b983c374c47cf0c274d6e106bad9 | [
"BSD-3-Clause"
] | permissive | https://github.com/Square789/Demomgr | 3a8904badebe6eb0706d64bb19aa11d117cd4a22 | 1b093f6e1284890d0164539aa4ca5b0a5a40f585 | refs/heads/master | 2022-12-22T04:19:41.552613 | 2022-12-13T21:26:09 | 2022-12-13T21:26:09 | 165,436,359 | 4 | 2 | MIT | false | 2022-03-14T00:44:13 | 2019-01-12T21:10:57 | 2021-10-31T09:16:03 | 2022-03-14T00:44:13 | 1,438 | 4 | 0 | 11 | Python | false | false | """
Classes designed to ease up the handling of a _events.txt file as written
by the source engine.
2022 update: This code is like 2 years old and could use a serious make-over.
"""
_DEF = {"sep": ">\n"}
read_DEF = {"blocksz": 65536, "resethandle": True}
write_DEF = {"clearfile": False, "forceflush": False, "empty_ok... | UTF-8 | Python | false | false | 6,821 | py | 46 | handle_events.py | 42 | 0.674241 | 0.667351 | 0 | 237 | 27.780591 | 94 |
jinseoo/DataSciPy | 12,506,944,808,239 | 10cbab9c82e3c82b1c01b6ea67874ce85d918086 | 6040ec2771a81654ac41f33ce5c4aa7e66d4e5d9 | /src/파이썬코드(py)/Ch04/lab_4_7.py | 2dcd1fcad951682bcb7c0c9b932ff6d2792e9f2d | [] | no_license | https://github.com/jinseoo/DataSciPy | a3462785ae094530141e66ead8de9e6519fbf193 | de6127c0741f8d0cfc989e17ba3a5a65004e5d9c | refs/heads/master | 2023-06-25T19:03:22.086126 | 2021-07-27T09:01:41 | 2021-07-27T09:01:41 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #
# 따라하며 배우는 파이썬과 데이터과학(생능출판사 2020)
# LAB 4-7 로그인 처리하기, 109쪽
#
id = "ilovepython"
s = input("아이디를 입력하시오: ")
if s == id:
print("환영합니다.")
else:
print("아이디를 찾을 수 없습니다.") | UTF-8 | Python | false | false | 282 | py | 248 | lab_4_7.py | 214 | 0.597701 | 0.545977 | 0 | 10 | 16.5 | 33 |
lukaszoller/hyperOptimize | 3,229,815,452,299 | 1fa78d5fdc401b23b46b69074bfb8606a161bff1 | 186ad7f744dc6166fe2dd826bfcce720381097c7 | /src/hyperOptimizeApp/testing/testDelete.py | 93dd66d8e1a8d4e3af7cd907c8b07708495247c1 | [] | no_license | https://github.com/lukaszoller/hyperOptimize | a2f3c8267104ad6e0845c3636652e6b821ea9bb0 | 99f11ea22032e1f6b1ba847bbccf275558b798ff | refs/heads/master | 2020-08-01T21:44:45.542590 | 2020-01-17T09:18:34 | 2020-01-17T09:18:34 | 211,126,166 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
print(10 ** -float(2.59)) | UTF-8 | Python | false | false | 46 | py | 46 | testDelete.py | 33 | 0.652174 | 0.543478 | 0 | 4 | 10.75 | 25 |
VSakuya/MeaBot | 9,990,093,974,066 | 1155748771b00360b36d5bddf11dc81032079962 | d5372221ba83a957df480af33d4d5e7af51550f9 | /asset/plugins/duel/data_source.py | 934e4d13a5af40903a6e9353e37b2c280a6e63ac | [] | no_license | https://github.com/VSakuya/MeaBot | d09bd3c6811e68741a1aadcb15a84005fd6b4345 | e66aff2cf252bf4ec3e5784b19b42e24ec6bce0b | refs/heads/master | 2022-02-22T01:26:41.048037 | 2019-08-29T04:08:33 | 2019-08-29T04:08:33 | 196,145,025 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
import os
import re
import platform
from config import global_var
from nonebot import logger
def check_file():
duel_dir = os.path.join(os.curdir, 'asset', 'data', 'duel.json')
if not os.path.exists(duel_dir):
empty_dict = {}
with open(duel_dir , 'w', encoding='utf-8') as data_json:... | UTF-8 | Python | false | false | 2,680 | py | 22 | data_source.py | 21 | 0.589925 | 0.586194 | 0 | 76 | 34.263158 | 88 |
Mongoal/version_20.04.07 | 4,243,427,717,214 | 7fff309ab3d26c9f07423ed1874267d2b9a336fa | 9d57c4453b5707da993758edce95c651ee2b65a7 | /data_loader/data_generator.py | e019bf2dbce410e23060264a5683c24d95697d48 | [] | no_license | https://github.com/Mongoal/version_20.04.07 | 7ad15221363038219c731ad0e86ff7141b521a3e | 7e26fab9ba2c3438108cc5e6f0002e136d6d630c | refs/heads/master | 2022-12-19T14:07:08.136542 | 2020-09-13T08:40:25 | 2020-09-13T08:40:25 | 279,265,565 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from data_loader.h5data_reader import H5DataReader
# 减少io次数,一次读取BUFFER_SIZE个batch
BUFFER_SIZE = 32
class DataGenerator:
def __init__(self, config):
self.config = config
# load data here
self.h5_reader = H5DataReader(config.h5_data_path, mode='r', data_key=config.h5_data... | UTF-8 | Python | false | false | 3,882 | py | 44 | data_generator.py | 30 | 0.553112 | 0.54721 | 0 | 132 | 27.242424 | 157 |
dkopecky75/vocabulaire | 2,233,383,019,791 | 9b43ef694cc4799c8d30abdf2775cf679eec9c66 | 58e01df2fdf2e53f49a9308f277a7a83a449e8cd | /run.py | e088b61bbee5c46d64427b503455f39decda807d | [] | no_license | https://github.com/dkopecky75/vocabulaire | 35010e6666256e59908d03d73c4a2b3a64ccf498 | 8e76bcefdb7852503d234910291b3ae9d46022c2 | refs/heads/master | 2022-08-15T13:19:48.613980 | 2022-06-24T07:24:29 | 2022-06-24T07:24:29 | 204,907,893 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
This module is the main entry point into the Flask-based vocabulary application.
Start calling 'env FLASK_APP=run.py /apps/prod/python/python3/bin/flask run'
"""
# Authors: Dieter Kopecky <dieter.kopecky@boehringer-ingelheim.com>
from app import app
app.run(debug=True) | UTF-8 | Python | false | false | 275 | py | 6 | run.py | 6 | 0.774545 | 0.770909 | 0 | 9 | 29.666667 | 80 |
cinxdy/Python_practice | 6,528,350,324,483 | 80805f6daf2ffc6fba8edc9d7cf5d615a339ba41 | 60530f3e1d22fcb3b51be0b9f482a912c8203bb0 | /Python_Workbook/J08.py | ce6a4adfbf174fd49518dbc92f3c8f72a4f812fa | [] | no_license | https://github.com/cinxdy/Python_practice | 1afb2aca1c92d16d98459407ae02ca2ed7f7832c | 8a2642b51c6ad73840dae964b1a55cbb53f7b9f7 | refs/heads/master | 2022-05-09T00:10:15.849881 | 2022-04-03T09:38:53 | 2022-04-03T09:38:53 | 180,339,041 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def Ackermann(i,j):
if i==0 and j>=0 :
return j+1
elif i>0 and j==0 :
return Ackermann(i-1,1)
else : return Ackermann(i-1,Ackermann(i,j-1))
for i in range(4):
for j in range(4):
print("Ackermann(%d,%d) = %d"%(i,j,Ackermann(i,j))) | UTF-8 | Python | false | false | 270 | py | 108 | J08.py | 102 | 0.544444 | 0.503704 | 0 | 10 | 26.1 | 59 |
kilsenp/person-multi-task-dataset | 1,846,835,944,637 | 5e26eff49701041068a1c385a0c420717930c054 | 3146428ae92aeeaf4ded579cad78a00c3fd0d803 | /tests/model_test.py | de64b3bf69880212663922d6b53a1be09b669621 | [
"MIT"
] | permissive | https://github.com/kilsenp/person-multi-task-dataset | 047d9bb2b70d8a2cfdbaa6a4960b62b7554bd7a9 | 2f186cafa3db2c77d8c6c4309b2cadc13d4f92ab | refs/heads/master | 2021-07-13T22:36:06.606283 | 2020-03-01T14:58:01 | 2020-03-01T14:58:01 | 239,165,538 | 4 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pytest
from builders import model_builder
from models import get_all_models
import sys
import torch
attribute_cfg = {
"attributes": {
"gender": 2,
"age": 2,
"backpack": 2
},
"dropout": True,
"name": "attribute"
}
resnet_cfg = {
"name": "resnet",
"stride": 1
}
... | UTF-8 | Python | false | false | 2,461 | py | 112 | model_test.py | 101 | 0.565624 | 0.548151 | 0 | 145 | 15.972414 | 66 |
DlabrecquePE/PE-work | 18,064,632,480,699 | 5881d35ad75a7b22f23126ffa9d2885a958d2f5c | 66a3362637b864eb3954c01902a2e4f37cd02e21 | /src/Problem 31.py | 43e2960f5c12dc80d4b073af64a95385887894ff | [] | no_license | https://github.com/DlabrecquePE/PE-work | 127e0af1ff2b0bb6dedc15ecc25dcbc7d6c8eb09 | 6509419c0f3de9f7875e257b149cae6f27565108 | refs/heads/main | 2023-02-04T15:02:49.625256 | 2020-12-20T07:51:07 | 2020-12-20T07:51:07 | 322,053,827 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Coin sums
# Problem 31
# In England the currency is made up of pound, £, and pence, p, and there are eight coins in general circulation:
#
# 1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).
# It is possible to make £2 in the following way:
#
# 1×£1 + 1×50p + 2×20p + 1×5p + 1×2p + 3×1p
# How many different ways can... | UTF-8 | Python | false | false | 780 | py | 104 | Problem 31.py | 81 | 0.634115 | 0.546875 | 0 | 29 | 25.482759 | 113 |
drczuckerman/ML-TicTacToe | 4,870,492,951,820 | beb298807e302fde69d4395678667ffe659d13a8 | e0fb87868dab9005ebc2d3d4965b66ca8f0cf74c | /test/test_td_symmetric_learning_player.py | b513d29e246a096c5f2f5814d6a51036530b982c | [] | no_license | https://github.com/drczuckerman/ML-TicTacToe | 3a329dd7c54307ec1b258070771d9eca003ce052 | 0fc15691514bea6814411470757de78069705a15 | refs/heads/master | 2021-08-19T16:59:51.962424 | 2017-11-27T01:27:46 | 2017-11-27T01:27:46 | 106,683,399 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from mock import patch
from test_td_learning_player import TestTDLearningPlayer
from td_symmetric_learning_player import TDSymmetricLearningPlayer
from board import Board
from board_test_utils import get_board_state_tuple, assert_get_move_is, set_board
from mock_random import MockRandom
class TestTDSymmetricLearningPl... | UTF-8 | Python | false | false | 10,692 | py | 50 | test_td_symmetric_learning_player.py | 38 | 0.467826 | 0.434624 | 0 | 249 | 41.939759 | 107 |
adap/flower | 17,463,337,041,951 | 005c1fd8fa60986eef0a78bb6a4d4d4ca3e8915b | 1bc67a91d85a7106106ca31307ef9ee93f1d1a20 | /baselines/fedprox/fedprox/utils.py | 2fa3b64966bd3c1b37a29371000f499283473bac | [
"Apache-2.0"
] | permissive | https://github.com/adap/flower | 4915d143c674eb675504d585e1e90ed06833812f | 55be690535e5f3feb33c888c3e4a586b7bdbf489 | refs/heads/main | 2023-08-17T01:18:12.168723 | 2023-08-16T17:17:48 | 2023-08-16T17:17:48 | 241,095,326 | 2,999 | 658 | Apache-2.0 | false | 2023-09-14T15:43:22 | 2020-02-17T11:51:29 | 2023-09-14T12:42:53 | 2023-09-14T15:43:21 | 150,424 | 3,019 | 611 | 352 | Python | false | false | """Contains utility functions for CNN FL on MNIST."""
import pickle
from pathlib import Path
from secrets import token_hex
from typing import Dict, Optional, Union
import matplotlib.pyplot as plt
import numpy as np
from flwr.server.history import History
def plot_metric_from_history(
hist: History,
save_plo... | UTF-8 | Python | false | false | 3,608 | py | 708 | utils.py | 455 | 0.646896 | 0.644956 | 0 | 112 | 31.214286 | 82 |
varunranganathan/TextSummarization | 11,081,015,642,221 | a5619b3db8553023bf240275bb64766a837ce7b7 | 7fb523f47a7f594e6368d5a29ecdda180c406004 | /Proper Nouns.py | 4824ca8fa2534c0a6ac27d77c5afe76f2b330453 | [] | no_license | https://github.com/varunranganathan/TextSummarization | dd3ea4839d14d2376766ba14d6ada206211b63af | d31d7c773c5fbaff202dae2e229fc71dbe2facac | refs/heads/master | 2021-01-22T03:17:45.689271 | 2017-02-08T15:26:40 | 2017-02-08T15:26:40 | 81,111,503 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import nltk.data
from nltk.tag import pos_tag
import re
from nltk.tokenize import word_tokenize
tokenizer = nltk.data.load('tokenizers/punkt/english.pickle')
f = open("text3.txt", 'r')
g = open("ans.txt",'w')
data = f.read()
i = 1
for p in data.split('\n\n'):
x = pos_tag(p.split())
for s in tokenizer.tokenize(p.s... | UTF-8 | Python | false | false | 447 | py | 4 | Proper Nouns.py | 4 | 0.680089 | 0.675615 | 0 | 15 | 28.466667 | 65 |
naparuba/opsbro | 2,422,361,569,094 | 7020172443e5216d9429507b96b8bbebf3e6a7f9 | abaa806550f6e6e7bcdf71b9ec23e09a85fe14fd | /opsbro/log.py | 390b4f5263f708e64a1b9b7b9ddc9ff07478dec4 | [
"MIT"
] | permissive | https://github.com/naparuba/opsbro | 02809ddfe22964cd5983c60c1325c965e8b02adf | 98618a002cd47250d21e7b877a24448fc95fec80 | refs/heads/master | 2023-04-16T08:29:31.143781 | 2019-05-15T12:56:11 | 2019-05-15T12:56:11 | 31,333,676 | 34 | 7 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import sys
import time
import datetime
import logging
import json
import codecs
import shutil
from glob import glob
from threading import Lock as ThreadLock
from multiprocessing.sharedctypes import Value
from ctypes import c_i... | UTF-8 | Python | false | false | 16,314 | py | 523 | log.py | 276 | 0.560071 | 0.556332 | 0 | 466 | 34.008584 | 152 |
chplushsieh/carvana-challenge | 10,462,540,359,739 | b9d69e7c9ec157031b8893868b2eb7b15e7167c4 | a7211f3f0ef6cbb96a796e502062656681dcdf9b | /util/ensemble.py | 88f49d880456096509ccd9241063af58d2bc4fec | [
"MIT"
] | permissive | https://github.com/chplushsieh/carvana-challenge | fdc3e78966a37f95f3e60a179a511705cc0da55f | cba536657714df7c1c33150b92e3e152195b68db | refs/heads/master | 2021-01-01T19:40:08.442482 | 2017-10-05T17:53:29 | 2017-10-05T17:53:29 | 98,639,822 | 24 | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import csv
import numpy as np
import util.const as const
import util.exp as exp
def create_file_if_not_exist(file_path):
'''
create empty file if it doesn't exist
'''
if not os.path.isfile(file_path):
open(file_path, 'a').close()
return
def create_models_ensembled(pred_dirs, ... | UTF-8 | Python | false | false | 2,548 | py | 35 | ensemble.py | 30 | 0.663658 | 0.66248 | 0 | 84 | 29.333333 | 124 |
johanrueda/ProyectoCnyt-Tercer-tercio | 6,631,429,533,922 | b5c209f98b5a285211822efee8542378a1b626a0 | 145ce0a7dcd871e3f321b988c3c89ab084deec53 | /tercerTCnyt/libreria_vectores_matrices.py | 3e750576a2534b59975eb0ae4043f03463e8a575 | [] | no_license | https://github.com/johanrueda/ProyectoCnyt-Tercer-tercio | 7d2e33d002b07cc45b2a18abb486996bd8ba4b83 | c4a7d58a5fc113435a8bf58d792088d27eb11db8 | refs/heads/master | 2022-06-29T17:06:22.665599 | 2020-05-14T02:11:51 | 2020-05-14T02:11:51 | 263,791,450 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import libreria as c
def sumaVectores(v1,v2):
"""
Se ingresa cada vector, cada componente del vector es una tupla
que contiene la parte real y la parte imaginaria, retorna la suma
de los vectores complejos
"""
total=[]
if (len(v1)==len(v2)):
for i in range(len(v1)):
... | UTF-8 | Python | false | false | 6,215 | py | 4 | libreria_vectores_matrices.py | 2 | 0.567955 | 0.548953 | 0 | 213 | 27.14554 | 95 |
dbw9580/sigal | 996,432,420,418 | a162cde8f7bc9d1d5e74ea0bbc34049fb840bc1d | 6d88062a119da66f345b9373b00e6f42fbb87ba6 | /tests/test_plugins.py | 1e464c2fb055e7687964a0962f39716bd7e839e2 | [
"MIT"
] | permissive | https://github.com/dbw9580/sigal | 1835aa4f53eda0242288b2101c563dd2638eb828 | 4cc7f5f4d2d2090f3335076e4c133003da7bafb7 | refs/heads/master | 2023-07-20T04:58:03.221526 | 2023-06-03T15:57:09 | 2023-06-03T15:57:09 | 251,307,690 | 0 | 0 | MIT | true | 2020-03-30T13:07:54 | 2020-03-30T13:07:54 | 2020-03-17T05:56:23 | 2020-03-16T03:07:18 | 5,936 | 0 | 0 | 0 | null | false | false | import os
from sigal import init_plugins
from sigal.gallery import Gallery
CURRENT_DIR = os.path.dirname(__file__)
def test_plugins(settings, tmpdir, disconnect_signals):
settings["destination"] = str(tmpdir)
if "sigal.plugins.nomedia" not in settings["plugins"]:
settings["plugins"] += ["sigal.plugi... | UTF-8 | Python | false | false | 1,763 | py | 1 | test_plugins.py | 1 | 0.664776 | 0.657402 | 0 | 59 | 28.881356 | 82 |
honmaple/maple-file | 16,149,077,068,392 | af53f6506c4be6b00d570bfd154f952a6948b7a8 | dd42c63443163e7c80edd0d62885bd07614b8ec2 | /storage/__init__.py | 1ea36758f8ba4d7589c00156497f1cf607468432 | [] | permissive | https://github.com/honmaple/maple-file | 2b61dab68a1d231aa4b82641e46ec5b3f9c8ece0 | bdcbc6c569ee9dedb26cfd6b3387c7f22c559fc6 | refs/heads/master | 2022-11-25T17:15:43.949591 | 2019-07-12T12:08:37 | 2019-07-12T12:08:37 | 84,726,235 | 41 | 15 | BSD-3-Clause | false | 2022-11-22T03:22:44 | 2017-03-12T13:07:11 | 2022-06-14T08:23:51 | 2022-11-22T03:22:41 | 44 | 37 | 14 | 2 | Python | false | false | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# **************************************************************************
# Copyright © 2019 jianglin
# File Name: __init__.py
# Author: jianglin
# Email: mail@honmaple.com
# Created: 2017-03-12 20:16:21 (CST)
# Last Update: Wednesday 2019-01-09 14:12:04 (CST)
# ... | UTF-8 | Python | false | false | 728 | py | 16 | __init__.py | 14 | 0.519945 | 0.474553 | 0 | 25 | 28.08 | 76 |
raffivar/NetworkPy | 5,832,565,610,006 | 103f3870df4a04a1d8010225b692d5b2ec4a7be9 | 221b7d486674de2c521acf5d3513426bd69c7c3a | /unit_3/data_loss/server_udp.py | 214d784c9eb20a9a4496576dc7283b997159df53 | [] | no_license | https://github.com/raffivar/NetworkPy | 08e47395db39388008aea7bb9cb09c37bb91d0d6 | 304732b98d2d114082563df1482966b084f1fabe | refs/heads/main | 2023-08-20T05:29:42.463334 | 2021-10-12T12:12:00 | 2021-10-12T12:12:00 | 402,143,751 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
import socket
SERIAL_NUMBER_FIELD_SIZE = 4
MAX_SERIAL_NUM = 10000
SERVER_IP = "0.0.0.0"
PORT = 8821
MAX_MSG_SIZE = 1024
def special_sendto(socket_object, response, client_address):
fail = random.randint(1, 3)
if not (fail == 1):
socket_object.sendto(response.encode(), client_address)
... | UTF-8 | Python | false | false | 1,053 | py | 14 | server_udp.py | 12 | 0.688509 | 0.665717 | 0 | 37 | 27.459459 | 84 |
pichouk/bikes-data | 15,702,400,481,487 | 8811deb04305952dab0b7a5f2ac6b8fe5bb2ef34 | eae6bf56896b39bce0ca28161d60156ffeb2475a | /jcdecaux/__init__.py | a220dbf2226dc2d9f6816f9535e4393752da298b | [] | no_license | https://github.com/pichouk/bikes-data | afc45bbe85ca0e039a49dae7f1a60da94a6ba2a5 | 41a4929d3ce59afba15fc2c02fea3f322f3c5006 | refs/heads/master | 2020-04-03T04:02:48.872573 | 2019-04-22T17:50:50 | 2019-04-22T17:50:50 | 155,001,408 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding=utf-8
"""Driver for JCDecaux API."""
from .driver import JCDecauxDriver
| UTF-8 | Python | false | false | 83 | py | 7 | __init__.py | 4 | 0.722892 | 0.710843 | 0 | 5 | 15.6 | 34 |
karthikpappu/pyc_source | 18,202,071,422,978 | 39651401b0f5dfa72af4ce79b780a9b4133dadc0 | 91fa095f423a3bf47eba7178a355aab3ca22cf7f | /pycfiles/sniorfy-0.2.0-py2.7/stpserver.py | bbc4c1ae2df3e39454da73251c6682a3f329b4e1 | [] | no_license | https://github.com/karthikpappu/pyc_source | 0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f | 739e7e73180f2c3da5fd25bd1304a3fecfff8d6e | refs/heads/master | 2023-02-04T11:27:19.098827 | 2020-12-27T04:51:17 | 2020-12-27T04:51:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.9 (default, Apr 18 2020, 01:56:04)
# [GCC 8.4.0]
# Embedded file name: build/bdist.macosx-10.4-x86_64/egg/sniorfy/stpserver.py
# Compiled at: 2012-06-29 04:41:12
import socket
from sniorfy.ioloop.netutil import TCPServer
class STPS... | UTF-8 | Python | false | false | 2,062 | py | 114,545 | stpserver.py | 111,506 | 0.611057 | 0.583414 | 0 | 69 | 28.898551 | 83 |
bdhafin/Python | 2,327,872,283,173 | 249463d4f263c24a34c781f86e8db8b8d98ea9ea | 02f99561e4e316c24e51f5feafe69f06dbe528be | /#23Membuat Package/sains/__init__.py | efa42f3c118a7eab7c84046999476a98a6b78f06 | [] | no_license | https://github.com/bdhafin/Python | 789eda948847e03779a3f204ec75e9b20c6901df | a6e265ec153322939481d0f2f6fd30f66b660a71 | refs/heads/master | 2020-09-13T18:27:34.398925 | 2019-11-22T11:39:25 | 2019-11-22T11:39:25 | 222,867,989 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Ini file yang akan di eksekusi ketika panggil sains
#mengambil dari module lain
#artinya . (titik) adalah di folder sekarang
from .matematika import *
#mengambil module fisika
from .fisika import * | UTF-8 | Python | false | false | 201 | py | 42 | __init__.py | 41 | 0.781095 | 0.781095 | 0 | 8 | 24.25 | 52 |
anshu1106/us_catalog | 15,333,033,251,514 | d2f401a73b1148cdfd573dd6f134b3ddbf9ae865 | 89106b77809d933fb0c1a96a5cdd35446fa6650b | /catalog/admin.py | d28fac027212066b73f45c79dfb2db5c8b5dd2c4 | [] | no_license | https://github.com/anshu1106/us_catalog | 3635d5c25202747e2cefde0a19fd5d0ca0d5ea30 | 050b954db9694adbc9fb9e79b71073c0094a7df2 | refs/heads/master | 2021-01-19T17:18:28.174374 | 2017-02-19T08:05:43 | 2017-02-19T08:05:43 | 82,444,332 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from .models import *
from django.utils.translation import ugettext_lazy as _
from django.contrib.admin import FieldListFilter
from django.utils.safestring import mark_safe
import csv
from django.http import HttpResponse
from django.core.exceptions import PermissionDenied
from django.h... | UTF-8 | Python | false | false | 4,480 | py | 3 | admin.py | 3 | 0.56942 | 0.546875 | 0 | 120 | 36.291667 | 149 |
odolshinu/rfid_appengine | 5,600,637,382,750 | 2ace9dfc71808f06b86f8ecdabc57d84009d2c21 | 9245401f3d1e2143a2ec622bda29b968a0719509 | /appengine.py | 968dd23a92d8f80d03f4eeefc5109469d551d7ec | [] | no_license | https://github.com/odolshinu/rfid_appengine | 2ef5d15c34dc9554497ca6668fbf381c6012c5c0 | ef8851d9c515103faa5e35a5b6244d8b80d5e269 | refs/heads/master | 2021-01-25T05:35:39.224823 | 2010-09-23T14:47:36 | 2010-09-23T14:47:36 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import os
from google.appengine.ext.webapp import template
from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
class Store(db.Model):
place = db.StringProperty()
sequence = db.StringProperty()
# date = db.DateTimeProperty()
... | UTF-8 | Python | false | false | 1,065 | py | 4 | appengine.py | 2 | 0.659155 | 0.657277 | 0 | 40 | 25.55 | 68 |
TiRisik/for_project | 16,381,005,290,145 | f5588386c40485b9a599009974540e61166f4c17 | 83bbf1c81e69350220c62f66b9e6c3eeba488034 | /main.py | 78a7a1e77a6735df6b95154a36b3d1841f4cb4b9 | [] | no_license | https://github.com/TiRisik/for_project | d4335893c9c657d90c9c1c5e1ac535669aa5b038 | d05ee7e59101f2508a0698f5977178760a97b367 | refs/heads/master | 2023-04-30T08:51:32.560751 | 2021-05-18T04:25:39 | 2021-05-18T04:25:39 | 368,399,654 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask, request, render_template, redirect, url_for
from mongodb_class import User, Date, Person
from mongoengine import *
app = Flask(__name__)
app.config['SECRET_KEY'] = 'yandexlyceum_secret_key'
connect('db', host='mongodb+srv://Tiris:Et21121982@anibus.rzt5y.mongodb.net/db?retryWrites=true&w=majori... | UTF-8 | Python | false | false | 3,012 | py | 9 | main.py | 2 | 0.599934 | 0.590305 | 0 | 86 | 34.023256 | 130 |
danielcaraway/annaextension | 5,866,925,349,426 | ea0dd241f633e19da2a0d13133af4025283ab594 | 9434143bb5cfff10d602d35baaba51ac347d98ee | /app.py | 0bd8d7cb3f8c5447f8e25288f1c12a4e01a8bbfd | [] | no_license | https://github.com/danielcaraway/annaextension | 221948747d0888c8deffa19bbff0063aeb77e0e7 | eb5181ac930f556379592c738aed18c00a6665bc | refs/heads/master | 2023-01-30T13:01:50.103016 | 2020-12-19T21:32:39 | 2020-12-19T21:32:39 | 322,460,390 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask, render_template, url_for, request
import requests
from bs4 import BeautifulSoup
import re
import pandas as pd
import json
app = Flask(__name__)
def get_print_link(url):
r = requests.get(url)
soup = BeautifulSoup(r.content, 'html.parser')
searched_word = 'Print'
results = soup... | UTF-8 | Python | false | false | 3,536 | py | 4 | app.py | 1 | 0.587387 | 0.584842 | 0 | 122 | 27.983607 | 75 |
MapwayLabs/py3dtilers | 1,812,476,220,983 | ee19c75c834bda33ba1d208a2d680c6591c9e167 | 905f403132094fc53ec5fd771cf8300a3fb46bbd | /py3dtilers/GeojsonTiler/geojson.py | f0d39b7b7090d256309ea86201ba32953561236a | [
"ISC",
"Apache-2.0"
] | permissive | https://github.com/MapwayLabs/py3dtilers | 8d604deecc16ab2526148c49c13b9b33d1676929 | 944795e6baaeeafff0d7050d77a96aab51582bbb | refs/heads/master | 2023-07-14T01:03:09.843668 | 2021-07-18T20:18:11 | 2021-07-18T20:18:11 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
import os
from os import listdir
import sys
import numpy as np
import json
from scipy.spatial import ConvexHull
from shapely.geometry import Point, Polygon
# from rdp import rdp
from py3dtiles import TriangleSoup
from ..Common import ObjectToTile, ObjectsToTile
from .PolygonDetection import Po... | UTF-8 | Python | false | false | 15,946 | py | 34 | geojson.py | 27 | 0.552113 | 0.540512 | 0 | 418 | 37.148325 | 150 |
ray-project/maze-raylit | 7,430,293,422,790 | 6536efab1504d92413ccffefb90f192f218cfa30 | 63f9a0d150cbef75f4e6e8246dc7ecac3f3b6d09 | /rllib/examples/env/repeat_after_me_env.py | 445320b52dcb58f3d35d1fca4c41345ca14bea88 | [
"Apache-2.0",
"MIT"
] | permissive | https://github.com/ray-project/maze-raylit | 79f0a5af9fe4bdc13a2d5b3919da867ed5439aab | a03cd14a50d87d58effea1d749391af530d7609c | refs/heads/master | 2023-01-23T04:23:35.178501 | 2020-12-04T22:34:14 | 2020-12-04T22:34:14 | 318,274,659 | 5 | 0 | Apache-2.0 | false | 2020-12-04T22:34:15 | 2020-12-03T17:47:58 | 2020-12-04T19:08:05 | 2020-12-04T22:34:15 | 100,068 | 1 | 0 | 0 | Python | false | false | import gym
from gym.spaces import Discrete
import random
class RepeatAfterMeEnv(gym.Env):
"""Env in which the observation at timestep minus n must be repeated."""
def __init__(self, config):
self.observation_space = Discrete(2)
self.action_space = Discrete(2)
self.delay = config.get("... | UTF-8 | Python | true | false | 880 | py | 1,089 | repeat_after_me_env.py | 795 | 0.578409 | 0.5625 | 0 | 31 | 27.387097 | 76 |
RWTH-EBC/pyDMPC | 16,793,322,152,189 | dfb6b7810d20496e18ea0b05234b97d01d09f6e7 | 26aadffe833b6f4e44d30563c96981887d5aedd9 | /pyDMPC/SpecialStudies/entropy-agents.py | cb81e9d0f19d320cf1b89601db511a43b65e5177 | [
"LGPL-3.0-only",
"BSD-3-Clause",
"GPL-2.0-only",
"BSD-2-Clause",
"GPL-1.0-or-later",
"GPL-3.0-only",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/RWTH-EBC/pyDMPC | 4a932a49deaad341d94f0c486d8075b4be1522de | 90f0753b708d9e8dfdd78256af9adf58f0887f7a | refs/heads/master | 2021-06-30T11:47:14.871487 | 2020-08-09T11:59:43 | 2020-08-09T11:59:43 | 135,815,241 | 19 | 6 | MIT | false | 2019-11-13T22:33:11 | 2018-06-02T12:19:11 | 2019-11-13T21:15:09 | 2019-11-13T22:33:10 | 5,103 | 2 | 1 | 23 | Python | false | false | from joblib import load
import numpy as np
# Weight factors
a_1 = 1
a_2 = 1
a_3 = 1
# Working directory
wkdir = r"C:\TEMP\Dymola"
def agent_1():
# Load the classifier: returns trajectory class
clf = load(wkdir + r"\heater-clf.joblib")
# Load the cost of each class
cost_clf = load(wkdir + r"\cost-c... | UTF-8 | Python | false | false | 3,408 | py | 86 | entropy-agents.py | 14 | 0.453345 | 0.410505 | 0 | 130 | 25.215385 | 93 |
shivankurkapoor/moleculardating | 1,194,000,912,116 | 1217e0834afa53822d7ebdb9667af45b909ad6be | 4eb61b533ec7c65134d6898dfa123b859e8b1f5f | /scripts/NGS/hddistribution.py | 6dcc98c4fc56f61229b3f361cfb03782076e1e7f | [
"BSD-3-Clause"
] | permissive | https://github.com/shivankurkapoor/moleculardating | b1090c648804f489c965267ccd5557443dcce92e | 4a72c3e92a09ab321e0d92840cc7619857bbab8a | refs/heads/master | 2021-01-18T21:02:30.432791 | 2018-05-17T05:45:55 | 2018-05-17T05:45:55 | 87,005,214 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Author : Shivankur Kapoor
Contact : kapoors@usc.edu
Description: Generates hamming distance distribution plots for clustered and unclustered fasta flies
'''
import os
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from matplotlib.ticker ... | UTF-8 | Python | false | false | 3,328 | py | 80 | hddistribution.py | 59 | 0.63762 | 0.632813 | 0 | 84 | 37.619048 | 108 |
dchristle/measurement | 17,403,207,494,240 | 0e4af01f851ac97a2537a918af7eb18226f6e262 | 2d02dc538862e822d90c8a5df2d2375b4cd5f166 | /scripts/monitor_environment.py | 12e9a774742cd39dc68e1b6572330eb41c445c62 | [] | no_license | https://github.com/dchristle/measurement | 1f6b7bbd0f58e5e9828bb067a66ab00230284f4f | 4cec9f0e2727c670be96cc117a85880e8e774e4e | refs/heads/master | 2020-12-14T06:02:25.540754 | 2016-05-31T22:40:59 | 2016-05-31T22:40:59 | 16,591,782 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Monitor temperature and humidity over optical table
import numpy
from time import time,sleep
import os
import qt
import logging
import msvcrt
import datetime
def simple(t_maximum, meas_period):
# This example will monitor the T/H for a period of up to
# t_maximum, which is measured in HOURS.
thmon ... | UTF-8 | Python | false | false | 1,587 | py | 65 | monitor_environment.py | 65 | 0.657845 | 0.637051 | 0 | 62 | 24.596774 | 124 |
leparrav/LEARN-EXAMPLES | 14,637,248,553,791 | 54cb718d4fe640179d4eee873130171222d53740 | 8a8bffead4f7790a22a7cf74c7f7c60c0bd17d5b | /Django/PSite_project/portafolio/urls.py | 6f646c3cc792ac6ed58d5cb9af97245a1cf44054 | [
"MIT"
] | permissive | https://github.com/leparrav/LEARN-EXAMPLES | 1ed7617851040238c2faf89202427e543c774b86 | f3900ec0c60e60378d5e982aaae95517adaf8541 | refs/heads/master | 2021-01-02T08:57:24.188141 | 2020-06-22T09:24:18 | 2020-06-22T09:24:18 | 21,235,808 | 4 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import patterns, url
from portafolio import views
urlpatterns = patterns('',
url(r'^$',views.index,name='index'),
url(r'^courses/$',views.courses,name='courses'),
url(r'^jobs/$',views.jobs,name='jobs'),
) | UTF-8 | Python | false | false | 231 | py | 210 | urls.py | 117 | 0.69697 | 0.69697 | 0 | 8 | 28 | 49 |
antsfamily/pyopt | 11,132,555,257,173 | 3cb97151e18036b391420cb59616a1d501d5f8bb | 3367a04a7652d2f65db232b5e90b82313a2b0603 | /pyopt/optimizer/salsa.py | a5b741f6a2f72c03ccd2d7e2143405cbe29f4119 | [
"MIT"
] | permissive | https://github.com/antsfamily/pyopt | ff0f488d8b9db507071f3fba4001288780ba1a40 | e1d240321f954219daa44c5c7f73f6ad3f0e6427 | refs/heads/master | 2020-05-26T21:23:18.851051 | 2019-06-13T03:49:39 | 2019-06-13T03:49:39 | 188,378,039 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2017-07-06 10:38:13
# @Author : Yan Liu & Zhi Liu (zhiliu.mind@gmail.com)
# @Link : http://iridescent.ink
# @Version : $1.0$
#
# @Note : http://cascais.lx.it.pt/~mafonso/salsa.html
#
from __future__ import division, print_function, absolute_import
import... | UTF-8 | Python | false | false | 614 | py | 13 | salsa.py | 12 | 0.571661 | 0.530945 | 0 | 27 | 21 | 64 |
Poriseler/messages | 18,339,510,356,974 | 3d323dd0808664f81c864df35356304f44fadc39 | 110227177f324c5e6e56026a63f152ec9e8fcf52 | /communication/migrations/0003_auto_20210522_2202.py | f4603a51aeba4714acb8cf97470dbaf5421c7787 | [] | no_license | https://github.com/Poriseler/messages | ef6fdeaa32add032d75bb15560dee1e945cff3ee | 70204c42f3fa2bf542950fc751d663071dae6b70 | refs/heads/main | 2023-04-26T09:18:58.754203 | 2021-05-23T10:27:15 | 2021-05-23T10:27:15 | 370,016,663 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.2.3 on 2021-05-22 20:02
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('communication', '0002_rename_messege_message'),
]
operations = [
migrations.AlterField(
... | UTF-8 | Python | false | false | 649 | py | 3 | 0003_auto_20210522_2202.py | 3 | 0.582435 | 0.553159 | 0 | 24 | 25.041667 | 74 |
Silberschleier/pgm-exercises | 8,375,186,243,351 | 8c11dab25cf22ba3412659be6a3e232b814929b5 | 0e7036ed329cf69ffc735fc594f870152d781a32 | /sheet09/sheet09.py | a15db42da3ddb7e937f8b14d486183be3234ff2a | [] | no_license | https://github.com/Silberschleier/pgm-exercises | 1b599ae1eae2ae72207c53d17466fb85270fe53f | f57a8ba6ca20ec7522a9d26ee762550f2527e2c6 | refs/heads/master | 2021-09-04T22:20:23.589071 | 2018-01-22T17:07:35 | 2018-01-22T17:07:35 | 109,287,682 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 22 13:55:52 2018
@author: Maren
"""
import numpy as np
from itertools import product
table = { 'fuse': np.array((0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1)),
'drum': np.array((0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0)),
'toner': np.array((1, 1, 0... | UTF-8 | Python | false | false | 7,419 | py | 10 | sheet09.py | 8 | 0.565171 | 0.520555 | 0 | 144 | 50.527778 | 602 |
juansdev/pytikzgenerate | 16,260,746,189,327 | 2a93315ef581299cbdc43a7a1b298a7b85219a25 | 3232871ea1a1a3be3f6e16d4c2257aa65d03e6af | /pytikzgenerate/modulos/submodulos/base_pytikz/__init__.py | 549c086dbb10b3eda3d6ae9651fada18a158309d | [
"MIT"
] | permissive | https://github.com/juansdev/pytikzgenerate | 7ccaf5cd9be837d7797526183f354a521a8657a8 | 42e32ca7c3404c27b1f60299772cf3e4fb0d02f7 | refs/heads/master | 2023-08-02T04:21:20.684269 | 2021-09-21T01:04:00 | 2021-09-21T01:04:00 | 407,717,578 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class BasePytikz():
"""Clase padre, que tiene los atributos actualmente compatibles con Pytikz.
Atributos:
- COMANDOS_ANIDADORES(List[str]), tiene el nombre de los comandos anidadodres.
- DELIMITADORES_PARAMETROS_COMANDO_PERSONALIZADO(List[str]), tiene los delimitadores del valor de los parametros. se u... | UTF-8 | Python | false | false | 1,385 | py | 22 | __init__.py | 19 | 0.726354 | 0.722744 | 0 | 19 | 71.947368 | 418 |
SurfaceGentleman/Python | 12,652,973,668,148 | 47c30a1cf03f842cb99779223c21285dfb5e1bcf | e729c23dd15b7353159590bdf11c1c972cd365ee | /urllib/urllib的基本使用/cookies.py | 2a292293e659d49074a46887eb8bdbb8aeef60d4 | [] | no_license | https://github.com/SurfaceGentleman/Python | 1809796728626ab104747853f91b4aa457ede9d4 | 2b635ab9d8a2543c6b4a0273189c3d80e358f7e0 | refs/heads/master | 2020-03-20T05:52:28.924649 | 2018-10-19T08:34:06 | 2018-10-19T08:34:06 | 137,229,274 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import urllib.parse
import urllib.request
url = "https://user.qzone.qq.com/1226568176/main"
header = {
"Host": "user.qzone.qq.com",
"Connection": "keep-alive",
#"Cache-Control": "max-age=0",
#Upgrade-Insecure-Requests: 1
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKi... | UTF-8 | Python | false | false | 1,251 | py | 41 | cookies.py | 41 | 0.728217 | 0.557954 | 0 | 22 | 54.863636 | 517 |
vahidri/os-exer | 8,641,474,219,610 | f818ee70e7f36b7063b4ebafbad2dc9330b5b247 | 1b51b4c734110703f9f56f65b53ce3d2ba733fad | /Q2--mutex-h2o.py | 2d2f556093057254066ef7326a2a334e6789dc41 | [] | no_license | https://github.com/vahidri/os-exer | 2988082b2f45a5465cb1cedb33fb39042c8f4e3d | eea5fae671a40348699e6cb3ca60dbe29dd738fb | refs/heads/master | 2022-04-07T09:01:14.057817 | 2019-12-06T22:11:24 | 2019-12-06T22:11:24 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | ##semaphores
mutex = 1
ox = 0 #oxygen count
hy = 0 #hyrdogen count
flag_ox = 0 #gets true/1 after taking 2 hydrogens
flag_hy = 0 #gets true/1 after taking 1 oxygen
def prepare():
if hy >= 2 and ox >= 1 :
hy -= 2
signal(flag_hy)
ox -= 1
signal(flag_ox)
def make_water():
wait(fla... | UTF-8 | Python | false | false | 644 | py | 12 | Q2--mutex-h2o.py | 7 | 0.57764 | 0.549689 | 0 | 33 | 18.484848 | 49 |
DichromaticLB/filter | 2,052,994,377,946 | 436b12ba9cc4d0ce680a4acb6d44dca96ca31c14 | 437f7203eeeb9e84e7fb979b449c4fac8773fd80 | /py/testContent.py | eea9ebbd80909bbe561603b0bd8915c59fca72c5 | [] | no_license | https://github.com/DichromaticLB/filter | 649ece1566f68c5edcdd61a78a42517fb05f2d15 | 9c3b4e1d3b116a3cf9b595e738af033d70463b7e | refs/heads/master | 2018-02-16T16:47:29.496114 | 2017-05-04T22:11:21 | 2017-05-04T22:11:21 | 63,068,802 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from scapy.all import *
from testCommon import *
def swchar(x):
if chance(2):
if x.islower():
return x.upper()
else:
return x.lower()
return x
def caseAlter(st):
y=st
while st!="" and st==y:
y=reduce(lambda x,y:x+y,map(lambda x:swchar(x),list(st)))
return y
def strNoContains(leng,strtoavoid):
r... | UTF-8 | Python | false | false | 6,276 | py | 62 | testContent.py | 6 | 0.608827 | 0.590822 | 0 | 225 | 26.893333 | 141 |
javsolgar/trabajo-AII | 14,181,982,051,728 | 68e00e51f7790f1b7ee62b312da256f18f81860d | b0f47cc31e9ac302bc79651aac3cff82392ec2ed | /game/views.py | 332506ff41d24b1335d7d9e5dcdb62ba5646c32f | [] | no_license | https://github.com/javsolgar/trabajo-AII | 4bc2f31ab7ae30562bcb147634dfbf6c985ef544 | e25b858f83f76e22335c7e47ec59b6555be2f10e | refs/heads/main | 2023-03-23T22:55:10.581382 | 2021-03-19T17:14:22 | 2021-03-19T17:14:22 | 323,925,633 | 0 | 0 | null | false | 2021-03-19T17:14:23 | 2020-12-23T14:37:54 | 2021-01-16T13:11:53 | 2021-03-19T17:14:22 | 3,199 | 0 | 0 | 0 | Python | false | false | from django.shortcuts import render
from whoosh.index import open_dir
from whoosh.qparser import QueryParser
from application.decorators import is_admin
from game.scrap_games import descarga_juegos
index_news = './indices/IndexNewsGames'
index_games = './indices/IndexGames'
@is_admin
def scrap_games(request):
d... | UTF-8 | Python | false | false | 3,394 | py | 41 | views.py | 23 | 0.594579 | 0.594579 | 0 | 118 | 27.762712 | 98 |
lincolnsotto/Python | 2,070,174,285,382 | fc8c159e3e12a529a79d24db94750bd2f520d4c9 | e4a13677811a06bdbdc269fa46351454a53e1a88 | /04_Livro_Automatizando_tarefas_macantes_com_python/cap_5_dictionary.py | 81d8214ebb5278fe933db3a909796197def1b454 | [] | no_license | https://github.com/lincolnsotto/Python | 9e11fd18146ea6305db01720d6b4082fe8c7faaf | d6da13d9a2ec0c44b688513b57c0a4c57c763abe | refs/heads/master | 2021-06-24T20:34:38.483479 | 2020-12-08T02:13:20 | 2020-12-08T02:13:20 | 181,244,283 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding=utf-8
#
# myCat = {"size": "fat", "color": "gray", "disposition": "loud"}
# print(myCat)
# print(myCat["size"])
# print("My cat has " + myCat["color"] + " fun")
##################################################################
#
# myDog = {1: "Little", 2: "Black"}
# print(myDog)
# print(myDog[1])
# print(myD... | UTF-8 | Python | false | false | 4,780 | py | 19 | cap_5_dictionary.py | 11 | 0.435484 | 0.425848 | 0 | 167 | 27.586826 | 73 |
n43jl/mdp | 2,714,419,376,823 | 3de10e3c24e613f8c8a009b06d0355674275223e | 4e49b83d1615fc3edc4f552a1c909a8c31f89f68 | /convert_so_users_xml.py | fabbb819a2d23d5dcebbd54b58a3221d8d584675 | [
"MIT"
] | permissive | https://github.com/n43jl/mdp | f6582aea48085e3ba296040a57c1db8d06d17211 | f12013436e60f0d96b50810741a12609d01ef31e | refs/heads/master | 2021-01-19T07:30:10.458582 | 2014-10-08T08:58:12 | 2014-10-08T08:58:12 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
import csv
from mdp_util import get_int, get_string
answers = {}
LAST_ID = 3600581
with open('Users.xml') as input_file:
# with open('users.xml') as input_file:
with open('users.csv', 'w') as csv_file:
writer = csv.writer(csv_file, delimiter=' ')
for line in input_file:
id = get_int(line, 'I... | UTF-8 | Python | false | false | 524 | py | 21 | convert_so_users_xml.py | 20 | 0.64313 | 0.618321 | 0 | 19 | 26.631579 | 66 |
LexGalante/Python.Lang | 1,005,022,374,521 | 0ff6597fbefc7301585f816985187c62cf00d60e | 5e35246c55b20768f80f46da2b1e626e088b51c9 | /colecoes/alta_performance.py | dd402a526d5b5378a1215b2051c7b2a6ea2db024 | [] | no_license | https://github.com/LexGalante/Python.Lang | c73dbeb8f75b7f33ac6065672927de85c87d28b7 | 1b4137565d420d9df002f1950b84646180e2d873 | refs/heads/master | 2022-07-03T07:20:36.797468 | 2020-05-10T03:15:09 | 2020-05-10T03:15:09 | 258,381,988 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Lista de alta performance
Coloca os valores como chave e o os valores são o numero de vezes que o mesmo aparece
"""
from collections import Counter
from collections import OrderedDict
from collections import defaultdict
from collections import namedtuple
print("counter")
lista = [1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5... | UTF-8 | Python | false | false | 1,289 | py | 38 | alta_performance.py | 36 | 0.695652 | 0.665373 | 0 | 47 | 26.404255 | 85 |
biroc/Olympic-Games-Demo | 2,001,454,808,417 | d0059f6a771eb4e31e44ebfd06d144656bc21ab3 | 61a0f515605b1dcd3cb8575c0896f3c33f7a0589 | /load_entityset.py | 11eaf5682ba98f3c5c8cb2f461dde9804ea14ea6 | [] | no_license | https://github.com/biroc/Olympic-Games-Demo | abe14c440d549246995b07b7af4f679500ae176d | 4d27696fe9869c4998d6af40d548cd878b2ef959 | refs/heads/master | 2021-07-20T15:30:02.202542 | 2017-10-26T14:30:47 | 2017-10-26T14:30:47 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
import featuretools as ft
import os
def load_entityset(data_dir='~/olympic_games_data',
with_econ_data=False,
with_region_data=False,
countries_known_for_subsequent_games=False,
econ_path='~/olympic_games_data/economic_dat... | UTF-8 | Python | false | false | 7,976 | py | 7 | load_entityset.py | 3 | 0.57485 | 0.570963 | 0 | 198 | 39.267677 | 120 |
shiksb/IntroPython | 14,121,852,469,889 | 605af43c96f6ba1f506b635c439817912977a8ce | 2b44eda0146c075fb0b440693f6740b21f01583b | /homework/HW2/solutions/missing_letters.py | c8db57cdc0807f66fbc9569ce37400a42103336b | [] | no_license | https://github.com/shiksb/IntroPython | b4433fdd51f2cb65609902622bdd5ae5c95e2ec1 | 82915092cdcc9ce1887ca743486bbadcde109ac2 | refs/heads/master | 2021-01-20T12:16:21.155644 | 2017-02-21T07:17:40 | 2017-02-21T07:17:40 | 82,648,917 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def missing_letters(s):
"""
@type s: str
@param s: String
@rtype: List
@return: Returns a list of the letters not present in the string
"""
# Write your code below.
# every index in this list represents the index of a letter in the alphabet
s = s.lower()
letter_present = [Fals... | UTF-8 | Python | false | false | 1,263 | py | 54 | missing_letters.py | 53 | 0.590657 | 0.584323 | 0 | 42 | 29.071429 | 79 |
vapvin/DataStructure | 10,557,029,618,693 | 6f71994794a5bcd1feba90b8015b63c35b0996e4 | 2c9918cc1ec326cdb63ff3f1529612763ae83134 | /array.py | 272d5542b928455fecf80a25aebf36eda4beecc8 | [] | no_license | https://github.com/vapvin/DataStructure | f21f2e0c0ed834998ba641998f547c3933d834c7 | 629147537905ccf8d9d0d27e2fa0220903ab9dae | refs/heads/master | 2021-02-04T15:17:51.320934 | 2020-10-27T12:46:07 | 2020-10-27T12:46:07 | 243,679,789 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Array Structure
## The array represents the data structure consisting of numbers and corresponding data.
## 배열은 번호와 번호에 대응하는 데이터들로 이루어진 자료 구조를 나타낸다.
# ex) C language Arry
"""
#include <stdio.h>
int main(void){
char arr[20];
}
"""
# Python dynamically allocates the length of the arrangement.
# 파이썬에서는 배열의 길이를 ... | UTF-8 | Python | false | false | 1,032 | py | 5 | array.py | 3 | 0.650215 | 0.627682 | 0 | 45 | 19.733333 | 188 |
Lee651/python | 2,422,361,567,691 | 9b6d0ca838f8c66fa9dc87f997ee4480a01ed294 | 21eccc7180610e40a3d247d334029067b679700f | /chapter9/user_admin.py | 8b6de6b1a2e388da796520feba12e631dc5ae705 | [] | no_license | https://github.com/Lee651/python | d4aa581a5fab7216326e5bf2a7660743480e208a | f03039dfac829f7e5a9c8cfd5667d7f114c61d55 | refs/heads/master | 2022-11-12T01:39:55.399504 | 2020-07-05T08:00:18 | 2020-07-05T08:00:18 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class User():
def __init__(self, first_name, last_name, age, height, gender):
self.full_name = first_name + " " + last_name
self.Age = str(age)
self.Height = str(height)
self.Gender = gender
def discribe_user(self):
print("\nThe person's message are: ")
print... | UTF-8 | Python | false | false | 967 | py | 38 | user_admin.py | 36 | 0.577042 | 0.568769 | 0 | 27 | 34.703704 | 129 |
Evertcolombia/graphql_starwars_api_relay | 1,391,569,412,324 | e42b91000b3ffcbecb55d25b218fc10b0f191d3b | c73fce92757189af28e87969b29836fea4377206 | /Grapqhl_django_api/Grapqhl_django_api/api_project/migrations/0013_auto_20201025_1953.py | 5a52f24bd4ebef76a06ac3950e08c28ab9410fa9 | [
"MIT"
] | permissive | https://github.com/Evertcolombia/graphql_starwars_api_relay | 4f3b9ae4c0b2da98da29c496d4622813ed49b88b | 47bb409e19a2905509618230d7b04c2d59aba7fe | refs/heads/master | 2023-01-06T04:50:46.175507 | 2020-10-28T14:06:31 | 2020-10-28T14:06:31 | 308,015,877 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.1.2 on 2020-10-25 19:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api_project', '0012_people_films'),
]
operations = [
migrations.AlterField(
model_name='people',
name='films',
... | UTF-8 | Python | false | false | 419 | py | 25 | 0013_auto_20201025_1953.py | 20 | 0.596659 | 0.551313 | 0 | 18 | 22.277778 | 86 |
kirkbozeman/instatwit_automation | 13,125,420,097,964 | fb6ef6d1d1f2e8129cee91fe145ce3790238e449 | 149a92ea003b0b39081ffc62d476d578454aeebd | /insta_twitter_automation.py | 4743626346425d9e3e0e73def8c357cbac04c743 | [] | no_license | https://github.com/kirkbozeman/instatwit_automation | b6166e95dfd029c1518ec0b34685b1dbfeca9578 | 8d6234bb2332c24e69faa07d9e4ab03e5c62bc4c | refs/heads/master | 2020-04-28T23:27:36.178322 | 2019-03-18T16:10:09 | 2019-03-18T16:10:09 | 175,655,794 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Quick script used to push Instapaper articles to Twitter and clean up folders
Uses oauth1 + xauth + tweepy
Posts to twitter account @ireadstufftoo several times a day from remote server
"""
from config import instatwit, instap
import datetime
import pyinstapaper.instapaper as icc
from pyinstapaper_fix import ins... | UTF-8 | Python | false | false | 3,609 | py | 3 | insta_twitter_automation.py | 3 | 0.597395 | 0.587697 | 0 | 109 | 32.036697 | 110 |
nxtabb/HIS | 6,442,450,982,671 | ca421000d86328367f6da7e926883c3800b6b680 | f1c9bee2dd4f3ec3a6246e965e8e502d4ab9488b | /apps/user/models.py | b0c49bd0eeaf4838cbbd71d3749d8326a3750992 | [] | no_license | https://github.com/nxtabb/HIS | cd4a051fe5f39ec38fd0a8804ee8e6f91c2a0538 | 9089d4cfd2f4f7577ed8ea391bed98f6b7e5fa23 | refs/heads/master | 2022-07-16T19:25:58.375648 | 2020-05-19T10:03:11 | 2020-05-19T10:03:11 | 265,220,147 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser
from db.base_model import BaseModel
class User(AbstractUser,BaseModel):
AUTHORITY = (
(1, '管理员'),
(2, '普通用户'),
(3, '审查员'),
)
authority = models.SmallIntegerField(default=2, choices=AUTHORITY,v... | UTF-8 | Python | false | false | 495 | py | 12 | models.py | 7 | 0.605996 | 0.59743 | 0 | 15 | 28.6 | 88 |
3jackdaws/django-ws-starter | 13,932,873,914,486 | c11c03ea23a5a9abf002e79cff2c874446a6bd34 | 33e6699b17e73ee5814d2f50fa31df01a13dc8e9 | /app/http/views/common.py | 8442e39045b927a45034cd101c0011368eb2f5ec | [
"MIT"
] | permissive | https://github.com/3jackdaws/django-ws-starter | aadb761bfc4d8c3eab4209ba6d34df7d5c8d22aa | 15f5bc6188037e8bbc54fdfaad6f0a4bedf2e7d7 | refs/heads/master | 2021-08-22T23:48:14.046383 | 2017-12-01T18:51:54 | 2017-12-01T18:51:54 | 112,769,795 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import mimetypes
from django.http import HttpResponse, FileResponse
from django.shortcuts import render, redirect
from app.settings import STATIC_BASE, BASE_DIR
from django.contrib.auth import login, authenticate, logout
def index(request):
return render(request, 'app/index.html')
def static(request, path):
... | UTF-8 | Python | false | false | 501 | py | 14 | common.py | 8 | 0.746507 | 0.744511 | 0 | 18 | 26.833333 | 81 |
cecidisi/comet_urank_project | 19,232,863,565,480 | e898804ad88217ae0586998de9528227ce18f56a | f1c104edfee91228ada5ab26bd1564f085d253d1 | /upmc/db_connector.py | 30fa31dcec83e3d12c7ff242af0c64147ae1a0de | [] | no_license | https://github.com/cecidisi/comet_urank_project | 8ffb447bc3b5037ca1c4f559e82f17dba39bb68f | 3fd4bc32ed50bea3ba664d11332302d02feddb7e | refs/heads/master | 2020-12-02T18:07:53.627178 | 2019-04-25T12:48:27 | 2019-04-25T12:48:27 | 96,477,664 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.core import serializers
from django.core.exceptions import ObjectDoesNotExist
# from conf_navigator.models import *
from .models import *
from .serializers import *
from helper.bcolors import *
import json
class DBconnector:
@classmethod
def get_articles(cls):
articles = Article.objects.all()
articl... | UTF-8 | Python | false | false | 1,533 | py | 157 | db_connector.py | 121 | 0.759295 | 0.757339 | 0 | 54 | 27.296296 | 88 |
gadia-aayush/sample | 16,947,940,977,928 | 5a24ca26af6e8452748737094600f2036b05be02 | aa3b7c6a81a323d2e17a1be7cb7ce90a20d6099a | /cproject/cproject/urls.py | f1fda37d07db54cc78b571cf40954f1233c170a5 | [] | no_license | https://github.com/gadia-aayush/sample | fdf00a4a890af6e4380b133cc64d7df89c1defff | 145b83206f9fb0972d19bef9229da0c1bf0aede0 | refs/heads/master | 2022-12-22T16:54:50.228277 | 2020-08-18T20:26:05 | 2020-08-18T20:26:05 | 288,516,734 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """cproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | UTF-8 | Python | false | false | 1,890 | py | 82 | urls.py | 54 | 0.677778 | 0.673545 | 0 | 44 | 41.954545 | 77 |
jamiezeminzhang/Leetcode_Python | 7,799,660,640,176 | 1116f837dee72cb865044c120f6f95fbe56e8c75 | 633eda99e8a4dd00a5549b6a63f5880dabaa0957 | /ALL_SOLUTIONS/127_OO_Word_Ladder.py | 61a42b1447d9c2eedf3f0ff5feb81ab06ab7bc07 | [] | no_license | https://github.com/jamiezeminzhang/Leetcode_Python | 1256e9097a482ab4a80363ddef8828986bbf9bde | 56383c2b07448a9017a7a707afb66e08b403ee76 | refs/heads/master | 2020-04-05T14:08:30.336545 | 2016-09-06T01:07:34 | 2016-09-06T01:07:34 | 53,762,214 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 4 21:45:27 2016
127. Word Ladder My Submissions Question
Total Accepted: 66019 Total Submissions: 337427 Difficulty: Medium
Given two words (beginWord and endWord), and a dictionary's word list, find
the length of shortest transformation sequence from beginWord to endWo... | UTF-8 | Python | false | false | 1,966 | py | 263 | 127_OO_Word_Ladder.py | 263 | 0.60529 | 0.582909 | 0 | 65 | 29.246154 | 84 |
bmelo/NavalWeb | 4,406,636,472,028 | f5025154bc5582451894119937e06ae197c09097 | 26e901214377ea839b8ae4e9bf77a93e9f4b0725 | /convert_pipenet.py | c65ec0ead62462bfd562d24f6363dce956f7981f | [] | no_license | https://github.com/bmelo/NavalWeb | 30f150debb3e962c6292f0ee6799a01c2c3c5a3c | c2bd79a72b9b6a185cff566920db94bb5b266458 | refs/heads/master | 2021-01-07T00:17:45.237974 | 2020-02-28T16:55:28 | 2020-02-28T16:55:28 | 241,523,795 | 0 | 0 | null | true | 2020-02-19T03:28:36 | 2020-02-19T03:28:35 | 2020-02-18T19:08:04 | 2020-02-18T19:08:02 | 15,681 | 0 | 0 | 0 | null | false | false | import json
nodes = [
['C558A0627C9446548B23254872701164','Z-5111502P',False],
['950CBDB068994C10963963131A751BE0','"24""-SW-B18H-002-"',True],
['25B5BA5E7AC644CD84276902327BA1E1','VALV-51115002',False],
['E374ECABE2014723B6F0ADEA1799FDB2','"24""-SW-B18H-002-"',True],
['A9FA7C4BC8D344628D783465E502... | UTF-8 | Python | false | false | 26,693 | py | 1 | convert_pipenet.py | 1 | 0.745926 | 0.372682 | 0 | 365 | 72.128767 | 112 |
bana-handaga/bana-handaga.github.io | 4,243,427,723,310 | 1422f4b2cae48b6b987350253f9b2fcb1c0a8fba | d0b93f9cbe6522850aa64cd0a9258b8ef918e5e7 | /modul-praktikum-iot/modul04/mqtt_led.py | 9a2fb39b7d67bf42cd851fa4236a734d0739125b | [
"MIT"
] | permissive | https://github.com/bana-handaga/bana-handaga.github.io | 5a46dac41bbd295f50e1ca3e50686353be7c5af6 | 883bb40bb904b266fcfe1562ab8f59601b38b335 | refs/heads/master | 2023-02-20T08:01:26.170506 | 2023-01-06T14:48:47 | 2023-01-06T14:48:47 | 121,956,123 | 3 | 12 | MIT | false | 2023-02-16T01:27:53 | 2018-02-18T13:50:49 | 2021-10-26T13:07:09 | 2023-02-16T01:27:52 | 254,184 | 3 | 11 | 10 | HTML | false | false | """
File: chapter04/mqtt_led.py
A full life-cycle Python + MQTT program to control an LED.
Dependencies:
pip3 install paho-mqtt gpiozero pigpio
Built and tested with Python 3.7 on Raspberry Pi 4 Model B
"""
import logging
import signal
import sys
import json
from time import sleep
from gpiozero impo... | UTF-8 | Python | false | false | 6,169 | py | 195 | mqtt_led.py | 69 | 0.514184 | 0.501378 | 0 | 169 | 34.502959 | 106 |
rasimon22/QueueHub-Backend | 8,065,948,630,760 | e0cc0a33e1baba441e47f0c179063124f3be498c | 7e994237d1d21eeb2e27a382e52cb0619c4aa1d1 | /qh/lib/python3.6/types.py | b5c70b21ba42da95217f008de0fe41f396778d05 | [] | no_license | https://github.com/rasimon22/QueueHub-Backend | cac275d6bb317ff50f46f1b1bff075dda76e6019 | c72b340270212d63c8b7c5b16f62225dc7709d02 | refs/heads/master | 2020-05-04T06:23:34.419539 | 2019-04-25T20:20:27 | 2019-04-25T20:20:27 | 179,004,695 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | /Users/rasimon/anaconda3/lib/python3.6/types.py | UTF-8 | Python | false | false | 47 | py | 54 | types.py | 50 | 0.829787 | 0.765957 | 0 | 1 | 47 | 47 |
y0zhyk/hedge | 541,165,899,468 | e3cb8516110f3173cd993f0e7da24418b178583a | 5129f74d212816ce9e61827b6ca4496290683551 | /hedge/hedgehog/footer.py | 753216681d87b064726028d9e374848a06c7b11f | [] | no_license | https://github.com/y0zhyk/hedge | 4801f25ae2c07e00ef13442a02a94ef1edcc7934 | 951d9917b7cf591bd9aa41044f221c0694260a20 | refs/heads/master | 2021-01-01T18:27:51.507440 | 2015-08-15T08:40:08 | 2015-08-15T08:40:08 | 11,758,203 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class LogoItem:
def __init__(self, image, url):
self.__image = image
self.__url = url
@property
def image(self):
return "images/{}".format(self.__image)
@property
def url(self):
return "http://{}".format(self.__url)
class Logos(list):
"""Represents site footer... | UTF-8 | Python | false | false | 658 | py | 21 | footer.py | 11 | 0.56535 | 0.56535 | 0 | 29 | 21.689655 | 74 |
MilkSilk/JO_UEP | 16,724,602,655,249 | b82740ec79a64055268021480b6fb2d9a668886f | 017d1e580ead1bc277a97c17ff5d1149351250a4 | /tests/integration/test_hello.py | 3d4b41b1387e0ba4f2b626bf6408996df3d396a1 | [] | no_license | https://github.com/MilkSilk/JO_UEP | b9d1f3a1829b9c76e169fd98cdec99d19fd1416f | 3be78ef923eedd4de5566e8b97d47bd230020e32 | refs/heads/master | 2023-05-11T08:38:38.740919 | 2020-05-12T12:48:38 | 2020-05-12T12:48:38 | 263,317,161 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import unittest
from hello import app
class MyTestCase(unittest.TestCase):
def setUp(self) -> None:
app.testing = True
self.client = app.test_client()
def test_hello(self):
response = self.client.get('/')
self.assertEqual(200, response.status_code)
self.assertEqual(b... | UTF-8 | Python | false | false | 351 | py | 6 | test_hello.py | 5 | 0.646724 | 0.638177 | 0 | 15 | 22.4 | 56 |
reporkey/malaria-model | 4,664,334,531,502 | 6ef4886cc795abfdde1f41948924922bede144de | 944a78daf2bd131163b00a5ae8bbed7628ec4a19 | /recorder.py | 663c8479a014c52e40ec4c6fec0d2d0e951f0ee1 | [] | no_license | https://github.com/reporkey/malaria-model | d08e1159b703dfc14ce698026ef30722eac54437 | 9e51ec3d08f50a69b2d1c270c4b18b01c504c8de | refs/heads/master | 2020-07-13T19:53:50.329437 | 2020-07-10T09:53:40 | 2020-07-10T09:53:40 | 205,142,520 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
class Recorder:
def __init__(self, p):
self.i = []
self.symp = []
self.r = []
self.im = []
self.G = []
self.time = -1
self.parameters = p
#[p.N, p.S, p.i, p.r, p.beta_M_H, p.beta_H_M, p.day_I_R, p.day_R_S,
# p.bite_per_day, p.life_expectancy,
# ... | UTF-8 | Python | false | false | 1,101 | py | 287 | recorder.py | 9 | 0.53406 | 0.514986 | 0 | 45 | 22.511111 | 76 |
gabrielponto/FipeRobot | 3,272,765,081,528 | 518ed4d16627d02a6b14a7494dc73b3274a168ed | 9d37c53b98784bdca6a21dd58f1cbf4e1c6fefcd | /run.py | 58ac88832ed346105234ac26cf9be32d1781d247 | [] | no_license | https://github.com/gabrielponto/FipeRobot | 4a2ca2ee83c2ea7a9e14068add2c0c4a4bbc876d | fca84dccf05a2d6415dd21d75a03315c24f5445f | refs/heads/master | 2020-06-03T04:51:02.792993 | 2016-06-19T19:19:45 | 2016-06-19T19:19:45 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# coding=utf-8
import sys, getopt
from libs.db import DB
def runParser(arg):
from twisted.internet import reactor
from scrapy.crawler import Crawler
from scrapy import log, signals, Spider
from scrapy.utils.project import get_project_settings
from libs.parser.tabelareferencia import Tabel... | UTF-8 | Python | false | false | 2,209 | py | 18 | run.py | 16 | 0.700498 | 0.696874 | 0 | 97 | 21.762887 | 68 |
jmshin111/alogrithm-test | 6,691,559,065,430 | 836d30eda3d62cc7075c9f2d8d2d4aec9ba14295 | f56201a6e1a7b2f881b0afde452d04de296abb2c | /programmers_level2 test_20201003.py | c4ef5649a5cba88f9a7e0a502aa5f02b821af92a | [] | no_license | https://github.com/jmshin111/alogrithm-test | 7556fe16bf42ba415418c40c3cf69976bf57f342 | 15f73238453ef046752049c2361bf0a254e300d7 | refs/heads/master | 2023-06-27T23:48:44.928916 | 2021-07-11T13:14:45 | 2021-07-11T13:14:45 | 294,851,166 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 1
# num = [3, 6, 30, 34, 5, 9, 7, 95]
# num = [3, 30, 34, 5, 9]
# num = [6,7,9,88,99,34,765,342,123,983]
#num = [3, 30, 34, 5, 191]
# num = [12,121]
# num = [987,9,9,9]
#num = [999,998,997,99,98,97,9,7,8,6,999,998,997,99,98,97,999,998,997,99,98,97,9,7,8,6,5,4,3,2,1,1,1,1,1,1]
# num = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, ... | UTF-8 | Python | false | false | 10,468 | py | 148 | programmers_level2 test_20201003.py | 146 | 0.575373 | 0.496561 | 0 | 250 | 40.872 | 164 |
shuchitagupta/videoAnnotation | 10,067,403,392,210 | d720d4f9181882ff84861083cd45e18f3e94fb18 | 782525773e95a01be692bb0842c6c616b56b3c38 | /VideoAnnotation/VideoAnnotation-master/new_format.py | a1b66b09c02f2163c371f77aa543126e34dae616 | [] | no_license | https://github.com/shuchitagupta/videoAnnotation | 08834e6f231197ea7ef90072f0f89adb1b3a0f62 | bd740a4a13eaa9cfdbbb61db450e78696388c50d | refs/heads/master | 2021-08-24T11:44:03.694421 | 2017-12-09T15:42:32 | 2017-12-09T15:42:32 | 113,680,147 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | f = open("./res2i2.csv")
lines = f.readlines()
f.close()
lines = [i.strip() for i in lines]
total_runs = 0
res_f = open("./final_res2i2.csv","w")
for line in lines:
over = line.split(";")[0]
who = line.split(";")[1].split(",")[0]
event = line.split(";")[1].split(",")[1].strip()
if "1 run" in event or event=="1 wide... | UTF-8 | Python | false | false | 647 | py | 34 | new_format.py | 10 | 0.598145 | 0.562597 | 0 | 22 | 28.454545 | 80 |
hoka-sp/NLP100 | 9,311,489,105,787 | d7e5f8e880c1fdad6b80b90e5dddb27e6169e209 | 61c4c220a70a18d179ed77a6b02914045945a85d | /knock100/knock29.py | 6322a0921940a7441ea4d679646899fb9b92f225 | [] | no_license | https://github.com/hoka-sp/NLP100 | 5839adedc1b8d522d93859cdad07319fc8967679 | b206c4eb2a43e268fc68fd7b54bf12132389141c | refs/heads/master | 2023-07-13T15:19:44.076759 | 2021-08-09T15:06:47 | 2021-08-09T15:06:47 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import re
from package import func_wiki
import json
import urllib.parse, urllib.request
args = sys.argv
args.append('ch03/ch03/jawiki-country.json.gz')
def remove_markup_link(text_date):
pattern = r'\'{2,5}'
text_date = re.sub(pattern, '', text_date)
# 内部リンク
pattern = r'\[\[(?:[^|]*?\|)?... | UTF-8 | Python | false | false | 3,027 | py | 71 | knock29.py | 53 | 0.494991 | 0.48152 | 0 | 97 | 28.845361 | 118 |
Saraswitty/WittyMail | 17,282,948,434,727 | ece536c604da86eb3efa84b01d5cfa7cc5cb2c4e | 1caf4b37a1c8dabc76fbf9242b3db139cdea5e5b | /backend/ai/gender_guesser.py | 517e68c3fcd43fd6f46d51fe010a3cfca5a7d9c9 | [
"MIT"
] | permissive | https://github.com/Saraswitty/WittyMail | 5c4c0969ecc6eae885b96964f21817ae506503ca | 5ffa875fc5ac86e535893b0f8f423f0763a4821d | refs/heads/master | 2020-04-04T19:48:32.921926 | 2019-03-07T13:59:26 | 2019-03-07T13:59:26 | 156,221,253 | 0 | 0 | MIT | false | 2019-05-01T17:07:55 | 2018-11-05T13:21:43 | 2019-03-10T14:40:05 | 2019-05-01T17:07:54 | 568 | 0 | 0 | 17 | TypeScript | false | false | import requests
male_name_set = set([
'ajay',
'amit',
'omkar',
])
female_name_set = set([
'fatima',
'anamika',
'sonal'
])
# Need a looot of improvement
def guess_gender(name, surname = 'nair'):
name = name.lower()
surname = surname.lower()
if name in male_name_set:
return "male"
if name in female_name_s... | UTF-8 | Python | false | false | 707 | py | 36 | gender_guesser.py | 22 | 0.636492 | 0.635078 | 0 | 37 | 18.108108 | 92 |
gdoumenc/pyinfra | 16,441,134,848,377 | 9ba79e7a0a3063377597e3fe585ddc0345737e00 | 85ef8b35cfc97e178266b794a1c5ad98ee3d4606 | /pyinfra_cli/main.py | e986bf0edf98e443f1dfcf45cf0aa6fd871caf22 | [
"MIT"
] | permissive | https://github.com/gdoumenc/pyinfra | b251f26c1851cd29326ab3b7a2d12ee4ce649d1e | 03de54cc139f15dd6da9de3b7c2ccd578605af85 | refs/heads/develop | 2021-08-23T16:00:42.249931 | 2017-12-05T15:07:08 | 2017-12-05T15:07:08 | 112,345,687 | 0 | 0 | null | true | 2017-11-28T14:28:23 | 2017-11-28T14:28:23 | 2017-11-13T15:44:47 | 2017-11-24T17:06:52 | 15,225 | 0 | 0 | 0 | null | false | null | # pyinfra
# File: pyinfra_cli/main.py
# Desc: the actual CLI implementation
from __future__ import division, print_function
import logging
import sys
from os import getcwd, path
import click
from pyinfra import (
__version__,
logger,
pseudo_inventory,
pseudo_state,
)
from pyinfra.api import State
... | UTF-8 | Python | false | false | 12,790 | py | 96 | main.py | 43 | 0.614934 | 0.612744 | 0 | 481 | 25.590437 | 86 |
nesmeyannyshka/Final_Project | 1,090,921,724,345 | 45fb3db516323e0ff1dd2084ba472a7afc7f83c0 | b78a00f7de2ef0cff12d74bb3fa9ef5b177f5f08 | /final_project.py | 3f87b761f69337eec760056028f44ab6af5f4686 | [] | no_license | https://github.com/nesmeyannyshka/Final_Project | bb6b03e1b90a639de6b5d348558801c0c425590f | 8c792639fdc69b2195ee30daf94e2e6f4df0dbb0 | refs/heads/master | 2023-07-25T06:25:34.401636 | 2021-09-06T18:40:28 | 2021-09-06T18:40:28 | 399,170,556 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from airflow import DAG
from airflow.operators.python_operator import PythonOperator
from airflow.operators.dummy_operator import DummyOperator
from datetime import datetime
from python_functions.funcs import api_to_bronze, api_to_silver, load_to_bronze_spark, load_to_silver_spark, dwh
default_args = {
"owner": ... | UTF-8 | Python | false | false | 1,744 | py | 6 | final_project.py | 5 | 0.665711 | 0.65367 | 0 | 74 | 22.486486 | 112 |
aranjan99/Labs | 13,700,945,719,388 | d1c298270d0e4e97a297a239b41de1e370af91f8 | e7d2c55a0504d80a25797df8038f6cfe3ebe09bb | /lab10/planning.py | b9997fd8ad23ea93c3bc8363119b800950c4bc76 | [] | no_license | https://github.com/aranjan99/Labs | 3745ff64c41df5c020ea9f6aa15086f4de16d8ef | 33bc4efbfa5fbc94f18a583135b2c4cff014e317 | refs/heads/master | 2020-03-08T23:28:23.948816 | 2018-05-30T17:59:39 | 2018-05-30T17:59:39 | 128,465,246 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
#author1:
#author2:
from grid import *
from visualizer import *
import threading
from queue import PriorityQueue
import math
import cozmo
from cozmo.util import degrees, distance_mm, speed_mmps
import asyncio
import time
def astar(grid, heuristic):
"""Perform the A* search algorithm on a defined grid
A... | UTF-8 | Python | false | false | 6,829 | py | 9 | planning.py | 8 | 0.537121 | 0.512813 | 0 | 172 | 38.69186 | 158 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.