blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56f5fd115f8df124a977109d96a1172f3fa21ab9 | 029778c3e3a33aa3d2e4547429bfd43f3b3643ae | /01-bash/q06/grader | 045684147be478e55e67568263cef0a6e382e239 | [
"MIT"
] | permissive | EdwinJUGomez/CDA_2021_EdwinJUGomez | b81fa3666cef4340e8bf27522fb5e227280fd56c | 541edac10b85cb1829444d5746a84b76c05ae3cc | refs/heads/main | 2023-07-27T15:47:44.638701 | 2021-09-10T18:02:26 | 2021-09-10T18:02:26 | 405,155,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | #! /usr/local/bin/python3
r"""Test cases
>>> run_answer()
3608-2968-5632-1214
<BLANKLINE>
"""
import doctest
import subprocess
def run_answer():
'''Codigo especifico para ejecutar la respuesta'''
#----------------------------------------------------------------------------------------------
# Ejecuta el c... | [
"82348237+EdwinJUGomez@users.noreply.github.com"
] | 82348237+EdwinJUGomez@users.noreply.github.com | |
61fd12e1b4f06a4d9e023bf187d8e6137da5e8f9 | fbb1550dc5437d672ed0137bd7711eba3290dee3 | /students/headieh_godwin/lesson08/assignment/inventory.py | f2fd4812a7947fa1585f756f5bf36d35655a7a99 | [] | no_license | JavaRod/SP_Python220B_2019 | 2cc379daf5290f366cf92dc317b9cf68e450c1b3 | 5dac60f39e3909ff05b26721d602ed20f14d6be3 | refs/heads/master | 2022-12-27T00:14:03.097659 | 2020-09-27T19:31:12 | 2020-09-27T19:31:12 | 272,602,608 | 1 | 0 | null | 2020-06-16T03:41:14 | 2020-06-16T03:41:13 | null | UTF-8 | Python | false | false | 2,183 | py | #!/usr/bin/env python3
"""
A module that uses closures and currying to create and update an inventory CSV
file with all the information that is currently entered through the spreadsheet
program. Also includes functionality to to bulk-process a list of items, coming
from a separate CSV file, that have been rented out to... | [
"headiehg@mail.com"
] | headiehg@mail.com |
8873c29de6f4c58ad687cab584527af4c315a33f | 8366f74f63b5fabf6d9eb400dfebeac051d283e5 | /vir/lib/python2.7/site-packages/scss/cssdefs.py | 7b73805645565dae8cc2ef0a5d9601483dbfa661 | [] | no_license | matthewst/flask-skeleton | 6438d2fb4d57b7222d8b67b8bbee4eb9957b6db6 | 9aa62336ba21d464e854bf16f997cec034474d34 | refs/heads/master | 2020-05-29T18:40:15.896150 | 2015-03-04T12:45:04 | 2015-03-04T12:45:04 | 31,656,127 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,785 | py | from math import pi
import re
# ------------------------------------------------------------------------------
# Built-in CSS color names
# See: http://www.w3.org/TR/css3-color/#svg-color
COLOR_NAMES = {
'aliceblue': (240, 248, 255, 1),
'antiquewhite': (250, 235, 215, 1),
'aqua': (0, 255, 255, 1),
'aq... | [
"ykur@seznam.cz"
] | ykur@seznam.cz |
359cf7c3dac736613c7ebff4364f35e0721ed001 | a1bffcd8854e1843e56bb812d4d83b3161a5211e | /tests/unit/modules/network/fortios/test_fortios_firewall_address6_template.py | cad670fda6582598f43a5c2e43e0574e5e04c14d | [] | no_license | goneri/ansible.community | 1a71f9d98c164b77f8ed2ed7f558b4963005ff8f | f26f612dd0a3154050d90b51a75502018c95f6e4 | refs/heads/master | 2020-12-29T07:47:35.353515 | 2020-01-22T17:43:18 | 2020-01-22T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,805 | py | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
b4626ae83de9edef67405eccf3cf8720924b880f | c0ef03a5787e4aae8f2f099ccd17dc1e9eda8ad7 | /api/config.py | 996885be8715239a6dfccca87c990542d9987fc8 | [] | no_license | walidbousseta/tpgr_langs | 9433375520edbd219fc494517a53f44f7f3197e6 | 5c90cb46e4bd7e80762e106ffc2e31fd89c0f3b4 | refs/heads/main | 2023-07-28T05:17:20.756943 | 2021-09-08T06:38:05 | 2021-09-08T06:38:05 | 403,848,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | """
here we declare all configurations and const paramters
"""
BASEURL = "https://api.github.com/search/repositories"
| [
"walid.bousseta@gmail.com"
] | walid.bousseta@gmail.com |
39e7286cce56c746f2654da81f174586ee800196 | 19b2286f5a304437a0df2835348b831715948f3b | /models/we_product.py | 3d4a9374a1d069ee4a2191e3701612060fc51382 | [] | no_license | suningwz/WeOdooCotation | 02dec60d53e83b7fba32f7c51db9b79f6cc60e85 | efb3bbff7dd91b57529bfacf0f79be59aceb69aa | refs/heads/main | 2023-03-11T04:35:21.506156 | 2021-02-24T15:17:49 | 2021-02-24T15:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,621 | py | # -*- coding: utf-8 -*-
from odoo import models, fields,tools, api,_
from odoo.exceptions import AccessError, UserError,ValidationError
class Product(models.Model):
_inherit = ['product.template']
_description = 'Product Quotation Extensions'
quotation_count = fields.Integer('Quotation',compute='_compute... | [
"jc.ambert@free.fr"
] | jc.ambert@free.fr |
c2fb539bc071787bca42c1d5bdc7550f71769d0f | 7def22f9e61a125a8a02d85018fdc3fa34f4d060 | /superlists/urls.py | 7ba2fb600869500c7397a9c0af482c74b3afb792 | [] | no_license | uglyboxer/superlists | 188e7c659f97e77ebddeba3b07dc1b5bc03c928a | e0cf2e828991f04c4050170c13f9c4b6cc2be0e8 | refs/heads/master | 2021-01-10T02:24:48.031207 | 2015-11-25T00:24:23 | 2015-11-25T00:24:23 | 46,455,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """superlists URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"uglyboxer@gmail.com"
] | uglyboxer@gmail.com |
38bc2e45b759955db714b53f5109ea30b42ce6d2 | 0da11f22b993c5ea543922b9f51ba83095b4c6f2 | /test.py | cd7e5189220e6e7187430a21f0be2b493b087ecd | [] | no_license | EamonnCarson/Python-Melody-Transcriber | 0e87dd8e892f56589fdbba69438906c3cafe4c94 | f057aa2dce962dadab597327fb008cbc781f6dbc | refs/heads/master | 2021-08-31T01:54:51.610173 | 2017-12-20T05:16:33 | 2017-12-20T05:16:33 | 114,843,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,087 | py | import scipy.io.wavfile
import numpy as np
import mpm
import matplotlib.pyplot as plt
import tools
import note_detection as transcribe
wav_audio = 'audio/{}.wav'
def get_mono_wav(filename):
# open the wav file
try:
sampling_rate, wav_data = scipy.io.wavfile.read(filename);
wav_data = np.array(... | [
"eamonncarson@gmail.com"
] | eamonncarson@gmail.com |
0aaaf58350e06d33a4f5f9d3e54d2232b717e783 | 44d822c8c184be11cde1f239648b06de96946d59 | /0x01-python-if_else_loops_functions/8-uppercase.py | 1bee0edf8a03ef648b925f65d9beb729a57fa289 | [] | no_license | Cmart94/holbertonschool-higher_level_programming | 2f0e932f84f839bb9a0489a57d7363e2a9e71db0 | aeb91dcd8f63dcfef101d6e198aa7f3a8fc8ea22 | refs/heads/master | 2023-05-30T03:27:24.248369 | 2021-06-10T17:05:05 | 2021-06-10T17:05:05 | 361,920,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | #!/usr/bin/python3
def uppercase(str):
for c in str:
if ord(c) > 96 and ord(c) < 123:
c = chr(ord(c) - 32)
print("{}".format(c), end='')
print()
| [
"cristian.313@hotmail.com"
] | cristian.313@hotmail.com |
2a422028e31d1f3057c37bdf2c77852fd516204c | c2608e0a530eb443bbda615762483b1d3bbb8e28 | /speedysvc/toolkit/encodings/hanzi_get_type.py | bc40f1ab426954a2217f8e8b88a09a62a62cbffe | [
"MIT"
] | permissive | mcyph/speedysvc | bffa39fbf5cb09d4bca7950c0a502cfc352ba140 | 93a70ece896eaaea9bfcd32de52b21c16aad8e65 | refs/heads/master | 2023-08-16T01:52:45.331622 | 2023-04-13T22:54:25 | 2023-04-13T22:54:25 | 237,712,966 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # -*- coding: utf-8 -*-
import re
import zhon.cedict
simplified = re.compile('[%s]' % (
zhon.cedict.simp
))
traditional = re.compile('[%s]' % (
zhon.cedict.trad
))
def hanzi_get_type(s):
"""
Get the most likely hanzi variant for `s`,
"simp", "trad" or "both
"""
D = {
'simp': sim... | [
"20507948+mcyph@users.noreply.github.com"
] | 20507948+mcyph@users.noreply.github.com |
fa836cacf71cecbfc536fb1e6c30b15bf1963637 | f270068c6cbdcf14c10a8b5dbe209c6c712f43ef | /ex01.py | c453d07ed47f919c0e434e5b07ff2da3091ca891 | [] | no_license | edubs/lpthw | d8ed03b8df823357bc9b3e989a6677a96c71f1c8 | e06bfc6c539519f8d7ea9092db4261838f22add0 | refs/heads/master | 2020-03-15T07:58:54.559918 | 2018-05-07T18:42:21 | 2018-05-07T18:42:21 | 132,041,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Study drills:
# 1 print another line
# 2 make the script print only one of the lines
#print("Hello World!")
#print("Hello Again")
#print("I like typing this.")
#print("This is fun.")
print('Yay! Printing.')
#print("I'd much rather you 'not'.")
#print('I "said" do not touch this.')
#print("Another line."... | [
"noreply@github.com"
] | noreply@github.com |
fb57ec2ac889bd19106480a25e5d589ebb4f700f | 3e2cfa180b02608e07a93ed983bf386be4327916 | /Single phase flow/Blasius (1913).py | d980d0fbd72a9b6b46a3a819bc86ef61de327c4a | [] | no_license | AndrejHan/Standard-models | c7611183c5a8f4159c2356428ce6bbce91de229f | 9e077f55efe0765a79bb01841974176ca6a656c5 | refs/heads/master | 2020-04-20T22:12:16.733328 | 2019-03-26T11:08:29 | 2019-03-26T11:08:29 | 169,131,925 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | def f_pred_Blasius (Array, Reynolds, limit, f_name = 'f_pred_Blasius [-]'):
'''Calculation of predicted friction factor by Blasius(1913) correlation (by Fanning) - smooth tube.
Inputs are: Array - final table, Reynolds - Reynolds number according to measured flow (liquid, gas, liquid-only, gas-only) [-], limit ... | [
"noreply@github.com"
] | noreply@github.com |
d0adebe986595d0aea754646053e7d72f4cd994f | 115e59fea9c0b44dd7bb4a5434d97e9d8495daa7 | /web-service/utils/config.py | 28babe8fd1999309ad8e826258c3da3ba82c66aa | [] | no_license | ComputableBrain/MouseHistViewer | a4e691d6fd806c56e88cc00a5430be1002ccc57c | 843fe7a70b79a37093633b367be794589ea9039a | refs/heads/master | 2016-09-12T20:15:35.316860 | 2016-04-25T05:19:27 | 2016-04-25T05:19:27 | 56,972,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | #!/usr/bin/python
# - Reads the application configurations from app.cfg
# that will be used to setup the app.
# - Use default values provided here to fill in missing
# configurations and settings
import ConfigParser
def get_app_configurations():
"""
Get user defined settings from the configurations file
and us... | [
"mohammed.khalilia@gmail.com"
] | mohammed.khalilia@gmail.com |
8384fef2b16fdeea0adf1819f3c0122330a5d974 | e828c22a75dfaa7f3643352d4f1b08559a12edca | /ScrapyProject/TenxunSpider/TenxunSpider/pipelines.py | 8c9505521ec8a1ee4c05f3cdfcfa153491efb9f5 | [] | no_license | csgvsjay1000/spider | 9c545fac9c63f89e7503a7c045ce2b83df044e49 | 10f584440d23b0b17a3486cde6cbc39c9d13692e | refs/heads/master | 2022-02-16T20:29:53.384245 | 2019-08-12T03:06:37 | 2019-08-12T03:06:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json,codecs
class TenxunspiderPipeline(object):
def __init__(self):
self.file=codecs.open('duty_file.json','... | [
"593956670@qq.com"
] | 593956670@qq.com |
eb1b1dd863033334ca3e889b83eb5570cd44298a | 442b7fc1771ca0999d35ea04512b450915d3d84a | /examples/07-filter/02-bump.py | b092f43bc68df3becc52f278460b526cb36772ba | [] | no_license | pepsipepsi/nodebox_opengl_python3 | 9a301755d926db2d185381de11f4f02b7a2e67a1 | cfb2633df1055a028672b11311603cc2241a1378 | refs/heads/master | 2021-01-10T05:33:43.636279 | 2016-01-13T14:23:07 | 2016-01-13T14:23:07 | 49,037,749 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | import os, sys
sys.path.insert(0, os.path.join("..",".."))
from nodebox.graphics.context import *
from nodebox.graphics import *
from nodebox.graphics.shader import bump
img = Image("creature.png")
def draw(canvas):
canvas.clear()
# The mouse position controls the origin of the bulge.
# The bu... | [
"hi@email.com"
] | hi@email.com |
0a9e7a6f204293778dc37164aff561a6817fcb7d | bbae6df729e03314064301f791af50d7f6ebcaa8 | /density_to_files.py | ced429cd23619ed1594d42c890cfbfae85494a64 | [
"BSD-2-Clause"
] | permissive | mbrothers18/lmatools | b240a4890ee7be23aace4b43e4e5e3ddf99470ed | 084137e265c8520322d5bbbd067ffab3e95801f3 | refs/heads/master | 2021-01-18T06:51:33.945343 | 2016-03-07T18:23:07 | 2016-03-07T18:23:07 | 50,527,487 | 0 | 0 | null | 2016-01-27T18:12:27 | 2016-01-27T18:12:26 | null | UTF-8 | Python | false | false | 13,707 | py | import glob
import gc
import numpy as np
from density_tools import unique_vectors
# --------------------------------------------------------------------------
# ----- This section could be replaced with stormdrain.pipeline imports ----
# --------------------------------------------------------------------------
de... | [
"eric.bruning@gmail.com"
] | eric.bruning@gmail.com |
fab28e897311fa3bf3eba130ecdc0ad323d369d3 | f2df5e03128a9cabbbb93deed000d463e295550f | /数组/739每日温度.py | 4c2864c1f778f2734f2bcb89e4625bc1ae7ddd75 | [] | no_license | yangyu2010/leetcode | 0d2c4bc331fed8b6f493190d63eaf6eb1241448d | d206da5a5cce79629ba298588b8bf55ee40a01bf | refs/heads/master | 2020-07-14T18:35:47.264455 | 2019-10-28T10:17:29 | 2019-10-28T10:17:29 | 205,374,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: Yu Yang
# def dailyTemperatures(T: [int]) -> [int]:
# length = len(T)
# res = []
#
# # for j in range(9, 9):
# # print(j)
#
# for i in range(length):
# current_int = T[i]
# for j in range(i + 1, length):
# next_... | [
"yangyu2010@aliyun.com"
] | yangyu2010@aliyun.com |
7e06ed36cf76a5032f648844c4fc823ef07087d9 | 7390df0881c16492423cc9c88a504e33842b2af0 | /work001.py | 844b8e5bfdb14f68e3c2dddc4f91495c7fbde3ee | [] | no_license | STLLYM/STLLYM.work1 | f09e8d3c184740cc7b75bb8f1503cfed3d5956f8 | 15d273507e020f78b34a32bfb932dc67e0c2f6a8 | refs/heads/master | 2020-04-17T10:23:35.088837 | 2020-02-28T03:11:47 | 2020-02-28T03:11:47 | 166,499,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | a_list=[1,2,3,4] #定义数组包含1,2,3,4四个元素
sum=0 #定义计数初始值
for i in range(len(a_list)):
b_list=a_list.copy() #使数组a_list不发生改变的同时将b_list使用调用获得a_list及其数据
x=str(b_list.pop(i)) #以字符串形式将x赋予b_list.pop的返回值,方便后期直接将字符串表现
for j in range(len... | [
"167419431@qq.com"
] | 167419431@qq.com |
b6e737fc4970354c2276689b73cc9062e97c3641 | cfd5bd319716a0a93653bbe70ff5e868cbd1eb1f | /src/MancalaBoard.py | 72dfe4b5bfb6e51496fe86fd8c04512892afc0e3 | [] | no_license | Ashurlol/Mancala | e5434f2f8955069c4243327248541b2b94eaf9b7 | 22aa6945ed534ccf72f1a8af4292d8b700668044 | refs/heads/master | 2020-12-02T23:42:31.358221 | 2019-12-31T23:50:14 | 2019-12-31T23:50:14 | 231,157,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,584 | py | from random import *
from copy import *
from play import *
import datetime
class MancalaBoard:
def __init__(self):
#Initilize mancala board
self.reset()
def reset(self):
#Reset the mancala board for a new game
self.Npits = 6 # pits per side
se... | [
"noreply@github.com"
] | noreply@github.com |
d3189a04f72cfe7a458cd7dad1a3ee5c8aaba3ce | 9f759b1739068ed811b796024b7a498c7f60a20c | /11.qnamaker/node_modules/dtrace-provider/src/build/config.gypi | dcbe7a8ce0cf24e49a06305afcaeec6791b58f10 | [
"BSD-2-Clause"
] | permissive | Himanshu11051/Nebula-Bot | 33f008a5329ab2b8728c554b303539ce07693bbf | fd72a34312eb40b1e9d695168b5d6904b1f6ff0e | refs/heads/master | 2020-04-20T06:12:25.050740 | 2019-02-10T10:33:57 | 2019-02-10T10:33:57 | 168,676,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,432 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"himanshu.kumar@newgen.co.in"
] | himanshu.kumar@newgen.co.in |
4093735ca3af4a42d6bb8b85700aa046e5c1677c | 52243c4a05a296e7c042663b5942faa47eb66aee | /common_nlp/classifier_legal_phrases_regex.py | e2b84d6ec884fb5abb3de73d4361f5b499d1dbe2 | [
"MIT"
] | permissive | joaoppadua/Pesquisas | fbe0311b59340c041732d6d1f7f4862fa6c53198 | 808d8b0ef9e432e05a4f284ce18778ed8b3acd96 | refs/heads/master | 2023-07-16T02:50:30.846205 | 2021-09-03T13:34:54 | 2021-09-03T13:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | import re
from regex_classifier_legal_phrases import palavras_interesse
def break_sentences(text, nlp):
# return re.split(r'\w\.\s',text)
text = re.sub(r"\s+", " ", text)
text = re.sub(r"art\.", "art ", text)
text = re.sub(r"fls?\.", "fls ", text)
text = re.sub(r"inc\.", "inc ", text)
doc = nl... | [
"danilopcarlotti@gmail.com"
] | danilopcarlotti@gmail.com |
d6612826db3167305287e00458171da010bc260d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /3XtrKPMbxAf86QjjS_10.py | e7446c6b7139fcd63536aa540e62ca83c04cc65e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py |
def same_case(txt):
return True if txt.isupper() or txt.islower() else False
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7041bb1082d5baec910b892c4c325173285c5c89 | 572c828b5ef8c17f48cceada08f7a373c2d31e91 | /DES_1_2020/quizG.py | 87ebfa5c0eceb5a8ccb76bec213b13d12a69e9da | [
"MIT"
] | permissive | refeed/PAlgoritmaTRPLA | 4262387011a4942e137674f92c5606eacfec4c1e | e0c79c1d57bee0869e2344651718e8cf053c035f | refs/heads/master | 2023-02-03T19:19:43.210447 | 2020-12-17T03:46:13 | 2020-12-17T03:46:13 | 297,596,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,430 | py | '''
DESKRIPSI SOAL
Kali ini Adi belajar baris-berbaris. Ada N peserta baris-berbaris yang ikut. Seperti biasa, peserta harus berbaris sesuai urutan tinggi badan (yang paling tinggi di belakang). Setelah berbaris dengan urut, peserta akan diberi no urut. No 1 untuk peserta yang paling pendek dan no N untuk peserta pali... | [
"rafidteam@gmail.com"
] | rafidteam@gmail.com |
3c6334a40e6ccc217c1d1245a7c301d15689b3d9 | cea7ae24ea3cbea50bfd22aeb53ac7096c0e7d5f | /main.py | d88240ebc494a0ac36535c4eb69483e83fba20a2 | [
"MIT"
] | permissive | Dao258/toutiao-hot-hub-1 | 15376cc672ba40b0aad16b952b875f04d3e548f9 | adc2dafc98f2fb39ffde62be55b224933fda63e6 | refs/heads/main | 2023-04-06T14:39:26.532349 | 2021-04-04T12:31:48 | 2021-04-04T12:31:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | import json
import os
import urllib.parse
import requests
from requests import Response
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
import util
from toutiao import Toutiao
from util import logger
def generateArchiveMd(items):
"""生成归档readme
"""
def search(item):
... | [
"lonnyzhang423@gmail.com"
] | lonnyzhang423@gmail.com |
27eb4f62b3dfa1d3801e6c6c10f088e5b1fdf4a7 | a4d540d20d8544380de4e676c8436afb667333a1 | /pseudocode_lang_1/pseudo_yacc.py | cb3458c81ab3b8eafbf359e66b29abd35b6a4b60 | [] | no_license | jamesHargreaves12/spokenProgramming | 3d3b271637c0573d9e2f59f2074e25cd55fa1bd1 | d40d1dd2e8a2d2c01e3d80b6f1f5b98af0d04fd1 | refs/heads/master | 2020-04-11T08:28:58.857663 | 2019-04-23T22:10:16 | 2019-04-23T22:10:16 | 161,644,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,124 | py | from pseudocode_lang_1 import pseudo_lex
import os
import ply.yacc as yacc
from data_prep_tools.constants import base_dir_2
tokens = pseudo_lex.tokens
lexer = pseudo_lex.lexer
# PROBS wanna lable all the tuples if using
string_input = ""
with open(base_dir_2 + "1/pseudocode/329759.txt", "r") as file:
string_inpu... | [
"jh2045@cam.ac.uk"
] | jh2045@cam.ac.uk |
bd468671ee30a309f00d32c9c922a2edaf60e640 | 95dc4a5a799ece28e43cb373f037ea69c7051d32 | /robot_test/build/catkin_generated/order_packages.py | b735f657b6e3c600d26b123a12b8989af25fc44a | [] | no_license | MegaYEye/ur_robot_teleoperation | 21236048d531c7d5c8184ee66732dabb6cd58729 | 100294643141fd1edd9a3b625081c5f67ee72b6f | refs/heads/master | 2021-09-15T08:23:52.772860 | 2018-05-29T06:39:01 | 2018-05-29T06:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/dong/Project/robot_test/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/opt/ros/indigo".split(';') if "/opt/ros/indigo" != "" else [... | [
"dongyuewei@sina.com"
] | dongyuewei@sina.com |
8681391c72c12f96d060575ded170877ae75b2d9 | 2768cada97d71bce0fc9a421939bdeeabe1e2958 | /rnn.py | dee6ccfd392cc567b38a665c0cbcdaedeb5d496a | [] | no_license | rbBItH0Le/DeepStuff | 15730804e85883e6ff7ec121b1aa446946b05201 | 427568340dee09a4b8e7a73b5c5ef258461d9c09 | refs/heads/master | 2023-06-06T13:26:12.023896 | 2021-06-18T19:36:15 | 2021-06-18T19:36:15 | 336,350,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
data_train=pd.read_csv('Google_Stock_Price_Train.csv')
train_set=data_train.iloc[:,1:2].values
from sklearn.preprocessing import MinMaxScaler
sc=MinMaxScaler()
train_s... | [
"rohan.kishan@yahoo.in"
] | rohan.kishan@yahoo.in |
c69b864f21b100901da859214899a8f7346b41a7 | 1796043fc26c958b8fc45d9c058e382473c4f3af | /Fabio 01 Parte 02/f1_p2_q2_metro_km.py | 9fa23256bbcf9cb486f2779b637e721651f19242 | [] | no_license | Lucakurotaki/ifpi-ads-algoritmos2020 | a69adec27dbb10aceab1bc7038a0b56a760f99d1 | 34d5fedd5825a85404cf9340e42be618981679c1 | refs/heads/master | 2022-03-22T04:44:14.211359 | 2022-02-19T18:48:36 | 2022-02-19T18:48:36 | 246,585,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | #Entrada
m = int(input("Digite a medida em metro: "))
#Processamento
km = m/1000
#Saída
print("O equivalente de {} m em kilômetros é: {} km.".format(m,km))
| [
"noreply@github.com"
] | noreply@github.com |
796db6e171c1a13606a0514100555631b03955b9 | aa944f82c80fcac2aacac27b256d81a209fd4417 | /TreasureHunt/map.py | f46deff02b2d0a13ce8f3c28b58088d9aadfffee | [] | no_license | christiansallen/Lambda-Treasure-Hunt | 47edaf1a974830b40302c821f18698791c6056ba | 24bf82a348e46ec1470c40af621e3f2f2a42b884 | refs/heads/master | 2020-09-12T21:14:24.239497 | 2019-11-21T23:14:31 | 2019-11-21T23:14:31 | 222,558,485 | 0 | 2 | null | 2019-11-21T23:14:32 | 2019-11-18T22:38:15 | Python | UTF-8 | Python | false | false | 1,812 | py | from random import choice
from time import sleep
from server_actions import *
from support import *
world_map = file_to_json('map.txt')
reverse = {'n': 's', 'e': 'w', 's': 'n', 'w': 'e'}
backtrack = []
rooms_visited = 1
data = get_init()
rooms = make_blank_map()
sleep(data['cooldown']+1)
while rooms_visited < 500:
... | [
"christiansallen@gmail.com"
] | christiansallen@gmail.com |
880bb4ccdffc09dae4945f04e4d896cfb468e92c | 199f3f91ec71f7af34d379d285c1535c26dab976 | /articles/views.py | 0621f76c1e196d709ae355570f1ef1b093025928 | [] | no_license | umarhussain88/Akhbar | 0a78d3303346d06ea020a82f259b83b5bb3a202b | 0dba82cc4503b2192757c6702ee713c240bd65bc | refs/heads/master | 2023-03-04T09:34:15.615795 | 2021-02-21T22:55:45 | 2021-02-21T22:55:45 | 341,019,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | from django.contrib.auth.mixins import (LoginRequiredMixin,
UserPassesTestMixin)
from django.urls.base import reverse_lazy
from django.views.generic import ListView, DetailView, CreateView
from django.views.generic.edit import DeleteView, UpdateView
from .models import Article
... | [
"umar.hussain.da@outlook.com"
] | umar.hussain.da@outlook.com |
10b9d528102a35f0bd93b41c8968c0d249af69bc | 694c07b2841578a1bb830ffbbac8d082bcfa0676 | /manage.py | 35a5e2a7c3688740e25f6a16ed73bcc5ac7dbac2 | [] | no_license | iiogmgo/deokuzzal | c5ef7641079282de7bf5e34338f8ea4990ee9021 | 81295d3d29fb987415ab655e02bf851eda333a17 | refs/heads/master | 2023-08-17T09:21:03.811801 | 2020-07-14T11:36:27 | 2020-07-14T11:36:27 | 279,336,931 | 1 | 0 | null | 2021-09-22T19:25:55 | 2020-07-13T15:11:28 | Python | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'deokuzzal.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"iiogmgo@gmail.com"
] | iiogmgo@gmail.com |
a4500a6e912bcb644fb0a435b6909d8f23c787d4 | d2485ca7becceab8e8c3ed604f9c09fbdd61a4cc | /skk.py | ffe8dad73b1a2e982a41f33284f9ab736fc08f4e | [
"Apache-2.0"
] | permissive | sheng1124/KKparser | af6af83d3ee6b102d0aa745c635d6aaff7e9d7e1 | 77a0b9a97f968c7f92f20d1a043f574d9f0ebae8 | refs/heads/master | 2022-12-19T05:54:45.151743 | 2020-09-22T01:01:19 | 2020-09-22T01:01:19 | 297,492,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,310 | py | from glob import glob
import csv
import datetime
import os
import sys
import itertools
import shutil
import re
import socket
import requests
import json
class Dir():
def getParentDirByPath(self, filePath): #ff\gg\h\dd.txt = > ff\gg\h
r = len(filePath) - filePath[::-1].find('\\') - 1
return file... | [
"rhythm7321@gmail.com"
] | rhythm7321@gmail.com |
0624acb274bdaacc13d24078b701c3efd0584ce4 | 43ab8c000781c073e6723b3e93013e5f509b84ea | /attractors/3D/Pickover.py | b1953fcdf4020eec7d0559a9c3155b2e2c0695d3 | [
"MIT"
] | permissive | tisnik/fractals | e6e25dbbf5675be5a78f15a2504b25f7de504cf6 | 2e852489cb473394e4dd9103d12d717fed53a51d | refs/heads/master | 2023-04-29T03:17:28.897352 | 2023-04-17T14:01:59 | 2023-04-17T14:01:59 | 202,321,272 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | """Výpočet a vykreslení Pickoverova podivného atraktoru v 3D."""
# MIT License
#
# Copyright (c) 2020 Pavel Tišnovský
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, i... | [
"ptisnovs@redhat.com"
] | ptisnovs@redhat.com |
e882be5c62481dfe01e05dc2076dc494788b242a | 577ab02be20b264023c86af0b1f7598611b1d3bc | /mysite/urls.py | 98af82e60031a42f6647e718f392a3be3cbfc95f | [] | no_license | yoongyo/festigo | 323316d79796e4fc5a6ad42f26c0c8f181100e1e | 73c3f6c619acb70d8031efb62a90fb8d60acbc66 | refs/heads/master | 2020-05-18T09:49:35.673560 | 2019-04-30T21:56:49 | 2019-04-30T21:56:49 | 184,336,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | from django.contrib import admin
from django.urls import re_path, include, path
from . import views
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = [
re_path(r'^$', views.main, name='main'),
re_path(r... | [
"jyg0172@naver.com"
] | jyg0172@naver.com |
e423a90ca449d2005f582d10a62ff2785420dc77 | b7d0a317f8d891b7aef337acd101bcb423c04f61 | /rigs/settlers/settler_mouth.py | c3904aecb85960434a9ccb38b3bd3e17592e52f8 | [] | no_license | intp1/CloudRig | ee4284095f61684ad5b8d65ee8f042a2846507cd | 5e4e6cf88487a24bd842edda45f7bed5ae2862e3 | refs/heads/master | 2022-08-23T02:31:03.914344 | 2020-05-26T10:26:38 | 2020-05-26T10:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,950 | py | import bpy
from bpy.props import BoolProperty, IntProperty, FloatProperty, StringProperty, PointerProperty
from mathutils import Vector, Matrix
from rigify.base_rig import stage
from ...definitions.driver import Driver
from ..cloud_curve import CloudCurveRig
from ..cloud_utils import make_name, slice_name
class Sett... | [
"metssfm@gmail.com"
] | metssfm@gmail.com |
9df4172983fa5bca29059914272d27d030de66b6 | 51d0eb345609796e4ec80d17b39929387a45cb0b | /models/DeepLearningModels/elmo/test_complete_pipeline_fever_blind.py | 1275540766bbe6636505c77760b25369055791f6 | [] | no_license | DeFacto/EvidenceRetrieval-ClaimClassification | ad9280b6c567ba11f5e1bb48161557e6900bbbba | 69eed6dae41b362936dfedf062c627adacc03063 | refs/heads/master | 2020-07-22T17:39:25.503776 | 2019-09-19T13:17:39 | 2019-09-19T13:17:39 | 207,277,548 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,580 | py | import numpy as np
import random
import jsonlines
import pandas as pd
from sklearn.metrics import precision_recall_fscore_support, accuracy_score
class TestPipeline:
def __init__(self, cc_results_path):
self.cc_results_path = cc_results_path
with jsonlines.open(cc_results_path, mode='r') as f:
tmp_di... | [
"rameshjesswani@yahoo.com"
] | rameshjesswani@yahoo.com |
6ad8c2e578a0cb6ab15070cb8096f5f080fdf4e8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03071/s708387820.py | 520d43f8cf4e6541711b3aeb0e5432df8395660d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | c,d=map(int,input().split())
a=max(c,d)
b=min(c,d)
if a-1>=b:
print(a+a-1)
else:
print(a+b) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
48d254577be2dfe57ef8a4d19ba7c41709aced4e | 007ae03cfe5abf41a0ad864eade451141c267cca | /auto-docs/executables/python/legend_style.py | 6f09c9c36aef49e5259e1ae46fe2bd16241aee10 | [] | no_license | VukDukic/documentation | ca96eb1994eeb532fe60c542960b017354bcede1 | 8e5aefdc38788956cfe31d8fe8b4b77cdf790e57 | refs/heads/master | 2021-01-18T09:02:27.034396 | 2015-01-20T23:46:58 | 2015-01-20T23:46:58 | 30,007,728 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # Learn about API authentication here: {{BASE_URL}}/python/getting-started
# Find your api_key here: {{BASE_URL}}/settings/api
import plotly.plotly as py
from plotly.graph_objs import *
py.sign_in('TestBot', 'r1neazxo9w')
trace1 = Scatter(
x=[0, 1, 2, 3, 4, 5, 6, 7, 8],
y=[0, 3, 6, 4, 5, 2, 3, 5, 4]
)
trace2 ... | [
"andseier@gmail.com"
] | andseier@gmail.com |
00b1cbab25918390731f619547ab4a86739d7d02 | b212ec9d705fb77cac102dceb12eb668099fd1ae | /oop/inheritance_exercise/zoo/project/mammal.py | 9c5f6fb59f2fe47998752247f7a8b1a440eca991 | [] | no_license | xpucko/Software-University-SoftUni | 20ef91a0be91a8a09a56d9fdc15888f91409de2f | a1fc1781424f025954948299be7f75d317e32dc1 | refs/heads/master | 2023-02-04T11:58:33.068431 | 2020-12-24T00:39:11 | 2020-12-24T00:39:11 | 280,227,310 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from project.animal import Animal
class Mammal(Animal):
def __init__(self, name):
super().__init__(name) | [
"hristiyan.plamenov.valchev@gmail.com"
] | hristiyan.plamenov.valchev@gmail.com |
17809481049e248d4877a7040deadadd7eb166fd | a7253510cc8c71ed05dc406f4f9ebda0ef681890 | /main.py | 041c2544a7168528563db65334cb5f041575caa7 | [] | no_license | jennieweemhoff/winc-assignment-strings | b59386e07f930f8b2dda421be6b11657dae7aad3 | a550d3ec1e3aa59e667b669225a7d3ffaa27441c | refs/heads/main | 2023-04-19T16:25:16.036769 | 2021-05-07T11:13:30 | 2021-05-07T11:13:30 | 365,207,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | # Do not modify these lines
__winc_id__ = '71dd124b4a6e4d268f5973db521394ee'
__human_name__ = 'strings'
# Add your code after this line
# Part 1
# Create variable for every player that scored
goal_0_player = "Ruud Gullit"
goal_1_player = "Marco van Basten"
# Create a variable for each minute of the mat... | [
"noreply@github.com"
] | noreply@github.com |
150a4b4cea6b36d6f4771da3f007d667e73a0ecf | dd3a28907c440d18f7c7c13591ad7c3587acdfbf | /juriscraper/pacer/docket_history_report.py | e26eb249f4192d6aeb13f496be7f6b9551a47b0c | [
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | swipswaps/juriscraper | f57aacf731c9c7682100db644f7d22be175890d8 | fec54f7fc53096db16345b35c73aca9a52aaecb2 | refs/heads/master | 2022-02-25T09:42:14.391641 | 2019-07-24T00:30:27 | 2019-07-24T00:30:27 | 198,718,908 | 0 | 0 | NOASSERTION | 2022-02-17T22:50:36 | 2019-07-24T22:42:51 | HTML | UTF-8 | Python | false | false | 10,009 | py | # coding=utf-8
import re
from .docket_report import DocketReport
from .utils import clean_pacer_object, get_nonce_from_form, \
get_pacer_doc_id_from_doc1_url, get_pacer_seq_no_from_doc1_anchor
from ..lib.judge_parsers import normalize_judge_string
from ..lib.log_tools import make_default_logger
from ..lib.string_u... | [
"mlissner@michaeljaylissner.com"
] | mlissner@michaeljaylissner.com |
977cf1eb95b4bc398c818ca2182f457bce90d029 | 9b5e442ba9fdd64dafbfbb093ecf7545d1abf264 | /no8.py | cdc4030f2882da86a6f8fde4d7e8ad69b1393691 | [] | no_license | DowlutZuhayr/hello-world | a1e77747f814958f1d4a593d1a1f5c03499e822f | 05e97f5f5bf344ac7a2edcb4b9650fa4a2a77ba3 | refs/heads/master | 2021-07-05T17:52:23.205628 | 2020-10-21T15:27:15 | 2020-10-21T15:27:15 | 194,113,900 | 1 | 1 | null | 2019-06-27T14:57:28 | 2019-06-27T14:49:05 | null | UTF-8 | Python | false | false | 111 | py | list1 = []
if len(list1) == 0:
print("this list is empty")
else:
print("list is not empty")
| [
"noreply@github.com"
] | noreply@github.com |
feaa0dc4338542902c631ef12caaff2d4a6f4f42 | a6d70100c17e24af4cbc0cb9e15ac6823973ae5a | /drinkz/test_app.py | 5211b55c6e2b12a870aeb65e18dd93c28be194e9 | [] | no_license | credwards27/cse491-drinkz | 79bec8154690f14976eba12a2a5a101bd035e797 | 0a616feb6963c6a43d658fa3e9236283da03691d | refs/heads/master | 2020-12-25T00:09:37.872131 | 2013-05-02T03:48:30 | 2013-05-02T03:48:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,746 | py | import drinkz.db
import drinkz.recipes
from drinkz.convert import to_ml
from drinkz.app import SimpleApp
# test wsgi functionality
def test_recipes():
simple_app = SimpleApp()
simple_app.load_database('bin/database_file')
environ = {'PATH_INFO': '/recipes.html'}
d = {}
def my_start_response(s,... | [
"realstuff27@gmail.com"
] | realstuff27@gmail.com |
3d34621978530f38e593ab9a489b024ca4314ceb | a583a11063c82c1d2ea1e2a224015041cf83da24 | /2-work_queues/python/worker.py | fef48e46c84eef8b69eb40bd8242469a1b848d31 | [] | no_license | jlgerber/rustyRabbitEgs | ba2356dca0326707e9e0ecbd6d1212e84ca85385 | 362d4ccafc44fd63d3f7cf8b3a5fe4e9a0d2e8a6 | refs/heads/main | 2023-01-01T12:15:58.954357 | 2020-10-31T03:04:50 | 2020-10-31T03:04:50 | 307,557,568 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | #!/usr/bin/env python3
import pika, sys, os
from common import connect, QUEUE, DURABLE
import time
def callback(ch, method, properties, body):
print(" [X] Received %r" % body.decode())
time.sleep(body.count(b'.'))
print(" [x] Done")
# manual ack
ch.basic_ack(delivery_tag = method.deliver... | [
"jlgerber@gmail.com"
] | jlgerber@gmail.com |
34cd5538526fee07eb981f2d6937354f1f70c30c | 967a5ec427a3332c289659fb3a529a0a0b353dc6 | /sbc_ngs/__init__.py | 78d9b9c0c571e83ad0d46d233c43cacd3ebf84de | [
"MIT"
] | permissive | neilswainston/SequenceGenie | 7807cd29dd3504ee33d98b704a9f57e8cf657997 | 65fce1df487afd2de32e9d3ebc487874e71436bc | refs/heads/master | 2020-05-16T11:36:32.206010 | 2020-03-09T12:15:45 | 2020-03-09T12:15:45 | 183,021,243 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | '''
sbc-ngs (c) University of Manchester 2019
All rights reserved.
@author: neilswainston
'''
| [
"neil.swainston@manchester.ac.uk"
] | neil.swainston@manchester.ac.uk |
e6977d6dd44bf82a13a5f184e4f035a11668c00b | 40c578693ed88b52db0b5d45b581d72507596b76 | /03-Sentiment/CMP462 HW03 Data/python/NaiveBayes.py | 64a8d809395e59f3f32afa240d5ca1963db89188 | [] | no_license | Anwarvic/Dan-Jurafsky--Chris-Manning--NLP | 6eafaee56363007f15f15ca09e4441330b055e18 | 64c4870f9d89952f252eee9a238397220bb43061 | refs/heads/master | 2023-05-10T19:53:19.507959 | 2023-05-02T01:07:06 | 2023-05-02T01:07:06 | 114,249,702 | 44 | 25 | null | null | null | null | UTF-8 | Python | false | false | 9,290 | py | # NLP Programming Assignment #3
# NaiveBayes
# 2012
#
# The area for you to implement is marked with TODO!
# Generally, you should not need to touch things *not* marked TODO
#
# Remember that when you submit your code, it is not run from the command line
# and your main() will *not* be run. To be safest, restrict your... | [
"mohamedanwarvic@gmail.com"
] | mohamedanwarvic@gmail.com |
09d9a00a2586e32ae6a152459eef73e86648effa | 94aaf6d4db0267fdfa84ec7fed86c93ed8f6e77d | /303-Python-Classes/class.py | 812dc75f823131ae7072eb804e61e9793b410b1d | [] | no_license | AmandaHenrique/Academia2019 | 29958b9436dfb2f04894100f666d065c783a0c40 | f8fa8d67a5c50c14d610cdf49a21831630b69b2f | refs/heads/master | 2020-05-06T13:58:57.347911 | 2019-04-25T14:35:25 | 2019-04-25T14:35:25 | 180,166,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Exemplo no java usamos this e no python self
# dentro de uma classe colocar um "constructor"
# def_init_(self, params1, params2):
#self.params1 = params1 = q é a variavel do prametro e o self o objeto dentro da classe me questao
# instanciação de classe: cadeira = Cadeira("params1", "params2")
# dellG... | [
"noreply@github.com"
] | noreply@github.com |
458df27747a96c27b6715b5fa5ee1cdf5a4a7155 | 41810d1e523251a7bd669bbcdc99fc0af8b02e32 | /months/migrations/0004_auto_20150927_1745.py | 6ceef1b0402fab46770ddbca37a81500edec8ed4 | [] | no_license | EasonHung0807/PFM | 5c597893d3060a75f8fe35f4ed4c7c169c069434 | cb3037d21a15a4a36a5737d17c4fb264e6866ae8 | refs/heads/master | 2021-01-10T17:12:56.090832 | 2015-10-11T11:25:07 | 2015-10-11T11:25:07 | 44,049,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('months', '0003_auto_20150925_1403'),
]
operations = [
migrations.AddField(
model_name='fixed_short_cost',
... | [
"easonhung0807@gmail.com"
] | easonhung0807@gmail.com |
5dbfdb24f29942128a5169a17742ce17ac9fd1e3 | 89de54a5ee1628bceb08d804407e4d43434fa2e0 | /backend/home/migrations/0002_load_initial_data.py | 83735bcf6368729c0f275f5250287e0dd41ff7e4 | [] | no_license | crowdbotics-apps/tkabs-podcast-20287 | 430f4896c2b5ad2ec2c65ad145151569304469d6 | a3980e01490f67f3bcd2af18e970ba949780c3bb | refs/heads/master | 2022-12-13T02:10:38.199166 | 2020-09-15T15:25:22 | 2020-09-15T15:25:22 | 295,769,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "TKABS - Podcast"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
8fa09a09949d2e27f5072dec8771473a7d3045b5 | 5095200e9ca55cd3a37af34ed44448c02e2a1bb5 | /modules/image/text_to_image/disco_diffusion_clip_rn50/resize_right/resize_right.py | 4f6cb94a8ee1bed552a40083c83b3bf1d0f1eb87 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleHub | 8712603ef486c45e83eb0bc5725b0b3ed3ddbbde | b402610a6f0b382a978e82473b541ea1fc6cf09a | refs/heads/develop | 2023-07-24T06:03:13.172978 | 2023-03-28T11:49:55 | 2023-03-28T11:49:55 | 162,672,577 | 12,914 | 2,239 | Apache-2.0 | 2023-07-06T21:38:19 | 2018-12-21T06:00:48 | Python | UTF-8 | Python | false | false | 18,318 | py | import warnings
from fractions import Fraction
from math import ceil
from typing import Tuple
import disco_diffusion_clip_rn50.resize_right.interp_methods as interp_methods
class NoneClass:
pass
try:
import paddle
from paddle import nn
nnModuleWrapped = nn.Layer
except ImportError:
warnings.war... | [
"noreply@github.com"
] | noreply@github.com |
e29a5b8149426f0ac14844a93857aca6fbf69220 | 9f5a8b31ad3191a78c88e58b0986778a2eac91ec | /GrnForest/src/CommonFunction/DataReader.py | 5e26e5ff6adfe6e342a6c8957321816c62879211 | [] | no_license | qllu/SeleniumTest | 7b0d608394f8c0267686ef075743c32a2f889a9c | d6aaf3d827a785316b1ad74b05e9e80c2245e088 | refs/heads/master | 2020-04-11T10:46:57.916425 | 2016-02-02T10:43:31 | 2016-02-02T10:43:31 | 42,507,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | #coding=utf-8
'''
Created on 2015年8月12日
DataOperations用来存放所有数据操作,用来读取xml中的测试数据
@author: QLLU
'''
# import MySQLdb
from xml.dom import minidom
global DOC,CONN
class DataReader(object):
'''
数据读取相关操作
'''
def __init__(self,filename):
'''
初始化xml文档
'''
global DOC, CONN
... | [
"rikufly@126.com"
] | rikufly@126.com |
0c70a883a0eef7f982351d2e7f5e8f7c566259bd | ba0b29fd99a3b6ca636c3929acde810735d5e960 | /main1.py | ebdd17b22ebaa1c081c7acd03729cfab0ad80714 | [] | no_license | dlarson314/gis_covid | e09e925c6b8b19f747ad3d6472c6b8e4de2cad4b | 30ecf00b2423f2d7527d855f2e646041497f9a81 | refs/heads/master | 2023-02-07T17:24:05.416727 | 2021-01-01T03:08:41 | 2021-01-01T03:08:41 | 297,813,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,342 | py | import copy
import random
import csv
from attrdict import AttrDict
import numpy as np
import matplotlib.pyplot as mpl
import rasterio.features
import geopandas as gpd
import pandas
import pixel as pix
import png16
def investigate1():
filename = 'cb_2018_us_county_500k/cb_2018_us_county_500k.shp'
data = gpd.read... | [
"dlarson314@users.noreply.github.com"
] | dlarson314@users.noreply.github.com |
720913e42f3c7b14293c5f45456dfed817f068f6 | a6f7552b01f305b6ef8d9429e4ee95aeeaa5ff72 | /新年时钟/clock.py | e185f7436ea43644e9ad69014051543c883f46d4 | [] | no_license | royalday-hub/maishu | 11b83232fdef00b7e5a536b37ffba82ef4bf14e1 | 20bafdc3faf4ba9ecead4a63f2dfa039f6ae2721 | refs/heads/master | 2021-03-01T19:09:15.346904 | 2020-03-08T13:07:11 | 2020-03-08T13:07:11 | 245,808,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | import turtle as t
import datetime as dt
import time
#2. 画出背景
game = t.Screen()
game.bgcolor('black')
game.setup(600,600)
game.title("Python程序员打开新年的方法!")
game.tracer(0)
#3. 画圈
pen = t.Turtle()
pen.ht()
pen.speed(0)
pen.up()
pen.pensize(3)
def draw_clock(h, m, s):
pen.clear()
pen.up()
... | [
"noreply@github.com"
] | noreply@github.com |
b2298b14b495a0a6ef0917cd10dd12c5696e31d8 | d9601dc57737694b8f4fbc0b6f1a3d546ab448b3 | /django-test/mysite/learn/views.py | d420b05fbda606a667fb817f50898bbc1357d460 | [] | no_license | bimoQi/python-learn | 52d43315495a1a85f8f8fe2919d91d5da7a8249c | a8150b4b3c9f90a0021fc7be7a3e31e4e7b3ea37 | refs/heads/master | 2021-04-09T13:42:28.750916 | 2018-12-27T07:29:12 | 2018-12-27T07:29:12 | 125,451,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
string = u'变量string'
list = map(str, range(30))
return render(request, 'learn/index.html', {'string': string, 'list': list})
def add(request):
a, b= request.GET['a'], request.GET['b... | [
"1303445410@qq.com"
] | 1303445410@qq.com |
8805a885442eb234a6deec918fabf62a57b7f574 | 2d1649a7a00d49b72ed7e53afa4abb3c9281ce03 | /.history/ParticleFilter/go_to_goal_20190421184527.py | f8de310580a16f067b5c6a35f5dd7e7b18b58cac | [] | no_license | joshzhang5/CS3630Lab6 | 9547dc6c89198e9bb4aebd8359d4feb974082d20 | 69e6df12829e18a211ae850236d74b4d728046ef | refs/heads/master | 2020-05-15T13:59:51.906195 | 2019-04-22T18:21:42 | 2019-04-22T18:21:42 | 182,317,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,731 | py | # Jiaxi Zhang
# George McAlear
try:
import matplotlib
matplotlib.use('TkAgg')
except ImportError:
pass
from skimage import color
import numpy as np
from numpy.linalg import inv
import threading
import time
import sys
import asyncio
from PIL import Image
from markers import detect, annotator
from grid i... | [
"josh@lawn-143-215-110-217.lawn.gatech.edu"
] | josh@lawn-143-215-110-217.lawn.gatech.edu |
020788dd43df00d42c0983df43325a8386611102 | 4a59e016fd400981095f5e9498c89f71e978a1fc | /questioner/apps/user/migrations/0003_auto_20190318_2021.py | 9daed692b3a823c319177639adcf49b0dbc93b89 | [
"MIT"
] | permissive | sam-karis/questioner-api | 00c51a4ca6e0eeaf217c74a2345d0a0135b1b11b | bbffe431cc94fc2eeaae29600fb546a1f483920d | refs/heads/develop | 2020-04-18T12:33:49.737637 | 2019-03-29T12:10:09 | 2019-03-29T12:10:09 | 167,537,421 | 0 | 0 | MIT | 2019-03-29T12:10:10 | 2019-01-25T11:31:00 | Python | UTF-8 | Python | false | false | 437 | py | # Generated by Django 2.1.7 on 2019-03-18 20:21
from django.db import migrations
import questioner.apps.user.models
class Migration(migrations.Migration):
dependencies = [
('user', '0002_profile'),
]
operations = [
migrations.AlterModelManagers(
name='user',
mana... | [
"samkaris75@gmail.com"
] | samkaris75@gmail.com |
bfaee183e13e162c0b6e9fa041169e5513a2dce4 | 6a5db213a2d9b6c0bc0d2dcb25db0a562921bfc8 | /articles/migrations/0001_initial.py | eff778075b80de9ee4d6abd8483fb5ca0134d20d | [] | no_license | ishvlad/mlprior | 8d2a021f4cd59c24c4c1ae80285d06bcf653f6f2 | ef5e887d265418dec79c45107957332c69095ef6 | refs/heads/master | 2022-11-25T07:23:57.434007 | 2019-11-08T06:20:30 | 2019-11-08T06:20:30 | 168,481,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,429 | py | # Generated by Django 2.1.7 on 2019-05-31 15:39
from django.conf import settings
import django.contrib.postgres.fields.hstore
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_depende... | [
"dvolkhonskiy@gmail.com"
] | dvolkhonskiy@gmail.com |
b366a560cc962b8a35af64cdeb311111005dbad4 | 4dade4f29881e99d8602144744e09ed870bd1034 | /Python/path_algorithms/greedy_best_first.py | d4296e908f40cc690cd6ffa05663905c49b40e48 | [] | no_license | alexbaryzhikov/codebase-archive | 9795347c19a82c098983c6d0fe4959c3162ca868 | c78c189002a26296a552f30078578cc0cf72e426 | refs/heads/master | 2023-02-19T21:54:21.310865 | 2021-01-11T15:47:50 | 2021-01-11T15:47:50 | 106,846,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,406 | py | from tkinter import *
import numpy as np
from queue import PriorityQueue
G = {}
MOVE_COST = 10
MOVE_COST_DIAG = 14
class MyCanvas(Canvas):
def __init__(self, master, shape):
self.cwidth = 50
self.shape = shape
Canvas.__init__(self, master, width=shape[0]*self.cwidth, height=sha... | [
"aleksiarts@gmail.com"
] | aleksiarts@gmail.com |
1b11885a42e4c1b0fd9ba5ae04a16cd73055d804 | e435c4574dee78132b4a5efdee033d520ddf6077 | /books_authors/settings.py | 910f43c265f7bf24a4989ce6e6d9b69a06dd583a | [] | no_license | klaytenr/books_authors | 35d540bc02737058d89d6621aeb9ce013766ccc3 | ba1de71bfb4608e1487114fcbd1f93671f664012 | refs/heads/master | 2021-09-08T18:56:30.940139 | 2018-03-11T19:19:48 | 2018-03-11T19:19:48 | 124,790,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | """
Django settings for books_authors project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"klaytenrichmond@gmail.com"
] | klaytenrichmond@gmail.com |
8a2c661353af2491d8d1e6e6e286805964a4a508 | a23556101d483b9fe217a25b996195b007a31e7a | /assigment02/caller.py | 56b0b36e785453712a6cbdb5013603b1b3b33f3c | [] | no_license | tarajano/udemy_python_oop | b2344d7539b9722750432ea3a6d7cd7654190a10 | fbd412df490854c45073ae0b6dfe6d4de3437a3b | refs/heads/master | 2020-03-28T16:42:46.462635 | 2018-11-05T02:06:02 | 2018-11-05T02:06:02 | 148,721,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py |
from assigment02 import *
# Log file
lf = LogFile('file.log')
lf.write('Oye! Manu')
lf.write('Llegaron bebe y bebita')
# CSV file
csv = DelimFile('file.csv', ',')
csv.write('Oye!, Manu')
csv.write('Llegaron bebe ,y bebita')
| [
"tarajano@gmail.com"
] | tarajano@gmail.com |
1d92be69c218ae136fbcc85f6b467506f974b11d | 11b0d91ce356bb0dfa53b78dd509e182a0cca6b4 | /test.py | f34b7df6229b2e4283477476ff673c7033fa54bc | [
"MIT"
] | permissive | mukhater480/manimgui | 263f5f7b14a324d55d360189777225b985f0fa97 | 4f99ae863b62a500c431e1c9bcf8f7e43b938bc1 | refs/heads/master | 2021-05-16T23:41:55.502170 | 2019-12-21T17:45:18 | 2019-12-21T17:45:18 | 250,520,466 | 1 | 0 | MIT | 2020-03-27T11:47:10 | 2020-03-27T11:47:09 | null | UTF-8 | Python | false | false | 251 | py | from pathlib import Path
MANIM_DIRECTORY = Path("c://Users/jaybo/OneDrive/Documents/Manim")
# string = "python" + DIRECTORY / "manim.py" + DIRECTORY / "manimgui/presets.py"
# print("python", DIRECTORY / "manim.py", DIRECTORY / "manimgui/presets.py") | [
"jaybonthius@gmail.com"
] | jaybonthius@gmail.com |
9aa8579aef6cb65e7eeb06396245e760f58e2a83 | 72c718739bc593acfa12a1975e3cabcdcc782556 | /app/views/helpers.py | 41af6915eb90b26333d22d5c7803bfb99c4a7bf9 | [
"MIT"
] | permissive | JasonThomasData/payslip_code_test | fed2e862395b796ebd09dc528a61c839b8bcffac | 1214b2526455d09078cc3ffaac3781c8d77205ee | refs/heads/master | 2021-04-12T09:55:29.777020 | 2017-06-21T02:03:48 | 2017-06-21T02:03:48 | 94,524,399 | 0 | 0 | null | 2017-06-21T02:03:48 | 2017-06-16T08:44:27 | Python | UTF-8 | Python | false | false | 942 | py | from datetime import datetime
from app import parse_config_vars
def pay_period_helper(start_date_obj, end_date_obj):
required_date_formats = parse_config_vars.get_required_date_formats()
view_format = required_date_formats['view']
pay_period_start = datetime.strftime(start_date_obj, view_format)
pay_p... | [
"jason.robert.thomas.123@gmail.com"
] | jason.robert.thomas.123@gmail.com |
dbea1e2f703f52422cd2ff921f3c74b39d260485 | 67dc60b68e6bba3dd2738af2cf83ff7b528069e0 | /krcal/core/map_functions.py | d869ae973cb0a80cff4060797fb4288f67cfdc02 | [] | no_license | jmbenlloch/KrCalib | 4693e5db288ae917f0c71328d7fc68ee99bfa225 | fe81e68cc6eb38474d739761448d272f88fb3cd9 | refs/heads/master | 2020-04-05T07:43:59.798504 | 2018-11-08T17:33:40 | 2018-11-08T17:33:40 | 156,686,578 | 0 | 0 | null | 2018-11-08T10:02:14 | 2018-11-08T10:02:14 | null | UTF-8 | Python | false | false | 12,278 | py | """Module map_functions.
This module includes functions to manipulate maps.
Notes
-----
KrCalib code depends on the IC library.
Public functions are documented using numpy style convention
Documentation
-------------
Insert documentation https
"""
import matplotlib.pyplot as plt
import numpy as np
impor... | [
"jjgomezcadenas@gmail.com"
] | jjgomezcadenas@gmail.com |
21716040706d0f2fc3b0bfeda465848f264c2dc5 | 95ffecc906f291f1633984bb8551bd01f7a76312 | /venv/bin/wheel | 44d05ab6b3697f7683a796dd176eac0dc8edbc42 | [] | no_license | mathur/voyager | 34071d0e0f36041b26b115c1e6e2f03c6dca65f2 | 1bfd160624dc58438d7835842f5551437cc92f39 | refs/heads/master | 2020-04-06T07:08:16.755461 | 2016-09-06T04:46:05 | 2016-09-06T04:46:05 | 61,466,707 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/rohan/Projects/voyager_backend/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rohan@rmathur.com"
] | rohan@rmathur.com | |
52aaaf051d8b1c7a2c149e5497b364edba893284 | 56aa62212c59d0df0c3aa36feb613c52af93e6ed | /primetests.py | b29624acb77c66ef87c98ccaf3d470a189a43437 | [] | no_license | hoslack/AndelaBC-17 | d2ca4b3d401f3d169cd8153fe8761895c8cf1aaa | e778f18cb684750e27d844f398aa52c87846a4f6 | refs/heads/master | 2021-01-19T00:19:00.612803 | 2017-04-06T11:21:28 | 2017-04-06T11:21:28 | 87,152,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import unittest
from prime import primenumber
class PrimeTests(unittest.TestCase):
def test_result(self):
result = primenumber(10)
self.assertEqual(result, [0, 1, 2, 3, 5, 7])
def test_result_is_list(self):
result = primenumber(10)
self.assertTrue(result, list)
def test_i... | [
"hoslackochieng@gmail.com"
] | hoslackochieng@gmail.com |
1be199a1258f7dc409a71bac421e22de25e566e9 | 5ed9bc2e499bb9d6f21ee8158617bdb2e9ebfc49 | /musinsa_users.py | 5b9ecff5828ff1706a330b0f03a41ee9bfe0f0b2 | [] | no_license | elephantoid/proj_MUSINSA | 63c09dc0f61b154029e1b25354530f22dbf88ac2 | f33a8b47a3d180e8329bcda0a817c97531ba1ed3 | refs/heads/main | 2023-07-04T10:53:34.194179 | 2021-08-17T13:18:09 | 2021-08-17T13:18:09 | 341,494,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | #!/usr/bin/env python
# coding: utf-8
# In[29]:
import pymysql
import random
from faker import Faker
fake =Faker('ko_KR')
Faker.seed(3);
db= pymysql.connect(host='localhost',user='root',password='root',db='musinsa')
curs =db.cursor()
seq = 995
for _ in range(6):
while True:
ssn=fake.ssn()
if (ssn... | [
"70086728+elephantoid@users.noreply.github.com"
] | 70086728+elephantoid@users.noreply.github.com |
046e48003c5bea511c67085711ae1a3269a8078e | c6fa53212eb03017f9e72fad36dbf705b27cc797 | /SimG4CMS/Calo/test/python/runPhase0_cfg.py | aa9513f0a903b7fd6a2c67f3f7d9056b01e5ae00 | [] | no_license | gem-sw/cmssw | a31fc4ef2233b2157e1e7cbe9a0d9e6c2795b608 | 5893ef29c12b2718b3c1385e821170f91afb5446 | refs/heads/CMSSW_6_2_X_SLHC | 2022-04-29T04:43:51.786496 | 2015-12-16T16:09:31 | 2015-12-16T16:09:31 | 12,892,177 | 2 | 4 | null | 2018-11-22T13:40:31 | 2013-09-17T10:10:26 | C++ | UTF-8 | Python | false | false | 3,839 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PROD")
process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
process.load("Geometry.HcalCommonData.testPhase0GeometryXML_cfi")
process.load("Geometry.TrackerNumberingBuilder.trackerNumberin... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
04c8ad9e3ea5ed64306e0f7feabe78aa34e0b4ea | 3f6d1ec52c10940633eb607b3104e75176898b2b | /Airport_map.py | af9dfa050a316d515974ccfea2cd3108460e71af | [] | no_license | beast252/Geopy_Project | 6c03b1c81c2e7d0d2f357d5327119d1da8ec42d2 | 6a23d2c6f1476ced807f15539e747d6e047e509b | refs/heads/master | 2022-11-28T20:23:57.438172 | 2020-08-08T20:44:46 | 2020-08-08T20:44:46 | 286,115,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | import folium,pandas
data=pandas.read_excel(r"practice\MAP with Marker\Airports.xlsx",sheet_name=0)
lat=list(data["LAT"])
lon=list(data["LON"])
name=list(data["name"])
elev=list(data["ELE"])
def gc(e=None):
if e>2000:
return "orange"
elif 1000<e<=2000:
return "Yellow"
else:
return "b... | [
"shahbaz252@gmail.com"
] | shahbaz252@gmail.com |
08a025d81f80adffff746115fa919a21066a3bdd | a0fb29f99a852089193e4cc9a11e7263dc3f8b5f | /mayan/apps/documents/serializers/document_file_serializers.py | e8d6fe80d51c51303bbc2cb48ba61d4ae2e18e07 | [
"Apache-2.0"
] | permissive | ikang9712/Mayan-EDMS | 0e22a944d63657cea59c78023b604a01a622b52a | d6e57e27a89805329fe0c5582caa8e17882d94e6 | refs/heads/master | 2023-07-28T19:41:55.269513 | 2021-09-07T14:16:14 | 2021-09-07T14:16:14 | 402,884,683 | 1 | 0 | NOASSERTION | 2021-09-03T20:00:09 | 2021-09-03T20:00:09 | null | UTF-8 | Python | false | false | 4,403 | py | from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
from mayan.apps.rest_api.relations import MultiKwargHyperlinkedIdentityField
from mayan.apps.rest_api.serializer_mixins import CreateOnlyFieldSerializerMixin
from ..literals import DOCUMENT_FILE_ACTION_PAGE_CHOICES
from ..... | [
"roberto.rosario@mayan-edms.com"
] | roberto.rosario@mayan-edms.com |
4861b022ba2c6aae45177eb2e777c633e7b9a4e0 | 98551d9622d78a5446e9b85e10059f83983d4c0f | /perspective transformation/perspective_transformation.py | 6ec8a28cc6a52738e8dbc80a79c39f6a55b48ee9 | [
"MIT"
] | permissive | magnusoy/OpenCV-Python-Applications | ab80f9f707c7822d3a57d4d4203af152e59f46f0 | b6e41564d6b8007194c57c99469759a334959a76 | refs/heads/master | 2020-06-21T07:52:04.414887 | 2019-07-17T13:31:05 | 2019-07-17T13:31:05 | 197,387,597 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | import cv2
import numpy as np
cap = cv2.VideoCapture(0)
while True:
_, frame = cap.read()
cv2.circle(frame, (155, 120), 5, (0, 0, 255), -1)
cv2.circle(frame, (480, 120), 5, (0, 0, 255), -1)
cv2.circle(frame, (20, 475), 5, (0, 0, 255), -1)
cv2.circle(frame, (620, 475), 5, (0, 0, 255)... | [
"noreply@github.com"
] | noreply@github.com |
e04dddf7f4e97b1500759adda3e6da7587b6f6a5 | a8c66b90f36abf754f50621667da801a41236b13 | /Past_experiments/rE1C5.py | 3b571d83093d28de3a4caa6d47d1767f854afd22 | [
"MIT"
] | permissive | abogdanova/FedMed | 41e840490a3ba4fa202aa67beccb80369d38737a | 72f238c31b6714c664e1b0e40204f9528f764182 | refs/heads/master | 2020-06-07T01:44:50.972247 | 2019-07-02T02:16:17 | 2019-07-02T02:16:17 | 192,894,857 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,925 | py | from __future__ import absolute_import, division, print_function
import collections
import numpy as np
from six.moves import range
import tensorflow as tf
import datetime
from tensorflow_federated import python as tff
from tensorflow.python.keras.optimizer_v2 import gradient_descent
from tensorflow.keras import layer... | [
"ann.bogdanova@gmail.com"
] | ann.bogdanova@gmail.com |
d8e667d947929f1eb27bf723f37981f6217dc494 | 9a6ebf960918d435329b80c3a408f52ed61a3794 | /tkinter buttons disappear.py | c541bb2f1ea88e1a3f77daeb3c5cbc76420ba403 | [] | no_license | AaronDweck/all-Python-folders | 88df40491ca9cecd62957443e9f496c85b1c3e24 | 6f6eb8196f808c49474cc03996669453a0d708b9 | refs/heads/master | 2020-06-17T18:06:26.374103 | 2019-07-09T13:04:09 | 2019-07-09T13:04:09 | 196,002,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | from tkinter import *
import tkinter
#Parent Window Setup
GoodChefWindow = Tk()
GoodChefWindow.title("Welcome To GoodChef")
GoodChefWindow.geometry("600x500")
#Pickup and Delivery buttons
def Delivery_Clicked():
Delivery=Tk()
Delivery.title("Delivery Options")
Delivery.geometry("400x333")
Remove_Button... | [
"aarondwewck24@gmail.com"
] | aarondwewck24@gmail.com |
e639966db87114852688431ee0406dfc09f5c642 | 5554c4f868d2ffb8a32b09e0f3d909f766863e8f | /compare.py | 72d94a499b60d62cb7ba1c0a585210ba7f11898c | [] | no_license | dappershark/Python | 23653f28b06d21b5ce205695fabfae253fc88162 | dc7a09530a857689306fdc3110a07ac6c530a181 | refs/heads/master | 2021-04-30T06:32:14.332314 | 2018-02-13T22:57:09 | 2018-02-13T22:57:09 | 121,446,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | list_one = ['celery','carrots','bread','milk']
list_two = ['celery','carrots','bread','cream']
if cmp(list_one, list_two) == 0:
print "they are identical"
else:
print "they are different" | [
"jkraut23@gmail.com"
] | jkraut23@gmail.com |
1b4f5130233bfe869593d7745f2af1e06c6777f6 | 2e22cb8d0bdc4d0069153d9e076d5c3b209656d1 | /setup.py | 3a71a7bd4f7e7b12f68c6c3dafe3b816ca15cff7 | [] | no_license | kevinastone/django-tastypie-extendedmodelresource | 58cb9511d43dd41150c7d827af5bdeb27b7d7afa | 11435ce156b9533e653d6539b1cc11bc1f8e6693 | refs/heads/master | 2021-01-18T04:09:39.020357 | 2012-09-22T05:32:08 | 2012-09-22T05:32:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
VERSION = '0.1'
if __name__ == '__main__':
setup(
name = 'django-tastypie-extendedmodelresource',
ve... | [
"dekked@gmail.com"
] | dekked@gmail.com |
e19f82bc501e847274acf50288bdcf61833f9a97 | 14b091f7401270c6013b23a1ee7b0171a671f4d4 | /analysis/plot.py | 80932e32c577eea8fae9bc71349193d09f80b1de | [] | no_license | kahartma/convvisual | ba54da08c97632af2c4db46357b023801818b5b8 | 38f863fc62f1b0fa3c2939ec5392701216270a2a | refs/heads/master | 2021-01-13T13:58:32.110719 | 2017-05-17T23:36:19 | 2017-05-17T23:36:19 | 72,898,677 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,972 | py | import numpy as np
from matplotlib import pyplot as plt
import seaborn as sns
def plot_max_filters(RF_Result):
print 'Max filters: ',RF_Result.max_filters
sns.heatmap(np.reshape(RF_Result.filters_means,(-1,1)).T,
linewidths=.5)
plt.xlabel('Filter #')
plt.ylabel('Activation Diff')
pl... | [
"hartmank@informatik.uni-freiburg.de"
] | hartmank@informatik.uni-freiburg.de |
62d1b2a127ef9cc87d40de2eff760aa05ff0559e | 4d7afda5dcbcdf22cbd7212bb6e5f79a8073ba3f | /practice/settings.py | 6d9d1034331af03ce79ebe8ebe1543120c9a5a26 | [] | no_license | stolinski/practice_sess | 95dc7af873cae852cd3240598da97b1ae4b94f3f | 30a810a9c29f318b3295d0f84062e21610a6f39a | refs/heads/master | 2016-09-06T04:07:02.528169 | 2012-10-31T23:44:53 | 2012-10-31T23:44:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,267 | py | # Django settings for practice project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'bboys... | [
"scott.tolinski@gmail.com"
] | scott.tolinski@gmail.com |
8413844a28afe2e1589c5c5a219518c048519b5d | 9e766ca6529d06d9863b3ecca91efd8a41b6729e | /packages/ml-api/api/config.py | 19c981460c22ac6030912867f16256c4a9028eeb | [] | no_license | workbench-a/market-analysis-api | 51dcdcda821ba993e2363427a8096f816e8f3953 | f2df0fb532e8dd36f3ed7443393261a86ca92bde | refs/heads/main | 2023-02-23T19:12:30.961691 | 2021-02-02T18:55:31 | 2021-02-02T18:55:31 | 335,311,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import os
import pathlib
PACKAGE_ROOT = pathlib.Path(__file__).resolve().parent.parent
UPLOAD_FOLDER = PACKAGE_ROOT / 'uploads'
class Config:
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = 'change-this-not-so-super-secure-key'
SERVER_PORT = 5000
UPLOAD_FOLDER = UPLOAD_FOLDER
c... | [
"covidtutoring@gmail.com"
] | covidtutoring@gmail.com |
318d389b6772abd1e5773d73bf64ff401cfbfb8d | 28f088b5356e66780c4bad204564bff92f910f02 | /src/python/pants/backend/docker/subsystems/dockerfile_parser_test.py | 533f9646fc8c9d82356bf8538864bf6be0332c24 | [
"Apache-2.0"
] | permissive | wonlay/pants | 57dcd99f82cdb2e37fcb7c563ec2bccf797ee7b7 | 53c66503b6898e83c9c9596e56cde5ad9ed6a0d3 | refs/heads/master | 2023-03-06T03:23:08.602817 | 2022-05-05T23:41:32 | 2022-05-05T23:41:32 | 24,695,709 | 0 | 0 | Apache-2.0 | 2023-03-01T11:59:58 | 2014-10-01T21:15:29 | Python | UTF-8 | Python | false | false | 6,330 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from textwrap import dedent
import pytest
from pants.backend.docker.subsystems.dockerfile_parser import DockerfileInfo, DockerfileInfoRequest
from pant... | [
"noreply@github.com"
] | noreply@github.com |
ce3a72884799fcfbb6b12ca458cc2c63fc7ba3c0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03556/s017006854.py | cf4f61bfaa4d7ae384a0da06d7afd45991633e75 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import numpy as np
for i in range(int(input()), 0, -1):
if np.sqrt(i) == int(np.sqrt(i)):
print(i)
exit() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
91f4fe915c35a7d755de669738daffdb63acb242 | b1beb0b3d2d118c55659ccccfa5fe0268ca2ddcd | /embeh_UI_01/__main__.py | 748bda401de9eb0c7ae2f918a8eec4d8e73e79b5 | [] | no_license | EmCeBeh/sxrLabUI | f26244fd9478911e69638c07c4656434dfbd9f38 | 0a304eb0f6fbe1a41aca8d707901d1f98d2f1aab | refs/heads/master | 2022-12-09T05:04:27.799398 | 2020-09-18T18:54:27 | 2020-09-18T18:54:27 | 296,705,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | """
A simple example that shows how to use the SVG synoptic widget
in a stand alone application.
"""
import os
from taurus.external.qt import Qt
from taurus.qt.qtgui.panel import TaurusDevicePanel
from svgsynoptic2.taurussynopticwidget import TaurusSynopticWidget
class ExampleSynopticWidget(TaurusSynopticWidget):
... | [
"schick@mbi-berlin.de"
] | schick@mbi-berlin.de |
04086738229dd2d39969d03303f668318e6dedf0 | 2e83e004d8a69a773d1e305152edd16e4ea35ed8 | /students/will_chang/lesson02/series.py | e6cf9c4ec58a4163c2c020e3259d4d2d3de9c856 | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_PY210 | 9b170efbab5efedaba8cf541e8fc42c5c8c0934d | 76224d0fb871d0bf0b838f3fccf01022edd70f82 | refs/heads/master | 2021-06-16T20:14:29.754453 | 2021-02-25T23:03:19 | 2021-02-25T23:03:19 | 161,077,720 | 19 | 182 | null | 2021-02-25T23:03:19 | 2018-12-09T20:18:25 | Python | UTF-8 | Python | false | false | 4,560 | py | def fibonnaci(n):
"""Runs recursive function to define the fibonnaci sequence: fibonnaci(n) = fibonnaci(n-2) + fibonnaci(n-1).
fibonnaci(0) = 0, index zero of the fibonacci sequence.
fibonnaci(1) = 1, index one of the fibonnaci sequence.
Input n will return the value of index n of the fibonnaci ... | [
"williamchang6@gmail.com"
] | williamchang6@gmail.com |
7d937f395ab5b78ac753c8814a1cb7c979b2eba4 | 597c131703a649716c0c0dbc37b78bd2cf08a936 | /insurance/models.py | dcb6c604312f41f561812de2fc0cf3cc02c83f36 | [] | no_license | knowledgecomputer2018/democrance | c74ec485e14261e548311940f22deccb9adace81 | f19542f7a2f58024b9260ef08014282660e38b55 | refs/heads/master | 2023-09-01T22:03:19.348201 | 2021-10-21T09:56:40 | 2021-10-21T09:56:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,488 | py | from django.conf import settings
from django.db import models
from django.dispatch import receiver
from django.utils.translation import gettext_lazy as _
class Policy(models.Model):
class PolicyTypes(models.IntegerChoices):
personal_accident = 1, 'personal-accident'
earthquake = 2
class State... | [
"seyed_50005@yahoo.com"
] | seyed_50005@yahoo.com |
0969f8421d8877931927f4fab53993da94758d03 | 8d32afa3803069b31f6561f4886d8bf687364e19 | /create_test_data.py | 323c2efc698ed68737a35bb655da7ab8b48a27e0 | [] | no_license | kajiczech/SaR-backend | 451ac01cf16d705ea38614a47a359b6c7aea051f | b62480c1daa61c4087323866f9b3bc870b4129a7 | refs/heads/master | 2022-01-23T10:56:54.706001 | 2019-12-03T13:16:25 | 2019-12-03T13:16:25 | 225,622,604 | 0 | 0 | null | 2022-01-06T22:40:04 | 2019-12-03T13:08:17 | Python | UTF-8 | Python | false | false | 46,645 | py | import django
django.setup()
from backend.apps.sar.models import *
from backend.core.models import *
import random
import time
random.seed(0)
ids = [
'b830071a-58e3-447f-a607-176e4ab2eff8',
'f0de5508-4fae-43bd-98e6-f064070ac307',
'1957f63a-35f8-4dc7-91da-03b426e356ac',
'719f3c79-dce7-4431-bde1-40b7bc... | [
"carl.cech@gmail.com"
] | carl.cech@gmail.com |
86badd0a7cf59be817815d2369a1c51919e6223b | 301757c4a64ad3184f83fee54638e6bc62f2e9bf | /urjtag_vjtag/altera_jtag.py | d121520e1bf58f983bbc9acb53816b7362a93b3d | [] | no_license | burt0927/ep2c5_vjtag | d0b81c0b91f8f2cbc7df2ca8abce4d8b156dcf30 | 32072889b0959c6ca6150eb613c188e7378c6e2d | refs/heads/master | 2021-06-17T13:37:08.520843 | 2017-04-25T05:17:48 | 2017-04-25T05:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,884 | py | #!/usr/bin/python
# This is the code demonstrating the enumeration of
# the SLD_NODEs (Virtual JTAG instances)
# connected to the SLD hub in Altera FPGA
# This PUBLIC DOMAIN code, written by Wojciech M. Zabolotny
# wzab<at>ise.pw.edu.pl 27.05.2009 is written basing
# on information provided by Altera in the "Virtual J... | [
"tom_verbeure@yahoo.com"
] | tom_verbeure@yahoo.com |
35c3ec42b0bed2b22113637433c0ccd79369c7e1 | b08b5932c92824b592ac15e73fdffc79a7da18f3 | /cauldron/cli/sync/comm.py | c66d111478c4100ba8854e7e5bc701845c5a0ee9 | [
"MIT"
] | permissive | mlund01/cauldron | 1de7426484d429703382c068c9704929e6c25bad | 9a51cad2e5d528727151e9b60fd5be6a37b70273 | refs/heads/master | 2021-07-10T20:35:14.376399 | 2017-09-30T13:53:31 | 2017-09-30T13:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,019 | py | import requests
from requests import Response as HttpResponse
from cauldron import environ
def assemble_url(
endpoint: str,
remote_connection: 'environ.RemoteConnection' = None
) -> str:
"""
Assembles a fully-resolved remote connection URL from the given endpoint
and remote_connection stru... | [
"swernst@gmail.com"
] | swernst@gmail.com |
2fe6904da2931f0c0af9091b946ef4de9424f574 | 377ec156e459f70ad32e625de2dde2672736dd06 | /Exercises/CorePythonExercises/ForMathModel.py | 527020f502bff6dbe72d50c9e9bb9988e7b05e69 | [] | no_license | tsonglew/learn-python | b657cc34d3e27993ec0dcce152796bea43224d4f | edbf0b5d24bf0e2d9ad7aa5811c7d3aa0a66b57c | refs/heads/master | 2021-06-13T13:46:35.199562 | 2017-04-14T16:57:38 | 2017-04-14T16:57:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | # -*- coding: utf-8 -*-
"""
例1 混合泳接力队的选拔
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5名候选人的百米成绩
甲 乙 丙 丁 戊
蝶泳 1'06"8 57"2 1'18" 1'10" 1'07"4
仰泳 1'15"6 1'06" 1'07"8 1'14"2 1'11"
蛙泳 1'27" 1'06"4 1'24"6 1'09"6 1'23"8
自由泳 5... | [
"417879751@qq.com"
] | 417879751@qq.com |
2236649aee2cff0e02d780b9a351ed862846cf88 | 0be7b93ac62743e9bdc6687bf1bb80f6eea58337 | /main.py | fcca7d81f056b3304d238bfc26cb4e6c25fd1efd | [] | no_license | darinabzhinaeva/Robinhood_Project | 75b78f94496bba4c504568e289468ac75a10e394 | 2bba8ce288c656a5fe96918556d515b37d955598 | refs/heads/master | 2020-08-26T18:07:52.547053 | 2019-10-23T17:25:05 | 2019-10-23T17:25:05 | 217,098,493 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | import pandas as pd
data=pd.read_csv('features_data.csv')
data.info()
data.describe()
import numpy as np
t = np.linspace(-6,6,21)
sin_t =np.sin(t)
cos_t=np.cos(t)
numbers = pd.DataFrame({'t':t, 'sin':sin_t,'cos':cos_t})
print(numbers)
print(numbers.shape)
print(numbers.columns)
print(data.columns)
print(numbers['t'][... | [
"55949653+darinabzhinaeva@users.noreply.github.com"
] | 55949653+darinabzhinaeva@users.noreply.github.com |
86155a349290cf6c917a884c9dc491913f343890 | d7e29a6a1cb9fbe7f4f2eeab61835843f3e6cfe5 | /colocalization/coloc/middle_of_transcript_ensembl.py | 48ec548adf275a8308f8d063a8cab093b5a14f89 | [] | no_license | MRCIEU/eczema_gwas_fu | a8b6dc9d213b13d89a5074d8470823181854a694 | 9c56ad47a827cd406002c1b00794e44a36442771 | refs/heads/master | 2022-04-26T18:17:41.315147 | 2020-04-29T13:29:30 | 2020-04-29T13:29:30 | 255,891,011 | 2 | 0 | null | 2020-04-15T11:07:07 | 2020-04-15T11:07:06 | null | UTF-8 | Python | false | false | 938 | py | #! /usr/bin/env python
import os, sys, re, gzip
from sys import argv
#Generate a file with gene names and the middle of their transcript tabulated based on GTF.
script, my_gtf = argv
processed = {}
with open (my_gtf) as proces_h:
for line in proces_h:
if line.startswith("#"):
pass
else:
line... | [
"noreply@github.com"
] | noreply@github.com |
febb703cae34fee61ca6cbe20df40e873d4c3d2c | 66e9753c5d0526b0dbde61e1a207a98293fc7e84 | /project3/minor/admin.py | 958bde426c78a066adb183ed6dd921bf835915c0 | [] | no_license | Trilokesh-Singh/Project-Approval | f68d928985f964f05ace129e531fe5d8a7d16b16 | 04715882bac314d1833ebbc6b9f436faf9ef5735 | refs/heads/master | 2023-03-31T07:19:26.826288 | 2021-03-29T08:33:11 | 2021-03-29T08:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from django.contrib import admin
# Register your models here.
from .models import FacultyInfo, GroupInfo, Project, HeadOfDepartment, ClassCoordinator
admin.site.register(FacultyInfo)
admin.site.register(GroupInfo)
admin.site.register(Project)
admin.site.register(HeadOfDepartment)
admin.site.register(ClassCoordinator)... | [
"msdvksrt007@gmail.com"
] | msdvksrt007@gmail.com |
93244d8cdbb0be2c26bfa3f0d77093b711a94f3b | de986f16972961477a31451418e94c9ca11df8e1 | /balanceproject/balanceproj/balanceproj/asgi.py | 289c7dde03303dadb9bd8b3e18fc9e949d66236e | [] | no_license | ysheokorea/5.balanceAPP-project | c55e39401f8ce5b452786f0f265fd4b201b59f33 | bda3cf57a9d7c85b77be4bb3518d63430777e83f | refs/heads/main | 2023-08-21T23:40:09.192902 | 2021-10-13T08:52:02 | 2021-10-13T08:52:02 | 416,646,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for balanceproj project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"ys.heo.korea@gmail.com"
] | ys.heo.korea@gmail.com |
e446b4b4c3699733ad5922d435466930f6cfb35b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02573/s534378621.py | 53efd867886d93f3b9f58471c95fd08487dbc066 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # import sys
# input = sys.stdin.readline()
n,m = map(int, input().split())
ab = []
for i in range(m):
a,b = map(int, input().split())
ab.append([a,b])
class UnionFind:
def __init__(self,N):
self.parent = [i for i in range(N)]
self._size = [1] * N
self.count = 0
def root(self,a):
if self.parent... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2f2580af3e6b347cac1c59f041da72e745bea421 | 8fe440deb4eb66d2fcb222a7c43680dc516394c1 | /src/api/bkuser_core/categories/utils.py | ce77a59d4005ae077ec7e093e24c60a0a708802c | [
"MIT"
] | permissive | robert871126/bk-user | 780e163db76a8a997ed94a1a83389fa4f81ad6a4 | 8c633e0a3821beb839ed120c4514c5733e675862 | refs/heads/master | 2023-08-20T11:05:46.317044 | 2021-10-22T08:44:06 | 2021-10-22T08:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,313 | py | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic... | [
"bluesedenyu@gmail.com"
] | bluesedenyu@gmail.com |
d55d4368aace6d6c12536f997588091edc6c3620 | 34954d498ed6ec0f74e4fe43d0ab85aa2220179b | /clientes/models.py | 6a1394a245387920de866676519ec3509ae8e325 | [] | no_license | spektion/ABD_trab | b4985247250982aa0799bce3d0eda601cbdb6f0f | 7fb84c6763f6ccff12999165b88646fe1b041421 | refs/heads/master | 2021-01-10T03:44:25.624753 | 2015-05-19T21:48:56 | 2015-05-19T21:48:56 | 35,971,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from django.db import models as md
class cliente(md.Model):
"""docstring for cliente"""
nome = md.CharField(max_length=100, unique=True)
cod_cliente = md.AutoField(primary_key=True)
class categoria(md.Model):
"""docstring for categoria"""
cliente = md.ForeignKey(cliente, verbose_name="the relate... | [
"vitor.filipe@me.com"
] | vitor.filipe@me.com |
8348c1ef6bf74078986bbe932cf0607094123add | f7f58aa4ea9ec78b20532971ddebe1e3d985dc23 | /practica11/demo/apps/home/migrations/0001_initial.py | 8e2f4d3cff30b21377b2d4c6bd257cf6e022d8e4 | [] | no_license | guille1194/Django-Practices | 10b9ff4817d41cb086e198c07bb82aee201fb049 | 738cbfdd4a12089d93cd68a0cde8653c490e7fd9 | refs/heads/master | 2021-03-08T19:30:11.229921 | 2016-05-23T05:38:53 | 2016-05-23T05:38:53 | 59,388,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations ... | [
"guille1194@gmail.com"
] | guille1194@gmail.com |
3ebefbc9b60ad81934e28f13f29921c1cfa7800e | 01db9c9cdf94b694336f246cfde17fb68ee868dc | /lib/python2.7/site-packages/ZEO/zrpc/client.py | 6be2ec1c1d551f8f8afe0e9790c982b95a32d890 | [] | no_license | kislovm/findburo | 6f15e69eb7774ecae2afd9f3d686fe27f4324f2c | 7d9a9ea23919c5fe21b694caf77943c7e6b26c57 | refs/heads/master | 2021-01-20T06:56:48.888578 | 2013-03-23T17:16:01 | 2013-03-23T17:16:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,315 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | [
"bibi@ubuntu.(none)"
] | bibi@ubuntu.(none) |
5d4727d556a9dce18bf74b59babe37e24c529207 | d3a06f50cb6c6e0cbb76b838a67d8cf78d224553 | /doodledashboard/datafeeds/open_weather.py | 3dd97442c4e459d23cf5229bedff96b9a8fd55cb | [
"MIT"
] | permissive | SketchingDev/Doodle-Dashboard | 0e7d3c2f677ab29da569f7cf95663c99729ce696 | 28ed478d8927b8e71db48a521493919a9c0b5797 | refs/heads/master | 2021-06-04T08:49:52.081807 | 2020-02-11T13:00:37 | 2020-02-11T13:00:37 | 108,029,959 | 1 | 2 | MIT | 2020-02-10T08:26:05 | 2017-10-23T19:33:52 | Python | UTF-8 | Python | false | false | 2,982 | py | import pyowm
from doodledashboard.component import MissingRequiredOptionException, DataFeedCreator
from doodledashboard.datafeeds.datafeed import DataFeed, Message
from doodledashboard.secrets_store import SecretNotFound
class GeoLocationOption:
def __init__(self, latitude, longitude):
self._latitude = l... | [
"noreply@github.com"
] | noreply@github.com |
c56475f999209ddcc5acd67b98181bebce6941ba | 7a5dd0ba809a554fe60c8cbc5889702e58734832 | /app/__init__.py | 24b31b04d2fd9844664b763c14389799455ce171 | [] | no_license | HXhlx/Flask-SQLAlchemy-Pandas | 52728f732f4f8f054d7e6f5b0fac2da32bc5bb15 | 8874028e1b75ff8f75f08baacfc12ddcd54f3550 | refs/heads/master | 2023-02-26T11:41:42.192799 | 2021-02-06T03:52:17 | 2021-02-06T03:52:17 | 336,449,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from flask import Flask
from app.auth import auth
from app.home import home
from app.models import db
app = Flask(__name__)
# app.config['SQLALCHEMY_DATABASE_URI'] = 'mssql+pyodbc://@localhost/Demo?driver=ODBC Driver 17 for SQL Server;Trusted_Connection=yes'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///Demo.db'... | [
"1367557521@qq.com"
] | 1367557521@qq.com |
ee2bac294d8c3a3d04f7cdffc0aefa46ab6b56d5 | 4167617c8593ef1c8a0f5a2074bf98d12bad26a8 | /nmt/attention_model.py | 39e3db49358693813721470329f023a8a953ddf9 | [] | no_license | jiexiao111/hexo_jiexiao | d9a0cfb0dd97196a1c535a1e3cdcd016d0b8b78f | 0672b0b98949029694fa7e233407571b6fc7ee56 | refs/heads/master | 2022-02-16T17:00:51.428262 | 2019-08-03T08:05:12 | 2019-08-03T08:05:12 | 103,015,899 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | # coding=utf-8
from . import model
class AttentionModel(model.Model):
pass
| [
"j00295211@notesmail.huawei.com"
] | j00295211@notesmail.huawei.com |
0c3da8caa97d18e39b6ed16eb0ebda577c7fd86d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03779/s602875516.py | 150fe00d7563cd71c275ea0eeaaf1a0809dbd342 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | x=int(input())
t=0
jump=0
for i in range(1,10**9):
t+=1
jump+=i
if jump>=x:
print(t)
exit() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d5ced2623ec8aca35deef0f512b8d0d8cc41e6db | 3ae1422b3fea2cf95b70534bd620522e4ea05296 | /thumbsup_detection/detection_images.py | 06690986b132574dc37cdb6a27218ee20b9a9f4a | [] | no_license | matheus220/object_detection | 412474f75b781bbf728216754fbaec92d67540b4 | 615f6bdce9ef73115d3658b72be24c89f706f4c6 | refs/heads/master | 2020-05-25T03:40:31.429761 | 2019-05-21T12:22:44 | 2019-05-21T12:22:44 | 187,601,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | import numpy as np
import os
import glob
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
import cv2
import time
from collections import defaultdict
from io import StringIO
from matplotlib import pyplot as plt
from PIL import Image
from utils import label_map_util
from... | [
"matheus.220@hotmail.com"
] | matheus.220@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.