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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9d87460c9daf44323f8c8e853dd25cd21cb8670 | 35b96d09ff3b74e7f05cc0085dde129456d70ad9 | /tornado/Day5/tornado_sqlalchemy.py | 10d41141ef829b75b22f49e22e4892636e6990f9 | [] | no_license | yanghongfei/Python | ef0e54f98bc390ffd908d27f2ed306952b3bba46 | f1103754e2752d38bcfd4357aa4b1a2318b33e31 | refs/heads/master | 2020-07-01T20:06:52.870910 | 2018-11-01T09:15:34 | 2018-11-01T09:15:34 | 74,260,335 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/9/30 10:49
# @Author : Fred Yang
# @File : tornado_sqlalchemy.py
# @Role : Sqlalchemy 增删改查
# 导入
from sqlalchemy import Column, String, create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declar... | [
"yanghongfei@shinezone.com"
] | yanghongfei@shinezone.com |
03cc688115e56b3caacc8b1bcb0a2acf97cca126 | 89eec81430daea547822c26cf637bcd9db5e57ad | /pols/migrations/0005_question_number.py | 4d1e7c4c89dfaeeeb276ec140daf28cdb8c5dd7a | [] | no_license | sanlem/teston | 5bd2f01ef4dc4f3cfef8189d6ea259af78fe4388 | 89c21ea745b1b517c589caf5688c7a856548d904 | refs/heads/master | 2020-12-11T22:17:23.943699 | 2015-06-18T15:44:08 | 2015-06-18T15:44:08 | 36,315,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pols', '0004_auto_20150525_1549'),
]
operations = [
migrations.AddField(
model_name='question',
name... | [
"vfranchook@gmail.com"
] | vfranchook@gmail.com |
df199d45bbed5b2eb57ed382acd03991cfdeaff4 | 1ce4c43907ec04f1e797c317871a23bcec46c3c8 | /scripts/utilities/toggle_spout_leds.py | 85bc4fc4c907348d12eef83f0aa5ecb56a414877 | [] | no_license | m-col/reach | d9709593e1f0ec25786a4c4e601b14b26419ce96 | 8fabb4ce30ddb39260039ebea2d46a919dfbba14 | refs/heads/master | 2022-05-31T08:51:31.270970 | 2022-05-21T19:46:12 | 2022-05-21T19:46:12 | 169,552,311 | 1 | 2 | null | 2021-06-25T14:18:21 | 2019-02-07T10:12:30 | Python | UTF-8 | Python | false | false | 155 | py | #!/usr/bin/env python3
"""
Toggle the LEDs.
"""
from reach.backends.raspberrypi import Utilities
rpi = Utilities()
rpi.toggle_spout_leds()
rpi.cleanup()
| [
"mcol@posteo.net"
] | mcol@posteo.net |
d0fae8b7c4d33afb588c1fd017fe389b750b6135 | 547ac7b09add2e24146f59fa4377188cd59419fb | /reprozip/pack/vt_workflow/workflow_utils.py | 316ba09a4b52958588d151e1ded15d6b8c4f1937 | [
"BSD-3-Clause"
] | permissive | fchirigati/reprozip | 44b274fec6d9558a97c85e7eb0678730702ccfe0 | fb7b4e18a6938fdb10b6fe8e0fcd042ce4547375 | refs/heads/master | 2020-05-18T05:47:17.156691 | 2018-06-19T22:39:27 | 2018-06-19T22:39:27 | 10,867,693 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,245 | py | ###############################################################################
##
## Copyright (C) 2012-2013, NYU-Poly.
## All rights reserved.
## Contact: fchirigati@nyu.edu
##
## This file is part of ReproZip.
##
## "Redistribution and use in source and binary forms, with or without
## modification, are permitted ... | [
"fernando.chirigati@gmail.com"
] | fernando.chirigati@gmail.com |
c0d41c468fe46eae60304a6e4170b7feb432e5cd | 973eed0d6173ab95b3cea9508bd20516ef84a56d | /services/gmaps.py | 3a4b1b96e5fbcc5a7452e5331952955d404e7893 | [
"Apache-2.0"
] | permissive | FenrirUnbound/kessel-run | 213a71d94b74a518a6a92b3fb5929e1ae0e71997 | 0b39ec4aead0ee1397f46a0893166c433fe4f85b | refs/heads/master | 2020-12-07T15:24:13.924077 | 2017-07-02T02:56:58 | 2017-07-02T02:56:58 | 95,517,943 | 0 | 0 | null | 2017-07-02T02:56:59 | 2017-06-27T04:36:54 | Python | UTF-8 | Python | false | false | 774 | py | import googlemaps
import time
from map_formatter import MapFormatter
from models.route import Route
from models.secret import Secret
class Gmaps(object):
def __init__(self):
self.gmaps = googlemaps.Client(key=Secret.token())
self.route_data = Route()
self.formatter = MapFormatter()
de... | [
"aeneascorrupt@gmail.com"
] | aeneascorrupt@gmail.com |
616c58d38ba1341e31e3110eb28caf617d8d0c51 | 7f045311cf07d86c21c3e32649a0d3343351d7b5 | /sky/c3.py | d661310b92f5e4c9a50397604a8e3141cb7587a1 | [
"BSD-2-Clause"
] | permissive | amititash/sky | 2c757ec572902f12a6a550597044101d6e7cdbc1 | ffaf33e46825522bb87654593a0ca77c095c98b0 | refs/heads/master | 2020-04-14T22:50:55.264011 | 2019-02-06T05:11:22 | 2019-02-06T05:11:22 | 164,180,289 | 0 | 0 | NOASSERTION | 2019-01-05T04:02:40 | 2019-01-05T04:02:40 | null | UTF-8 | Python | false | false | 2,190 | py | #!/usr/bin/env python3
# --------- 1. Setup ----------------------------------------------
PROJECT_NAME = 'sophonone'
import os, base64, re, logging
from elasticsearch import Elasticsearch
from sky.crawler_services import CrawlElasticSearchService
from sky.crawler_plugins import CrawlElasticSearchPluginNews
imp... | [
"amititash@gmail.com"
] | amititash@gmail.com |
1f778b04e332c6fb1e5a8be955cd628bea529f50 | 36c546160a70228e28f216e841453a55a4b665bb | /cli_common.py | 32a2ebcb79b2c99a1bb4fc6b64bbe49c2839a7ee | [] | no_license | tpietruszka/ulmfit_experiments | b4718df389478a12d920f72cdca476797d4397fc | 9385cd7d4285f93a2f220bc9fd5095051879a49a | refs/heads/master | 2020-04-21T18:18:01.633887 | 2020-04-07T17:56:19 | 2020-04-07T17:56:19 | 169,764,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import pathlib
import os
import sys
os.environ['QT_QPA_PLATFORM'] = 'offscreen' # prevents some fastai imports from causing a crash
try:
from ulmfit_experiments import experiments
except ModuleNotFoundError:
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from ulmfit_experiments... | [
"tomek.pietruszka@gmail.com"
] | tomek.pietruszka@gmail.com |
57c22cd8876ae6bdf928f7d58919d905f86c43a5 | d343b6f47b9241f3822845c6627b82c9f98b95c4 | /core/apps.py | ab6efcf7bc66b12c7822555e95a5755b283f13ad | [] | no_license | ivan371/kiber | 11f23171bd51b29d210c44db0784b6caea31bdd6 | 39d7834c5e4e5497061748bd66232936300adda4 | refs/heads/master | 2021-05-05T06:30:55.836149 | 2020-06-16T20:37:59 | 2020-06-16T20:37:59 | 118,800,832 | 0 | 0 | null | 2020-06-16T20:38:00 | 2018-01-24T17:51:29 | JavaScript | UTF-8 | Python | false | false | 144 | py | from django.apps import AppConfig
class CoreConfig(AppConfig):
name = 'core'
def ready(self):
from .views import UserViewSet
| [
"ivan@DESKTOP-GM6Q430.localdomain"
] | ivan@DESKTOP-GM6Q430.localdomain |
e79dca9531ee613ea930b7be4c7871b1eac88c18 | d608c2b9fbfcd142fa82875f01f70e1db95cecef | /FlaskAppVenv/Lib/site-packages/pymysql/tests/test_connection.py | c626a0d39468fc0249dbdd719881a28872564b48 | [
"MIT"
] | permissive | nidheekamble/SponsCentral | 9b30918006b98f242de86920a550f8e072ba093f | b8189993cb87cc2d83e36c9d72df7a3b7d620bd7 | refs/heads/master | 2022-12-21T11:14:36.565494 | 2021-01-31T16:15:33 | 2021-01-31T16:15:33 | 135,418,522 | 1 | 2 | MIT | 2022-12-08T07:57:59 | 2018-05-30T09:16:30 | Python | UTF-8 | Python | false | false | 24,709 | py | import datetime
import sys
import time
import unittest2
import pymysql
from pymysql.tests import base
from pymysql._compat import text_type
from pymysql.constants import CLIENT
class TempUser:
def __init__(self, c, user, db, auth=None, authdata=None, password=None):
self._c = c
self._user = user
... | [
"shreyansh.chheda@gmail.com"
] | shreyansh.chheda@gmail.com |
ba543c69df6097031a5e3dfae710324c39db3560 | 43671eb2be91782ac2096b9ec64e3a02b5aa9559 | /elComandante/lowVoltage_agente.py | cab98c5f206c5377ec93e1596070cdea46f3e0d2 | [] | no_license | psi46/elComandante | fba87eda9c404de0ceed0ab9b81f5258f172325b | 052066eda34d1e335128af214e55e330f9b6e855 | refs/heads/master | 2020-04-06T12:37:01.024183 | 2016-11-28T14:23:31 | 2016-11-28T14:23:31 | 28,905,523 | 1 | 4 | null | 2015-08-08T11:06:20 | 2015-01-07T08:25:52 | FORTRAN | UTF-8 | Python | false | false | 7,695 | py | ## @file
## Implements the agente class lowVoltage_agente
## @ingroup elComandante
## @ingroup elAgente
import os
import subprocess
from myutils import process
import el_agente
def preexec():
os.setpgrp()
## Agente class that communicates with the lowVoltageClient
##
## This is the agente whose job is to communict... | [
"mrossini@phys.ethz.ch"
] | mrossini@phys.ethz.ch |
c52152bc18b44d48c909e1256ce9ae3b6d37647f | 310a141e68d730f2e3a0dee21b14cca65883e521 | /courses/migrations/0008_course_passed.py | 1ec04deca6b315eb29f330e1aa93eb3abec9e6b9 | [] | no_license | sokogfb/edu_fcih | 5c2eb883b88d70a34c7f21487527f18a8f6a26b2 | c480b448350226a1727f1d155e99dbe1ca6d30e7 | refs/heads/master | 2021-09-12T14:53:38.484104 | 2018-04-17T23:13:10 | 2018-04-17T23:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # Generated by Django 2.0.3 on 2018-04-02 19:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0007_term_active'),
]
operations = [
migrations.AddField(
model_name='course',
name='passed',
... | [
"abdelrahman.sico_931@fci.helwan.edu.eg"
] | abdelrahman.sico_931@fci.helwan.edu.eg |
43d6dc559a18868fb2fe56aa0c08b57bada0fce3 | f80b0891fbd9bbda3532327ed8129406d00947b7 | /IP/Lista-6/Comando de Repetição (while) – Roteiro Laboratório/3.py | 49086875a6382fccd9177714b3408668a594bca2 | [] | no_license | viniciuspolux/UFPB | d7e7cd7101e90b008391605832404ba2ae6d2001 | 445fc953d9499e41e753c1c3e5c57937d93b2d59 | refs/heads/master | 2021-01-19T20:44:51.869087 | 2017-08-30T17:16:07 | 2017-08-30T17:16:07 | 101,222,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | numeroa,numerob=map(int,input("Digite dois números com um espaço entre eles =").split())
x=1
while x < 2 :
if(numeroa > 0 and numerob > 0):
soma= numeroa + numerob
prod= numeroa * numerob
print("{} {}" .format(soma,prod))
else:
print("Você digitou um número inválido")
x += 1... | [
"30605184+viniciuspolux@users.noreply.github.com"
] | 30605184+viniciuspolux@users.noreply.github.com |
cafe602ff007a80036f57b301bc84dd23e3e5581 | eabe529cbf8a6ae6b0ae476961d69182a1827842 | /parlai/tasks/tasks.py | 421987f23ab2036c478bf84fb049b4e23a1fb35f | [] | no_license | JiaQiSJTU/ResponseSelection | b3ce8a15129e23830ba3a7311d0b2eb831217163 | 660732f7cc9c0c419a3cf26c85430eb258e5f1f0 | refs/heads/master | 2023-07-04T18:59:47.498626 | 2021-09-01T08:04:54 | 2021-09-01T08:04:54 | 297,997,764 | 28 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | #!/usr/bin/env python3
"""
Helper functions for defining the set of tasks in ParlAI.
The actual task list and definitions are in the file task_list.py
"""
from .task_list import task_list
from collections import defaultdict
def _preprocess(name):
return name.lower().replace('-', '')
def _build(task_list):
... | [
"Jia_qi_0217@163.com"
] | Jia_qi_0217@163.com |
37494b82fc1bfeefecdc11791dc68f84c757fca1 | d4184f2468852c5312e3e7a7e2033f1700534130 | /workflow/scripts/write_qc_metadata.py | ff0bfbcb948de8f68f439f1276ce7b4d6f9d7863 | [] | no_license | austintwang/ENCODE_scATAC_bingren_raw | d85b529cecd55e596c1d96ea370ade57cf418e81 | 9c1a6b23615a9d0f6d28f7e9ea6937755016b086 | refs/heads/master | 2023-08-17T04:03:46.276522 | 2021-09-19T00:40:32 | 2021-09-19T00:40:32 | 407,326,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,760 | py | """
Adapted from https://github.com/ENCODE-DCC/atac-seq-pipeline/blob/master/src/encode_lib_log_parser.py
"""
from collections import OrderedDict
import json
import os
def to_int(var):
try:
return int(var)
except ValueError:
return None
def to_float(var):
try:
return float(var)
... | [
"austin.wang1357@gmail.com"
] | austin.wang1357@gmail.com |
461f9252ada4badc3896e5dda3754393969d3ce1 | 42e9810116a4c726f2fb60a0133fc3b81670c0e1 | /setup.py | 41ff4cdca9f78be739cc42a2b42a8886a90aca79 | [
"BSD-3-Clause"
] | permissive | pinjasec/binarypinja | 247e6a13f3b4f58fb16aab00a3649f575b428db6 | 106bb2c68ea530cbf99079749f1a7184cf21d480 | refs/heads/master | 2020-07-24T19:57:50.921387 | 2019-09-12T11:15:21 | 2019-09-12T11:15:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | from setuptools import find_packages, setup
setup(
name='pinja',
packages=find_packages(),
version='0.1.0',
entry_points={
'console_scripts':
'pinja = pinja.main:main'
},
description='A short description of the project.',
author='*pinja_sec',
license='BSD-3',... | [
"poo_eix@protonmail.com"
] | poo_eix@protonmail.com |
2eb829c87ae5849e5b0d7bf0a4c9e93efc347ecc | 32d934cabb1eac917bb583a1428b87f78b335a4e | /code_per_day/day_47_to_48.py | a8d229a9b40eae3b056c893a2848e2fd3d553e8c | [] | no_license | zotroneneis/magical_universe | 7339fefcfdf47e21e5ebcc6f56e3f1949230932a | c5da3367b7854c4cf9625c45e03742dba3a6d63c | refs/heads/master | 2022-12-07T20:21:25.427333 | 2022-11-13T14:33:01 | 2022-11-13T14:33:01 | 141,951,821 | 414 | 58 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | from collections import defaultdict
class CastleKilmereMember:
""" Creates a member of the Castle Kilmere School of Magic """
def __init__(self, name: str, birthyear: int, sex: str):
self.name = name
self.birthyear = birthyear
self.sex = sex
self._traits = defaultdict(lambda: Fa... | [
"popkes@gmx.net"
] | popkes@gmx.net |
58530dd0f15e00fa4623a19b9378cc34b6dd4111 | e5937e1305b6f1a68c98bf85d479f2cc46271f6d | /First.py | 8dccbe53121fefa238ea688a09fb13622b1be489 | [] | no_license | sishen123258/python | 14b974cc078e9b2f6e0a15561a071da7acbccd91 | 3e1fde3289f018979f9b67799fa2daee8920beaa | refs/heads/master | 2021-04-09T16:51:28.129461 | 2015-05-29T07:38:29 | 2015-05-29T07:38:29 | 35,621,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | __author__ = 'Yue'
#
# class MyFirstPyClass:
# "first py class"
#
# def _init_(self, pm, ph):
# self.name = pm
# self.phone = ph
# print("self created:", self.name);
#
# def updatePhone(self, ph):
# self.phone = ph
# print("self phone changed:", self.phone);
#
class... | [
"1144299328@qq.com"
] | 1144299328@qq.com |
0ae601e2d21d74e13bbdd78607d416c058eed97a | 5d4def230bad7174e2a2352d277d391dfa118694 | /vocab.py | 3ae126b0cb1ca0de8128bb2c779c875720f8c902 | [] | no_license | hitercs/biLSTM-SlotFilling | a733b2df0e65834b6c6a91d609daa60c73c596ca | 8a0c1baed51e668e7fc4119f69ca6491e7328e7c | refs/heads/master | 2020-03-14T07:20:50.869860 | 2018-05-01T10:35:18 | 2018-05-01T10:35:18 | 131,502,870 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | #-*- encoding: utf-8 -*-
import codecs
import settings
from util import Util
class BiVocab(object):
def __init__(self, src_vocab, trg_vocab):
self.src_vocab = src_vocab
self.trg_vocab = trg_vocab
self.src_vocab_size = src_vocab.vocab_size
self.trg_vocab_size = trg_vocab.vocab_size
... | [
"schen@ir.hit.edu.cn"
] | schen@ir.hit.edu.cn |
ec3ee36ac1ce3cea82d7bfe1563d5a76ade5968f | 7a583c534559ad08950e6e1564d4a59095ce9669 | /autoclient/src/plugins/memory.py | bc4df39f71e332e172e24144a790ef9c8973a5a3 | [] | no_license | wyyalt/cmdb | 67fbeabda2035e11c1933ab84b75c9c3feac7d92 | c43c17db7c6fb9f63b2387b7054a89a54bee199a | refs/heads/master | 2021-05-05T12:05:38.026134 | 2017-09-25T14:58:24 | 2017-09-25T14:58:24 | 104,718,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | import os
from lib import convert
from lib.conf.config import settings
class Memory(object):
def __init__(self):
pass
@classmethod
def initial(cls):
return cls()
def process(self, command_func, debug):
if debug:
output = open(os.path.join(settings.BASEDIR, 'files/... | [
"wyyalt@live.com"
] | wyyalt@live.com |
5f620ca66ea5f22f98da060905725de7b1622114 | e8c0513bce6ba781d6d55c48330c54edbd20cc23 | /manage.py | d66549db189c8fe3cddba1a8a34913eaa50627a3 | [] | no_license | BohnSix/myblog | aad06969026e5e0059e83d3c8bedab66eab3a5d2 | 3961bd813c8d706b15e66cd55dff2edeb992ca3c | refs/heads/master | 2022-09-25T00:47:35.509766 | 2019-11-21T08:33:20 | 2019-11-21T08:33:20 | 185,914,940 | 2 | 1 | null | 2022-09-16T18:13:43 | 2019-05-10T03:49:23 | JavaScript | UTF-8 | Python | false | false | 721 | py | from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager, Shell
from app import create_app, db
from app.models import *
app = create_app(config_name="develop")
@app.template_filter()
def countTime(content):
return int(content.__len__() / 200) + 1
manager = Manager(app)
migrate = Migr... | [
"bohn_six@163.com"
] | bohn_six@163.com |
c770c4a0ef473e599ea32a354884f2360f88218a | 365051fefddc9d549201225915122cb413168919 | /final CNN data aug/data_aug_v03.py | 1360161c08ef375089f3a624dd6d9ccfb8841482 | [] | no_license | PauloAxcel/SERS-EHD-pillars | 1623f5141a3d6fcd6b6f13e83afe1dac08cb893a | 89c029be9f3cb435103f497644d30e75ce3ae3ad | refs/heads/main | 2023-07-19T10:04:44.237797 | 2021-09-04T21:05:14 | 2021-09-04T21:05:14 | 375,076,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 15 13:05:02 2019
@author: paulo
"""
#DATA AUGMENTATION
import os
import cv2
import random
import numpy as np
import matplotlib.pyplot as plt
from keras.preprocessing.image import ImageDataGenerator
#get the folders
SERS_train_dir = r'/home/newuser/Desk... | [
"noreply@github.com"
] | PauloAxcel.noreply@github.com |
62c20ca9fb15d381b187ac793e03b1b5242e6d37 | 495b0b8de3ecc341511cdb10f11368b35b585bea | /SoftLayer/CLI/modules/filters.py | 1e4274ac04ae064468c5d1d0736b540b8f35416c | [] | no_license | hugomatic/softlayer-api-python-client | cf6c1e6bfa32e559e72f8b0b069339ae8edd2ede | 9c115f0912ee62763b805941593f6dd50de37068 | refs/heads/master | 2021-01-18T11:09:19.122162 | 2013-04-09T01:44:51 | 2013-04-09T01:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | """
usage: sl help filters
Filters are used to limit the amount of results. Some commands will accept a
filter operation for certain fields. Filters can be applied across multiple
fields in most cases.
Available Operations:
Case Insensitive
'value' Exact value match
'value*' Begins with value
'*value... | [
"k3vinmcdonald@gmail.com"
] | k3vinmcdonald@gmail.com |
cd04729dafc1306355807963c87d375bbfa6c2a7 | 6b096e1074479b13dc9d28cec7e5220d2ecc5c13 | /Python/q34.py | af3b5a71997a6c98c126bd1f89d3957a291886a6 | [] | no_license | wzb1005/leetcode | ed3684e580b4dae37dce0af8314da10c89b557f7 | 4ba73ac913993ba5bb7deab5971aaeaaa16ed4d7 | refs/heads/master | 2023-03-19T06:37:30.274467 | 2021-03-09T03:02:57 | 2021-03-09T03:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from typing import List
class Solution:
def searchRange(self, nums: List[int], target: int) -> List[int]:
| [
"chiyexiao@icloud.com"
] | chiyexiao@icloud.com |
853e8cd7d44015eb9bfbe2e8d913ffb2d35fe27c | 35c75ed0ca9850a6dd62d0e19b7e2ab472c5f292 | /shop/migrations/0002_auto_20171109_0354.py | f417d1eaa71b14f9d43a38cb507c9d803779dad6 | [] | no_license | HyeriChang/tuanh | 1314b270d7b8d44424c5b6b82361b20397d30f4b | 38546afde0a4fa6a54727b4595b7cfa7c8baec1e | refs/heads/master | 2021-05-07T06:32:31.060921 | 2017-12-06T09:36:48 | 2017-12-06T09:36:48 | 111,763,554 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-09 03:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"anh.nguyentu3110@gmail.com"
] | anh.nguyentu3110@gmail.com |
10fe64c7113e565bb25b1d2565fa28e8ea3cfdcd | 40711c0546644d1bb8709ee348211d294c0a48d2 | /Rapport/Benchmarking/state_plot.py | 48111f01a271055f269de89702c8ec49040ddac4 | [] | no_license | smaibom/bach_2015 | aaefa2a33cc0d5bb06761d72a3820ee0f2cfe290 | 4177977b81bb6f6c945e5e8a1956dbd4ca4b43f2 | refs/heads/master | 2021-01-20T21:53:03.374855 | 2015-06-07T21:54:47 | 2015-06-07T21:54:47 | 31,496,008 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | """
Demo of a simple plot with a custom dashed line.
A Line object's ``set_dashes`` method allows you to specify dashes with
a series of on/off lengths (in points).
"""
import numpy as np
import matplotlib.pyplot as plt
#x = np.linspace(0, 22, 22)
grosses = [62242364,123246883,122562228,122562228,183556657,184105105... | [
"kullax@feral.dk"
] | kullax@feral.dk |
61c91a5a98307bf6308fc87306a01cc429275024 | 83dc2a8d80a0614c66016efba9630cd60538d4b8 | /spider_traffic/test.py | 5a9cc750354cadebbffc1e99a03d3901ab54aea1 | [] | no_license | hanxianzhe1116/Python_Spider | 5095297e6071842aef95d0264b2024d5a0e81ce5 | ba3757acf2ed133ab76720a146d380eafe69a092 | refs/heads/master | 2021-01-04T09:29:13.616769 | 2020-10-19T02:16:17 | 2020-10-19T02:16:17 | 240,488,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | import requests
import re
import json
import csv
from urllib.parse import urlencode
import datetime
import time
'''
函数说明:输入url及其参数
params:
baseUrl:最开始的url
cityCode:城市编码,这里我选择的是重庆,重庆编码:132
roadType:道路类型
callBack:返回类型
'''
def getPage(baseUrl,cityCode,roadType,callBack):
#headers信息
params = {
... | [
"876605943@qq.com"
] | 876605943@qq.com |
af585888517df64c46a62653fa6ff3912e6b9f0d | 508c5e01aa7dce530093d5796250eff8d74ba06c | /code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/tests/test_schema_get.py | d39692be0008269bf1791e585f1e0e92b09181fa | [
"MIT",
"PostgreSQL"
] | permissive | jhkuang11/UniTrade | f220b0d84db06ff17626b3daa18d4cb8b72a5d3f | 5f68b853926e167936b58c8543b8f95ebd6f5211 | refs/heads/master | 2022-12-12T15:58:30.013516 | 2019-02-01T21:07:15 | 2019-02-01T21:07:15 | 166,479,655 | 0 | 0 | MIT | 2022-12-07T03:59:47 | 2019-01-18T22:19:45 | Python | UTF-8 | Python | false | false | 2,132 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
from pgadmin.brow... | [
"jhkuang11@gmail.com"
] | jhkuang11@gmail.com |
11aa915574de5fc4f11f5c7671205cfbaa964fe2 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/copp/lacpallowhist5min.py | 2d5afaedb106d24fcc43463d8548e0ce36b681e4 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,598 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
ac19567d2c9ed4b4c9852a5ca2ad7fbd7ab5185d | 7fdf9c9b4f9601f1f24414da887acb03018e99f1 | /gym/gym/settings.py | 80b1a8a45b3e88065e60982b4b7505f389a7c7e7 | [] | no_license | sid-ncet/fitnesss | d96653022664ec2b1c9a5811fc3f7048a122e3ed | fc62c77abe30659131f0befc93424f8bb9333a0b | refs/heads/master | 2023-04-25T19:02:12.719223 | 2021-06-05T06:53:17 | 2021-06-05T06:53:17 | 374,042,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | """
Django settings for gym project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from pa... | [
"siddharthsinghcs11@gmail.com"
] | siddharthsinghcs11@gmail.com |
5d5b6258a717833464801f98683c23cb6435e4f2 | 25ec545186596ea20ade231e1fa2a83faac0aa33 | /penncycle/app/models.py | f5690000a90aa27fd65ef1dfff8d9f99576c6dfa | [] | no_license | rattrayalex/PennCycle | a0f43ef7a1390fea3016ed5ac96cca5ab431e8e1 | dbcfa68c7bf9c928c559ba310e23be12e01ad998 | refs/heads/master | 2020-04-28T22:40:43.747751 | 2013-05-14T22:01:18 | 2013-05-14T22:01:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,559 | py | import datetime
from django.core.mail import send_mail
from django_localflavor_us.models import PhoneNumberField
from django.template.defaultfilters import slugify
from django.db import models
from django.core.validators import RegexValidator
from south.modelsinspector import add_introspection_rules
# Necessary beca... | [
"razzi53@gmail.com"
] | razzi53@gmail.com |
fc0d28850895dd119c8a2b4afc9f5481bb7779fe | b9eef16211d4a5f2e5b51c0ddfb7dc0a9608db86 | /Chap2InprovingDNN/week2/optimization/optimization.py | e2e8cee8f4713b5cd9743e543af41771e71a40f0 | [] | no_license | vinares/DeepLearning | 905f44655c0b72c9ba6d52bf1c15146b0d07fc92 | c307c3c1063a101dcfa192bc3b8671c2781e31f3 | refs/heads/main | 2023-06-22T05:45:46.716091 | 2021-07-21T09:03:02 | 2021-07-21T09:03:02 | 369,407,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,039 | py | import numpy as np
import matplotlib.pyplot as plt
import scipy.io
import math
import sklearn
import sklearn.datasets
from opt_utils_v1a import load_params_and_grads, initialize_parameters, forward_propagation, backward_propagation
from opt_utils_v1a import compute_cost, predict, predict_dec, plot_decision_boundary, l... | [
"877649518@qq.com"
] | 877649518@qq.com |
76f0bfb3491090f86e4d11cf509c6a61dde62e2f | 1f9d8381f111ee34be61a82cdf2038afc1a44079 | /sequenceToLine.py | 848d936908c046a2428b7f84395126b3190bd404 | [
"BSD-3-Clause"
] | permissive | el-mat/ectools | f35d305c8fd558436cd7534c5fe4db66fffead24 | 031eb0300c82392915d8393a5fedb4d3452b15bf | refs/heads/master | 2021-01-23T21:10:42.869782 | 2014-12-01T14:07:00 | 2014-12-01T14:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!/usr/bin/env
import sys
from seqio import iteratorFromExtension
from nucio import fileIterator
if not len(sys.argv) == 2:
sys.exit("sequencToLine.py in.{fa.fq}\n")
it = iteratorFromExtension(sys.argv[1])
for record in fileIterator(sys.argv[1], it):
if hasattr(record, "desc"):
print "\t".join([reco... | [
"gurtowsk@mshadoop1.cshl.edu"
] | gurtowsk@mshadoop1.cshl.edu |
661b9aa3fceb522de6be34632dd648f5060f74c3 | a69b96621abef181606fd3d68eebaa5b655ed529 | /Lesson3problem2.py | baf178f6055c80d571cdd52706d09817b15fd3d5 | [] | no_license | agonzalez33/Lesson3 | 3724be5e602a9befafe72be8570a5e3cc6ab2ec0 | cc7dfe7a43b3691141a1d9f81d5939d5134a23e3 | refs/heads/master | 2020-05-03T04:00:58.346507 | 2019-03-29T13:35:45 | 2019-03-29T13:35:45 | 178,411,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | for integer in range(1000,0,-1):
print(integer)
print('Blast off!') | [
"noreply@github.com"
] | agonzalez33.noreply@github.com |
849b16fbf6169f6d56be1d9b19ad76d20f75fe68 | 92dbb16f383754fd9fd8d35c87b68977ec42a586 | /Geogria/20200514-graph/map_world.py | 847c835b947d72027a50300d73ea3ed4aef2713e | [] | no_license | YWJL/pchong | c0c1bfa4695ac3b143430fd2291b197b4fdab884 | eaa98c5ed3daad60e8ac0560634ba631e665f00e | refs/heads/master | 2022-11-11T00:01:55.550199 | 2020-07-01T06:11:56 | 2020-07-01T06:11:56 | 276,290,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,565 | py | import pandas
from pyecharts import options as opts
from pyecharts.charts import Bar, Grid, Line
from pyecharts import options as opts
from pyecharts.charts import Map
from pyecharts.faker import Collector, Faker
from pyecharts.datasets import register_url
import pandas as pd
import asyncio
from pyecharts.commons.utils... | [
"201256153@qq.com"
] | 201256153@qq.com |
8fcae2a12359d68896b1d9e5d7db84dacd86f151 | 3f453e74ae03c777d4ca803623cf9f69b70ace87 | /mappanel.py | 3d92e74b1764f1483756c88d1f68dbe828478608 | [] | no_license | acidtobi/weewar_clone | 5a348ece62ff22f3a0812867a93ac5f5a370f782 | 5b0575ee7534278d49df446a852e33d3f232d6e7 | refs/heads/master | 2021-05-04T10:41:44.741431 | 2016-02-11T20:47:23 | 2016-02-11T20:47:23 | 50,377,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,916 | py | from __future__ import division
import wx
import wx.lib.scrolledpanel
class MapPanel(wx.lib.scrolledpanel.ScrolledPanel):
def __init__(self, parent, background_tile, size, innerbitmap=None):
self.background_tile = background_tile
self.InnerSize = size
self.innerbitmap = innerbitmap
... | [
"acidtobi@gmail.com"
] | acidtobi@gmail.com |
1f276f5a21289f070e9ebfcc655a747a3d1cd3b1 | 0104f7736632084592cd6ced20de0be9fb9e24ac | /剑指offer/构建乘积数组.py | 09d398118fb634a3669c2c9da9a75f98947ad262 | [] | no_license | longkun-uestc/examination | 9eb63b6e8ffdb503a90a6be3d049ad2fdb85e46c | ef1d29a769f2fd6d517497f8b42121c02f8307cc | refs/heads/master | 2021-06-25T23:11:24.460680 | 2021-06-23T03:28:55 | 2021-06-23T03:28:55 | 228,847,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | class Solution:
def multiply(self, A):
left_to_right = [-1]*len(A)
right_to_left = [-1]*len(A)
left_to_right[0] = 1
right_to_left[-1] = 1
for i in range(1, len(left_to_right)):
left_to_right[i] = left_to_right[i-1] * A[i-1]
for i in range(len(right_to_left... | [
"1256904448@qq.com"
] | 1256904448@qq.com |
9c49c4755281a3c8a9b671df5099d752953dc5ec | b4ef8fcaf8e8818215add4402efadfef9bda45ee | /sample_code/python/vessels_v2_graphql/run.py | e393f1cdfdf590796dd7068877f0fcb1a4f2fb1a | [] | no_license | ykparkwixon/maritime | aebbbfe8e2f1ebb1bf2dbb01a94127977251285c | 378834c9b521ff538395c36e377117c87760fe22 | refs/heads/main | 2023-07-17T07:00:17.651206 | 2021-08-30T22:18:14 | 2021-08-30T22:18:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | import yaml
import json
import csv
from loguru import logger
from utilities import paging, helpers
from gql import gql
logger.add('demo_client.log', rotation="500 MB", retention="10 days", level='DEBUG')
rows_written_to_raw_log: int = 0
rows_written_to_csv: int = 0
pages_processed: int = 0
wrote_csv_header = False
... | [
"78374623+brucebookman@users.noreply.github.com"
] | 78374623+brucebookman@users.noreply.github.com |
3774ffc4fdcb9c86ca755421da7b371e9f1e7d2c | 6f61a105f85f9e4b6b98494b45e96d3099402449 | /kapool/settings.py | 7993700b0e3d7208e963c459ba82c5a60ebc6863 | [
"MIT"
] | permissive | Marah-uwase/carpool | 00ca3b230fbe2bfabb4660cbf8974a902dadc85b | 6ee69e1ad48352a4d1f59f372b41a2891fc58ec7 | refs/heads/models | 2023-02-25T19:52:44.180676 | 2021-02-02T08:22:05 | 2021-02-02T08:22:05 | 334,284,598 | 0 | 0 | null | 2021-02-01T13:21:49 | 2021-01-29T23:14:54 | Python | UTF-8 | Python | false | false | 3,767 | py | """
Django settings for kapool project.
Generated by 'django-admin startproject' using Django 3.1.5.
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 pathlib ... | [
"maranahuwase12@gmail.com"
] | maranahuwase12@gmail.com |
0dca2f890e85ab82a477f193ca5d7b13bb4452f4 | 5310aad336ad7cdc304a7204d4bd91b4fa754f1e | /Lab3/homework/serious_ex9.py | 1c3bf0845b2d742f8ca01016425fdb34f9ee6da7 | [] | no_license | dattran1997/trandat-fundamental-c4e17 | 329e294f68bde1fc04d53c0acd0f9a7e87d7d444 | fd2f0648f28e78769f7fbf3e40e9973bf211f1de | refs/heads/master | 2020-03-09T22:49:56.228853 | 2018-05-29T04:22:39 | 2018-05-29T04:22:39 | 129,044,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | def get_even_list(list):
new_list = []
for i in list:
if (i % 2 == 0):
new_list.append(i)
return new_list
if __name__ == "__main__":
list = [1,4,5,-1,10]
newlist = get_even_list(list)
print(newlist)
| [
"dattran1997@gmail.com"
] | dattran1997@gmail.com |
6763b1340462fabc349debc7f52e0774a21e430f | 7c59004e0165c9b32dc5b786b96fc4d81f565daf | /predictor_ker.py | db39a01a8c2f10a576acb2f85d032224fae85302 | [] | no_license | LeonHardt427/mayi | f04d7d7bca68e0a3a57ca2ef2de14af7db28d2e7 | 679f688a971075794dd3d4ed0a7cbc50931a422f | refs/heads/master | 2020-03-20T05:34:58.677201 | 2018-07-08T03:23:23 | 2018-07-08T03:23:23 | 137,219,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | # -*- coding: utf-8 -*-
# @Time : 2018/5/29 10:11
# @Author : LeonHardt
# @File : predictor_ker.py
import os
import numpy as np
import pandas as pd
from sklearn.preprocessing import Imputer, OneHotEncoder
import tensorflow as tf
from keras import Sequential
from keras.layers import Dense, Activation
# data_pat... | [
"leonhardt427@126.com"
] | leonhardt427@126.com |
be3571f979caec5427a8a79884e69c6e57bd6ecf | 27c1ba6ed6c1586a348cdcfe26d17be13ae38b72 | /scripts/hello_world_pallavisavant.py | c4a681787dd9cfab9a8e69eddfd8f12183f68509 | [] | no_license | codewithgauri/HacktoberfestPR2020 | 4299f2ae8f44b31c6ecbeaefa058fde26327a253 | 335310f3d81029938d119e15d3f1a131d745d3f2 | refs/heads/master | 2022-12-30T20:28:41.937632 | 2020-10-26T06:47:24 | 2020-10-26T06:47:24 | 307,281,958 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | #python code to print 'Hello World" :)
print("Hello World") | [
"pallavisavant02@gmail.com"
] | pallavisavant02@gmail.com |
b101ab8c3181c1392886b3ff9ddf5ba9a39dd257 | 7ff1ebbaaccd65665bb0fae19746569c043a8f40 | /readcsv.py | 28ea6bc771aee30752a72b42cf17a39c26ce3f94 | [] | no_license | Mutugiii/bot | 1cbc8e8493de5a31b831722c698fd8c7b1f60bf5 | 3d4ccbf8dbe981e2c363ad6f2774deb2d34ac110 | refs/heads/master | 2022-12-11T22:04:53.040939 | 2020-05-20T11:09:54 | 2020-05-20T11:09:54 | 247,986,918 | 0 | 0 | null | 2022-12-08T09:33:14 | 2020-03-17T14:11:54 | Python | UTF-8 | Python | false | false | 77 | py | import pandas
dataformat = pandas.read_csv('csv/data.csv')
print(dataformat) | [
"mutugimutuma@gmail.com"
] | mutugimutuma@gmail.com |
eeaa16fb67a5f6fb3382537928469d161d2ee20e | 985be2d2d979c1d5ffbd6cd73d9da711951e4f1c | /chat/consumers.py | a2ffba5a9b3687a82d2473cd12f884a487b2d806 | [] | no_license | sreesh-mallya/django-channels-demo | 6a1492c2ffe3a8f37782ced19562c629fa65ee8f | 8a3ac7d3e04ecd8c5053009f760d84e3b9415882 | refs/heads/master | 2021-01-23T22:16:04.353634 | 2017-09-19T03:44:00 | 2017-09-19T03:44:00 | 102,924,295 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | import re
import json
import logging
from channels import Group
from channels.sessions import channel_session
from .models import Room
@channel_session
def ws_connect(message):
# Could use more error handling here
prefix, label = message['path'].strip('/').split('/')
try:
room = Room.objects.get... | [
"sreeshsmallya@gmail.com"
] | sreeshsmallya@gmail.com |
08d2b69ed9e737d8ee5c1f6d6389ece08b8737c4 | 74dd16cb3d4181d4b7b0d1bcfa3aa0c3a617548b | /src/utilities/video_metadata.py | 1545ef9a99282ca5b7d66e4802fd2bebed2c4ba0 | [] | no_license | eliasnieminen/vgs-data-annotation | 4b87a6ece64eb83b6d5d43d34825539a1ff27fc6 | a6569cb52017b88beffa8c1a1332acd9b340646f | refs/heads/main | 2023-07-20T05:13:57.492399 | 2021-08-31T12:16:19 | 2021-08-31T12:16:19 | 398,779,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | import math
from typing import Optional, Union, Dict
class VideoMetadata:
"""Metadata object for videos.
"""
def __init__(self,
dur: Optional[Union[None, float]] = None,
fps: Optional[Union[None, float]] = None,
metadata: Optional[Union[None, Dict]] = N... | [
"elias.nieminen@tuni.fi"
] | elias.nieminen@tuni.fi |
e0aa72eb56790380371681952975423a0c147795 | 1a856152b3ab65a8a0cc5cbedf0492d1c3716d27 | /dropout_acnd_pe_noprior_nochans.py | 2eda907f0b1b6f9a40b45eb2cb3e98dbdb1b24e5 | [] | no_license | stablum/thesis | 272f7f23ad1ad454c9310775b969bb54c84c9ea0 | 5c06d78322ddd6e1b8c214261ea6e4464a094bad | refs/heads/master | 2021-07-23T04:29:28.438657 | 2018-08-18T18:59:11 | 2018-08-18T18:59:11 | 60,299,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,460 | py | #!/usr/bin/env python3
import scipy
import ipdb
import theano
from theano import tensor as T
import lasagne
import numpy as np
import random
import sys
from tqdm import tqdm
tqdm.monitor_interval = 0
import ipdb
# local imports
import movielens
import cftools
import config
import numutils as nu
import augmented_type... | [
"stablum@gmail.com"
] | stablum@gmail.com |
367ec183a847084b29dd59bd79ca5db7e7418f61 | fb46511d2fa968e6a2e74a20a67ace59819e15dd | /ProcessedData/trial.py | 781f802ca1ea3ca3e8a244cc236a45615f979a0c | [] | no_license | PushA308/QPQCT | 6505f18907f8af3d9be24ebf21a01cc6603d657a | 6bd99690df213860a4af83f142423e64fa57c34a | refs/heads/master | 2020-04-27T05:03:55.061701 | 2019-03-06T05:02:51 | 2019-03-06T05:02:51 | 174,071,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,423 | py | import csv
import nltk
import shutil
import os
import sys
import traceback
import win32com.client #pip install pywin32
import nltk #pip install nltk
#nltk.download('punkt')
#nltk.download('averaged_perceptron_tagger')
#include other ntlk packages, if asked for.
##########################################
... | [
"noreply@github.com"
] | PushA308.noreply@github.com |
b4430e26ab1dde9f74b12f200a1896351cd2722b | 4d65f85fb8fba5a3d6582ccbf9d38042ec1ec422 | /代码1/hotdog_war.py | f177dd62bdbf8984d14a17f21671d5aee76aa8df | [] | no_license | qsten/game | f50756d001116f41cfdf7715ee061a3dfa3f9400 | 86164c3dcec869b85aaa777105c7faf738dd8e1f | refs/heads/master | 2020-04-28T10:56:36.871862 | 2019-05-19T13:18:46 | 2019-05-19T13:18:46 | 175,218,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | import pygame
from player import Player
from settings import Settings
import game_functions as gf
from pygame.sprite import Group
from game_stats import GameStats
from button import Button
from scoreboard import Scoreboard
from lifeboard import Lifeboard
from music_button import Music_button
from stop_button... | [
"noreply@github.com"
] | qsten.noreply@github.com |
0a185392606cd314acb4f13f45994b76855c9a6c | 500e5426adf70162cc75ae99be0743129639e4c7 | /gathering_server/gathering/apps.py | 56de823fb91dd525090a6cd2e82d8a62295c84ae | [] | no_license | L3oNav/gathering_server | 8b06ff4f176c6dfe3bc7f5c27bce0c9b4dfae8cb | b708fa831b6b5b227bafebd3ea302bcfa35adc46 | refs/heads/main | 2023-04-01T02:09:11.083248 | 2021-02-18T01:54:23 | 2021-02-18T01:54:23 | 339,837,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class GatheringConfig(AppConfig):
name = "gathering_server.gathering"
verbose_name = _("Gathering")
def ready(self):
try:
import gathering_server.gathering.signals # noqa F401
except Impor... | [
"L3oNav@outlook.com"
] | L3oNav@outlook.com |
bd21bc1c8fa779e7d91a63e97ee2f3b07852e152 | 756504caae02535f359baa1bd232038979f5b3b5 | /AIA/scanm/apps.py | f211b8310e63fa9572dfb5eceffc97ba91744cd3 | [] | no_license | dante993/scantit | b75aac717e68cea25e17a40c44e719c95d0f0376 | 9a447f02af9f23b433bafdd02de852bd1c4e4d9e | refs/heads/master | 2021-01-13T15:04:49.853328 | 2017-05-29T12:52:54 | 2017-05-29T12:52:54 | 79,124,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class ScanmConfig(AppConfig):
name = 'scanm'
| [
"danteejmg@gmail.com"
] | danteejmg@gmail.com |
111d16939c63cebf88383cf5a24501665490bbc1 | 0f7b8d2ae2c0e81941d5ca5fa4c8313cec8d1544 | /endApi/migrations/0008_auto_20200904_0734.py | 89d799dc142fa35893d751810280051c1fd1bddf | [] | no_license | rajielijah/endpoint | 5c061972cb8ab9fc089046dd9e71f194ee6e5aca | 6db1d6c92d57fc143446d2c4df13664ffa5b1f2d | refs/heads/master | 2022-12-27T23:58:22.232298 | 2020-10-01T11:46:45 | 2020-10-01T11:46:45 | 298,791,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Generated by Django 3.0.7 on 2020-09-04 07:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('endApi', '0007_post_image'),
]
operations = [
migrations.AlterField(
model_name='post',
name='image',
fi... | [
"rajielijah@gmail.com"
] | rajielijah@gmail.com |
f84e7e892f22dcef23a66020fb69487611bee303 | b37769515f7e078e2215be27a76a0ba199f7676e | /home/migrations/0003_remove_blog_slug.py | c37321351241594e4fb6b823fb4bc8ea1c54e86c | [] | no_license | roxna/eproc | 15e532a401291505adec086d2c60c78843c9afc6 | f22506e2afd005538c21d7bb678649a3736b6feb | refs/heads/master | 2022-12-02T20:38:49.674344 | 2017-03-28T09:44:03 | 2017-03-28T09:44:03 | 72,560,527 | 0 | 0 | null | 2022-11-22T01:20:51 | 2016-11-01T17:38:57 | HTML | UTF-8 | Python | false | false | 377 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-23 17:51
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0002_blog_slug'),
]
operations = [
migrations.RemoveField(
mode... | [
"roxna.irani@gmail.com"
] | roxna.irani@gmail.com |
b588764a31f012d092aa5fbb402b4f34eead4552 | 1071b46a6ea054a186ab5c270dfdba48362adf70 | /Python/Examples/juego_adivina_el_numero.py | 5231d40690c74099e97d77b93aef36975ff2fe0d | [] | no_license | diegoldsv/technotes | 5aaed2d6ef5037217a0c071b6f7b48b04d89d4fd | 6cb0b90001c52438b74da72c02c664164938d7e9 | refs/heads/main | 2023-05-10T22:08:21.189916 | 2021-05-31T14:14:13 | 2021-05-31T14:14:13 | 351,212,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | import random
def run():
numero_aleatorio = random.randint(1,100)
numero_ingresado = input("Elige un número del 1 al 100: ")
numero_ingresado = int(numero_ingresado)
while numero_ingresado != numero_aleatorio:
if numero_ingresado < numero_aleatorio:
print("Busca un número más grande... | [
"disalvatorediego@gmail.com"
] | disalvatorediego@gmail.com |
ce3bfb840d3411bd2a1255ab453499c357ba459b | f407b21811c8eebbf1c32d6aadc502403d83d048 | /problem19.py | edb8fdb3cd28c83eb54faa6fca3eb45a9fee0301 | [] | no_license | gnikesh/project-euler | 37e95cbc0c82ff54ddb23b89f4f38067ec69d5c8 | 0d39c7b78fc2e11d2f863e7ae40fb27f93a18fbc | refs/heads/master | 2021-08-20T04:53:54.266867 | 2021-01-20T23:21:00 | 2021-01-20T23:21:00 | 87,681,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | # 1 Jan 1900 was a Monday.
# Thirty days has September,
# April, June and November.
# All the rest have thirty-one,
# Saving February alone,
# Which has twenty-eight, rain or shine.
# And on leap years, twenty-nine.
# A leap year occurs on any year evenly divisible by 4, but not on a century unless it is divisible by 4... | [
"gnikesh03@gmail.com"
] | gnikesh03@gmail.com |
cc4189ead66a7efb115d15670bd7e27b82860536 | 3874a909e3152fda6a87dbb0ef05b18d6908807c | /la/parse_tabs.py | 0de026ab72ba5ab67f99b19a08939f52599c51dc | [
"MIT"
] | permissive | FranchuFranchu/la | f5ef3f8d43aec67d84030018278640d91a77dd05 | 7afa25d3d102f5a0316f5084a46a04e62976991b | refs/heads/master | 2020-07-24T07:50:01.756324 | 2020-04-18T15:49:03 | 2020-04-18T15:49:03 | 207,853,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # Converts python-style code into JS-style code
def tabs_to_codeblocks(d):
list_index = 0
code = list(d)
at_newline = True
current_indentation = 0
this_line_indentation = 0
while list_index < len(code):
if at_newline:
if code[list_index] in (" ", "\t"):
this_l... | [
"fff999abc999@gmail.com"
] | fff999abc999@gmail.com |
6c16d977d5da188d8203250fd478cfac76c891cc | 85c9d6fdff58b9cb40f5fdb9f01ff1a0dd386113 | /bot_tests/reminder.py | ef7aa772e1bbf39b40113c0d3d7e94d3036748d1 | [] | no_license | jmccormac01/karmafleet | 5874644c496b0bbcb2037404ad7ed43a1e4caaae | 57ebefbbc6ec3aae634cd9196950f103d48eae95 | refs/heads/master | 2020-03-25T17:24:39.187176 | 2019-04-20T18:17:05 | 2019-04-20T18:17:05 | 143,976,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | """
Bot for converting EVE times to local timezones
"""
from datetime import datetime
from pytz import timezone
import discord
from discord.ext import commands
import asyncio
# pylint: disable=invalid-name
Client = discord.Client()
client = commands.Bot(command_prefix="!")
reminders = {}
async def reminder_handler(r... | [
"jmccormac001@gmail.com"
] | jmccormac001@gmail.com |
0dca7a66a1da77d96fed23a3f91e8168a80f5e26 | 0ee64034518898893d495639cb01aa9523789f77 | /2018 Materials/Resources/Week 4/RaspberryPi.py | 63b9c98778493a0ca93bb145474cbfe01bd4c169 | [
"MIT"
] | permissive | Phangster/digital-world-for-normal-humans | 31187b47e16d4359fce2ecac2ce7b5c1aa88d909 | 29a479af2e380bdf691f6487167d0d8edf0ba5ed | refs/heads/master | 2020-05-07T19:52:37.655375 | 2018-12-29T14:32:35 | 2018-12-29T14:32:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | import RPi.GPIO as GPIO
from time import sleep
from firebase import firebase
url = "https://internet-of-things-c572e.firebaseio.com/"
token = 'qcHr20bWwg1ziqik58l39JD8UlcLLIGa8HJ0DaSC'
firebase = firebase.FirebaseApplication(url, token)
# Use the BCM GPIO numbers as the numbering scheme.
GPIO.setmode(GPIO.BCM)
# ... | [
"thaddeus.phua@gmail.com"
] | thaddeus.phua@gmail.com |
a07905b07cfcf4e19974315b9839310a2d8f725c | d4a88b3b102e20e727cae8fbd4167dcb4b57d1ec | /additional_examples/py2exe_setup__basic_test.py | 746c5610f04ff4682414ded9ad60376e1f9e3b2d | [
"MIT"
] | permissive | viblo/pymunk | ca64888e45706db431788368ff8464edf2912d5f | 20ac14f665fb38b4ef1bef5acea36a3d612dd0d5 | refs/heads/master | 2023-08-27T16:37:14.740653 | 2023-08-16T19:26:16 | 2023-08-16T19:26:16 | 13,273,472 | 855 | 255 | MIT | 2023-01-13T10:13:47 | 2013-10-02T14:36:46 | Python | UTF-8 | Python | false | false | 218 | py | """Simple example of py2exe to create a exe of the no_dependencies example.
Tested on py2exe 0.13.0.0 on python 3.11
"""
import py2exe
py2exe.freeze(console=["no_dependencies.py"], options={"includes": ["pymunk"]})
| [
"vb@viblo.se"
] | vb@viblo.se |
98239088c3b4a53c50df2bc9f8bf239942107bf9 | a36d54fb56bc2898089d6ad407bc2039a55271d4 | /zdevicemanager/base/tools.py | 8385f630bed268e1b477abec92e22fe0662faa58 | [] | no_license | zerynth/core-zerynth-toolchain | 443e5180d87b3b783c2b3ec69f24918761715b63 | d27b0d6ee47b9c4f320f518705074f1032fedf8a | refs/heads/master | 2021-07-25T00:28:00.192322 | 2021-05-17T14:53:20 | 2021-05-17T14:53:20 | 122,219,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,153 | py | from .base import *
from .fs import *
from .cfg import *
from .pygtrie import *
__all__ = ["tools"]
class Tools():
def __init__(self):
self.tools = {}
self.installed = {}
def init(self):
#register platform tools
if env.is_windows():
self.tools["stty"]="mode"
... | [
"dev@zerynth.com"
] | dev@zerynth.com |
24c2e84b37749a34542141af25758a0b77c195ba | e5ee01bde67fed16b890023cdc33b3294e7acb6d | /python/path_search_stripped/a_star.py | dc833d9ba96cf55f58739839921c943c153c83a2 | [] | no_license | dragonfi/a_star_examples | f8ca1494d49abf5170d52408e9efa6179b36b002 | a6c43ca4b5f135bbaa848fcc45e74922dc174286 | refs/heads/master | 2020-06-19T15:07:09.298508 | 2019-08-06T15:02:56 | 2019-08-06T15:03:06 | 196,756,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | from collections import OrderedDict, namedtuple
from .graph import Graph
class Path():
def __init__(self, weight, nodes):
self.weight = weight
self.nodes = nodes
@property
def dest(self):
return self.nodes[-1]
@property
def source(self):
return self.nodes[0]
AS... | [
"david.gabor.bodr@gmail.com"
] | david.gabor.bodr@gmail.com |
4c2ce9f4572cc0369d582cfe65ef86a9f3d7106a | e9530da3f17f990a3fade9c8c442ad3fbb4befc4 | /test.py | 3b60dca7cebd68376caafb431dc6465cd28133bf | [] | no_license | mattyhempstead/syncs-hack-2020 | 9796565c03560c76f0a4402ded1a536f0f3f7fc8 | 6e3d69070dad3228ed8bed3eb805dc090d52b56f | refs/heads/master | 2022-12-08T10:23:49.395788 | 2020-08-30T01:00:35 | 2020-08-30T01:00:35 | 290,966,904 | 5 | 0 | null | 2020-08-29T11:27:44 | 2020-08-28T06:17:23 | JavaScript | UTF-8 | Python | false | false | 490 | py | import binascii
text = "https://www.google.com/"
binary_conversion = bin(int.from_bytes(text.encode(), 'big'))
binary_conversion = binary_conversion[2:]
for count,i in enumerate(binary_conversion):
time = 0.5
sound_array = []
if count%8 == 0:
sound_array.append(0)
base_one = 220
b... | [
"pranav.alavandi"
] | pranav.alavandi |
9881b96519fce86f61a5ee3cb7a611005b646983 | 0d2af397b900fddad3d532a9f772f70473886cf5 | /tickets/urls.py | 0e2d8c65e60ed82fb02ab25f58af4e4c1d190634 | [] | no_license | RobertUJ/Omaha | cc779b06e42c08ebadae0b8df4e006ad67d504d1 | 650d5e1e5550bf772f1817e16505c574f361bae0 | refs/heads/master | 2016-08-12T13:51:32.262876 | 2016-02-12T00:51:52 | 2016-02-12T00:51:52 | 49,794,851 | 0 | 0 | null | 2016-01-22T00:04:29 | 2016-01-16T23:12:39 | Python | UTF-8 | Python | false | false | 264 | py | from django.conf.urls import patterns, url
from tickets.views import TicketsIndexView, AddTicketView
urlpatterns = [
url(r'^tickets/$', TicketsIndexView.as_view(), name='TicketsView'),
url(r'^addticket/$', AddTicketView.as_view(), name='AddTicketView'),
] | [
"erickhp12@gmail.com"
] | erickhp12@gmail.com |
5a1a67ef9e36c7013d262a0ec9e876fcec96d9c0 | 75a0e169a7b45a95b5d0de639b12ae2b601af236 | /worker.py | 94d496b3e2f01dd00dc3ff71faa400d71db56822 | [] | no_license | john-peterson/goodreads | 65722ef88f66c1ff00a22f308b2497c03cf44a5e | 0cf6d294cef6d7d4e1e4526ae02777d206f19ca3 | refs/heads/master | 2021-01-20T21:31:49.690764 | 2012-12-22T06:50:56 | 2012-12-22T06:50:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,895 | py | #!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2011, Grant Drake <grant.drake@gmail.com>'
__docformat__ = 'restructuredtext en'
import socket... | [
"john.peterson3@hotmail.com"
] | john.peterson3@hotmail.com |
359f9c86575cbc6401fa831c42183d3cd110679b | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/account/migrations/0103_merge_20190905_1609.py | 16fb7e5557b47e3db32cd6549c06ffb2218de131 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # Generated by Django 2.0.5 on 2019-09-05 10:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0100_auto_20190902_1653'),
('account', '0102_auto_20190903_1950'),
]
operations = [
]
| [
"ankit.s@policybazaar.com"
] | ankit.s@policybazaar.com |
41dfb043debbb31d564d9bdcdda0dd997a4a98a5 | dca5705c291da76cbfaf3897680eb0ae2eb56e2b | /aayushg_assgn/myauth/views.py | face35c4566395dead6248d30c8430cf8b2fedf8 | [] | no_license | gadia-aayush/Django-API-1 | 41a40598653009def8ca5bda9a578a26b8bf9115 | 307202ad0aa4357408e756cd74f3723e74fca253 | refs/heads/master | 2022-12-13T23:09:45.960562 | 2020-08-30T19:36:16 | 2020-08-30T19:36:16 | 273,763,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,723 | py | from django.shortcuts import render
from django.contrib.auth.models import User
from django.shortcuts import redirect
from django.contrib.auth import authenticate, login, logout
from django.http import JsonResponse
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework... | [
"gadia.aayush@gmail.com"
] | gadia.aayush@gmail.com |
0c57b23ce2e57693a0fa07b8ddd2d25521f90145 | c6a101547c2b7f36fe83a725974a8a7f02cf176d | /data_structures/binary_trees/flip_tree.py | 20c8cbf5f563689f2b9a252bd664a6b22b2a1b23 | [
"MIT"
] | permissive | prabhupant/python-ds | 737cc35574de5c2ece0f0813cf00775324a8dbe7 | f7d6d78fedaf84b7527965bb1798b7a8da989474 | refs/heads/master | 2023-08-22T05:04:22.937675 | 2022-10-04T01:29:39 | 2022-10-04T01:29:39 | 199,366,418 | 2,325 | 704 | MIT | 2022-10-10T13:01:10 | 2019-07-29T02:48:57 | Python | UTF-8 | Python | false | false | 643 | py | # Flip a tree such like here
# https://www.geeksforgeeks.org/flip-binary-tree/
# Flipping subtree algorithm
# 1. root->left->left = root->right
# 2. root->left->right = root
# 3. root->left = NULL
# 4. root->right = NULL
class Node:
def __init__(self, val):
self.val = val
self.left = None
... | [
"noreply@github.com"
] | prabhupant.noreply@github.com |
ab04985a81690a29fc99f93e08d4a4ec4e364ad5 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_004_20180618143456.py | c999da2e6ae97112548cc81b5e4e3de4c117dc62 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | from random import randint
# Sudoku1 almost solved
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6,... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
ac9c2a9ef0b1cf9f39976b219335f1e2257893fc | d4c2846af2194e8463bff02a9ad49eedc97539eb | /src/RPConfig1.py | 77c0a56cf43effb39d46c064b268de9169bf6a08 | [] | no_license | rbulha/pytimeclock | 8eda6a41ecbe0e5f94238885a4d70e6d5f7e385f | a1cda1edce3d69fa504f55c40e78db9ecb2d837b | refs/heads/master | 2021-01-15T22:28:57.382733 | 2012-08-10T17:58:52 | 2012-08-10T17:58:52 | 40,454,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | import sys
import os
import time
import shelve
import dbhash #incluidos apenas para que o instalador encontre os requisitos
import anydbm #incluidos apenas para que o instalador encontre os requisitos
CONFIGURATION_FILE = 'configuration1.dat'
class CRPConfig:
global CONFIGURATION_FILE
print '[CRP... | [
"rbulha@3db46129-f7cc-561c-f858-d950435ae609"
] | rbulha@3db46129-f7cc-561c-f858-d950435ae609 |
7aade3ac2d090d75cb7eb785668927ac61e0d212 | 297b6b2a030a0d665fd12780da80bc64a9016f59 | /Assignment2/Assignment/makeChange.py | 5d9e807a700003f2aa560de428e99a25f0a3393e | [] | no_license | z0t0b/COMP5703 | 133ed9a90ba2024616a7ad5480937b89a9f70072 | bd89faa66f726c9675d4e58855577e2fda1075c4 | refs/heads/master | 2022-04-21T15:50:39.272916 | 2020-04-15T02:40:13 | 2020-04-15T02:40:13 | 255,782,341 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | import decimal
changeList = [0, 0, 0, 0, 0, 0, 0, 0]
def chop_to_n_decimals(x, n):
# rounds x to n decimals (works better for inputs like 0.005 than standard round func)
d = decimal.Decimal(repr(x))
targetdigit = decimal.Decimal("1e%d" % -n)
chopped = d.quantize(targetdigit, decimal.ROUND_HALF... | [
"noreply@github.com"
] | z0t0b.noreply@github.com |
c75ea51b954cef8081502d553948e07b0487abe9 | bf813d2b877fb8ba62feb4263484db3d0f26d5cd | /early-phd/map_to_flux.py | 1c2d0eab20e2c6fa5e1fe3228a8f9507a9b7ba48 | [] | no_license | 9217392354A/astro-scripts | 1e8e8c827097a877518d1f3e10870a5c2609417c | cd7a175bd504b4e291020b551db3077b067bc632 | refs/heads/master | 2021-01-13T00:40:57.481755 | 2016-03-25T17:04:28 | 2016-03-25T17:04:28 | 54,730,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #Program created by Chris Fuller to test a function for extracting flux's from a fits file using appature photomotry
#import stuff
from numpy import *
import numpy
import scipy
import math
import sys
import os
from os.path import join as pj
#File stuff
cat = "bigcoma.csv"
catfolder = "/Users/chrisfuller/Dropbox/coma... | [
"chrisfuller@Chriss-MBP.lan"
] | chrisfuller@Chriss-MBP.lan |
abb40cfd7886a6089a10fff801f6ff4840838feb | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoBTag/ONNXRuntime/python/pfParticleNetFromMiniAODAK4DiscriminatorsJetTags_cfi.py | b09fabc5e9632fe7d6cba6adb353d5a7f3afbfa9 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 18,375 | py | import FWCore.ParameterSet.Config as cms
pfParticleNetFromMiniAODAK4PuppiCentralDiscriminatorsJetTags = cms.EDProducer(
'BTagProbabilityToDiscriminator',
discriminators = cms.VPSet(
cms.PSet(
name = cms.string('BvsAll'),
numerator = cms.VInputTag(
cms.InputTag('pfParticleNetFr... | [
"stephane.b.cooperstein@cern.ch"
] | stephane.b.cooperstein@cern.ch |
658da1160eb4755901ebedf82b585ce6ddcd99da | 1b83b79fcd58878cad8c683f7c2fb048abdc9b6c | /magnum/conf/kubernetes.py | 2de9370e2bc59fb73dcbfd6a2ef6f75e558c8313 | [
"Apache-2.0"
] | permissive | ititandev/magnum | 88f7ab8d93e6913fa085d34577827d11aead1790 | 16ea8b6397f2bafc01e6d4ec474c1ae97f15a484 | refs/heads/master | 2020-12-28T19:07:02.905485 | 2020-02-03T17:53:15 | 2020-02-03T17:53:15 | 238,458,066 | 1 | 0 | Apache-2.0 | 2020-02-05T13:35:13 | 2020-02-05T13:35:12 | null | UTF-8 | Python | false | false | 1,333 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | [
"flwang@catalyst.net.nz"
] | flwang@catalyst.net.nz |
8d8b46573115c470483434c30bc2fd15efceb159 | 73785aea08895d0fc15e914ce329716712f057ec | /recipes/errorAnal.py | 9208c6a48ac906004212b9520360e38dbc9b8806 | [] | no_license | Peder2911/ModelComp | 5e93e6db7fbc809e7444448729a91ff7a762b0cc | 91ee3835ddc560adeb4af457953905aaeca79cd6 | refs/heads/master | 2020-05-20T05:09:01.877547 | 2019-05-18T13:37:34 | 2019-05-18T13:37:34 | 185,397,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py |
ppSentences(sentences,y,x):
for i,s in enumerate(errorSents):
print('#'*38)
print(f'{s} - pred: {prediction[err][i]} | actual: {actual[err][i]}')
print('\n')
| [
"pglandsverk@gmail.com"
] | pglandsverk@gmail.com |
fe588b211aefbc83d08eca506d88db9be266716c | 0d7247b52044d5bfc498610fe33725c4ca0a2076 | /MDD-SG-SD.py | 235989f1e5607b3a6d8c9407160ab862c37b7b9d | [] | no_license | SivaArwin/Scraping---Uswitch.com | 1ebde73978ce7912d164e8965a47fd79106b5026 | f33e3d9b05b9ba23065c5b2ac9073e16174a0585 | refs/heads/main | 2023-03-03T14:06:52.455351 | 2021-02-13T18:11:34 | 2021-02-13T18:11:34 | 338,635,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,392 | py | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import Select
import pandas... | [
"noreply@github.com"
] | SivaArwin.noreply@github.com |
e495a6da64e3b39072332ee3934ad2f8318bb290 | b7bb0a3ea2078dbdaa17947fd841fe1c9b5e356b | /oschown/workflows.py | a5b712d06344ce7e3a3a514e1831195fb2f2557f | [
"Apache-2.0"
] | permissive | epim/oschown | 48d4a7528ed38fb12cae408baad7a6e370ba86f1 | a50d3ad3769dad8d1f56dfe171d5345b3bee517f | refs/heads/master | 2021-02-13T21:21:01.223901 | 2018-09-17T15:28:41 | 2018-09-17T15:28:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,690 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed u... | [
"dansmith@redhat.com"
] | dansmith@redhat.com |
99d5656ae432b56eb9438da7a8014adeca443e39 | ee2c15d82ff596f4ca9eda408f8e096b787f0d48 | /Python/4 Dictionaries_Sets/4 dictionary/sets_challenge.py | 7a56065963a00863f02685fa85a6c29210e88624 | [] | no_license | sainimohit23/algorithms | 1bbfee3bd4d1049b18425bf0d86ecaacd4c43ea0 | 911986abe015f7518ef169a5866b1058c7d41d4f | refs/heads/master | 2022-11-13T17:40:06.128838 | 2020-06-30T17:35:35 | 2020-06-30T17:35:35 | 268,071,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | my_str = input("enter some text please ")
my_set = set(my_str)
vowels = set("aeiou")
finalset = my_set.difference(vowels)
finallist = sorted(finalset)
for num in finallist:
print(num)
| [
"sainimohit23@gmail.com"
] | sainimohit23@gmail.com |
784e7a40abe66b769c8b6ffca8fcf4ff447532c1 | 88ff86b95b377a4fd10474d2b215b0cf0b32143c | /src/ralph/scan/plugins/ssh_proxmox.py | 5627cf11be6d296a44bcf87c00dae5afd8551d1c | [
"Apache-2.0"
] | permissive | fossabot/ralph | f00fbfd9e64ae779633e0ea1faeb7fbe8f35353f | 9eb82955adf6b662bc460112b3d9b2d574ef0d70 | refs/heads/master | 2020-07-04T15:27:38.758147 | 2014-04-28T15:08:59 | 2014-04-28T15:08:59 | 202,324,100 | 0 | 0 | NOASSERTION | 2019-08-14T09:59:42 | 2019-08-14T09:59:41 | null | UTF-8 | Python | false | false | 9,507 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import os
import json
from django.conf import settings
from ralph.discovery.hardware import get_disk_shares
from ralph.discover... | [
"andrew.jankowski@gmail.com"
] | andrew.jankowski@gmail.com |
a921a15b368f2785bb530b40113b34630061be52 | 0974dd03a2c169c9186d74bb9c4f80ea68802331 | /bin/f2py2 | 3f101a41698295cedc62c9ebc308c351e8e37718 | [] | no_license | devashah7/instameme | edb4a0cf8e80560eef54e0aa40a19fd4deb0c99c | 8ba27800dc5624f80672fae3f727ece5fcd779a2 | refs/heads/master | 2020-08-09T06:25:03.011987 | 2019-10-09T20:42:57 | 2019-10-09T20:42:57 | 214,018,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/home/dshah/Desktop/insta/insta/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dshah@hcn-inc.com"
] | dshah@hcn-inc.com | |
cc8c69ab62120ec4784513c836d1a7756d9b1a0d | 2814757215ea599c47817315902a1642459970df | /object-dev/student-info/two_version/step5.py | 1cdf392ac433075bcca876a89264a944d9d516a2 | [] | no_license | legolas999/Python-learning | caadf31e60b973864f365c4f27eb9589bc1cdcd2 | 1a828595bc9596e737cc997bfad1f245b3314e8b | refs/heads/master | 2020-05-15T04:11:13.328995 | 2019-06-08T16:17:04 | 2019-06-08T16:17:04 | 182,081,867 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,281 | py | #!/usr/bin/python3.6
#定义全局变量存储学生信息
student_info = []
def print_menu():
'''实现打印功能提示菜单功能'''
#1.打印功能提示菜单
print('=' * 40)
print('\t{:<40}'.format('学生信息管理系统V1.0'))
print('\t{:<40}'.format('1.查询学员信息'))
print('\t{:<40}'.format('2.增加学员信息'))
print('\t{:<40}'.format('3.修改学员信息'))
print('\t{:<40}'.... | [
"lqr888888@aliyun.com"
] | lqr888888@aliyun.com |
715c52973d9758a579026ef80e34afbd30905a12 | 32134ac2fa760ba7285d9bc844fa4db0be76352a | /perceptron.py | dcc4b74eaf87eec1c00054f55b18a839728e6999 | [] | no_license | NJCinnamond/NLPAssignment-1 | 8143bf8bce8de1044b757de28e2b0afce4169ce1 | 4204dcf64cf0864e6be2c5ce645f3e1ea810762f | refs/heads/master | 2020-12-31T10:45:22.029690 | 2020-02-25T01:14:43 | 2020-02-25T01:14:43 | 239,006,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,636 | py | """ Maximum entropy model for Assignment 1: Starter code.
You can change this code however you like. This is just for inspiration.
"""
import os
import sys
import numpy as np
from util import evaluate, load_data
from sklearn.metrics import confusion_matrix
class PerceptronModel():
""" Maximum entropy model for ... | [
"54274991+NJCinnamond@users.noreply.github.com"
] | 54274991+NJCinnamond@users.noreply.github.com |
342f10e5e1c17b196563987f7720df7d1de0ef8e | 1361f56a3dc2205455054d144fa30d9cebb9704f | /week-07/project/get_data.py | b6f5c0ca6d65a95f039ea83f0e9e44f705ff9f35 | [] | no_license | green-fox-academy/TemExile | 31b240f58a0d56364e3b888cd9610b176f244d5e | 040882ebb07d10c65b98cd3dc12814f10fa52dc0 | refs/heads/master | 2020-05-19T18:17:58.468807 | 2019-06-21T06:22:51 | 2019-06-21T06:22:51 | 185,149,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | import requests
from bs4 import BeautifulSoup
import numpy as np
import pandas as pd
from function import get_info
city_list = {
'Bath':'116', 'Bridgwater':'212', 'Burnham-On-Sea':'251', 'Chard':'301',
'Cheddar':'306', 'Clevedon':'337', 'Crewkerne':'381',
'Frome':'536', 'Glastonbury':'551', 'Ilminster':... | [
"hxwengl@163.com"
] | hxwengl@163.com |
99cd43a8c940db281d4db4d33d06b1cee795bc61 | c5291e50a3c72c885922378573a0ad423fcedf05 | /analysis/data/urls.py | e7638f31b2b04491d30e6f29d5a4d9826f2a05c3 | [] | no_license | raghurammanyam/django-projects | bcc3ed6285882af437a2995514cef33760fb063e | dd20ae354f7f111a0176a1cc047c099bd23e9f05 | refs/heads/master | 2022-12-12T19:22:31.698114 | 2018-12-09T09:41:45 | 2018-12-09T09:41:45 | 137,443,359 | 0 | 0 | null | 2022-11-22T03:01:07 | 2018-06-15T05:08:15 | Python | UTF-8 | Python | false | false | 196 | py |
from django.conf.urls import url
from django.urls import path
from .views import test,get
from django.http import HttpResponse
urlpatterns = [
url(r'^date/',test),
url(r'^get/',get)
]
| [
"manyamraghuram@gmail.com"
] | manyamraghuram@gmail.com |
09e93c96494e49a2d86292c5fba4b0ca5dd942cb | bda539dedce550a3242cd9a2a4bb61782a924c12 | /git/training/runTraining.py | 26cb6e270bf3928f7bc110871628979131099a59 | [] | no_license | joohwankim/deepgazekickoff | 37222c937faca070a848bf97b1d85df518659d48 | b30cc51de247be75cee510240868e6a31e08a815 | refs/heads/master | 2020-03-18T10:17:21.847000 | 2018-05-29T14:31:21 | 2018-05-29T14:31:21 | 134,605,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | """
Copyright (C) 2017 NVIDIA Corporation. All rights reserved.
Licensed under the CC BY-NC-ND 4.0 license (https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode).
"""
import argparse, logging, os, dlcore.train, sys
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('-j',... | [
"sckim@nvidia.com"
] | sckim@nvidia.com |
5a18ee6526a8d5b5735523e7efe503c9224f57c1 | 35631053e6c1e7d01d31c27e10388204ab59b8f2 | /Streaming Media Player/pop_up_message.py | aaa1ee198e1f91f7dbfde98f2f21ab3e38f033da | [] | no_license | vanduan/DichVuMang | 7cf442498820c6c39362cc69e1fd10b503fca704 | c569cf52265356ed67eb703f50ddc65e6ce9e846 | refs/heads/master | 2021-01-21T13:03:15.699281 | 2016-04-22T10:41:27 | 2016-04-22T10:41:27 | 55,877,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import sys
from PyQt4.QtGui import *
from PyQt4.QtCore import *
def window():
app = QApplication(sys.argv)
w = QWidget()
b = QPushButton(w)
b.setText("Show message!")
b.move(50,50)
b.clicked.connect(showdialog)
w.setWindowTitle("PyQt Dialog demo")
w.show()
sys.exit(app.exec_()... | [
"vanduan95.dvp@gmail.com"
] | vanduan95.dvp@gmail.com |
f231f73dec833a474cefcee2707d8742f92f9d51 | 125bc51efb95f383257e7bdb50ae74e5dc05b7f7 | /src/belajarIntegerString.py | f28765c84ddfefc5911c0710cd851199053fcd21 | [] | no_license | frestea09/learn_ch1_python | f9688fffda5f0fa312b82bd25081b986fa0779e9 | 510ea59bf85ec024ebc473db2533e92becaefbf3 | refs/heads/master | 2020-05-26T18:22:31.171688 | 2019-05-26T05:42:08 | 2019-05-26T05:42:08 | 188,334,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from __future__ import print_function
def main():
variabelNama = input('nama : ')
variabelInteger = int(input('Umur'))
print('Nama anda %s dan umur anda %d'%(variabelNama,variabelInteger))
if __name__ == "__main__":
main() | [
"ilmanfrasetya@gmail.com"
] | ilmanfrasetya@gmail.com |
8f4ca0a46c8c2f2b477ecfa59a36f08c988916bb | c220ac95ee13465d549b721700fe482ed490a2ac | /itty/__init__.py | 6363a9929b9908c6a4220c4143cefa060e4c3310 | [
"BSD-3-Clause"
] | permissive | ruthenium/itty | 66587621e1f36fc66202bf3a24509438d04b48d1 | 5d4219909c88d21af8b5548d366888accace68f6 | refs/heads/master | 2021-01-18T08:46:24.315865 | 2011-08-17T03:10:47 | 2011-08-17T03:10:47 | 2,151,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | from .base import (HTTP_MAPPINGS,
Callback as _Callback,
Error as _Error,
Request,
Response,
static_file,
EnvironmentError,
Forbidden,
NotFound,
AppError,
Redirect,
App,
run_app)
APP_METHODS = { }
class Callback(_Callback)... | [
"bubucektop@gmail.com"
] | bubucektop@gmail.com |
9da01c5fe4850d89d6df0c28383d6624f962e764 | 83179abbad0032fd3c8c38a54260ac4239ba9df3 | /2021/python/day15/day15.py | 24a8f0e5bd6154fc5d2140e760a2d5b58031e146 | [] | no_license | yulrizka/adventofcode | 448ac89ae543c8a7ee46bb5f86abc62887e3a9ee | 74b89528e07ae6282763968d5bb3d8eea38e07ba | refs/heads/master | 2023-01-13T03:57:20.688851 | 2022-12-22T11:11:59 | 2022-12-22T11:11:59 | 225,181,497 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | import queue
import unittest
# with open("../../input/day15-sample") as f:
with open("../../input/day15") as f:
raw = [[int(x) for x in y] for y in f.read().strip().split("\n")]
def wrap(x):
while x > 9:
x = x - 9
return x
data2 = raw.copy()
for i in range(4):
row = list(map(lambda x: list(... | [
"yulrizka@users.noreply.github.com"
] | yulrizka@users.noreply.github.com |
d1963e7cc009082ee066bf6e7b3db7e2a3f62383 | 6472cd640341f4bcc3867c3579a87ee8b763ae15 | /conventionalAI/venv/lib/python3.6/site-packages/rivescript/rivescript.py | 95fdae4013df4e458c3448a8cef0dfdd83a16f8e | [] | no_license | iafjayoza/Machine_Learning | 7e9664cb6da6e0521e3475c9f80acd3ff15d1fc8 | aba8fd939194b839da03f4c1ebd9eac8331d0b90 | refs/heads/master | 2023-06-01T14:28:59.391643 | 2021-06-25T17:12:57 | 2021-06-25T17:12:57 | 380,303,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103,656 | py | #!/usr/bin/env python
# The MIT License (MIT)
#
# Copyright (c) 2016 Noah Petherbridge
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... | [
"jaykumar.oza@jeppesen.com"
] | jaykumar.oza@jeppesen.com |
5827494e28c8324f3fe91b182ec76744a95c029b | aef02ad0a2b36e763af4b6de84399fcbfb788faf | /LPHW/ex6.py | 4d116c7b7f3dba9e3e1cb77c6d4b06c35e1b0fbb | [] | no_license | kanishkd4/Python_Learning_code | 98cf74cbbeef34f594804b515438f24775feddbf | 62a6b1745f4c8624ed4207ab38c83f0a7ead99c9 | refs/heads/master | 2020-04-15T12:44:52.828258 | 2018-04-05T09:56:35 | 2018-04-05T09:56:35 | 61,795,436 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 410 | py |
x = "there are %d types of people." %10
binary = "binary"
do_not = "don't"
y = "those who know %s and those who %s." % (binary, do_not)
print x
print y
print "I said %r" % x
print "I also said: '%s'" % y
hilarious = False
joke_evaluation = "Isn't that joke so funny?! %r"
print joke_evaluation % hilario... | [
"noreply@github.com"
] | kanishkd4.noreply@github.com |
a6d6d50572836ba4614154dce36cf5e2c21f9c51 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02679/s613915096.py | fec86a56bc93ae2efcf62264eb570f7a448a4ed4 | [] | 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 | 667 | py | import math, collections
N = int(input())
AB = [[int(_) for _ in input().split()] for _ in range(N)]
mod = 10**9 + 7
C = collections.Counter()
gcd = math.gcd
a0 = 0
for a, b in AB:
if a == b == 0:
a0 += 1
elif a == 0:
C[0, -1] += 1
else:
g = gcd(a, b)
a //= g
b //= g
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8951afe2b51d654fd469ed7fd936879e3610aa30 | 35894bca47cf0c9a51a05caf7b56a0d69c05b033 | /04_subrotinas_numpy/25_fibonacci.py | 1067f8b8abc1c15bc44a985e9b4f892471d34f46 | [] | no_license | alcebytes/Phyton-Estudo | 0a2d33f5f3e668e6ab2f99e5e4499545a3bc1273 | a3f9a0b3e0a91d71a9359480d6ec17e692572694 | refs/heads/master | 2023-01-14T17:24:16.486956 | 2020-10-08T02:02:02 | 2020-10-08T02:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | import time as time
num_iter = int(input("Digitar o valor do número máximo para a sequência de Fibonacci = "))
tempo_inicio = time.time()
#tempo_inicio_CPU = time.clock() #ABSOLETO
tempo_inicio_CPU = time.process_time()
tempo_inicio_CPU_2 = time.perf_counter()
# f(0)
f = []
f.append(0)
print(f)
# f(1)
f.append(1)... | [
"x_kata@hotmail.com"
] | x_kata@hotmail.com |
0d5612bcf83e90343b35f237bfbb6536fe5a32fc | 99dbc0388a1396d9d0f636ba6ad4e7ce6b646637 | /app/frontend/views.py | 4ae6ddaba7060c91bb981e1d735c5289f1895cb6 | [] | no_license | thefedoration/tracker-widgets | 9469f27a023cc6c4f3cb1161f39452deb58ce282 | 47bd08030a8ced3b6ddf2c48cc41f8f0b705aa79 | refs/heads/master | 2021-06-22T04:44:47.565674 | 2017-05-15T13:32:27 | 2017-05-15T13:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | from django.shortcuts import render, redirect
# serves up frontend bundle
def index(request):
# if user is logged in, fire up the frontend app
if request.user.is_authenticated():
return render(request, 'frontend/index.html')
# otherwise not logged in, send them to login screen
pat... | [
"fedor@pymetrics.com"
] | fedor@pymetrics.com |
ebb0ee33e3d8bde61a40935c59eb8b4e2c250d40 | 9e8a90e8c9bc90d9ea34b79e7553a7ba2fd4e6bf | /models/networkSwitch.py | bded10111bfacc3b5285280e628f5a076988367a | [] | no_license | lwyanne/CPAE | ddae51affcca8db0266bf66f091f165d95bd7837 | e155dfecf3f38ed7121a8a446dc4eeb4067b7e46 | refs/heads/master | 2023-07-28T13:12:22.372796 | 2021-08-27T15:09:58 | 2021-08-27T15:09:58 | 353,564,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185,346 | py | from __future__ import print_function
from torch.nn.utils.rnn import pack_padded_sequence
import inspect
import os, sys
import logging
# add the top-level directory of this project to sys.path so that we can import modules without error
from models.loss import Chimera_loss, record_loss, mask_where, mapping_where, mas... | [
"anonymousparti28@gmail.com"
] | anonymousparti28@gmail.com |
428efb464a06b53657e381f76bf9e07b3382ba40 | 6fddeb3fb4be07e4c1063a0c49d1f25606fa78c2 | /WebProject1/primeiroPrograma.py | a6f6ef9bb480d32170e34644221afe8968666b18 | [] | no_license | RuanNunes/Logica-de-Programa-o-com-Python | d3f663881c2e51888608d9cf5f51c0956cdd10dd | 18b2b41e485d3e58ce2d5cf923e389cd146d7f18 | refs/heads/master | 2020-03-17T16:27:40.661667 | 2018-06-03T20:06:29 | 2018-06-03T20:06:29 | 133,749,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | class primeiroPrograma(object):
print('Meu Primeiro Programa')
num1 = int(input('Digite Um Numero:'))
num2 = int(input('Digite o Segundo Numero:'))
print('A soma dos numeros é:', num1 + num2)
pass
| [
"ruan.nunes@el.com.br"
] | ruan.nunes@el.com.br |
9a0f0433298aaf2b0b0aa33f5a64b0273f639e93 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev2669-2722/left-trunk-2722/twisted/internet/iocpreactor/udp.py | 3bf7a5bba392de8252482bdf0e1ba0600cfe27fa | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,644 | py | import socket
from twisted.internet import interfaces, defer, error, protocol, address
from twisted.internet.abstract import isIPAddress
from twisted.persisted import styles
from twisted.python import log, failure, reflect
from ops import ReadFileOp, WriteFileOp, WSARecvFromOp, WSASendToOp
from util import StateEventMa... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
344ac01479164503dbab03b95cd598cba2744ea4 | 047ddbf7dc154786da48f4b5ab8968a7abcad24b | /genprimo.py | 51c4484a5e8c896c48e9515a294848b3c6413007 | [] | no_license | algoritmos-2019-2/clase-1-JAAD300 | ecea409136bcc63e4c778b43c5b339cbb4a718de | 0ab81d11a6532956636e8999a2f9ae11d75b8977 | refs/heads/master | 2020-04-19T20:03:19.553368 | 2019-04-01T05:40:22 | 2019-04-01T05:40:22 | 168,404,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | #!/usr/bin/env python3
def checador(n):
for i in range(2, n):
if (n % i) == 0:
return print(n, "no es primo")
else:
return print(n, "es primo")
print("ingrese núm... | [
"jorge@Jorge-PC.localdomain"
] | jorge@Jorge-PC.localdomain |
4ec4d34dab5f7644e361280ca777fc5fb41fdb92 | 782efe22f3251a701796e68e82fbce27c2ce2d8f | /Discussion/migrations/0042_auto_20200515_1217.py | 0b9097e87756d35dd0f7ac9dcbb9599753393a94 | [] | no_license | Escalation99/Workev | ffc10e64776bf90d206a4a7a8ef3655c22f0223b | c2312c54c152b823e991ef5955b5d2df7ff58222 | refs/heads/main | 2023-03-13T05:36:54.386719 | 2021-03-06T10:27:06 | 2021-03-06T10:27:06 | 310,613,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-05-15 05:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Discussion', '0041_auto_20200513_1402'),
]
operations = [
migrations.Alter... | [
"raytommy1234@gmail.com"
] | raytommy1234@gmail.com |
86c976754fbba24178415faffcb3f295036aef07 | b4e9c9927f4839dcf2e03b26d51cc08f1ad5c362 | /el7toel8/acme/actors/acmestoragemigrator/actor.py | 9a312a6f0840ebb57cf8e6aa7e8d83031aa43db0 | [] | no_license | shaded-enmity/isv-repositories | cbde5baacf49029a4122541987ec30f634c9c85f | 8f52c44cc6c0d663c5ceef2eea92aea759d20899 | refs/heads/master | 2022-06-21T00:11:25.417412 | 2020-05-06T15:05:18 | 2020-05-06T15:05:18 | 261,727,873 | 0 | 0 | null | 2020-05-06T15:05:19 | 2020-05-06T10:39:07 | null | UTF-8 | Python | false | false | 1,380 | py | from leapp.actors import Actor
from leapp.models import Report, AcmeStorageInfo
from leapp.tags import FirstBootPhaseTag, IPUWorkflowTag
from leapp import reporting
import os
class AcmeStorageMigrator(Actor):
"""
Migrate ACME Storage device from old location to the new one
"""
name = 'acme_storage... | [
"noreply@github.com"
] | shaded-enmity.noreply@github.com |
e9811e3794478cb96fb7f9d5165286664ef1e3d4 | 67b8c98b89f45780b1a153b2a06ed9b76626df23 | /pyparrot_modified/pyparrot/networking/bleConnection.py | 95cec165f89ea2033ec44f380e408329ea22c022 | [
"MIT"
] | permissive | Hollyqui/PyStalk | fe37dccb583f083b284134d0787dc9ef5dfeee5e | 98abdaeb6194e79b402304a619182cec63074f2d | refs/heads/master | 2020-06-02T15:51:40.106253 | 2020-02-11T08:00:47 | 2020-02-11T08:00:47 | 191,217,500 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 27,229 | py | from bluepy.btle import Peripheral, UUID, DefaultDelegate, BTLEException
from pyparrot_modified.pyparrot.utils.colorPrint import color_print
import struct
import time
from pyparrot_modified.pyparrot.commandsandsensors.DroneSensorParser import get_data_format_and_size
from datetime import datetime
class MinidroneDelega... | [
"noreply@github.com"
] | Hollyqui.noreply@github.com |
ee4ec4d60d0e2809301b28150cd9934a01d330c6 | bffa0938e70732e992a5d5dc5fb30559fd0ceb7b | /Zadanie9/main.py | 7be093c8309014ad5a6351c1465cc96dc7c501d2 | [] | no_license | LenovoDobrynin/zadanie9.py | 281d5d4850dfb374a273701f588a323f0c524b48 | 54d75ff2645d447b6f31a9327feaadb1fbf0f21e | refs/heads/master | 2023-08-28T00:35:01.091714 | 2021-10-14T20:38:18 | 2021-10-14T20:38:18 | 417,274,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | a1 = float(input('Введите число а1: '))
a2 = float(input('Введите число a2: '))
a3 = float(input('Введите число a3: '))
b1 = float(input('Введите число b1: '))
b2 = float(input('Введите число b2: '))
b3 = float(input('Введите число b3: '))
c1 = float(input('Введите число c1: '))
c2 = float(input('Введите число c... | [
"noreply@github.com"
] | LenovoDobrynin.noreply@github.com |
ed8716a26481360b16a530a1bada6c0c07139b62 | b7dc309c2870431ea90710daf829fd364cf2d578 | /牛客聪明编辑.py | aa96c3286b912ed9c91a11d94b2d70ef75d0fcfe | [] | no_license | KaGen1999/Leetcode-by-Python | 7d65e7890279a2910aae297929a33f52001ad287 | ef10b1aa9b7060f949dcd392d62ddaba5fbcdbb8 | refs/heads/master | 2021-05-20T21:02:44.904731 | 2020-09-13T16:23:50 | 2020-09-13T16:23:50 | 252,415,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | n = int(input())
for i in range(n):
s = input()
b = ''
new_s = ''
count = 1
state = 0
for each in s:
if each != b:
if state == 1:
new_s = new_s + each
state = 2
elif state == 2:
new_s = new_s + each
s... | [
"1032336124@qq.com"
] | 1032336124@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.