blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b5fa9d7d5f9d64a8aa54a63c57b1dbe5ddb945a | 0c0ba361a75cfb57b0325291b52256e83c470708 | /ex_cliente_encaps.py | fac2fb54519886995dac34730baade44fb3a00ce | [] | no_license | Anna-Beatriz/lp2 | 3c598b76e76e0b7f0256d6658bb9d22f69b9a417 | 30404fc6418b92d45e866c938ddebde110fd74d3 | refs/heads/master | 2021-02-19T00:10:33.039071 | 2020-04-24T20:36:30 | 2020-04-24T20:36:30 | 245,255,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | class Cliente:
def __init__(self, nome, cpf, senha):
self.nome = nome
self.__cpf = cpf
self.__senha = senha
def get_cpf(self):
return self.__cpf
def get_senha(self):
return self.__senha
def set_cpf(self, cpf):
self.__cpf = cpf
class ContaBancaria:
... | [
"annabeatriz.ms1@gmail.com"
] | annabeatriz.ms1@gmail.com |
cf4b67c14d7a1b9856437ecb6e313e98a2c15a74 | 30c23852ae41a7808e2a202280e973ff1a4bbe2b | /OP/op.py | 9217ca651fa7b0366b9ae90cc341da5a83482f7b | [] | no_license | rohe/oidc-oob-federation | 050ce05a1bd373795bc74c63287edeccbf1c3129 | 53517decc43f4d58aa7b825feb8c97704de8822f | refs/heads/master | 2020-03-18T04:04:10.383031 | 2018-06-07T12:15:55 | 2018-06-07T12:15:55 | 134,267,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,153 | py | import logging
import cherrypy
from cryptojwt import as_bytes
from oidcmsg.oauth2 import is_error_message
from oidcmsg.oauth2 import AuthorizationRequest
from oidcendpoint.sdb import AuthnEvent
logger = logging.getLogger(__name__)
class OpenIDProvider(object):
def __init__(self, config, endpoint_context):
... | [
"roland@catalogix.se"
] | roland@catalogix.se |
96f097ae2cef0885482cea0cfb0b9c9056bdbf45 | ab4f2ec4b595aec2a0133740858f1e15bc833b19 | /3_Using_Python_to_access_web_data/week5_web_services_XML/week5_assignment_parse_XML.py | 4d25a4650fce83813995908eb8743b95d21a19a8 | [] | no_license | dexterka/coursera_files | 4bcfc838affe499be6ff3fa8d1ae3f9b9cb7f4df | c550db6161c833c6c47f0214530129ffe50ae8d8 | refs/heads/master | 2021-07-14T10:59:58.528414 | 2021-06-23T08:59:56 | 2021-06-23T08:59:56 | 143,457,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # Env setup
import urllib.request
import xml.etree.ElementTree as ET
# Temp vars
total = 0
# User's input
url_name = input('Enter location: ')
html_request = urllib.request.Request(url_name, headers={'User-Agent': 'Mozilla/5.0'})
html_read = urllib.request.urlopen(html_request).read()
# Parse XML data
x... | [
"martina.chlebcova@gmail.com"
] | martina.chlebcova@gmail.com |
6db33e398073ce4c522be21e5b50608e08cd4dc3 | 3b59a41f57045c585f8f1de5db7febcde1ce2525 | /Instancias/serializers.py | 5420db2007b93896fb153aa6940e3948b2fe1d4f | [] | no_license | elioclimaco/SIJWS | 1a82d2f00a309cdce0722dd3c3b2669d6466cec9 | f035416325eef8b5b00b3ce2a81517700b39a635 | refs/heads/master | 2020-05-26T07:22:10.721399 | 2014-10-20T20:48:24 | 2014-10-20T20:48:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # -*- coding: utf-8 -*-
__author__ = 'Elio Clímaco'
from rest_framework import serializers
from .models import *
#
# Órganos Jurisdiccionales
#
class JuzgadoSerializer(serializers.ModelSerializer):
id = serializers.Field(source='c_instancia')
text = serializers.Field(source='x_nom_instancia')
class Met... | [
"elioclimaco@gmail.com"
] | elioclimaco@gmail.com |
f50fbf295e7c63db3184c8adcae01d3500afaf12 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /tools/grit/grit/format/policy_templates/writers/ios_plist_writer_unittest.py | 0fdecb1d1ef33336fc052bf6c32b3b97d6f1800a | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"MIT"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 6,923 | py | #!/usr/bin/env python
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Unit tests for grit.format.policy_templates.writers.ios_plist_writer'''
import base64
import functools
import os
import plistl... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
dcbfd84e1b63c8cda9bfef935a96be991c62e73f | 4540049184beed3da8a88b56726d3cc2d56ed283 | /ppo_baseline_v0.06/map_and_plan_agent/slam.py | 96defb1fae970c4d5873887bc8fd4716bd829c20 | [
"MIT"
] | permissive | Jiankai-Sun/habitat-challenge | 30c4ed46053892e3700d1970795ed287d54fe60e | 83a325eebb0632596c9d6c25bbc5f13bb464ed53 | refs/heads/master | 2022-05-05T04:53:41.521735 | 2019-05-17T13:47:56 | 2019-05-17T13:47:56 | 179,702,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,085 | py | import numpy as np, imageio
import os
import depth_utils as du
import rotation_utils as ru
import skimage
import matplotlib.pyplot as plt
import subprocess as sp
from astar_planner import ASTAR_Planner
def subplot(plt, Y_X, sz_y_sz_x=(10, 10)):
Y, X = Y_X
sz_y, sz_x = sz_y_sz_x
plt.rcParams['figure.figsiz... | [
"sjkai1@126.com"
] | sjkai1@126.com |
17182f5cae79f76332304a2abd4a7f9acf5a1442 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/layout/ternary/aaxis/_showticksuffix.py | 2a1b061ea73eecf6d8c074e3d8662b7cb67f3748 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 533 | py | import _plotly_utils.basevalidators
class ShowticksuffixValidator(
_plotly_utils.basevalidators.EnumeratedValidator
):
def __init__(
self,
plotly_name='showticksuffix',
parent_name='layout.ternary.aaxis',
**kwargs
):
super(ShowticksuffixValidator, self).__init__(
... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
2bb5e9136817920f0a118765a28bf286b13b41be | c86277d74266b90b64774bc924b041009d697b2e | /source/nextdoor/wsgi.py | 2ae744a10344445edcd3ffe9adf052710f84605a | [] | no_license | rakeshsukla53/facebook-for-neighbours | dcd0c564530404e5415fa08b184398d10b1170ba | 3d6c1430ab4f7ac8f668626c82705552da9f6566 | refs/heads/master | 2021-01-10T04:54:00.962831 | 2015-12-25T17:32:45 | 2015-12-25T17:32:45 | 46,942,279 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for nextdoor project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"rakesh.sukla53@gmail.com"
] | rakesh.sukla53@gmail.com |
73c1cb0d4aa4a86afefeb3fd74e8241edec6456a | 7620893c7d253a4d8c6f5aef2cfda6c72b777d49 | /src/Camera/DisplayImage.py | 8d1b1ee14891406071b40da9d5bf7f304a4aa7ad | [] | no_license | garridoH/cameraGUI | cacc549a9da0bcb6c3b9be04ef9783c653300118 | cb6ac1d54dd8651da974ed058990c8212d145415 | refs/heads/master | 2021-01-17T22:38:53.398306 | 2012-06-12T20:41:44 | 2012-06-12T20:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | '''
Adapted from online sources, including http://www.blog.pythonlibrary.org/2010/03/26/creating-a-simple-photo-viewer-with-wxpython/
'''
import wx
class displayImage(wx.App):
def __init__(self, redirect=False):
wx.App.__init__(self, redirect)
self.frame = wx.Frame(None, title='Prosilica Viewer... | [
"raedwards@gmail.com"
] | raedwards@gmail.com |
e9b8cede519e8eecea7841170591be6130caa3c8 | 7032fd0d1652cc1bec1bff053af4f486a5704cd5 | /old/ptex_2.3.2/conanfile.py | e984816bc3004d486cfd3d4515007495bbaaa826 | [] | no_license | MercenariesEngineering/conan_recipes | c8f11ddb3bd3eee048dfd476cdba1ef84b85af5e | 514007facbd1777799d17d041fc34dffef61eff8 | refs/heads/master | 2023-07-09T08:10:35.941112 | 2023-04-19T13:36:38 | 2023-04-19T13:36:38 | 169,575,224 | 7 | 1 | null | 2023-04-19T14:11:35 | 2019-02-07T13:23:02 | C++ | UTF-8 | Python | false | false | 3,008 | py | from conans import ConanFile, CMake, tools
import os
class Ptex(ConanFile):
name = "ptex"
version = "2.3.2"
license = "Apache 2.0"
description = "Per-Face Texture Mapping for Production Rendering"
url = "https://github.com/wdas/ptex"
settings = "os", "compiler", "build_type", "arch"
options... | [
"tdelame@gmail.com"
] | tdelame@gmail.com |
357153da0f198a8a44507ece863aaf188e86fb44 | 1b046f4f959fe9841c788a0b4e1016f17e267018 | /game_stats.py | 800f4fc0c7da4ee3b205d32c8a56559648208c70 | [] | no_license | belieffsy/practice-alien_invasion | 7973480d588fbd6ae4c6065da0b7869e1baa5025 | 0846fea2b65395742cb9de6a54639f5131085372 | refs/heads/master | 2020-04-06T21:11:09.281912 | 2018-11-30T03:39:20 | 2018-11-30T03:39:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py |
class GameStats():
"""跟踪游戏的统计信息"""
def __init__(self,ai_settings):
"""初始化统计信息"""
self.ai_settings = ai_settings
self.reset_stats()
#让游戏处于非活动状态
self.game_active = False
#在任何情况下都不应该重置最高得分
self.read_high_score()
def reset_stats(self):
"""初始化游戏运行... | [
"noreply@github.com"
] | belieffsy.noreply@github.com |
7ce5908f731cec9669227dd9adcc97767bac29df | 990a225852967395a164fd4ac9b55381b5e2f08c | /renu/wsgi.py | 04d2bab4841bc5e573212a9df240bea76532b4dd | [] | no_license | ueslialmeida/renu | aadc144548256c44fe7925b9015dce20e462a9bb | 9a8c8c3bf777dacf3a5efa6585d0065d11067313 | refs/heads/master | 2022-07-22T23:39:44.276708 | 2020-05-20T01:42:25 | 2020-05-20T01:42:25 | 265,418,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for renu project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"uesli.ti@gmail.com"
] | uesli.ti@gmail.com |
156797f1ef94e9e97124eebc01ce7344852072e0 | 8aa6d88176833b67633fb3aa9818433ec7d2802f | /app/views.py | c55b111ae896dbfd308c5ac2337e19acce1e6666 | [] | no_license | pasupulatitheja/scikey1 | 29da300c79e498654dfeb4eda30c6bc90d2c5343 | b41ed25256be0517cfb5efe6ba99076069e11376 | refs/heads/main | 2023-08-04T20:36:27.738668 | 2021-09-15T11:43:04 | 2021-09-15T11:43:04 | 406,736,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect
from pymongo.auth import authenticate
from django.contrib.auth import authenticate, login, logout
from .forms import LoginForm,CreateUserForm,DocumentForm
from .decorators import allowed_users, unauthenticated_user
f... | [
"theja.pasupulati@gmail.com"
] | theja.pasupulati@gmail.com |
fbf6f96f0e5b073a6b0de12bbcf2ef221caed4b3 | a7341c7e161e3fa60e6bb8c0351b13b2a155a680 | /PythonFiles/ucf_msd.py | ccfe6737bf7c51de09678163c9ff0b5650b6d35d | [] | no_license | vksh224/RecommendationSystem | fd483e353a1de288129b6fa767e4e734a8fab7ad | 5653f213e72071dd0c046f39161abcad8451b4d6 | refs/heads/master | 2021-05-14T12:37:49.369592 | 2018-01-05T18:58:30 | 2018-01-05T18:58:30 | 116,415,025 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from surprise import KNNBasic
from surprise import Dataset
from surprise import evaluate, print_perf
from surprise import Reader
import os
#load data from a file
file_path = os.path.expanduser('restaurant_ratings.txt')
reader = Reader(line_format='user item rating timestamp', sep='\t')
data = Dataset.load_from_file(fil... | [
"vjsah27@gmail.com"
] | vjsah27@gmail.com |
a3638dc9c57862fe4f551550ed3bfb9f97e9d20f | 32821d668a3d3d8cbcbaea355fb1cead4acb4253 | /apps/users/migrations/0002_banner_emailverifyrecord.py | 846e6a4b09698eb7f6623fbfbdf9e5171d2044e2 | [] | no_license | FigGG16/P2PLoan | 7d6c09534da26126bbf7d490cc4accce3d0184c3 | 8ed1bac0102aca9b979dfa4ae9e14c49fb022799 | refs/heads/master | 2021-01-02T15:55:50.540243 | 2020-05-14T09:27:32 | 2020-05-14T09:27:32 | 239,690,998 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | # Generated by Django 2.2.6 on 2019-10-26 13:26
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Banner',
fields=[
... | [
"pub_fei_xiang2017@163.com"
] | pub_fei_xiang2017@163.com |
7a78bab1a7c668a9b26dfe834a4c903b5273b3e3 | d833e1643f799d8979ae385992be9f3012af23a5 | /examples/c60_find_submit.py | 848dd0dd9378059f4770fd68b09de99329f047ff | [
"BSD-3-Clause"
] | permissive | ZhouHUB/simdb | 05906505d549cbf584dcdcc91c9cebe95c2d349b | 33fa21ddcc683e1618dfb337f5f928363c902a1e | refs/heads/master | 2020-04-01T22:32:36.665260 | 2016-04-15T19:20:46 | 2016-04-15T19:20:46 | 36,950,426 | 0 | 0 | null | 2018-07-24T19:56:44 | 2015-06-05T19:06:15 | Python | UTF-8 | Python | false | false | 1,051 | py | __author__ = 'christopher'
import ase
from simdb.insert import *
from simdb.search import *
from pyiid.utils import build_sphere_np
from copy import deepcopy as dc
target_config, = find_atomic_config_document(name='C60 DFT')
parent_atoms = target_config.file_payload[-1]
# find the combined Potential Energy Surface (P... | [
"cjwright4242@gmail.com"
] | cjwright4242@gmail.com |
e2886ddba4caf4503f5d0cf9cf97f91e5c76cd44 | 3d0bb8d94a69237bf3c6ba6b2ccfdd0bc9cc162c | /addons/asterisk/agi-bin/states/get_fast_dial_destination_from_ibs.py | 4521e2804bce47ffccda4b3c9723ff47c347a06f | [] | no_license | ha8sh/IBSng | 69727a7c5476ecb8efa45b7393ffe51de37a8a10 | 596aa468f8264ab0129431e3ede6cc1282b1ebbd | refs/heads/main | 2023-08-25T18:21:28.081153 | 2021-10-02T05:03:52 | 2021-10-02T05:03:52 | 412,687,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | import xmlrpclib
import ibs_agi
from lib import request
from lib.error import *
def init():
ibs_agi.getStateMachine().registerState("GET_FAST_DIAL_DESTINATION_FROM_IBS",getFastDialIndexFromIBS)
def getFastDialIndexFromIBS(_index):
"""
get fast dial index destination from ibs
may raise an IBSEx... | [
"hassanshaikhi@gmail.com"
] | hassanshaikhi@gmail.com |
555a9901a0b0cebf2a2cc73a7838cc735101a711 | 9b371bf5710042b09f5f3745b1289821d9f01448 | /Sequential_Sealed_Auction/strategies.py | 2715aa38c71228015a546e1c41983360ceb05e9a | [] | no_license | 15rsirvin/Computational-Economics | 4b505f4ddead78cb3007ce958cb2d9faa08a5d25 | d292ad627eea2ce595b8d934ee40609da338c3a1 | refs/heads/master | 2021-02-06T05:09:08.173130 | 2020-04-30T02:59:57 | 2020-04-30T02:59:57 | 243,880,497 | 0 | 0 | null | 2020-04-25T01:31:00 | 2020-02-29T00:46:43 | Python | UTF-8 | Python | false | false | 335 | py | from random import uniform, seed
from math import sqrt
import numpy
import math
class Strategy:
def get_valuation(self, bid):
return bid
class Percent_V_Strategy(Strategy):
def __init__(self, percent):
self.percent = percent
def get_bid(self, valuation):
return self.percent * valu... | [
"irvinr@reed.edu"
] | irvinr@reed.edu |
6b51914d0ededa34e2f7f91d51b1d1e0903779f5 | 66383f31f2c2a2c976add955f743c81a35d5e457 | /django_petproject/blog/utils.py | 30bf0f910c5840995af015196613e2f08741c34e | [] | no_license | KrutP/petproject | 30dcca922513fcf6aecb88ca1230cb4314bddb60 | a4c44807b6bd748039b238cb5cd5f539bef07ecc | refs/heads/main | 2023-08-15T03:51:58.101520 | 2021-09-23T05:10:19 | 2021-09-23T05:10:19 | 408,832,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from django.db.models import Count
from .models import *
menu = [{'title': "About", 'url_name': 'about'},
{'title': "Add page", 'url_name': 'add_page'},
{'title': "Contact", 'url_name': 'contact'},
]
class DataMixin:
paginate_by = 10
def get_user_context(self, **kwargs):
context = k... | [
"pavel565123@gmail.com"
] | pavel565123@gmail.com |
bbacf865691cc8c816c5b21413555b0e174a45fc | 82c657c6d55241969147d3dc6efce18b6272d6f8 | /AdaBoost/adboost.py | 31ed31f27df12625c160fd0c5534db0890069f24 | [] | no_license | wuyanzhang/Machine-learning | 73893582fd84dcc4ebe8adedb1214cfa9f8b9ff7 | 6a8abf4762cdda4c3b1a5f579151155c5b6a8828 | refs/heads/master | 2020-05-25T05:13:26.666934 | 2019-06-16T02:41:26 | 2019-06-16T02:41:26 | 187,644,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,947 | py | import numpy as np
import matplotlib.pyplot as plt
# 函数说明:创建单层决策树的数据集
def loadSimpleData():
datMat = np.mat([[1., 2.1],
[1.5, 1.6],
[1.3, 1.],
[1., 1.],
[2., 1.]])
classLabels = [1.0, 1.0, -1.0, -1.0, 1.0]
retur... | [
"178172535@qq.com"
] | 178172535@qq.com |
3199220b5d3f26c2b9848fbeaf6d987c1f2e0c37 | f6f2665598646c35f63aed9ae77bf3b8158bb81b | /DecoratorPattern/simple_func_decorator.py | 4c8495494a0a305a51d3f3f32dfaf66426ff2c8e | [] | no_license | Stuming/designpattern | 30a83185d1b04a2e67c9e7243a2e21ff5f9810a6 | 5a58e99e8a2ff1173e608edd26b1b41254940424 | refs/heads/master | 2020-04-01T20:11:50.751189 | 2016-11-23T14:55:14 | 2016-11-23T14:55:14 | 68,522,482 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
def deco(func):
def _deco():
print("-------Start-------")
func()
print("-------Done-------")
return 0
return _deco()
@deco
def process1():
print("This is processs1.")
@deco
def process2():
print("This is processs2.")
if __name_... | [
"1361046649@qq.com"
] | 1361046649@qq.com |
36fc09b70887ca5efb8fd3fbe506ff6a7780b731 | 4fb8f91b5d276fb9c9eb4e8a902fc1b89c99d318 | /les_1_task_1.py | 3acb2c8140e11264d46d8f66970f7a9ca8f86253 | [] | no_license | YakovBoiev/AlgPython | 876be85eb0d127176a118292bb0d6eada662b15b | a6001b540600c7eae19a35e4d45c06e67f50b3b4 | refs/heads/main | 2023-04-10T17:59:46.526245 | 2021-04-15T19:13:40 | 2021-04-15T19:13:40 | 358,362,152 | 0 | 0 | null | 2021-04-22T17:47:18 | 2021-04-15T18:54:22 | Python | UTF-8 | Python | false | false | 523 | py | """
Найти сумму и произведение цифр трехзначного числа, которое вводит пользователь.
https://drive.google.com/file/d/1pFXRM_lzv1wZ8hM0hx0sCNVnDCsogzZa/view?usp=sharing
"""
print('Введите трехзначное число')
a = int(input())
a = abs(a)
h = a // 100
t = a % 100 // 10
u = a % 10
s = h + t + u
m = h * t * u
... | [
"noreply@github.com"
] | YakovBoiev.noreply@github.com |
dee08669b1d02ebe27c6c89f6953a3892a7f80ac | bd8a9afcf75a0a4048bffdfd37089d4e44299301 | /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi | d5e44d8de6462d315d8f2caf33ad03d6f3716250 | [
"Apache-2.0",
"MIT"
] | permissive | deanvlue/meantest | f0c836692903e83c205bc3934c9f81170ff6f5c3 | 5c4a0e039085cd8216202f18f49fba64b93dbc0d | refs/heads/master | 2016-09-05T23:52:23.269296 | 2015-04-24T04:44:27 | 2015-04-24T04:44:27 | 34,538,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,385 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 49,
"host_arch": "ia32",
"icu_small": "false... | [
"munoz.josecarlos@gmail.com"
] | munoz.josecarlos@gmail.com |
f50f764b1502409cb63f656caee642bd0a491879 | dc9650ad04552a1fae325209868ad60fa8301abb | /BotTelegram/migrations/0002_auto_20161010_1545.py | 7ab3390bcaf122e887383cf99ef75d136f3ca619 | [
"Apache-2.0"
] | permissive | manuggz/memes_telegram_bot | a284ae11f99650ea3feb61c58aeccaa47d25b53b | 2ed73aac099923d08c89616ec35c965204cac119 | refs/heads/master | 2021-03-27T20:27:25.624851 | 2017-02-23T01:23:03 | 2017-02-23T01:23:03 | 70,193,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-10-10 19:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('BotTelegram', '0001_initial'),
]
operations = [
... | [
"manuelggonzalezm@gmail.com"
] | manuelggonzalezm@gmail.com |
ba2b047f942cd1f395b5a28b8a0a65fd974e1b9b | 87de2ede5daf6138100e87a817d1625545a384ac | /selfdrive/thermald/thermald.py | 04f21911a42b9fdb1e3fb5c1b6f2033b90aa3557 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | DS1SQM/OPKR084test_20210505 | 26acbe9d381753cbe72cb0271c163b588343918a | 76fc12bff1472b8bbe62206cb8ae014f4c2fb969 | refs/heads/main | 2023-04-12T18:19:39.391330 | 2021-05-02T07:51:00 | 2021-05-02T07:51:00 | 364,593,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,482 | py | #!/usr/bin/env python3
import datetime
import os
import time
from pathlib import Path
from typing import Dict, Optional, Tuple
import psutil
from smbus2 import SMBus
import cereal.messaging as messaging
from cereal import log
from common.filter_simple import FirstOrderFilter
from common.numpy_fast import clip, interp... | [
""
] | |
e5f6e54c65a454755c25967480e4273cf37e6070 | 50339c2df5be1dc9812c0d986872b877b5904340 | /data_import/liusinuo/sql_time.py | 33332860c879dbef4bceb58475d4d44124bd0773 | [] | no_license | hashuang/managesys | affcbe16ee54f1dd1bfb4a20f73118c071afee51 | 67c9c6a395f61842083ae16bb59410c77ba44d21 | refs/heads/master | 2020-12-25T11:52:33.844031 | 2017-08-02T02:40:24 | 2017-08-02T02:40:24 | 75,186,487 | 0 | 0 | null | 2016-11-30T12:50:14 | 2016-11-30T12:50:14 | null | UTF-8 | Python | false | false | 12,475 | py | '''
2016-10-21
对应 space.py 代码
控制 空间分析 的 sql 语句
'''
from . import mysql
conn_mysql=mysql.MySQL();
import datetime
#=====================【 SQL 语 句 查 询 】==================================
def time_sql(sql_date1,sql_date2,sql_ctry_prov_cty,tradeNo_list,space_name,aspect_name,dateChoose,aspect):
print("\n 时间:",sql_da... | [
"787666673@qq.com"
] | 787666673@qq.com |
ec36939630b71f42dfc1ceb9a3c56d293db45181 | 95c1ee50b12ba1735eaddfecf39861a1b43f3e66 | /maoyan_spider.py | 74680c748e820a4530cc2afe93032dc12013ad92 | [] | no_license | JonLuGitHub/spider_maoyan | 988232f27e64c18dff0eb112bd7ce835a0b2e2c7 | 538474818b1349cc0f547f563874231c784dbbc8 | refs/heads/master | 2020-03-24T10:00:21.496508 | 2018-08-22T08:22:35 | 2018-08-22T08:22:35 | 142,644,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | # -*- coding: utf-8 -*-
import json
import requests
from requests.exceptions import RequestException
import re
import time
def get_one_page(url):
"""下载数据"""
try:
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 \
(KHTML, like Gecko) Chrome/58.0.3029... | [
"lq_hut@126.com"
] | lq_hut@126.com |
051d9853c1a80138b3692ffc5620491001b13b3e | 84166b6d374529f01532194ec7729ab2c7f24ae8 | /login.py | 87d15a93df8e5bc11707c833d1aebca1ebd8baba | [] | no_license | sbalagudas/unicorn | c592a908220300b5e7fbc2a602dab56984664e0c | 2c3208b70e6275cbbaf54a1d37f39abf99195950 | refs/heads/master | 2020-04-16T01:45:12.258498 | 2017-12-26T14:19:02 | 2017-12-26T14:19:02 | 83,402,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,848 | py | #!/usr/bin/python
import wx
from DBOperation import DBOperation as dbo
import time
import common as cmm
import fonts
import Main
import enDecryption as ed
class logInPanel(wx.Panel):
def __init__(self,
parent,
ID,
pos=wx.DefaultPosition,
size=(600... | [
"371962715@qq.com"
] | 371962715@qq.com |
5adc121c249783a3723d7534db002449e0dd665f | 48bdf7214235a2d60787fa8c5312f0461f688dde | /src/test_01.py | 7f4e802f6ec4b9f4f09ebb16784db702f558eb91 | [] | no_license | hechangfei1123/FaceRecognition | 148b16a21b781bc915c131f92341012e54f4f0d3 | 6010f5c68aa7d4043dc256f19f3d53e192683e8d | refs/heads/master | 2020-03-28T12:43:48.807655 | 2018-11-11T03:48:47 | 2018-11-11T03:48:47 | 148,328,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,780 | py | from PIL import Image
from PIL import ImageDraw
# im = Image.open(r"E:\BaiduNetdiskDownload\CelebA\Img\img_align_celeba\000011.jpg")
# imDraw = ImageDraw.Draw(im)
# imDraw.ellipse((68,111,69,112),fill="red")
# im.show(im)
import utils
import numpy as np
import os
import numpy.random as npr
import cv2
anno_file = r"E:... | [
"569594060@qq.com"
] | 569594060@qq.com |
5c373349176db66ba2f7617dfca9fa2c18ee4d78 | 94724578994ab1438dcefb51b7ef4d8570da5d4c | /calibre/draveness.recipe | 361ce64106650ddf8643557d49369ebfec882386 | [] | no_license | PegasusWang/collection_python | 6648d83203634abf44fd42c0b37b0bf7cc406d8f | 9ef019a737a0817860d3184924c67a0833bd1252 | refs/heads/master | 2023-09-01T23:15:39.813635 | 2023-08-24T06:46:12 | 2023-08-24T06:46:12 | 43,693,872 | 130 | 90 | null | 2021-04-26T15:12:55 | 2015-10-05T15:28:15 | JavaScript | UTF-8 | Python | false | false | 2,028 | recipe | #!/usr/bin/python
# encoding: utf-8
from calibre.web.feeds.recipes import BasicNewsRecipe # 引入 Recipe 基础类
"""
教程:
- https://bookfere.com/tools#calibre
- https://www.jianshu.com/p/0bcb92509309
- https://snowdreams1006.github.io/myGitbook/advance/export.html
命令:
ebook-convert draveness.recipe draveness.mobi --output-... | [
"291374108@qq.com"
] | 291374108@qq.com |
3490b1bb4e1c131229f6c34d0a5be01c481e3222 | f7dd967f82902ecfcd4825a579bbd9d1f05d8fbd | /TwitterTrends/urls.py | 93e0ef3a2eec347d7870b478c1cf38b448105789 | [] | no_license | Pravin-Rathod/TwitterTrends | 1f55d7134a400dd9b2c137a4af4b43b93d2681d1 | 54112039b0ff23cc19820ae3bce5940aaf135d17 | refs/heads/master | 2022-09-15T20:23:07.908981 | 2022-07-24T18:31:02 | 2022-07-24T18:31:02 | 517,396,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | """TwitterTrends URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.0/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... | [
"43312928+Pravin-Rathod@users.noreply.github.com"
] | 43312928+Pravin-Rathod@users.noreply.github.com |
8988be20a22fb57d4719c31b7d397fab4a3163b1 | 7adecd15af359d19a611ce24b3ae8765b7af2a46 | /reset_db.py | b3e0e8d8e3eae2acf91da93a40e1f8e255bd9183 | [] | no_license | jkrovitz/MovieRatingSite | 83996ec6856a31a04d59cadc89196d9819d022ed | bc9f1930595d578268e754078d4d374a0fbcedc5 | refs/heads/master | 2020-04-05T14:22:50.341159 | 2019-09-13T22:55:48 | 2019-09-13T22:55:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | print('Resetting database...')
from server import db
# Reset the database
db.db.drop_all()
# Create the tables
db.db.create_all()
print('Database reset: success!')
| [
"jkrovitz@macalester.edu"
] | jkrovitz@macalester.edu |
048dd77d7a67072915ca12a4be0d9bb4cc71a927 | 5d68003304258314eab41444bc27be45921787cb | /aws_token_refresh.py | 14da8c89abbbf2428c9cb7f308107eb5abe85798 | [] | no_license | manas86/aws-auto-token-refresh | b921b19070e921cb058bcc0b28dffd2081ab0e13 | 9e04b35de3c531fa60fa3126b7ea1041c1cb781b | refs/heads/master | 2022-11-12T22:24:49.755310 | 2020-07-05T21:40:37 | 2020-07-05T21:40:37 | 277,386,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | import boto3
from botocore.credentials import RefreshableCredentials
from botocore.session import get_session
from boto3 import Session
aws_region="eu-west-1"
sts_client = boto3.client("sts", region_name=aws_region)
role_name="dummy-role-1"
session_name="Session_name"
def _refresh():
" Refresh tokens by calling a... | [
"manassamantaray@Manass-MacBook-Air.local"
] | manassamantaray@Manass-MacBook-Air.local |
0c3d842557c9376a3e85eb48319735d211b4170d | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/Naca/main.py | 5645aca52186859c629e2d833d00d1e431940170 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 432 | py | T = int(input());
data = [];
for i in range(T) :
data.append(int(input()));
for i in range(T) :
if (data[i] == 0) :
print("Case #" + str(i + 1) + ": INSOMNIA");
else :
digits = [];
sumN = data[i];
while (len(digits) < 10) :
tmp = sumN;
while (tmp > 0) :
if (tmp % 10 not in digits) :
digits.ap... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
4a8c1adfb8aa3073a222cc3288e94790b685ca45 | 15dffdb8fa0cf1782cbc8c18cd5d1c7c31aa07a8 | /learners/maml_learner.py | d176869af5d2c89efe41aaff525c0d684d93230e | [] | no_license | jinxu06/binary-pixelcnn | c5becd70ea440727dc6868ea27c236ca07c84215 | d2e0ae24b6da9482a042a6f2ef1acf9aa24e1c92 | refs/heads/master | 2020-03-22T12:53:50.769396 | 2018-07-30T02:00:59 | 2018-07-30T02:00:59 | 140,069,397 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,217 | py | import sys
import random
import numpy as np
import tensorflow as tf
from learners.learner import Learner
from blocks.optimizers import adam_updates
import matplotlib.pyplot as plt
plt.style.use("ggplot")
from blocks.plots import sort_x
# from blocks.plots import visualize_func
# from data.dataset import Dataset
clas... | [
"aaron.jin.xu@gmail.com"
] | aaron.jin.xu@gmail.com |
44c07e30ca5523015f24e844a3fdda7a79daddbf | 9fbb987c920cafaaf3a0c5aa8b8ac2a8abfaa887 | /Eat/eat_mt/yts/html_get.py | c990abd4ce4b9781e8ecd83e6c00ceb34b94560d | [] | no_license | lwd1132438569/Data_baby | 11f82a488bad86d46780b4a9df3de6b7c325ea27 | 94a068302555635325b43608b0e3e955e0196864 | refs/heads/master | 2021-01-23T07:37:51.833744 | 2017-09-18T09:47:37 | 2017-09-18T09:47:37 | 86,433,465 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | # -*- coding: utf-8 -*-
import requests
import time
import random
import sys
# from imp import reload
#
# reload(sys)
# sys.setdefaultencoding('utf-8')
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36',
'Accept':'*/*',
'A... | [
"1132438569@qq.com"
] | 1132438569@qq.com |
92c1bf03bc0279955a5ec39a71b9ec7617f7296f | 27e8bb104c3b102d433f910561ffa80461c4887a | /spamNN.py | 5aee9f09dc3c692da0f5d70cb3b67adcea0a473a | [] | no_license | entradajuan/spam2 | fdcaa3aa2f2ddeff31ef7b9bc7ae64e5bb10ffd5 | 993f4042397910c75506e1c4fc318cb4ce98a70e | refs/heads/master | 2023-05-31T03:32:31.820147 | 2021-06-06T18:59:55 | 2021-06-06T18:59:55 | 373,096,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,559 | py | %tensorflow_version 2.x
import tensorflow as tf
#from tf.keras.models import Sequential
#from tf.keras.layers import Dense
import os
import io
import numpy as np
tf.__version__
#path_to_zip = tf.keras.utils.get_file("smsspamcollection.zip",
# origin="https://archive.ics.uci.edu/ml/machine-learning-da... | [
"entradajuan@yahoo.es"
] | entradajuan@yahoo.es |
eec8efa198fdd6ce3ad3070fc8265762caf05d1c | 58141d7fc37854efad4ad64c74891a12908192ed | /tests/test_storage2.py | b09918d1388d18d6fb7fb62fa653799306d5de22 | [] | no_license | stanleylio/fishie | b028a93b2093f59a8ceee4f78b55a91bb1f69506 | 0685045c07e4105934d713a0fd58c4bc28821ed6 | refs/heads/master | 2022-08-14T13:08:55.548830 | 2022-07-29T01:32:28 | 2022-07-29T01:32:28 | 30,433,819 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import unittest,sys
from os.path import expanduser
sys.path.append(expanduser('~'))
from node.storage.storage2 import storage
class TestStorage2(unittest.TestCase):
def test_read_latest_non_null(self):
s = storage()
self.assertTrue(s.read_latest_non_null('node-008', 'ReceptionTime', 'idx'))
... | [
"stanleylio@gmail.com"
] | stanleylio@gmail.com |
1fdebe6ed9f7b1888ae11d36cdcefdc246e740f5 | 543b0bcb81b16674c81be082824adca4d8ac509a | /apps/urls.py | a36a6454ca4fd7f22b2812aa610b1b12488eb2e9 | [] | no_license | alxpolyakov/test-apps | a85d2a3828cdde056c3320be6f4a9c0fb52bb170 | 254a535c278ae34ec0e1d177eec2fac84b12daef | refs/heads/master | 2020-09-15T12:24:59.963107 | 2019-11-25T04:39:03 | 2019-11-25T04:39:03 | 223,444,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | """apps URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-based vi... | [
"alx.polyakov@gmail.com"
] | alx.polyakov@gmail.com |
0ce8d2ab48fab5b95445e205d1b406f8dbfdb76e | 0ba1393b6c472000ccd16297915843377fb16338 | /venv/space_ship.py | 85bc8ee70126af92a544cee64f742a2a749dc44c | [] | no_license | Gautham116006/Alien_Invasion1 | 5fa8d6916b2a119d736b4cdfe48983f85dced728 | e3f47db90b1e99e2f1b69b3c948a992ede1f756d | refs/heads/master | 2022-12-11T14:15:07.358962 | 2020-09-11T18:06:53 | 2020-09-11T18:06:53 | 294,343,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | import pygame
class Ship():
def __init__(self,game_settings,screen):
# initialize the ship and set it's starting position
self.screen = screen
self.game_settings = game_settings
#load ship image and get its rectangle
self.image = pygame.image.load("Include\images\space_ship... | [
"63862992+Gautham116006@users.noreply.github.com"
] | 63862992+Gautham116006@users.noreply.github.com |
d155f26c15d744cdfd16276623f1b50bcc247c91 | ab9151dc5f98feaff5ad8971f3ace43f4b1feb09 | /buildbad.py | 3523be2fb5182eb8d1ddd4d4dca1bc48403b6821 | [] | no_license | evangambit/Codex | c889d5d9dd601d09d9941e28ae6a08ab33205451 | 004609f0bf31add72d3101efe7fd47544342cf83 | refs/heads/master | 2022-12-31T19:21:03.545226 | 2020-10-24T20:03:46 | 2020-10-24T20:03:46 | 257,159,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | import json, sqlite3
conn = sqlite3.connect('new.db')
c = conn.cursor()
c.execute('SELECT json FROM comments')
F = {}
n = 100000
for it in range(n):
j = json.loads(c.fetchone()[0])
for token in j['tokens'].split(' '):
F[token] = F.get(token, 0) + 1
badkeys = []
for token in F:
F[token] /= n
if F[token]... | [
"morganfredding@gmail.com"
] | morganfredding@gmail.com |
b03da968a1665b5afb8ffa3fc0d43782537fb80b | 8669dde5ed094cc597b2d7e1768cfba94a432d50 | /lib_sarscov2.py | 3a27c1f5bda74eb200cdbbffc90215511b2337f4 | [
"MIT"
] | permissive | Campeanu/COVID-19 | 22bc69a81b24cbed5afe75db715f316fb5f6494e | ee2442b24e30406d57646e6387ca7a970f9cd162 | refs/heads/master | 2021-05-26T22:07:35.435709 | 2020-04-09T09:51:08 | 2020-04-09T09:51:08 | 254,173,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | # Asn or Asp / B AAU, AAC; GAU, GAC
# Gln or Glu / Z CAA, CAG; GAA, GAG
# START AUG
translation_table = """Ala / A GCU, GCC, GCA, GCG
Ile / I AUU, AUC, AUA
Arg / R CGU, CGC, CGA, CGG; AGA, AGG
Leu / L CUU, CUC, CUA, CUG; UUA, UUG
Asn / N AAU, AAC
Lys / K AAA, AAG
Asp / D GAU, GAC
Met / M AUG
Phe / F UUU, UUC
Cys / C... | [
"campeanu.it@yahoo.com"
] | campeanu.it@yahoo.com |
883d9dc211bbc3f3eed188ffcb37ceb8e89ab2b4 | 60bd2e1cce82fc831f029def9c507e3cde2e2bc5 | /Vezba1/Zadatak8.py | e7ce8940ccffc4bd9c19caada5705e991ea4f42b | [] | no_license | AndjelaStevanovic/GIS_programiranje_domaci | 427b2910b848d1404f31dd050b693f539fca971f | bcff3a6d9df0388a049920ed6f74181580f4fc16 | refs/heads/master | 2021-05-13T11:44:34.004144 | 2018-01-11T18:31:21 | 2018-01-11T18:31:21 | 117,137,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | #Zadatak 8 - Vezba 1
# -*- coding: utf-8 -*-
import random
broj_pogadjanja = 0
print('Zdravo! Kako se zoves?')
ime = raw_input()
broj = random.randint(0, 100)
while broj_pogadjanja < 10:
print('Uneti broj:')
pogadjanje = input()
pogadjanje = int(pogadjanje)
broj_pogadjanja = broj_pogadjanja + 1
if p... | [
"andjelastevanovic@ymail.com"
] | andjelastevanovic@ymail.com |
7f06aa3882b4fc1e0e5f3f8bc66e51bcb16b8038 | 5730e8d500a65992bb21094ffed26e21ccc7c0fd | /augment_dnase_pipeline_outputs/metadata/aggregate_ataqc.py | 2963e434753969d97146b33d89c1eb86a8843a62 | [] | no_license | kundajelab/atlas_resources | 35f1df4c09356d7256a6667700b88020396d5642 | 89bcde11921526b9956be48bf367617db4974d31 | refs/heads/master | 2021-10-25T07:01:30.127405 | 2021-10-25T00:55:25 | 2021-10-25T00:55:25 | 160,546,622 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,942 | py | import argparse
import collections
import json
import pdb
def parse_args():
parser=argparse.ArgumentParser(description="aggregate ataqc metrics for all samples in a single report")
parser.add_argument("--ataqc_files",default="/oak/stanford/groups/akundaje/projects/atlas/dnase_processed/aggregate_outputs/qc... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
59344cfbae1c333672ea43675c4735706ee9ee76 | 3089066acea6edac48ad1fd4a48c958cc7fc8049 | /src/training/mlp.py | 4e80ecedc29891163fe1abcd5cc0095aac2b6eae | [] | no_license | kevinkoste/university-load-forecasting | a527e52e009916fe7d7b230cbc39d379c45b6b0e | 0498a3886582a96f89348498bc412655c7b0bfe2 | refs/heads/main | 2023-08-03T09:24:27.108126 | 2021-01-21T04:04:22 | 2021-01-21T04:04:22 | 171,188,408 | 6 | 2 | null | 2023-07-06T21:27:06 | 2019-02-18T00:21:27 | Python | UTF-8 | Python | false | false | 2,573 | py | import numpy as np
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
def DayAheadMLP(endog, exog, date,
lags=range(1,169),
hoursAhead=38,
epochs=200,
... | [
"kevin.koste@yale.edu"
] | kevin.koste@yale.edu |
018d19b621c159f89c4517aa9df136159ebc55b2 | 997645d6bb9c404f2f195328f29afa0eaa3c55b4 | /profiling/run_profile.py | 9dc53e081ca3be9c68699ab3a3bd28528130a0b7 | [
"MIT"
] | permissive | piccolo-orm/piccolo | e43ea13c05c53ac00d9d20474c53ad2c49a40e80 | 83ea66323ef5a8e4010ea3ee19f34163bc881ace | refs/heads/master | 2023-08-08T19:31:37.783445 | 2023-07-28T06:19:35 | 2023-07-28T06:19:35 | 155,008,334 | 1,139 | 90 | MIT | 2023-09-08T16:54:45 | 2018-10-27T20:53:26 | Python | UTF-8 | Python | false | false | 829 | py | import asyncio
from viztracer import VizTracer
from piccolo.columns.column_types import Varchar
from piccolo.engine.postgres import PostgresEngine
from piccolo.table import Table
DB = PostgresEngine(config={"database": "piccolo_profile"})
class Band(Table, db=DB):
name = Varchar()
async def setup():
awai... | [
"noreply@github.com"
] | piccolo-orm.noreply@github.com |
f8de786a0f3c8b0ba99882fe7407050b11316930 | 55b57d64ec547869835334318f3059fbb507558c | /Fred2/Data/pssms/tepitopepan/mat/DRB5_0111_9.py | fd2bb78b87e863070732f2fef744ff47908e3877 | [
"BSD-3-Clause"
] | permissive | FRED-2/Fred2 | 9845f6678d4011cb746c7a5a6f283eea68077a02 | b3e54c8c4ed12b780b61f74672e9667245a7bb78 | refs/heads/master | 2021-07-12T05:05:54.515427 | 2020-05-25T06:56:25 | 2020-05-25T06:56:25 | 16,275,425 | 42 | 35 | null | 2021-07-07T12:05:11 | 2014-01-27T10:08:11 | Python | UTF-8 | Python | false | false | 2,095 | py | DRB5_0111_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.004754, 'I': -0.99525, 'H': -999.0, 'K': -999.0, 'M': -0.99525, 'L': -0.99525, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.004754, 'V': -0.99525, 'Y': -0.004754}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, '... | [
"schubert@informatik.uni-tuebingen.de"
] | schubert@informatik.uni-tuebingen.de |
ce3577da94f38a365616e8374df42eec5835d6cf | 48c038e381aa0e276ee08d7bd93479522597b561 | /JiewuOnline/settings.py | 86ee150b1e68be4da612b060ff05ddfbb0e969a8 | [] | no_license | niuniu20160626/JiewuOnline | 263afbbbb98225264e387fd77e4b12d429377101 | 51fa260df654a8e59cf694fc1c8b095b217093a0 | refs/heads/master | 2023-05-04T22:15:41.962693 | 2021-05-30T07:56:44 | 2021-05-30T07:56:44 | 341,800,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,704 | py | """
Django settings for JiewuOnline project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import o... | [
"1714885031@qq.com"
] | 1714885031@qq.com |
c5c7c9fa51eaaec171b3b32e2cb18f6d63866966 | 8a82a83655f118208692e55d7804d9fa480ad4b6 | /book/apress/Beginning.Python.Visualization.Crafting.Visual.Transformation.Scripts/Chapter04/src/read_ini.py | bf4374d1f2c6de9b410eea7d36a061bd6b2c38a7 | [] | no_license | xenron/sandbox-da-python | 0814159da9a91923e4b66c5e40057e381f765e96 | ab8f1c0d57fdc6006355f613012b84165068c315 | refs/heads/master | 2020-04-12T05:41:33.182110 | 2016-12-14T22:57:33 | 2016-12-14T22:57:33 | 60,324,979 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # read an INI (config) file
import ConfigParser
read_opts=ConfigParser.ConfigParser()
read_opts.read('../data/options.ini')
# print parameters and values
for section in read_opts.sections():
print "[%s]" % section
for param in read_opts.items(section):
print param
| [
"xenron@outlook.com"
] | xenron@outlook.com |
db3596b8480850b3718c2c9d08671fd49db81831 | 0543faeee9f493260e8cbd8a9155a96a8cbb0df2 | /main_app/migrations/0018_profile.py | 9f188815d07ced745fd5193ceebf36edd8813264 | [] | no_license | tanveerahmad1517/Treasuregram | 134853f298628c161ebe741864cdb581ce80db8f | 797e0ff1460eb50d90aa385f6fb25990ed7766fa | refs/heads/master | 2020-03-10T13:58:43.912795 | 2018-04-13T14:32:31 | 2018-04-13T14:32:31 | 129,413,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-02-13 13:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0017_remove_treasure_date'),
]
operations = [
migrations.CreateMo... | [
"tanveerobjects@gmail.com"
] | tanveerobjects@gmail.com |
85ee743b57fa57b5f097d7c44528ca83bfbafbc4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03250/s433353636.py | 15a9e1142e1ac04131cec60d4882b0b4d8b16ff5 | [] | 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 | 70 | py | a=list(map(int,input().split()))
a=sorted(a)
print(a[-1]*10+a[1]+a[0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e8a8f4d0229e4d340b624c0df984722ccbca9816 | f62e0baeb105997af682c3d22384c99545ccdf15 | /python_projects/love_calculator.py | 45902f9ca7c3f7dc3d3ec4ada80c7fcd1d3b6282 | [] | no_license | Brad-ONeill/Website | 88d85a4299aef79bc0fbc926295703c37d1473e9 | 64e3314b9a1851fdeb705b798573b6c670af8385 | refs/heads/master | 2023-04-29T13:20:38.470382 | 2023-04-18T20:32:25 | 2023-04-18T20:32:25 | 184,084,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | print("Welcome to the Love Calculator!")
name1 = input("What is your name? \n")
name2 = input("What is their name? \n")
combined_string = name1 + name2
names = combined_string.lower()
t = names.count("t")
r = names.count("r")
u = names.count("u")
e = names.count("e")
true = t + r + u + e
l = names.count("l")
o = na... | [
"49478841+Brad-ONeill@users.noreply.github.com"
] | 49478841+Brad-ONeill@users.noreply.github.com |
b69e51e5659b5d82c82d2fd63ceaef1eb4b4624b | 3da9b0ebd7f4378e1f0a0fe60b943e041d760719 | /simplemooc/courses/migrations/0007_auto_20211026_1450.py | 45d89225d95d2be94b6d1fc008887de946c7efda | [] | no_license | gabriel-valenga/Python3NaWebComDjangoUdemy | b9f5d3f5127eff0247f5a89ff82a04c441dd7332 | 381c0dda61ef7984154686fcd1858b9eb9655a18 | refs/heads/master | 2023-08-21T04:38:52.119456 | 2021-10-28T21:30:05 | 2021-10-28T21:30:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Generated by Django 3.2.8 on 2021-10-26 17:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0006_remove_course_about'),
]
operations = [
migrations.RemoveField(
model_name='course',
name='descripti... | [
"gabrielvalengalemos@yahoo.com"
] | gabrielvalengalemos@yahoo.com |
58950f55ea5a2b7fae6b323bfc181434c02aaaee | 305d25e1d2084761e889057077706b1ba3f9122d | /nmigen_boards/arty_z7.py | ba432b642cc9588c44c7e5037b12b600668f5a6b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | nicolas-robin/nmigen-boards | d7d8fe29d788f8b1fdcf8da0cf7202a1f0fa741a | 6fc91b491214b80c56b2b2d031da1a50c7254c56 | refs/heads/master | 2020-12-10T15:43:43.358008 | 2020-01-17T21:54:48 | 2020-01-17T21:54:48 | 233,314,458 | 0 | 0 | NOASSERTION | 2020-01-12T00:01:57 | 2020-01-12T00:01:57 | null | UTF-8 | Python | false | false | 5,359 | py | import os
import subprocess
from nmigen.build import *
from nmigen.vendor.xilinx_7series import *
from .resources import *
__all__ = ["ArtyZ720Platform"]
class ArtyZ720Platform(Xilinx7SeriesPlatform):
device = "xc7z020"
package = "clg400"
speed = "1"
default_clk = "clk125"
resour... | [
"whitequark@whitequark.org"
] | whitequark@whitequark.org |
1c1c810b779e1a8b626c59a69872d8d026f44862 | f153cbfc77cfe4ace1eadf8f1cf4c7d17248c228 | /minified.py | 07ff2f5d7332a922de6ad9c50ee645e5c16ad32b | [] | no_license | aadityarengarajan/POS-System | 1846a84576920bc925da9969fc5e4b074164e330 | dbe43d8496aca42a5a5a2af451eb8ff1c0e3b107 | refs/heads/main | 2023-08-03T08:45:55.439442 | 2021-03-30T19:19:19 | 2021-03-30T19:19:19 | 405,992,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,685 | py | from pickle import dump,load
from random import random
from datetime import datetime as dt
from os import listdir
if "items.dat" not in listdir():
with open("items.dat","wb"):
pass
if "sales.dat" not in listdir():
with open("sales.dat","wb"):
pass
def read_items():
objects = []
with... | [
"aadit.xo@gmail.com"
] | aadit.xo@gmail.com |
37c3ab3420c73bbf6ec48d698d397aa157c521b6 | 4013b4b4e513a6ecccaa88fbda7d8c427a28b481 | /openemory/accounts/migrations/0015_add_data_archive.py | 2a46effd658b541276e18167710b8556882b8b5e | [
"Apache-2.0"
] | permissive | alexBLR/OpenEmory | 1d4922a986c1e872bd9dd2656abb030bdc43d0a7 | d5306c7b60003d7681340786d115c78fc6f34661 | refs/heads/master | 2020-12-25T10:10:13.138691 | 2015-08-12T15:21:54 | 2015-08-12T15:21:54 | 40,536,243 | 0 | 0 | null | 2015-08-11T10:35:44 | 2015-08-11T10:35:44 | null | UTF-8 | Python | false | false | 12,931 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from django.contrib.flatpages.models import FlatPage, Site
# This a acutally a FlatPage data migration but there was not good place to put it outer than here.
class Migration(DataMigration)... | [
"athom09@emory.edu"
] | athom09@emory.edu |
084ccfc5ffcd100f2f98fb3e75c4f6b676d5d3f8 | 09d4c110161520c2ed8bab9f19e2a07f23d66b46 | /wordvector/migrations/0002_auto_20161031_0252.py | 0f0e11ca6dc638d5054b1f4a4c29c7e564bcdd13 | [] | no_license | lunrongchen/SWR | 0565df4d62b4198d9dabcc7de760f78e9ff43c7e | fd5cc45e1351b20f7b09ea1c82ddb3bc14930575 | refs/heads/master | 2021-01-12T14:09:08.125125 | 2016-11-07T16:51:24 | 2016-11-07T16:51:24 | 69,759,201 | 1 | 0 | null | 2016-11-05T17:12:50 | 2016-10-01T19:34:08 | Python | UTF-8 | Python | false | false | 928 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wordvector', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='WordVectorFile',
fields... | [
"lunrongchen@163.com"
] | lunrongchen@163.com |
5aef6dd981da9ff255c7995ba9489e29d410523f | 034abf3ad29001e01e3c3ca8106647ac9992e5db | /rock-paper-scissor.py | 7880d66590f1442ae8ea694a8021cfe95fe4465a | [] | no_license | gunjeet210/Rock-Paper-Scissors | b1b0c3db0fd6caaf5354924f06f6ce0e35951d86 | a07cbc2eaf6dfd494a8e4d8933bb4023a1914c73 | refs/heads/master | 2021-01-08T15:59:33.132018 | 2020-02-21T07:13:41 | 2020-02-21T07:13:41 | 242,073,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | import random, time
print("Let us play RPS game")
while True:
print("Enter choice \n1. Rock\n2. Paper\n3. Scissor")
choice=int(input("User turn: "))
while choice > 3 or choice < 1:
choice=int(input("enter valid input: "))
if choice == 1:
choice_name = "Rock"
elif choice == 2:
... | [
"noreply@github.com"
] | gunjeet210.noreply@github.com |
1998f40d200a554665e76178c4a6f06101755f94 | 74d11e4000d99e43dc4c53c93ac59782ebbe1802 | /portrait/deeplab/model_test.py | c586ccd0ea5c6626ab32562bec21e041fdf8b7cc | [
"Apache-2.0"
] | permissive | hiepgaf/portrait | f450971e8881e9bcd1f386966651a9a01c1d11ce | 930a167cbb368cdc2cf906b06b70c035d87e6938 | refs/heads/master | 2020-03-19T00:14:06.916160 | 2018-05-14T05:57:29 | 2018-05-14T05:57:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | """Tests for encoder"""
import numpy as np
import tensorflow as tf
from model import deeplab_v3_plus_model
def create_test_inputs(batch, height, width, channels):
"""Create mock Images """
if None in [batch, height, width, channels]:
return tf.placeholder(tf.float32, (batch, height, width, channels))
else:... | [
"tdat.nguyen93@gmail.com"
] | tdat.nguyen93@gmail.com |
1a1c0596441aa2d97790c1857301e569d6e85134 | c5ba9519273bf864c91f3564c8a63e4a7fd729fb | /xitongguanli/xitongdemo/user/urls.py | cf3e991f0e16acb7b8133ed48f43a42353760154 | [] | no_license | tainsir/xitongguanli | b318e8c8b708192f79106ec9d4f64804e4875e3e | 8c619bf8c5e5f665bc1e0d1b9d8700eb1249f00c | refs/heads/master | 2020-08-03T12:16:24.656311 | 2019-09-30T05:08:59 | 2019-09-30T05:08:59 | 211,750,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | from django.conf.urls import url
from . import views
app_name = "user"
urlpatterns = [
# ------------------- 用户登陆url ----------------------------
url(r'^login/$', views.login, name='login'), # 用户登陆
url(r'^login_out/$', views.login_out, name="login_out"), # 用户退出
# ------------------- 系统首页的url ----... | [
"noreply@github.com"
] | tainsir.noreply@github.com |
983dcd62c2be5d68fa2354efe39fd201726c82be | 469aaddd0e22041e7fc4ec12553258f1d7a2092c | /0x10-python-network_1/5-hbtn_header.py | e29c2e76d7349c26d94f79763ae0be09d51145c1 | [] | no_license | youmnaz/holbertonschool-python | 80dba488d9e62cfcd260e349f3b036299cec4b17 | e6de933f7d5501ea2393729157fd82e776a4a357 | refs/heads/master | 2023-01-13T20:31:59.258910 | 2020-11-20T08:30:09 | 2020-11-20T08:30:09 | 291,691,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | #!/usr/bin/python3
"""
5-hbtn_header.py
"""
import requests
from sys import argv
if __name__ == "__main__":
r = requests.get(argv[1])
print(r.headers.get("X-Request-Id"))
| [
"youmna.zogheib@gmail.com"
] | youmna.zogheib@gmail.com |
d054580c3aeb4fc7763d77e069fc957b1ef93a28 | 60ea9e854d224a1c0034c8ef85ef2736eb38c1a6 | /bayes/debug.py | 5350506b44683984914efabba23a8959fe3dba42 | [] | no_license | SunnyWiki/PY-bayesian | f926d500d47470e6899620da3cae0668b230efb7 | 5007f40ec7035e9670ec2f8f649d8d3d4f009e6c | refs/heads/master | 2021-01-22T23:48:19.141358 | 2017-03-22T06:58:46 | 2017-03-22T06:58:46 | 85,670,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,164 | py | #-*- coding: UTF-8 -*-
import os
import jieba
import numpy as np
from sklearn.naive_bayes import MultinomialNB
# from sklearn import datasets
# iris = datasets.load_iris()
# from sklearn.naive_bayes import GaussianNB
# gnb = GaussianNB()
# y_pred = gnb.fit(iris.data, iris.target).predict(iris.data)
# print("Number o... | [
"1935508351@qq.com"
] | 1935508351@qq.com |
fbce3d599059e069660f8427732a950cda10ff90 | 27046ec5d4d644ca099e4e6b3e711a9fe1f210bb | /part_2_train.py | a2197dfa0ad5367098150ab440e595fc0f32affd | [] | no_license | RobertFielding/fraud-pandas-plotly | d5d9405f967fbbef00164aefe7a96912c296ea58 | 2d8eaaa3f7014a9de8e6c7c085b506dcfcb5fab5 | refs/heads/master | 2023-03-25T19:14:12.238219 | 2021-03-14T13:23:31 | 2021-03-14T13:23:31 | 342,892,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import roc_curve, roc_auc_score
from sklearn.model_selection import train_test_split
import numpy as np
data_filename = 'creditcard.csv'
df = pd.read_csv(data_filename)
tr... | [
"robert.fielding@hotmail.co.uk"
] | robert.fielding@hotmail.co.uk |
c655ec659eb34d34fc137ef60ca4dd3dcf62b5ec | 0f39e47e2538c8469b558fdf14e06781d8b390a3 | /playground/detection/coco/yolof/yolof.res101.C5.1x/config.py | 78088d11fc7eaea988b0ee97f3e5cd6d73fad74c | [
"Apache-2.0",
"MIT"
] | permissive | baodijun/YOLOF | d1bdaee4de22acc0290edc5951943739c1971e88 | 905209bfd58d1ed67908cfa0685de05a89d3fd6c | refs/heads/main | 2023-03-25T05:03:11.998150 | 2021-03-19T15:03:01 | 2021-03-19T15:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,790 | py | from cvpods.configs.base_detection_config import BaseDetectionConfig
_config_dict = dict(
MODEL=dict(
# Backbone NAME: "build_resnet_backbone"
RESNETS=dict(DEPTH=101, OUT_FEATURES=["res5"]),
ANCHOR_GENERATOR=dict(
SIZES=[[32, 64, 128, 256, 512]],
ASPECT_RATIOS=[[1.0]... | [
"qiang.chen@nlpr.ia.ac.cn"
] | qiang.chen@nlpr.ia.ac.cn |
3091099fee02328c00c32ce85434caa6c2918a00 | d2fdd6b10b0467913971d1408a9a4053f0be9ffb | /datahub/investment/project/migrations/0033_add_investment_document_permission.py | 87a514117458d20c8bf84bc4f1155a3ce0c0b8eb | [] | no_license | jakub-kozlowski/data-hub-leeloo | fc5ecebb5e4d885c824fc7c85acad8837fcc5c76 | 7f033fcbcfb2f7c1c0e10bec51620742d3d929df | refs/heads/master | 2020-05-18T13:29:14.145251 | 2019-04-30T12:12:50 | 2019-04-30T12:12:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # Generated by Django 2.0.1 on 2018-01-09 16:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('investment', '0032_investmentproject_comments'),
]
operations = [
migrations.AlterModelOptions(
name='investmentproject',
op... | [
"reupen@users.noreply.github.com"
] | reupen@users.noreply.github.com |
53171e07178a012d3d4820a34f4a4926dbf039f9 | 909afe0216a37bdc19683d81e533fa6c094329c1 | /python/fluent_python/17-futures/flags_threadpool.py | 06c33a7643ddd6282576bba9507f4a1c595c79bf | [] | no_license | wxnacy/study | af7fdcd9915d668be73c6db81bdc961247e24c73 | 7bca9dc8ec211be15c12f89bffbb680d639f87bf | refs/heads/master | 2023-04-08T17:57:40.801687 | 2023-03-29T08:02:20 | 2023-03-29T08:02:20 | 118,090,886 | 18 | 22 | null | 2022-12-16T03:11:43 | 2018-01-19T07:14:02 | HTML | UTF-8 | Python | false | false | 481 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: wxnacy(wxnacy@gmail.com)
# Description: 使用多线程下载
from concurrent.futures import ThreadPoolExecutor
from flags import download_one, main
MAX_WORKERS = 20
def download_many(suffixs):
workers = min(MAX_WORKERS, len(suffixs))
with ThreadPoolExecutor(workers)... | [
"371032668@qq.com"
] | 371032668@qq.com |
8c7c442705664c9f9d05136d7029682ac4793785 | f14e95cb9df97570759699092c171743cc3e00c8 | /keyword_dreamvector.py | 640e1af4adea2f876c3a6dfc69225b8957163131 | [] | no_license | DallasAutumn/ChinaDream | b92b5de62a0973988b9673e120e8dac5bcf6050d | 2d6c6f45290add74d4daf02f2c2f51e9b4d69c92 | refs/heads/master | 2020-06-17T18:51:30.657908 | 2019-05-16T07:54:03 | 2019-05-16T07:54:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,760 | py | # -*- coding: utf-8 -*-
"""
-------------------------------
Time : 2019-04-09 16:19
Author : diw
Email : di.W@hotmail.com
File : keyword_dreamvector.py
Desc: 构建中国梦向量
-------------------------------
"""
import warnings
import math
warnings.filterwarnings("ignore")
from sklearn.metrics.cluster imp... | [
"di.w@hotmail.com"
] | di.w@hotmail.com |
41399fad248b0a0094d4e199dd1c4adfebedd1a3 | fbfd842136ce51a598801d1db8a383633f6ef65b | /CP/Competetive Programming And DSA/codechef5.py | 0c25e1b5b9fa3b2bd3d58fe41d022c3b5ad4f14c | [] | no_license | jayz25/MiniProjects-And-CP | 6d74fd1b58d10036235520a1d10d928f45d5d542 | 40eb2f0f3449e77e02424fcc8fa80597f2a83bf6 | refs/heads/master | 2023-06-11T03:04:50.348564 | 2021-06-20T18:42:55 | 2021-06-20T18:42:55 | 366,385,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | '''
2
8 38
7 8 19 7 8 7 10 20
4 5
2 10 4 9
7
2
'''
def some(N,K,l):
if sum(l)<=(2*K):
return -1
S = K
res = []
for i in range(N):
if l[i]<=S:
S = S - l[i]
count+=1
res.append(i)
if S<=0:
break
for i in res:
del l[i]
... | [
"patiljayesh026@gmail.com"
] | patiljayesh026@gmail.com |
ec16e406e8d72d362730558816a5f89cd01e3f47 | 5127f3db0b6eaf658273925a2b44321d8b4067f3 | /bases/models.py | 4181b6b12ba7886956392284fdae5b5803e9019e | [] | no_license | AlejooRob/SistemcomprasfacturasDjango | bce611417c05e770eda692ca66e8f320ac8cbbc7 | 98053a73b2f063c24676c8bf5632ef75233e20a6 | refs/heads/main | 2023-05-02T00:02:02.308681 | 2021-05-19T15:29:35 | 2021-05-19T15:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | from django.db import models
from django.contrib.auth.models import User
from django_userforeignkey.models.fields import UserForeignKey
class ClassModel(models.Model):
estado = models.BooleanField(default=True)
fc = models.DateTimeField(auto_now_add=True)
fm = models.DateTimeField(auto_now=True)
uc = ... | [
"alejolink001@gmail.com"
] | alejolink001@gmail.com |
6ae67fd3e9663fc9ea82a6080b85773cce01b42f | b485f7721e01cd55c9043b3ca4dde374216384fc | /task1/cgi/show.py | 7f23ab0fa42bb35c9777cf777b7ca15eaa2d167c | [] | no_license | anastasiarudenko/lab3_3.9 | 4a01194cfd967d4110621e8a85b221db1efd1bd8 | b794c01e0d795c160f3919aca73ed9f9549329e4 | refs/heads/master | 2022-09-04T10:29:42.477377 | 2020-05-25T10:46:27 | 2020-05-25T10:46:27 | 266,750,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/env python3
import cgi
import html
f = open('data.txt', 'r')
text = f.read()
f.close()
print("Content-type:text/html\r\n\r\n")
print("<h2>With escaping: %s</h2>" % html.escape(text))
print("<h2>Without escaping: %s</h2>" % text)
| [
"cyanidecalcium@yandex.ru"
] | cyanidecalcium@yandex.ru |
7a25619ac5eff44c957cd979158b601393eb548e | 725d06cd4ff104efc089e13b9a06ca5b6dd3b342 | /Hangman.py | 2aed0d44dd37d3d0e6fc9781e2bc622ec54ed412 | [] | no_license | prathmeshpatel/hangman-game | 30fd088c143cd617c14a1876fd7d4d6dac402c75 | c0b3692a3c70b69f78cec1a85b62cb53a579694a | refs/heads/master | 2021-04-30T17:39:37.657034 | 2017-01-27T21:36:14 | 2017-01-27T21:36:14 | 80,247,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,029 | py | '''
Created on Oct 16, 2016
@author: Prathmesh Patel
'''
import random
def fileToStringList(filename):
#opens file and returns a list of strings(words)
wordlist = []
f = open(filename)
for line in f:
line = line.strip()
wordlist.append(line)
f.close()
return wo... | [
"noreply@github.com"
] | prathmeshpatel.noreply@github.com |
63067b766fec7b99acd1864cd7e39787c0f755b8 | 50bd87708a19ac7003c2cc3e2834047acc684eb9 | /网络通信/009_协程_greenlet.py | 2c58a061e2d437e27cd1f328ba6a45a786b1f80c | [] | no_license | lzxysf/python | db30bef343bb02d99c3f2a0f96c4c942b69b8b52 | 7d1f09b788eec293ae0bddcc0117e2dcd8a79f0b | refs/heads/master | 2020-12-05T06:43:24.461101 | 2020-04-08T13:21:02 | 2020-04-08T13:21:02 | 232,037,659 | 0 | 0 | null | 2020-04-08T13:14:39 | 2020-01-06T06:23:20 | Python | UTF-8 | Python | false | false | 443 | py | '''
为了更好使用协程来完成多任务,python中的greenlet模块对其封装,从而使得切换任务变的更加简单
'''
from greenlet import greenlet
import time
def test1():
while True:
print('----A----')
time.sleep(0.5)
gr2.switch()
def test2():
while True:
print('----B----')
time.sleep(0.5)
gr1.switch()
gr1 = green... | [
"lzxysf@qq.com"
] | lzxysf@qq.com |
9c798312fb973574870b50564f097af475b494c3 | 9b5715ad23991bd94d0cf6257683af69638be534 | /faceRec/utils.py | 8e9a8e87f93bda945015b70134501ac9608b9d7e | [] | no_license | amessadiqi/facerec | 7364be109f21d52a3477977b371814185a3d7ae2 | f363798a182e7f17e843bd413cf3fdc38c90846b | refs/heads/master | 2022-12-10T21:54:57.962493 | 2020-09-17T15:18:58 | 2020-09-17T15:18:58 | 296,343,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | import os
import random
import string
import face_recognition
from faceRec.models import db, User
def add_user(email, password, first_name, last_name, gender, profile_picture, birthday, address):
user = User(email=email,
password=password,
first_name=first_name,
las... | [
"amessadiqi@gmail.com"
] | amessadiqi@gmail.com |
7c819f3f0a6e6339a8d5382922dddc7f7b4c6af1 | ddfb9db447f098485b1c9672de08ca97aeea3501 | /trespalabras.py | fdd484147e5240f7ef22bf291766e47e21cb756f | [] | no_license | AlbertoFido/fido1 | 7a1e9ffc87263ae2ad9cf0491aa94dfe9b299561 | ef5ba4e9eb6456e8612908b049a3e6ec57e4e7f9 | refs/heads/master | 2016-09-01T14:41:36.814675 | 2016-03-17T19:46:02 | 2016-03-17T19:46:02 | 43,089,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | def checkio(words):
cad2=words.split(' ')
contador=0
salida = False
for ele in cad2:
if ele.isalpha():
contador+=1
else:
contador = 0
if contador >= 3:
salida = True
return salida
print checkio("start 5 one two three 7 end")
#True
print checkio("Hello World hello")
#== True, "Hello"
print checkio(... | [
"albertofido92@gmail.com"
] | albertofido92@gmail.com |
4a2f9b5baa86079690190cf78a776554744e8271 | c5cad31bfc771d3261d1eead8e31856c19eb5e74 | /publishTool/assembleTest_D05_7.py | 3bf657b7e122eea1a22d8512b50fc9ff0a277b9e | [] | no_license | alpha0080/mayaTool | 61b649825d85b88de2d24e9260e23f5c5aa559cb | 153da6e987d13fb7311ee55a2a3e635bc8c7afde | refs/heads/master | 2021-01-19T11:52:03.715437 | 2018-05-07T10:30:23 | 2018-05-07T10:30:23 | 88,001,018 | 0 | 0 | null | null | null | null | BIG5 | Python | false | false | 190,588 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:/Users/alpha.DESKTOP-1S1STEK/Documents/GitHub/mayaTool/publishTool/assembleTest_B01.ui'
#
# Created: Thu Jul 06 16:28:26 2017
# by: pyside2-uic running on PySide2 2.0.0~alpha0
#
# WARNING! All changes made in this file will be lost!
... | [
"alpha@mail.chungyo.net"
] | alpha@mail.chungyo.net |
1596a3bc363dc0db81d5748b98371958e64dd2d8 | f63fa6561b3c3f39fae8a7e3a37e7862b7103e70 | /loop.py | b24f1de5ac9959e594eb83112757c1586b014d7e | [
"MIT"
] | permissive | maxreciprocate/Looper | eebbea08f6e96917c3f3a4162b0961d42b0b958d | 0f7c56a52a540b768054fd174bab940992906e93 | refs/heads/master | 2023-06-07T15:40:27.985275 | 2019-10-30T03:55:00 | 2019-10-30T03:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,715 | py | import os
import sys
import numpy as np
from mpg123 import Mpg123, Out123
class MusicFile:
def __init__(self, filename):
# Load the file, if it exists and is an mp3 file
if os.path.exists(filename) and os.path.isfile(filename):
if filename[-3:].lower() == 'mp3':
mp3 = Mp... | [
"nolananicholson@gmail.com"
] | nolananicholson@gmail.com |
fd9d88ea405216244963a2f1d054b06ca60ec7cb | f73c18586be66640a362c19ca1fe6816bcc34ca6 | /ml_pipeline/tests/test_mlflow.py | 55da1a65a54e8db8327c607f1ab2a9d20f4598e9 | [
"MIT"
] | permissive | TianhaoFu/cloud_ml_platform | 1b46034ef5aada154180938a58319fa7d67cf732 | 66508abbffdda1b75dd4267e3da1838ecb59c423 | refs/heads/main | 2023-06-05T17:11:05.685864 | 2021-06-24T05:08:13 | 2021-06-24T05:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import mlflow
import os
from random import random, randint
from mlflow import log_metric, log_param
def test_mlflow():
base_uri = os.environ.get('BASE_URI')
tracking_uri = base_uri + '/mlflow' if base_uri else ''
mlflow.set_tracking_uri(tracking_uri)
# Log a parameter (key-value pair)
log_param("p... | [
"myoilbox@gmail.com"
] | myoilbox@gmail.com |
dd38861457d0332d6c9b6322722556eb6f6b3fc6 | b577bd7cee15fc4a9c7b57eac07b532b53f5a890 | /teste.py | 048c8e430f2aaccdbe0cc12bec39aa454a6d551e | [] | no_license | ponsdev/Arch-Timer | 6dcac54e6a43c8f89a1f09dace1d7e9d32a632a2 | ae89915e727c67d66662df3cedaa570d253ac5c7 | refs/heads/master | 2020-03-09T15:39:57.312960 | 2019-05-10T18:27:09 | 2019-05-10T18:27:09 | 128,864,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | import sys
filePath=sys.argv[1]
print(filePath) | [
"viniciusdev@zoho.com"
] | viniciusdev@zoho.com |
2271ce0fe39d71d42b7ce4efd6399e6568b37c17 | 165cf5ce4f80ca7037237f3abf59eeef68e3105e | /mkhufftbl.py | 3c301889a940a899069a6c4854abd1413420911d | [
"MIT"
] | permissive | ngtcp2/nghttp3 | 1eb043960397ec5bdd3f704d4ccc9b11613ec99c | dd5d9d55dcb13a1729b7ad1c8c30f8e5ad82c4df | refs/heads/main | 2023-08-31T03:23:38.565595 | 2023-08-30T09:58:04 | 2023-08-30T09:58:04 | 156,868,263 | 693 | 82 | MIT | 2023-08-30T09:55:36 | 2018-11-09T13:49:36 | C | UTF-8 | Python | false | false | 22,404 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This script reads Huffman Code table [1] and generates symbol table
# and decoding tables in C language. The resulting code is used in
# lib/nghttp3_qpack_huffman.h and lib/nghttp3_qpack_huffman_data.c
#
# [1] http://http2.github.io/http2-spec/compression.html
import ... | [
"tatsuhiro.t@gmail.com"
] | tatsuhiro.t@gmail.com |
3c5c13bc7708b7f1f902b92f1224968214201cf3 | 110e46dfe166dd00854ef70549e942c644a8775b | /Python_ Ejercicios/Ingreso_Linkedin.py | 60586d80479683aa40a8652b9dd681c5d8cdab60 | [] | no_license | silvina84/TrabajosPython | 1b573cd594b998cee8f5c73fb4de924ac0f13998 | afe2fdf2662229b8f2d98af0211638b03e12e690 | refs/heads/master | 2023-03-02T11:55:14.722338 | 2021-02-10T22:55:58 | 2021-02-10T22:55:58 | 337,839,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | #Login con usuario y contraseña en Linkedin
import xlrd #Para leer archivos excel
import pandas
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait #Llama a un subpaquete dentro de selenium , es para esperar... | [
"silvinacace@gmail.com"
] | silvinacace@gmail.com |
88e209e71bd5abada8fca06441598115041c3409 | 00b9d05d36e403aafe33becfd738bedb4e6927ae | /Day3/DbConnectionDemo.py | 1adcbed723c57dedaae5901a1e36c11a8aa64490 | [] | no_license | ShahUjval/Python | 9383b2b4f5c519096a4496db3862d1adaffc2ea2 | e49d9f148a08b8e8bd8e5d58aa5c2b9ee1984523 | refs/heads/master | 2021-01-20T20:18:06.616409 | 2016-06-03T09:37:38 | 2016-06-03T09:37:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import MySQLdb
conn = MySQLdb.connect('localhost','root','katieholmes123','python')
conn.autocommit(True)
query = "Select version()"
cur = conn.cursor()
cur.execute(query)
print cur.description[0][0]
print '-' * 22
print cur.fetchone()[0]
cur.close() | [
"shah.ujval@gmail.com"
] | shah.ujval@gmail.com |
5486a88353c3ff9a71da6e4fb6e0dd86a820b8d9 | 2d4821fb383287080eacc70941ba43c12c9cb73f | /RepairService/welcome/views.py | 15c39fe09773f7f9224780c5a4ef306713098701 | [] | no_license | chirag12357/school_django | 2b2b5e1496d6c488550963c791c906ec98e19093 | 702fa7b030d6cdeb7f4821129af0f19af7b142ee | refs/heads/master | 2020-09-07T20:11:30.117230 | 2019-11-12T13:28:47 | 2019-11-12T13:28:47 | 220,901,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.shortcuts import render
# Create your views here.
def welcfunc(request):
return render(request,"welcome.html")
| [
"noreply@github.com"
] | chirag12357.noreply@github.com |
3e5b76060a8d08eb9c454a93b5bf91d108e6268c | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg_old/scg_obj_shell_2nd/test_c40343.py | 3c334ff2e3e9d1098cbb335f5426d69ef272f5d0 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | import pytest
import time
import sys
from page_obj.scg.scg_def import *
from page_obj.scg.scg_def_obj import *
from page_obj.scg.scg_def_log import *
from page_obj.common.rail import *
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
test_id = 40343
# 修改以subnet方式添... | [
"15501866985@163.com"
] | 15501866985@163.com |
343c17bb1ca6baf99ce4f13cd5186e9c00b5d09a | 1201b15c891116d0475926d3db707a053f480ab3 | /config.py | 898ffc64792fb9a2aaa9ae4b2d92c8060f4ec5e7 | [
"MIT"
] | permissive | PeARSearch/PeARS | 701708be4525c47c2ffed750adf1688a4ddfc419 | f97f416071a22826798188bcd75ce4d3e4f2623d | refs/heads/master | 2020-04-05T03:18:34.334948 | 2017-07-22T12:33:18 | 2017-07-22T12:33:18 | 50,421,624 | 64 | 14 | null | 2017-07-22T12:33:19 | 2016-01-26T10:30:24 | DM | UTF-8 | Python | false | false | 434 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
basedir = os.path.abspath(os.path.dirname(__file__))
# db configurations - not using now
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_BINDS = {
'wikiwoods': 'sqlite:///' + os.path.join(basedir, 'wikiwoods.db')
}
SQ... | [
"hrishi.kb@gmail.com"
] | hrishi.kb@gmail.com |
d93a6ea41527ac0523476d0d352ebbf555f433f9 | 702e834fec254abce7f739a8086ba06e976df7ad | /necAnalysis.py | 25c80736cc16dbb670761dd38ba8a99c49678411 | [] | no_license | iamjino/tanimaul | 0a6146fbc2f9e3b0748ce74f014d78c0d0feffb0 | d77d3880edb15654bc683dc069a50ed477b96031 | refs/heads/master | 2023-01-20T14:52:29.354725 | 2020-11-30T19:11:19 | 2020-11-30T19:11:19 | 295,502,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,069 | py | import pandas as pd
def day_voter(x):
result = ''
if x['사전투표수'] > 0:
result = x['투표수']
return result
class NecAnalysis():
def __init__(self, file_result, file_book):
result_items = pd.read_excel(file_result)
book_items = pd.read_excel(file_book)
nec_result_part = res... | [
"55924206+ryanroypapa@users.noreply.github.com"
] | 55924206+ryanroypapa@users.noreply.github.com |
19b41fc5be51639e178372588125d29a461f3787 | aa99ccc7b3dd4a359b2a4c2925bca95e421b759a | /FIG5.2a/g158.py | 2faf0fa0e61ba827de1a93c7908567cf04fc0aed | [] | no_license | ardhendubarman/PROJECT | 7689b083c633d0e543359462f28a60658a3dabe6 | 97a02f3a7a8eee0009c1c465c6df52ffd608cf55 | refs/heads/master | 2021-01-25T11:14:28.710512 | 2017-06-10T10:33:01 | 2017-06-10T10:33:01 | 93,915,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | """
A freely-propagating, premixed hydrogen flat flame with multicomponent
transport properties.
"""
import cantera as ct
import pickle as pkl
import numpy as np
# Simulation parameters
p = ct.one_atm # pressure [Pa]
S_l=[]
#j=[0.32, 0.34, 0.38, 0.46, 0.62]
i = np.linspace(300, 1350, 30) # unburned gas temperature [... | [
"ardhendu.1994@gmail.com"
] | ardhendu.1994@gmail.com |
711cad9016bd2b8763f7e58436756578d43a0017 | 0f20fd02b26edda61d911387fae18248a5b387c1 | /smtp/smtpd_senddata/smtpd_senddata.py | 6e7487b46bc852ec71dc94766dc968be74783247 | [] | no_license | jadermcs/networkinglab | fa7660536b39179bc71c1a2caabe7fb3d4043027 | 326d4ce261b2c0a4c684ff7c355992edcf85f5c6 | refs/heads/master | 2020-03-10T02:50:58.834880 | 2018-04-28T14:45:49 | 2018-04-28T14:45:49 | 129,147,873 | 0 | 0 | null | 2018-04-15T14:56:25 | 2018-04-11T20:05:42 | Python | UTF-8 | Python | false | false | 795 | py | import smtplib
import email.utils
from email.mime.text import MIMEText
# Create the message
msg = MIMEText('This is the body of the message.')
msg['To'] = email.utils.formataddr(('Recipient',
'recipient@example.com'),
('Joao',
... | [
"jadermcs94@gmail.com"
] | jadermcs94@gmail.com |
1fcd94d623978daffea0a24521a7a469988c6c4a | 743d2aa865b22d7707a845fb2a015096d62778b5 | /embed2geo.py | 59cf41ea45050b90e01d3e96c66f392e5859cbe0 | [] | no_license | Yonghui56/coord2geo_GMSH | dcab900497da350cec7f95278ba5e3b11742b35a | 82d35b2533efbfb2798b63ce0301fb6daff26960 | refs/heads/master | 2020-06-20T00:33:37.256259 | 2019-07-15T05:34:25 | 2019-07-15T05:34:25 | 196,929,602 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | # Python Program for quick gmsh grid gen
import string,sys
def convert_pts_togmsh(filename,outputname,startpoint):
# Read in data using this bit
fin=open(filename, 'r')
i=0
x = []; y = []; z = [];
lines = fin.readlines()
for line in lines:
# comments indicated by #
if line[0] != '#' or l... | [
"noreply@github.com"
] | Yonghui56.noreply@github.com |
1c91383daeead69767d8a3e989bcf2f3fff2bfeb | 1910497a6d0bf8d572ecb933127792c6ee924f26 | /Python/Mutations.py | b71f00ff91cfb5841480d27fd1a3db4b40189081 | [] | no_license | saurabhc24/hackerrank-solutions | 558e56754c11f5f25976df1aa38b33db04b37734 | 3499014a33b3383ee28d48f92063a67bb9e05bfc | refs/heads/master | 2023-08-21T18:05:42.507456 | 2021-10-03T17:42:35 | 2021-10-03T17:42:35 | 260,264,605 | 0 | 2 | null | 2020-10-10T07:31:13 | 2020-04-30T16:40:08 | C | UTF-8 | Python | false | false | 439 | py | def mutate_string(string, position, character):
return"".join(list(string[:position]+character+string[position+1:]))
#first converting the string into list and then using slice [:] to add the desired character at the required position, then using join() string method to convert it back to string
if __name__ == ... | [
"noreply@github.com"
] | saurabhc24.noreply@github.com |
b284a5639417c0f7114f20e3ced9f5d326bbab15 | 699c5894668e07bbb4ddae632730f0d218f72558 | /Yeji-Lee/baekjoon/b_100/두 수 비교하기.py | dba5c432a59ef39ab6eefb04ce05640afbacc605 | [] | no_license | Sumsan38/learning-algorithm | 0914ddbbd8786381dda807562e4529773b4aa987 | 59a1d7b53d4348a0320b0cbf48ee75b5086b3a29 | refs/heads/master | 2023-07-15T08:16:29.896218 | 2021-08-14T11:47:01 | 2021-08-14T11:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # https://www.acmicpc.net/problem/1330
A, B = map(int, input().split())
if A > B:
print('>')
elif A < B:
print('<')
elif A == B:
print('==')
| [
"noreply@github.com"
] | Sumsan38.noreply@github.com |
dc3f80de3fed77fc2506bf296b04f63ce5dd996c | f19c5436c7173835a3f1d064541ee742178e213a | /mah/divide and conquer/[BOJ]1920_수 찾기.py | 9bdd791f8797941a03f185c9f847b8104e5e9e83 | [] | no_license | hongsungheejin/Algo-Study | f1c521d01147a6f74320dbc8efe3c1037e970e73 | d6cb8a2cc6495ccfcfb3477330a3af95895fae32 | refs/heads/main | 2023-07-06T10:58:27.258128 | 2021-07-29T02:11:13 | 2021-07-29T02:11:13 | 379,269,918 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | N = int(input())
nums = list(map(int, input().split()))
nums.sort()
M = int(input())
tars = list(map(int, input().split()))
def binary_serach(tar):
l, r = 0, len(nums) - 1
while l<=r:
m = (l+r)//2
if nums[m] == tar: return 1
elif nums[m] < tar: l=m+1
else: r=m-1
... | [
"mai.hong0924@gmail.com"
] | mai.hong0924@gmail.com |
736bedd04ea4ca3c0156959d4853a7f040a14417 | fac02e1c20a0fe9873acbcdb42dadc63f60eb53a | /diming/diming/pipelines.py | f53d0d26dfd3ee5c629c117cfaae1483d9c3b4d3 | [] | no_license | mekhicode/crawler | da56ef6304ae176248759804781847ad8d4c8d7d | 080ad590a2473f747cf37e3cc48a122b959d80ba | refs/heads/master | 2021-01-22T07:06:25.238971 | 2016-09-20T05:50:49 | 2016-09-20T05:50:49 | 68,670,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | 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
class DimingPipeline(object):
def process_item(self, item, spider):
return item
| [
"tangmash@163.com"
] | tangmash@163.com |
ac036b0c581fd56f8e5a1abc72999ba8a216c0aa | cdfb03781f49a49fca5d0f316ecdffaeda9820ca | /djangohw/settings.py | 43eb61118c966cb2173b36b8192539392bbd3352 | [] | no_license | argocan/djangohw | 8f302697fca27ba6f824fe8536cea0de99233337 | da4b9a12b020a2627e05d131f2d5c7da76f50c3e | refs/heads/main | 2023-02-04T02:06:33.058412 | 2020-12-15T12:18:15 | 2020-12-15T12:18:15 | 321,629,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,068 | py | """
Django settings for djangohw project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathli... | [
"fabrizio.gambelunghe@cdp.it"
] | fabrizio.gambelunghe@cdp.it |
15964455a90498f40c1b5832baba1979f60603a1 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_stanm_coin-jam.py | d03fbeb3caa801b73d052e9fa018ecc9ef309635 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 945 | py | #! /usr/bin/python
import sys
def rinp():
one = input()
_ = input().split(' ')
N = int(_[0])
J = int(_[1])
return (N, J)
def get_binary(num):
return "{0:b}".format(num)
def in_base(stng, base):
return int(stng, base)
def get_div(x):
for d in range(2, x):
if d * d > x:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
39e2d9dbdc83ea68defe4b575e5d0bee237f89bc | 205be8d429df36e27cdfc048bfca9212c5a62a87 | /icu/urls.py | ed2cf073014ebef72cfb33b59762ed1241b9df93 | [] | no_license | KennyChrisUmurundi/HOsto | 16c8f926282fc48c981532447f1685fbbc2b457c | 33fa31524a08934f3deb8f622a1b1554d8ef1af4 | refs/heads/master | 2022-04-01T02:42:39.146227 | 2020-01-07T11:44:08 | 2020-01-07T11:44:08 | 193,458,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views as icu_views
from django.conf.urls.static import static
from django.conf import settings
app_name = 'icu'
urlpatterns = [
path('Medical Update/',icu_views.update_list,name="add-medical"),
path('scan/',icu_views.ScanCod... | [
"ndayikennysmuusic@gmail.com"
] | ndayikennysmuusic@gmail.com |
520225b1b9d44a0d7ef41248511013f812e9c07f | 5ead730e69f1042de1f43ac64e767d6463ffe691 | /basic guess game.py | 6c1bf87b7d5dcc7046f85a7ffb5b79db10b2b3ab | [
"MIT"
] | permissive | ravi9607/basic-program-by-python | 84258d110cdb9f9f285e93ddac5eb411d60fae77 | 534fc4a4c316ba0b8391f72647c4f9c9d33bb8e6 | refs/heads/main | 2022-12-26T05:33:35.965400 | 2020-10-10T13:07:51 | 2020-10-10T13:07:51 | 301,167,757 | 0 | 0 | null | 2020-10-04T15:56:25 | 2020-10-04T15:56:24 | null | UTF-8 | Python | false | false | 356 | py | code_word = "priya"
guess = ""
guess_count= 0
guess_limit= 3
out_of_gusses=False
while guess != code_word and not out_of_gusses :
if guess_count< guess_limit:
guess = input("enter guess : ")
guess_count+=1
else:
out_of_gusses=True
if out_of_gusses:
print("you lose!")
els... | [
"noreply@github.com"
] | ravi9607.noreply@github.com |
13daadc403ee347a1877bef70ef64461737e38cc | 5a71ca1f5c964f803350e3c1238cb48986db565c | /coinlibbitfinex/coinlibbitfinex/streamapi.py | d6eb6285f6a324d0a46d8cc40959a345f9c959cd | [] | no_license | tetocode/coinliball | fd644cbc16039ecad7e43228ea4e287ead5c8e5f | 41ebbac13c1fbba98aedaa766b9a505cb157f374 | refs/heads/master | 2022-09-28T21:58:08.130006 | 2020-06-04T03:00:56 | 2020-06-04T03:00:56 | 269,247,318 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,624 | py | import json
import logging
from typing import Hashable, Dict
from websocket import WebSocket
from coinlib.datatypes.streamdata import StreamData
from coinlib.trade.websocketstreamapi import WebSocketStreamApi
logger = logging.getLogger(__name__)
class StreamApi(WebSocketStreamApi):
URL = 'wss://api.bitfinex.co... | [
"_"
] | _ |
8af84a01d80c776522cf1031d8232f43427a9540 | 66bb3f65f0157a2b5475903c90a54d5173bc4f0a | /djthia/core/views.py | 702cc124bdbc259bc6fdc7f8295d8de0cd43d8fa | [
"MIT"
] | permissive | carthage-college/django-djthia | 691233049bcb05391fd82e390edb717f3bc0588a | 52401592291a980c7226c0573d415e7cdb8c20d3 | refs/heads/master | 2023-03-04T08:22:03.055448 | 2023-02-24T18:33:12 | 2023-02-24T18:33:12 | 249,989,382 | 0 | 0 | MIT | 2023-02-24T18:33:56 | 2020-03-25T13:43:24 | Python | UTF-8 | Python | false | false | 1,886 | py | # -*- coding: utf-8 -*-
import json
import requests
from datetime import datetime
from django.conf import settings
from django.core.cache import cache
from django.http import HttpResponse
from django.shortcuts import render
from django.urls import reverse_lazy
from django.utils.safestring import mark_safe
from django... | [
"plungerman@gmail.com"
] | plungerman@gmail.com |
4272a7d781c422d78e27a838280b038082ef95ab | 57fc5d54f5df359c7a53020fb903f36479d3a322 | /controllers/.history/supervisor/supervisor_20201127194410.py | c91f5cc5bde9a494e19c7adadf4e75e4d0388496 | [] | no_license | shenwuyue-xie/webots_testrobots | 929369b127258d85e66c5275c9366ce1a0eb17c7 | 56e476356f3cf666edad6449e2da874bb4fb4da3 | refs/heads/master | 2023-02-02T11:17:36.017289 | 2020-12-20T08:22:59 | 2020-12-20T08:22:59 | 323,032,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,059 | py | import math
import numpy as np
from numpy import random
from numpy.core.fromnumeric import size
from numpy.lib.function_base import meshgrid
import utilities as utils
from deepbots.supervisor.controllers.supervisor_emitter_receiver import \
SupervisorCSV
# # from deepbots.supervisor.wrappers.tensorboard_wrapper i... | [
"1092673859@qq.com"
] | 1092673859@qq.com |
6e15567d6391d71d681cf27964983a4307bacdde | d6d3e49cd07d64c6c59ad101a8a2a8585cb8874a | /DHidasAna/SimpleAna/python/__init__.py | 2499d6cb767ee0f3a69e86799dffd820c9b31ac5 | [] | no_license | dhidas/UserCode | 2bb36c4eb5bd9daa4d71a739a042e4aee9200dea | 04701c732d8acb3042e8967898a789d2b2845da4 | refs/heads/master | 2021-01-18T14:02:11.537626 | 2013-10-25T14:31:27 | 2013-10-25T14:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | #Automatically created by SCRAM
import os
localrt=os.getenv('LOCALRT', None)
arch=os.getenv('SCRAM_ARCH', None)
if localrt != None:
__path__.append(localrt+'/cfipython/'+arch+'/DHidasAna/SimpleAna')
| [
""
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.