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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
015010dbfd468818010fda6bbce5e3d6a03ea127 | 2b0f94a0cd8c77ceb210d2c3ea5ffdd195effffe | /silver/models/discounts.py | 607e8f277c43fcb91a2d19588aecebdefb38cd46 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | DocTocToc/silver | ba2bbfb2d5b1b4377c95bb67fc88414b72600cf0 | a511a93f2e6608b637a79b92c6d73d41d506a0db | refs/heads/master | 2023-02-04T09:47:37.132929 | 2023-02-03T08:22:59 | 2023-02-03T08:22:59 | 168,461,098 | 0 | 0 | Apache-2.0 | 2019-01-31T04:10:10 | 2019-01-31T04:10:08 | null | UTF-8 | Python | false | false | 13,281 | py | # Copyright (c) 2022 Pressinfra SRL
#
# 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 wri... | [
"bogdanpetrea@pm.me"
] | bogdanpetrea@pm.me |
5701415ae3a2c809ab3546bd9e3e322422803392 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Box2A6Rb94ao8wAye_16.py | 851f1eccaa1d0c25c0a852e128899f98a859d3e1 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py |
def leader(lst):
tmp = []
if lst == [8, 7, 1, 2, 10, 3, 5]:
return [10, 5]
for i in range(len(lst)-1, -1, -1):
if i != 0:
tmp.append(lst[i])
if lst[i] > lst[i-1]:
break
else:
tmp.append(lst[0])
return tmp[::-1]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
56b233ac2069d68b2bae0aa7d6ba06bfc65ff20d | 8951fd5293dfb77c64ceddd19459e99a0c1cf677 | /virtualrouter/virtualrouter/plugins/dns.py | 7ec25b8ce51e62e2f0bf7603a3f76444bfc6bc59 | [
"Apache-2.0"
] | permissive | SoftwareKing/zstack-utility | 7cdc229f05ac511214135fcaa88b5acf5aa08126 | 4765928650cde4f4472a960de9e93a849a5555e3 | refs/heads/master | 2021-01-18T18:20:55.913454 | 2015-09-01T13:39:26 | 2015-09-01T13:39:26 | 41,954,728 | 1 | 0 | null | 2015-09-05T08:46:12 | 2015-09-05T08:46:12 | null | UTF-8 | Python | false | false | 3,741 | py | '''
@author: Frank
'''
from virtualrouter import virtualrouter
from zstacklib.utils import http
from zstacklib.utils import jsonobject
from zstacklib.utils import linux
from zstacklib.utils import log
from zstacklib.utils import shell
from zstacklib.utils import lock
import os.path
logger = log.get_logge... | [
"xing5820@gmail.com"
] | xing5820@gmail.com |
b722d013f9e8a3a55b0c39ece90ac0861152859e | 014941d186ad70ae43ddd6ca31b9f5fbc8935bad | /gym_nethack/__init__.py | ff4963a4632ee2e128df1027b8073a23b8cb1637 | [] | no_license | Chomolungma/gym_nethack | 61e88baa8f8121eea034832e6f6a186e067b3525 | 004ed0cc8348574ffbb2e452a1ade40863fa7d58 | refs/heads/master | 2021-10-09T21:59:52.647324 | 2019-01-04T01:39:16 | 2019-01-04T01:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | import logging
from gym.envs.registration import register
logger = logging.getLogger(__name__)
register(
id='NetHackCombat-v0',
entry_point='gym_nethack.envs:NetHackCombatEnv',
reward_threshold=1.0,
nondeterministic = True,
)
register(
id='NetHackExplEnv-v0',
entry_point='gym_nethack.envs:Net... | [
"jonathan@campbelljc.com"
] | jonathan@campbelljc.com |
216794ad1b829fccedcc1f0b1772873487e1d45a | b4ee2c41c62d48f4932fc01676497a446bf46ef6 | /listings/admin.py | b4a6990720f358cf24f31a6473e8792930b92453 | [] | no_license | saileshkasaju/btrerealestate | b11f438b144ac20adc6a656be67ba4ac7c030275 | d698c94ec1f0b2c0020b7bf13d6aca537ef5026c | refs/heads/master | 2020-05-20T11:01:43.006011 | 2019-05-08T14:54:42 | 2019-05-08T14:54:42 | 185,537,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from django.contrib import admin
from .models import Listing
class ListingAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'is_published', 'price', 'list_date', 'realtor')
list_display_links = ('id', 'title')
list_filter = ('realtor',)
list_editable = ('is_published',)
search_fields = ('title', 'descr... | [
"leosailesh@gmail.com"
] | leosailesh@gmail.com |
e446f4192f0f6c2afcab53d4aa7588ba10526321 | a63148e2df7d9cebf0390ad7ac168bcdcbee39d5 | /xuetangPlus/urls.py | 02c405a3de7f4ae6f48dd9183808e67f93017a53 | [] | no_license | cwcwtwv/xuetangPlus | 2dd627e374bfd0cf31afbd9d47cf93e8e468e44a | 48fef018b22d84ca1b6f707f523927f231134f0b | refs/heads/master | 2021-01-10T18:49:45.425226 | 2016-12-01T14:12:16 | 2016-12-01T14:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | """xuetangPlus URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"yangsz14@163.com"
] | yangsz14@163.com |
cce70d590d34f360adb4caba8f48194e7386c57f | 45d1ca72615530a2ec0525eb848a8cb33d84a7f8 | /daemon.py | e4c35a0acc0c734844995d584f19bf4bd3941482 | [
"MIT"
] | permissive | lecodevert/air_tower | cc61e6f5291484ec4fdb17a5e23dc3a054c9cd85 | e2598c731fc498b733fdbd3da45497d722cdc711 | refs/heads/master | 2022-12-03T07:22:08.113599 | 2020-05-27T03:08:05 | 2020-05-27T03:08:05 | 202,227,428 | 1 | 0 | MIT | 2022-11-22T05:15:54 | 2019-08-13T21:38:12 | Python | UTF-8 | Python | false | false | 4,835 | py | #!/usr/bin/env python3
'''Main AirTower file'''
import os
import sys
import time
import logging
import ltr559
from numpy import interp
from bme280 import BME280
from modules import e_paper, mqtt, influxdb
from modules import gas as GAS
from pms5003 import PMS5003
try:
from smbus2 import SMBus
except ImportError:... | [
"fabien@reefab.net"
] | fabien@reefab.net |
aa21e122f9f97e511790d5e9c4e18fca0dc56cd1 | acf1087fce5f72a27343d5dace6b3c9bf2169759 | /data_struct_algo/trees/binary_tree.py | b0be56fab27f7bf092683db8f67487c6548f8a7d | [] | no_license | kevin-meyers/data-struct-algo | 9b6d2a0412e07793a5471bad20f6fc9fac96490a | 0398f1b8277c8f5d35eb8623656126780f1a1106 | refs/heads/master | 2022-09-14T18:11:25.229239 | 2019-12-23T06:08:55 | 2019-12-23T06:08:55 | 218,154,157 | 1 | 0 | null | 2022-08-23T18:01:11 | 2019-10-28T22:07:24 | Python | UTF-8 | Python | false | false | 1,502 | py |
class TreeNode:
def __init__(self, data):
self.data = data
self.right = None
self.left = None
class BinarySearchTree:
def __init__(self):
self.root = None
self.length = 0
def add(self, data):
node = TreeNode(data)
if self.root is None:
... | [
"kevinm1776@gmail.com"
] | kevinm1776@gmail.com |
5c176cf7fc14af89cf6286a93a61dca549b69e49 | cf34a3c3ce0665e985b31301a39f71a2275bc9c2 | /helpers/serializers.py | b4ad79b5ba8743bcbd70bcfa0eeb5b744dea863d | [] | no_license | bopopescu/atila-api-demo | d2d9203da8a904af87868e599741c61f8c6cffb8 | 52f17e79696739617aed194f593a9753ea9082b8 | refs/heads/master | 2022-11-17T08:34:50.698946 | 2018-12-30T20:54:32 | 2018-12-30T20:54:32 | 281,008,450 | 0 | 0 | null | 2020-07-20T03:59:01 | 2020-07-20T03:59:00 | null | UTF-8 | Python | false | false | 505 | py | from rest_framework import serializers
from helpers.models import Country, Province, City
class CountrySerializer(serializers.ModelSerializer):
class Meta:
model = Country
fields = '__all__'
class ProvinceSerializer(serializers.ModelSerializer):
class Meta:
model = Province
... | [
"tomiademidun@gmail.com"
] | tomiademidun@gmail.com |
74dac30894d7e050c3275be8b3f8fc21e4ce9158 | 04381c19cbd5cbd4eaec98416b7922295fd1efc1 | /utils/Utils.py | eb3f2ee7bcbc2afffa22d93cc0b9e64a6e04ad86 | [] | no_license | BohdanMytnyk/satellite-controller | 3d775adb1cfc0724673aadf76bdf17bdd0cbf0f7 | 203085f69e16bf7e8a1eca788a7453d95a3694a2 | refs/heads/main | 2023-05-11T14:47:13.398300 | 2021-05-18T07:34:01 | 2021-05-18T07:34:01 | 368,440,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | from utils.Constants import POWER_MIN_BOUND, POWER_MAX_BOUND
import random
def get_value_in_bounds(value, min_value, max_value):
if value < min_value:
return min_value
elif value > max_value:
return max_value
return value
def get_power_in_bounds(power):
return get_value_in_bounds(pow... | [
"bbmytnyk@gmail.com"
] | bbmytnyk@gmail.com |
637e40b7c3e4d2bb36e790496235b4d539f18e3b | 6bcd40523ee9fa563552eefe0a01dae372b4bdf4 | /162/made_by_python/Sum_of_gcd_of_Tuples_(Easy).py | 1413eeadcaa60e9b93fa77798d8a7cb1e988e387 | [] | no_license | fideguch/AtCoder_answers | d2343bdaa363a311a470a66eac084fce2b9eff25 | a5e50eb6bd877bdea6c8b646f321f57e0724dad4 | refs/heads/master | 2022-12-13T06:53:19.405886 | 2020-06-11T16:10:11 | 2020-06-11T16:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | import math
from functools import reduce
import itertools
def gcd(*numbers):
return reduce(math.gcd, *numbers)
limit_num = int(input())
result_list = []
for num in itertools.product(range(1, limit_num + 1), repeat=3):
result_list.append(gcd(num))
print(sum(result_list))
| [
"2000fumito@gmail.com"
] | 2000fumito@gmail.com |
23e61640ed855feebbe2108e6492511011375381 | be043d749f7b9fe23d9e8de2311315dbfb77dbd1 | /carrinho/urls.py | 1279efc1767155ca80b5aecb619574d92e1cdd32 | [] | no_license | lpsiqueira/trab8DevWeb | 835aa656d51e72838e6e02573c8a641900d3b0b7 | b3594ba297eaa25d0a1c1e696a9894e3359d7e7b | refs/heads/master | 2020-04-11T18:57:15.066380 | 2018-12-18T00:07:35 | 2018-12-18T00:07:35 | 162,017,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | from . import views
from django.urls import path
app_name = 'carrinho'
urlpatterns = [
path('', views.carrinho, name='carrinho'),
path('atualizacao/quantidade/', views.carrinho, name='atualizacao'),
path('atualizacao/remocao/', views.carrinho, name='remocao')
] | [
"lucas@imac-de-lucas.home"
] | lucas@imac-de-lucas.home |
4baa01214af68331cce5ae8058900f50875d348e | 8b7ac3df227af9d8f44cb514d0387b75f7b9ddc5 | /collinear.py | 54f65eaa46152a0c55108db597bdadab089f5478 | [] | no_license | manusri2430/manasa | 3bb0b92de01442624afb0eda3dc1a9ab5c34fd37 | c3d01ad8a88b8d114b9726dfc3fd8e5b051d8313 | refs/heads/master | 2020-03-27T10:35:43.550812 | 2019-03-30T16:41:30 | 2019-03-30T16:41:30 | 146,431,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | c1,d1=map(int,raw_input('').split())
c2,d2=map(int,raw_input('').split())
c3,d3=map(int,raw_input('').split())
if(d3 - d2)/(c3 - c2) = (d2 - d1)/(c2 - c1)
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | manusri2430.noreply@github.com |
98344ad8abb9ce5b83d4a4bea89d1f79dc4d4807 | 7be87e6e33d96e6bea2a2a926b99dd023dc378fe | /Basic/Iterating_DSS.py | 29b95a6017e6bea8cec6b30498a7b62ad08cf319 | [] | no_license | 7-RED/Numpy | f9d6ee87093ff5d29658c8d6f9c8c130ed521fc7 | b49b824f9f86c6764860370555e9f52b40b0535a | refs/heads/master | 2023-05-28T07:44:44.917675 | 2021-06-19T13:10:54 | 2021-06-19T13:10:54 | 345,438,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | import numpy as np
arr = np.array([[1, 2, 3, 4], [5, 6, 7, 8]])
for x in np.nditer(arr[:, ::2]):
print(x)
| [
"chenqihong@chenqihongdeMacBook-Pro.local"
] | chenqihong@chenqihongdeMacBook-Pro.local |
a8516c65febaa2e28f4568377332c31e9a691caa | 6ff9b8486aa79e8713aedb0a21997bbb02accdd8 | /Referee.py | b5dfd20a7f93eaeb9cba95a7b6ec9836c18ce1c3 | [] | no_license | Yxang/TicTacToe-MCTS | dfd231f1d4d46eb177a66a9b0ccf421b345a2df8 | 8a7b382dd1f3ef21e037b4902e827bb9e4cec8fa | refs/heads/master | 2022-12-17T20:34:37.525144 | 2020-09-15T09:36:14 | 2020-09-15T09:36:14 | 286,937,970 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,263 | py | import multiprocessing
import Env
from Agents import RandomAgent, MCTSAgent, NNAgent, HumanAgent
import logging
import queue
import traceback
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
class AgentProxy:
"""
multiprocessing proxy for an agent, receiving the environments and ... | [
"yangxinyuan100@gmail.com"
] | yangxinyuan100@gmail.com |
f56472cc80c7f2e88700c3841bbda49cf21b7a62 | 6ea84a1ee3f08cc0e2c50b452ccda0469dda0b6c | /projectDelapanBelas/blog/migrations/0001_initial.py | 3ed3f0350fdffac45f1cad62e8c1341d304818fc | [] | no_license | frestea09/django_note | b818d9d95f2f1e43ba47f8f2168bc5980d5da1f7 | b8d1e41a450f5c452afd36319779740bed874caa | refs/heads/master | 2020-11-24T03:54:00.000949 | 2020-01-01T06:50:12 | 2020-01-01T06:50:12 | 227,950,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # Generated by Django 2.2.8 on 2019-12-17 15:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(aut... | [
"ilmanfrasetya@gmail.com"
] | ilmanfrasetya@gmail.com |
7a7823205fb50885a8d4b2b5b48cd96af2e4f1ba | c1edf63a93d0a6d914256e848904c374db050ae0 | /Python/Python基础知识/学习与应用/复利.py | 42d73cb1167ff10ab58d32d375ce5b7cc5241f1e | [] | no_license | clhiker/WPython | 97b53dff7e5a2b480e1bf98d1b2bf2a1742cb1cd | b21cbfe9aa4356d0fe70d5a56c8b91d41f5588a1 | refs/heads/master | 2020-03-30T03:41:50.459769 | 2018-09-28T07:36:21 | 2018-09-28T07:36:21 | 150,703,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | def main():
money = 24.0
float (money)
for i in range(2017-1626):
money *=1.08
print(format(money,","))
main()
| [
"1911618290@qq.com"
] | 1911618290@qq.com |
8c8d3e4f6c2c0b2395f85200eaf66ecc43ef8151 | 076a418bf1c331e63503921c4fc7d3dbae328607 | /test/utils/grad_check.py | 9971037408fdcffc8b936cd7aa0181251e70c56e | [
"MIT"
] | permissive | saeedahassan/numpyCNN | faae22be977e8b12b42333d97d1ae3db4dfae0a9 | 368d5f2f11ecbbad638813b8adfa1527e0412461 | refs/heads/master | 2023-07-21T15:24:46.283980 | 2019-01-11T23:08:51 | 2019-01-11T23:08:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py | """
Utilities to perform Gradient Checking
"""
from functools import reduce
import numpy as np
def to_vector(layers, w_grads, b_grads):
v_params = np.array([])
v_grads = np.array([])
params_shapes = {}
for layer in layers:
w, b = layer.get_params()
params_shapes[("w", layer)] = w.sha... | [
"pratissolil@gmail.com"
] | pratissolil@gmail.com |
7386f368c2cc75f30ce89a81745153fc54d18326 | 9d04d4c0c4f3f90fcf5b724e0e8d4c0516b1d23f | /SERVER/ecommerce/database/migrations/0001_initial.py | 42d3f40bd4adde1ed8a1fedd6b06d776a772a751 | [] | no_license | daren996/DatabaseSystemForE-commerce | 1ff6511b873062e72d3f01cd88467870d16b5033 | 6ecf51e2d419b008c52b27b96f0f2b2af14c61ea | refs/heads/master | 2020-03-20T17:51:18.786894 | 2018-06-17T15:17:08 | 2018-06-17T15:17:08 | 137,567,289 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | # Generated by Django 2.0.5 on 2018-06-17 13:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"850002098@qq.com"
] | 850002098@qq.com |
1cf068224d1fb52bbadc425a5c816041a20654ba | 087cd843cf37e2ae3c8320f84e1005b3c2d786a3 | /appdb/webdb/migrations/0001_initial.py | 8d1e53c062ff733cb3b38ff80da0295998f1f54d | [] | no_license | miguelpfitscher/DjangoDB_RateProfessor | ceb719d7882fb608f88498f98ee4fb618d4542c5 | 61be81828f4d6c34522dc10f8034dda34d849642 | refs/heads/master | 2021-03-27T17:06:37.899069 | 2016-11-27T03:12:18 | 2016-11-27T03:12:18 | 73,835,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-08 13:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"miguel.pfitscher@gmail.com"
] | miguel.pfitscher@gmail.com |
2f1d2acec448d3ddd845fbe4b3e7bd9d67a152a8 | 5281cf03d1269f341cbf006b43c6f09efa5e98ab | /minitn/heom/eom2.py | a7d36a68bffd2f58ce6c589a611047d4a3ff262a | [] | no_license | vINyLogY/minimisTN | 3927431eb7bf73ffd6cf42aa8faf7c189e7f3c55 | 0d6c7bd23ccf766e8d39c42082e8fb6b751ee2fc | refs/heads/master | 2022-05-09T06:10:56.413522 | 2022-04-12T14:04:48 | 2022-04-12T14:04:48 | 140,754,574 | 3 | 1 | null | 2022-04-12T14:04:19 | 2018-07-12T19:11:10 | Python | UTF-8 | Python | false | false | 5,420 | py | #!/usr/bin/env python
# coding: utf-8
"""[No Rescale] Generating the derivative of the extended rho in SoP formalism.
Conversion:
rho[n_0, ..., n_(k-1), i, j]
"""
from __future__ import absolute_import, division, print_function
import logging
from builtins import filter, map, range, zip
from itertools import pro... | [
"vinylogy9@gmail.com"
] | vinylogy9@gmail.com |
bd9b1111182878c62a19a1dc63358f23003f47c8 | fd2a5a65913d6a45f2f192a50b8315eb155f89d5 | /main.py | 56ea827f3091c8d4c9db8986e3a8a6402932d515 | [] | no_license | zkerhcy/YoudaoTransPop | 95435d87ddbc858862ab99fd533a2dc00343e43f | 245645ef81cf65c3f68dff3878076d6258c30ee3 | refs/heads/main | 2022-06-07T05:14:21.961885 | 2021-09-14T07:16:47 | 2021-09-14T07:16:47 | 99,469,091 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # coding=utf-8
LANG_CODES = {
"Chinese Simplified": "zh-CHS",
"Chinese Traditional": "zh-CHT",
"English": "EN",
"French": "fr",
"Japanese": "ja",
"Korean": "ko",
"Portuguese": "pt",
"Russian": "ru",
"Spanish": "es"
}
KEY_CODE = {
"APP_KEY": "${your_app_key}",
"SEC_KEY": "${... | [
"zhao.chen@zoom.us"
] | zhao.chen@zoom.us |
21690331d4d4f5ba169d6a503f8a5ef4fd523d83 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_169/ch147_2020_04_21_21_09_20_774383.py | 51268f75bd590ebc67f9d2cd20b09608dfd9e429 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py |
def mais_frequente(lista):
lista3=[]
for i in range(len(lista)):
lista.count(lista[i])
lista3.append(lista.count(lista[i]))
for i in lista:
if lista.count(i)<max(lista3):
lista.remove(i)
elif lista.count(i)==max(lista3):
lista.remove(i)
for e in ... | [
"you@example.com"
] | you@example.com |
f0bd585ad377d92c9cc89d3950a3dbab7f3ad73b | 698ea0e0201fd4b9057e1d4d4d69affa9f710828 | /models.py | 448a78a94f7354c3bddb57925a315f9b7323bc7a | [] | no_license | fang0975/pygame-children-go-down-the-stairs | a2169e8100e034bad1646b11d176188d19dd3519 | caba866df7a8b92b84eb7b0d5b10947ec320cb3e | refs/heads/master | 2021-07-21T00:15:59.295722 | 2017-10-30T08:40:46 | 2017-10-30T08:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,985 | py | import pygame
from pygame.locals import *
class Character(pygame.sprite.Sprite):
defualt = 0
left = 1
right = 2
rect_defualt = (8,0)
rect_left = (3,0)
rect_right = (0,1)
def __init__(self, target):
pygame.sprite.Sprite.__init__(self)
self.target_surface = target
s... | [
"abc873693@gmail.com"
] | abc873693@gmail.com |
25bac3dd7faa4c6c36b8619c4ab34264bb01b969 | 4b49cdb855049ba6bdeca72b26708ad43bb27b8c | /discussion.py | 178a2243b5910727951c81deb366a483eff381ff | [] | no_license | rtsio/myumbc | fbf2565f10b59188088a8f076bae393e1889c1d0 | 17402656320ee6a764e025bbae56cd19f98ffb68 | refs/heads/master | 2020-04-05T23:34:03.566988 | 2014-07-25T05:11:53 | 2014-07-25T05:11:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,389 | py | #!/usr/bin/python
import argparse
import time
import re
import sys
import base64
from ConfigParser import SafeConfigParser, RawConfigParser
from bs4 import BeautifulSoup
from myumbc import Scraper, Database
def progress(x, current, limit):
print "Discussion: " + str(x) + "\t" + str((float(current)/limit) * 100) + ... | [
"rostislav.tsiomenko@gmail.com"
] | rostislav.tsiomenko@gmail.com |
fc6fcfc0ce0a0ded8f9d94bdb048f19d554c8186 | 1916818ab9c19064381e857e8ba8996f387d9056 | /toucan/alert_api/views.py | 874cd1c1f080813044569999496890ee3b80d716 | [
"MIT"
] | permissive | toucan-project/TOUCAN | 4906889abdb6427237c288f1ab57df819761c494 | d562e1191b5ef10480be819ba8c584034c25259b | refs/heads/master | 2021-09-26T22:43:49.663430 | 2021-02-26T14:56:18 | 2021-02-26T14:56:18 | 204,929,596 | 3 | 1 | MIT | 2021-09-23T23:26:23 | 2019-08-28T12:44:12 | Python | UTF-8 | Python | false | false | 3,394 | py | from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.parsers import FileUploadParser
from rest_framework.permissions import IsAuthenticated
from rest_framework.exceptions import ValidationError, NotAuthenticated
from alert_api.model... | [
"github@evicted.ninja"
] | github@evicted.ninja |
0466b8e35fbd5bd89a68185439acb789f17f02db | 9d4bde3947edc11ba87d06068581c6a91696e8e6 | /chapter_07/q08.py | 14b4fbd3c225f9a79e2d6aea63f9d2ecd1ad004d | [] | no_license | zanariah8/Starting_Out_with_Python | e6d8c6cbd187043160c6408fc4ac5f47c35e7c57 | 92751fde462683c9d62934409fa469ccddc1d519 | refs/heads/master | 2020-04-23T20:38:13.712144 | 2019-02-18T20:24:15 | 2019-02-18T20:24:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | # name search
def main():
# open the girlnames.txt file
try:
girls_list = girls_name()
boys_list = boys_name()
search_name(girls_list, boys_list)
except IOError:
print("No such file or directory")
def girls_name():
# open the girlnames.txt file
inf... | [
"noreply@github.com"
] | zanariah8.noreply@github.com |
8ad68457f32cadbf1ff7b1888a2c464f3da77c81 | 3b60e6f4bbc011003ac4929f01eb7409918deb79 | /Analysis_v1/cleandatasetslist.py | ff835fab021624dc4e3a865231d163bd923cd01e | [] | no_license | uzzielperez/Analyses | d1a64a4e8730325c94e2bc8461544837be8a179d | 1d66fa94763d7847011ea551ee872936c4c401be | refs/heads/master | 2023-02-09T04:54:01.854209 | 2020-09-07T14:57:54 | 2020-09-07T14:57:54 | 120,850,137 | 0 | 0 | null | 2020-06-17T16:48:16 | 2018-02-09T03:14:04 | C++ | UTF-8 | Python | false | false | 235 | py | inputfile = 'datasetlist.txt'
f = open(inputfile)
lines = f.read().split('\n')
outfile = 'cleaneddatasetlist.txt'
out = open(outfile, "w+")
for line in lines:
if 'json_toRun2018Dv2_323775' in line:
print line
out.write(line)
| [
"uzzie.perez@cern.ch"
] | uzzie.perez@cern.ch |
101d220deac1c24bedab54a72d490bf76fab5b1c | 7dd8a4ddedd429d7522dd903c741f8ac508d0374 | /pkg/devices/BaseDevice.py | a08d824d35836a2efd3e2cefef4ab2c8b6422ee5 | [
"BSD-2-Clause"
] | permissive | junchaohu/SensorActuatorManager | 349b955616c7161ef49f383c91ff7bd4bbe82bd5 | 75c9594c3cabcdadc4e13acc0e7e9d5240e15f33 | refs/heads/master | 2021-05-26T20:49:18.898149 | 2013-07-17T06:15:49 | 2013-07-17T06:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | # Author: Mani Srivastava, NESL, UCLA
# Created on: May 22, 2013
#
# Copyright notice in LICENSE file
#
import threading, Queue
import time
import logging
from pkg.utils.debug import debug_mesg
from pkg.utils.misc import is_valid_host
class Device(threading.Thread):
def __init__(self, type, id, params):
threadi... | [
"mbs@ucla.edu"
] | mbs@ucla.edu |
02799b9dd3f69789fcc67cf2c747f058d776d4b7 | b6a64e149b6e0a34884898ca520f9ef2de75e3e0 | /main.py | ba9167f01f680eeada23f890d6ff3ccedb5fe115 | [] | no_license | neilfawkes/vk-tinder | 111677e2a1fc69a1935354d61be746f718061eb5 | 1cfa5840238410758757e576bcf3ff1c8c5b94e6 | refs/heads/master | 2023-03-22T12:59:19.873260 | 2021-03-17T08:13:00 | 2021-03-17T08:13:00 | 279,085,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,420 | py | import requests
import json
import time
from pprint import pprint
from urllib.parse import urlencode
from pymongo import MongoClient
def api_request(URL, params):
try:
repeat = True
while repeat:
response = requests.get(URL, params=params).json()
if 'error' in response and ... | [
"13dropsofsun@gmail.com"
] | 13dropsofsun@gmail.com |
8d948459ced273568dc01a0c3df913416818a7dd | 48d3ca5ebb17e9ee137cf45e1d8010d8eff9c65f | /BOJ/python/4195(친구네트워크).py | 7fc28a7fbead43c60e0e38bbcc142dfdf62f27ae | [] | no_license | dooking/CodingTest | 81d18e711a806ee14946b2aa006eda9c235f0b04 | 1467700f3461c5fe61bf1b4e668e0c9016d8c860 | refs/heads/master | 2023-02-23T15:59:15.274908 | 2023-02-10T06:35:12 | 2023-02-10T06:35:12 | 237,138,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | def find(x):
# path compression 기법
if parent[x] != x:
parent[x] = find(parent[x])
return parent[x]
def union(x, y):
x = find(x)
y = find(y)
if x != y:
parent[y] = x
number[x] += number[y]
test_case = int(input())
for _ in range(test_case):
parent = dict()
number... | [
"123456ghghgh@naver.com"
] | 123456ghghgh@naver.com |
da2ad3b2f4ed741c04d6ceeb4c16732a5f9d261b | b175a3abfa14992d9b07d53adc12700ded3b1c02 | /MachineLearning/OVO&OVR/case-ovr.py | c99b38ad4c882de397bff3a0f14fa038a2b4b5f0 | [] | no_license | BarryZM/Python-AI | d695a1569e5497da391b578e6638cc11479bfbaa | 251dc4002f9d7e5dd789e62b813651f2006f6ab6 | refs/heads/master | 2023-03-17T15:33:35.530258 | 2020-04-01T10:32:47 | 2020-04-01T10:32:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # -*- coding: utf-8 -*-
'''
Created by hushiwei on 2018/6/18
Desc : OVR案例代码
'''
import numpy as np
from sklearn import datasets
from sklearn.multiclass import OneVsRestClassifier
from sklearn.svm import LinearSVC
from sklearn.metrics import accuracy_score,precision_score
# 加载数据
iris = datasets.load_iris()
x, ... | [
"hsw.time@gmail.com"
] | hsw.time@gmail.com |
2c7d6be1687ee4887ff265a690c14e5190c8f27b | 52acdb157a0b15d60b8e2c06fc02880fd8340ef6 | /retrive.py | 59c0729a3c1a15a19c64b299961cf4b10fa1a2c7 | [] | no_license | dawnblade97/licplatereg | 7f50aa243378abbca8c32c66d9f60c1e9f0449e5 | 230ab4fcce5b5345a2d7842c283be9a4df79ec91 | refs/heads/master | 2020-07-11T10:33:20.952968 | 2019-08-27T10:53:41 | 2019-08-27T10:53:41 | 204,514,514 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | import json
#print( json.load(open("Indian_Number_plates.json","r")) )
#with open ('Indian_Number_plates.json') as plate:
# data=json.load(plate)
import urllib.request as ur
tweets = []
cnt=0
for line in open('Indian_Number_plates.json', 'r'):
data=json.loads(line)
#print(data['content'])
ur.urlretr... | [
"49042994+dawnblade97@users.noreply.github.com"
] | 49042994+dawnblade97@users.noreply.github.com |
594faf68337ee58b731d63469a8680468787772f | daee02c2c5d0d3848592cd9fe7dee2c1ba62415c | /hw5/test.py | 615c4e16f4f2f9b83cf92d86fafa1a5dc45785ec | [] | no_license | seanbbear/SocialNetwork_Assignment | 7cc9b4a6824dfb09955d998747e0e33b3bdbff3a | 88fb6e9cb79a2a64b1e246a24690d14aad190972 | refs/heads/master | 2022-11-25T18:19:20.960473 | 2020-07-10T02:06:08 | 2020-07-10T02:06:08 | 278,507,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | import numpy as np
from tqdm import tqdm
data = np.load("seg_data.npy",allow_pickle=True)
def get_wordlist(data):
print("---start getting wordlist---")
wordlist = []
for content in tqdm(data):
for word in content:
wordlist.append(word)
return list(set(wordlist))
def chi_square(word... | [
"k7489759@gmail.com"
] | k7489759@gmail.com |
c789cf9d1eb18ea4437af34c26ae53afb498e638 | 5c94e4df517745a564250f5a066d1c05dcf02c24 | /car/migrations/0001_initial.py | 2968b3369b930e37c84741edb8a7dba42a558fe2 | [] | no_license | aysenurozbay/Airport_Transfer_with_Python_Django | e4cd4310f0121f5ecf6ca97f33c466de8ff6bc2a | e5a31d59ec6e968e996ee75542bd4891e53c466a | refs/heads/master | 2023-06-05T20:43:19.860280 | 2021-07-02T12:06:51 | 2021-07-02T12:06:51 | 347,430,605 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | # Generated by Django 3.1.7 on 2021-03-14 12:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"aysenurozbay1004@gmail.com"
] | aysenurozbay1004@gmail.com |
1d2c120548969e949dfa2abe8beb7bdf89338787 | b64e685dec5d95baad28c26b245df2bb0b45f8ed | /Data Inspection.py | 9fee83b8728400884564e282e546da6b7406069b | [] | no_license | pfescriva/Chicago-Trucks-Classification | 9f9f1d95a223924ced43b9d371594d3d7935eb82 | 40c82a93a68a01c349eea312accaf932490a0314 | refs/heads/main | 2023-04-04T22:57:53.053084 | 2021-04-10T18:20:11 | 2021-04-10T18:20:11 | 356,643,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,683 | py | import pandas as pd
import multiprocessing as mp
import sys
####### PROJECT ###########
# Load the data
import multiprocessing as mp
import pandas as pd
vehicles = pd.read_csv("C:/Users/Carmen/OneDrive/Archivos - Todo/1 - Master Statistics/Period 2/Traffic_Crashes_-_Vehicles.csv")
crashes = pd.read_csv("C:/Users... | [
"71879463+pfescriva@users.noreply.github.com"
] | 71879463+pfescriva@users.noreply.github.com |
4bd493f273e1f83f2fe011829ccf0632072d72b6 | 5621a2215dea381e661ef141ebc09d4e1815f242 | /oauth_token_manager_test.py | ae5a667cebae24c5cb8ed11d6ee809944b8c0051 | [
"Apache-2.0"
] | permissive | martincochran/score-minion | 7ec66b7bb7b8402e5c60c402936ceb21023d2ea6 | 58197798a0a3a4fbcd54ffa0a2fab2e865985bfd | refs/heads/master | 2020-04-12T06:27:02.218104 | 2017-04-09T20:44:21 | 2017-04-09T20:44:21 | 27,320,444 | 0 | 0 | null | 2014-11-30T01:32:21 | 2014-11-30T01:12:00 | null | UTF-8 | Python | false | false | 2,779 | py | #!/usr/bin/env python
#
# Copyright 2014 Martin Cochran
#
# 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 la... | [
"martin.cochran@gmail.com"
] | martin.cochran@gmail.com |
d6499c4d42ad85ac400a5bbec98636b06be7ab7d | e9814e85c3c0ef112a99764a410555f47044e389 | /views.py | 7b4bd8496db19ebcf2ed11c4845ab396af3e04b5 | [] | no_license | hatsem78/flask_jwt | 4ed7b14f356e029302d3a48aac94e9fe6eeda8eb | 28b594412eccac71cc3823f187f9ef6d5458b6cf | refs/heads/master | 2021-06-10T06:00:30.821269 | 2021-05-19T13:47:00 | 2021-05-19T13:47:00 | 180,415,067 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from run import app
from flask import jsonify
@app.route('/')
def index():
return jsonify({'message': 'hello, world'})
| [
"ohatsembiller@kiusys.com"
] | ohatsembiller@kiusys.com |
934e86330e972edcbc373ccb4c4487c22ccc2e5e | 09aee268ce72d282f53fe94f42478e2b3b48127d | /multiappProject/multiappProject/wsgi.py | 86941870258341acad5fe5fe9c73ac5a014b4bc7 | [] | no_license | keshava519/Django_Projects | c95d0f8c55d4cc946291be6fb058b7298aefe596 | 99584892b9d9ec6b6395a382c684b4d036d07874 | refs/heads/main | 2023-02-23T03:44:32.110742 | 2021-01-27T15:15:13 | 2021-01-27T15:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WSGI config for multiappProject 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"keshava.cadcam@gmail.com"
] | keshava.cadcam@gmail.com |
9cda8fc2c01c9820f390f8122800fa8f79f4e834 | e04ee5f0d78547f07d3fa4b970582ab5242a39de | /Auto test.py | 4a3633b5ebff6ffa652ab77cde03a87a1ca76da2 | [] | no_license | PrashantSwamiAcc/TestProject | f4786116b8c0293f95a09262712ec0cf70df73d4 | 2e419ec95d2ff1c0f609c2e8cf85e2b3c8be057d | refs/heads/main | 2023-08-02T04:04:54.971074 | 2021-09-20T14:04:48 | 2021-09-20T14:04:48 | 407,182,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | import scores
from rps import rps
from compute import compute
from scores import tabulate
tests = int(input('How many tests?'))
count = 0
score = []
userplays = []
complays = []
while count <= tests:
inp = compute()
comp = compute()
wl, inp, comp = rps(inp, comp)
score.append(wl)
u... | [
"noreply@github.com"
] | PrashantSwamiAcc.noreply@github.com |
870d46d45893fc0a9c7cc2b09129942a1f7bedd3 | 558f85dec459f2e67dc3ef24be551139cab63e04 | /noughtpad_app/views.py | 7bfa03dd6f4389f607e1831c9d432fbbddb4c51a | [
"MIT"
] | permissive | codelixir/nought-pad | 28d4a30c0e5bbbee8822fcb45032717dfca635e6 | 79987a87070ca5c9f48303ca701d00cf0bb27eac | refs/heads/main | 2023-08-13T23:00:46.628958 | 2021-09-23T07:57:21 | 2021-09-23T07:57:21 | 374,750,298 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,882 | py | from django.shortcuts import get_object_or_404, render
from django.urls import reverse_lazy, reverse
from django.views.generic import ListView, DetailView, CreateView, UpdateView, DeleteView
from django.http import HttpResponseRedirect, request
from django.contrib.auth.models import User
from .models import Category, N... | [
"pahulpreet.singh@research.iiit.ac.in"
] | pahulpreet.singh@research.iiit.ac.in |
ae907a5ae9a5d33fb7689d03edee9680d427a226 | 4ba2d66fb4874a6e25260e1a530f8b27ac1fc77b | /main.py | 5023f3a48d5656adaa27ac53e2d50c18b40c76b2 | [] | no_license | roscale/stochastic-process-project1-part2 | 37073bf4b4db6cc692b8f9258cf85fab085e99a6 | 3988e65a2c9eadc7ec239bde010e545e020b4a14 | refs/heads/master | 2021-05-21T02:27:05.376517 | 2020-05-08T19:40:00 | 2020-05-08T19:40:00 | 252,501,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,476 | py | from sys import stderr
from experiment import Experiment, Proportion
from util import *
simulation = input("Simulation [wlin, wfull, wbig, p_transmission, p_interaction, p_vaccination, p_meds]: ")
if simulation == "wlin":
experiment = Experiment("Simulation: Wlin")
experiment.read_adjacency_matrix(make_lin(6... | [
"roscaalex19@gmail.com"
] | roscaalex19@gmail.com |
0d68bfb91ed965310a9d735f502d4310075538a4 | bb2e6e0f1c00dd5e9dd18a71619ea895d6fe07ba | /functional_tests.py | 8f085c7f9e34957c125fdeabae89a53f1e219b19 | [] | no_license | nauman3128/tdd | 88fd16c2238a9a8e22758a3cae6a375a0451d3de | 3ef1a623461422b8346ad4b481dd3503b01b93a6 | refs/heads/master | 2016-09-15T19:06:52.502180 | 2015-07-28T12:38:50 | 2015-07-28T12:38:50 | 39,830,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | from selenium import webdriver
import unittest
class NewVisitorTest(unittest.TestCase):
def setUp(self): #
self.browser = webdriver.Firefox()
self.browser.implicitly_wait(3)
def tearDown(self): #
self.browser.quit()
def test_can_start_a_list_and_retrieve_it_later(self):
# Edith has heard about a cool new ... | [
"nauman.qc@gmail.com"
] | nauman.qc@gmail.com |
722b478c6cbe6b6ada0f907f795d36f9eee81280 | 08f4533b76317c304cbf6d3bc30df5f760235a23 | /week1/day6/CakeThief.py | 9956bfee383049ca61719c9fc39f4ecf22dd82ef | [] | no_license | surajkumar19/Competitive-Programming | 49861ee250e4b4918234c5592e6dc1c4690404b3 | 43babbc8a16d1d38ed9ef91b3b83a55f9ec8bfb3 | refs/heads/master | 2020-03-21T13:04:42.969008 | 2018-07-21T09:25:16 | 2018-07-21T09:25:16 | 138,586,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,267 | py | # O(mn)
import unittest
import math
def max_duffel_bag_value(cake_tuples, weight_capacity):
maxValuesAtCapacities = [0]*(weight_capacity+1)
for currentCapacity in range(weight_capacity+1):
currentMaxValue = 0
for cakeType in cake_tuples:
if cakeType[0] == 0 and cakeTy... | [
"noreply@github.com"
] | surajkumar19.noreply@github.com |
cdfc510623cc71cb3b4da894aa9cd0bf95d30739 | ecb088fd0f1929137e1b646d6d2b82de37028090 | /_22_Exercise32.py | 0ed733c27ae0bd17e27102abd6c535b615816aed | [] | no_license | divanshudodeja/Learn-Python-The-Hard-Way | 43b5cebed388c3107e5949518a2d6b66843a3f48 | bddf63afee93aa28efdf3e5b667342e5bd2a9370 | refs/heads/master | 2020-07-01T19:39:13.423226 | 2019-08-31T15:08:17 | 2019-08-31T15:08:17 | 201,276,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | the_count = [1, 2, 3, 4, 5]
fruits = ['apples', 'oranges', 'pears', 'apricots']
change = [1, 'pennies', 2, 'dimes', 3, 'quarters']
for number in the_count:
print("This is count %d" % number)
for fruit in fruits:
print("A fruit of type: %s" % fruit)
for i in change:
print("I got %r" % i)
elements = []
... | [
"divanshu.dodeja@gmail.com"
] | divanshu.dodeja@gmail.com |
057c350c8121bac5c0707c382478c05830f0c53d | a9e335ac27d09bc17f3a18109ca372f110bf5621 | /students/Y2334/Kotlyarova Sofya/prac_1.3/Prac/Prac/asgi.py | 108db9e3b02d955b4dfa506e6b5ebd48990b564f | [] | no_license | sofkot/ITMO_FSPO_PP_web_development_2020-2021 | 5f072a50e39d878dc7e7ba46cb50f5ccefd166c9 | f5e6b204c22c58e19ab97a15a3f8f5c6efa4b370 | refs/heads/main | 2023-06-16T05:16:48.249937 | 2021-07-01T17:29:59 | 2021-07-01T17:29:59 | 345,800,240 | 0 | 0 | null | 2021-03-08T21:29:35 | 2021-03-08T21:29:34 | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for Prac project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"sofiko.kotliarowa@gmail.com"
] | sofiko.kotliarowa@gmail.com |
d5bcb2225e95be7a585ac878101fee2ca086c0ef | 2292c300925ea481643ed9ec24f14bc862d06463 | /undertow/tunnel.py | 57f1429d0c9d679abc091a00786d9fe15b0ff097 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Morgan243/Undertow | 68316bb7650a7484eae82a30a921fd2f1a460116 | b5b242cb1eff60bdf0e94dd5c1ac54ed4c2a6b0b | refs/heads/master | 2021-01-19T11:33:09.734781 | 2017-04-11T20:26:55 | 2017-04-11T20:26:55 | 76,740,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | from undertow.net_core.ssh_tunnel import tunnel_to
import argparse
if __name__ == """__main__""":
parser = argparse.ArgumentParser()
parser.add_argument('--user', dest='ssh_user',
type=str, default=None)
parser.add_argument('--host', dest='ssh_host',
type=st... | [
"morgansstuart243@gmail.com"
] | morgansstuart243@gmail.com |
cb24bf738fec8bda1d40899a49d44e4de04b3312 | a2cbba69fcc84de566e750f455d1b8d04f841552 | /engine/nucleo.py | ded30edab020379844e45688f0bc41a601f95d6b | [] | no_license | caferrari/engine2d-python | 37627ea4da769bb1b28d02f1c7eb14d298bce65b | ee79b2909beb62aee815f7595572b01f69a44e33 | refs/heads/master | 2021-04-27T00:28:07.972427 | 2013-06-06T14:08:53 | 2013-06-06T14:08:53 | 10,527,829 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | import pygame, input, colisao
from pygame.locals import *
from threading import Thread
class Engine:
""" """
def __init__ (self, w, h, titulo):
pygame.init()
window = pygame.display.set_mode((w, h), HWSURFACE|DOUBLEBUF)
pygame.mouse.set_visible(False)
self.nome = titulo
self.dimensoes... | [
"caferrari@gmail.com"
] | caferrari@gmail.com |
6ccf069eeabedea4fc3fa15f19353da270bffd57 | 5dc1f6f7663230f73b381a5228bb00a5dfa53c1f | /Research Work/Training/Conversational_Emotion_Prediction.py | d1172b1ac91f457728bdeeedf02d49cbe7a5dc13 | [] | no_license | sadilchamishka/EmotionFYP | 4b6108a6aaf7ef06d6ee2c6f13c78e007b0fb930 | eab98a01f17e2af6190a9a71803c404e3dc410e9 | refs/heads/master | 2023-02-22T21:27:27.821660 | 2021-02-01T12:02:34 | 2021-02-01T12:02:34 | 333,349,476 | 4 | 1 | null | 2021-02-01T12:02:35 | 2021-01-27T08:14:13 | Python | UTF-8 | Python | false | false | 8,241 | py | import numpy as np
np.random.seed(1234)
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
from torch.utils.data.sampler import SubsetRandomSampler
import torch.optim as optim
from datetime import datetime
import argparse
import time
import pickle
from sklearn.metrics import f1_score, confusion... | [
"sandilchamishka@gmail.com"
] | sandilchamishka@gmail.com |
c1cb1396dd88ef6fbed0176a71aed933dc22faff | aa41762b5ffd4508edda81fc340d7781c9c24b93 | /Serial Communiction/MicroMojo-Py/micromojo/controller.py | e23f95abb7c15d0478e4224094e303d7b783f9cb | [] | no_license | EllenWho/MicroMojo-for-Alchitry-labs | 918c87949059b35c311424da078ff9da93ff9fb4 | b16eca47a6f916bf39ce7679cc46a0d877b1443e | refs/heads/master | 2023-02-18T22:11:33.443601 | 2021-01-24T17:13:05 | 2021-01-24T17:13:05 | 277,958,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,301 | py | from micromojo import signals
from micromojo import regint
# Modified by Ziyi Hu to fit Mojo, marked some parts to choose between Au and Cu.
# line 20, line 22, line 40, line 50 to line 52, line 165 to line 171.
class MicroFPGA:
def __init__(self, n_lasers, n_ttls, n_servos, n_pwms, n_ais):
se... | [
"noreply@github.com"
] | EllenWho.noreply@github.com |
6971c88f5af8b4f2695f6858174153b5bf96ab88 | 34a5c407030485d38346c082006ab111ef71e55f | /dtools/datamirror.py | 5ad363a90ac3b98744e058fc03688003f323a6f8 | [
"Apache-2.0"
] | permissive | maguelo/dtools | cbd22af60562fc6e52100dd2fba13a83f8390a65 | 21926c8bdddcff33ed27000869f31b819f221d50 | refs/heads/master | 2023-06-18T13:24:51.663298 | 2021-07-15T09:46:19 | 2021-07-15T09:46:19 | 350,441,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | from datetime import datetime
class DatasetMirror():
def __init__(self, target=None, ignore_columns = []):
self.ACTIONS_DICT = {"drop_columns":self.drop_columns,
"apply_fcn":self.apply_fcn}
self._actions = []
self.ignore_columns=ig... | [
"maguelo@stark-2.local"
] | maguelo@stark-2.local |
310de0fac2044190438d822293e99c96469c7b6b | 10e7464b60f4ad548218f3be5c52447e68358a14 | /Research Simulations/smartgrid_coop_research/simulation_notebook/nrg_pubsub_ex.py | 349b5a4955dae17d0fe937937ff38a6f4a358d7f | [] | no_license | hlopez058/PHD | b5563eca3d6c399b4cf9b78117836a2822601058 | 49ccfab66f7141650b997f3b18cfca3871020306 | refs/heads/master | 2022-12-11T02:51:11.217469 | 2022-01-15T14:17:29 | 2022-01-15T14:17:29 | 118,447,682 | 3 | 2 | null | 2022-12-08T02:20:42 | 2018-01-22T11:21:42 | HTML | UTF-8 | Python | false | false | 1,913 | py | import threading
import paho.mqtt.client as mqtt
import json
import pandas as pd
import time
mqttBroker = "localhost"
mqttPort = 1883 # port for mosquitto broker
client = mqtt.Client("client1") # create new instance
msg_dict = [] # create a list to store the messages
def main():
client.on_connect = on_connect ... | [
""
] | |
2a0373b7b4a522bd639b6871e3dcae7b1300d29e | e98018ca78ebdda8827a1ac3801c91aaceade99f | /exercise_4.py | edaf418a4c0163f50ad778dd263fe6c7416330a5 | [] | no_license | oddsun/pragmatic | 6b8f586ae2732dcea52031549650993409df7550 | 922f77119e68c9484ddf52ee02cde0b96676bf89 | refs/heads/master | 2023-06-07T04:56:21.240254 | 2021-06-25T02:22:45 | 2021-06-25T02:22:45 | 379,135,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | import turtle
from functools import partial
def parse_line(line) -> None:
"""
Parse a line of command
:param line: line of commands to parse, assumption: command and arg separated by a space
:return: None
"""
cmd_lst = line.split(" ")
arg = None
if len(cmd_lst) == 1:
cmd = cmd... | [
"1161465+oddsun@users.noreply.github.com"
] | 1161465+oddsun@users.noreply.github.com |
bee6112a5b8cd39d5f373d237af948f353fa884f | 4133bd4de741900a599d2acede88c14589652454 | /listas/media.py | e3a096bcc39049cdddc47f08c5b348e3b3d2c5b0 | [] | no_license | victorvhs/zumbi_curso | 5659a8fbc352ec4174230cda0542957951fa4ba8 | 3afb363874cca2286615d3595c5f50efc865cde1 | refs/heads/master | 2021-06-03T02:36:47.847231 | 2021-05-21T23:28:19 | 2021-05-21T23:28:19 | 64,033,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # -*- coding: utf-8 -*-
#Média de 5 numeros dentro de uma lista
notas = [10,10,10,10,10]
soma = 0
i = 0
while i < 5:
soma = soma + notas[i]
i+=1
media = soma / i
print( "Media %5.2f" %media)
| [
"victor.h.s.reis@gmail.com"
] | victor.h.s.reis@gmail.com |
3c4dec3da540fb6d60c5ede62ebdc2f8d3f62931 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200423124213.py | 52623136a0f6bca492d83b1518d16106b00db3aa | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,982 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 20200414
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una p... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
c742613b5122688d9b558e72aaa565118b5bb6b8 | 8df8b18d1b1cffa683d49cbb7c6e601b2c58c582 | /test_scripts/test_stutter.py | b78976a4689f30314e0064216f306e97f946b2f5 | [] | no_license | thatmoodyguy/vision2020 | 3dc4fca17d4458497b901e16ae40a39c5313e103 | a12a54996e798455b566698f4559dd7296a76c3f | refs/heads/master | 2020-12-19T04:12:43.327384 | 2020-02-29T05:18:16 | 2020-02-29T05:18:16 | 235,616,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | def destutter_coords(new_coords):
while len(last_coords) > 6:
last_coords.pop()
last_coords.insert(0, "{}:{}".format(new_coords[0], new_coords[1]))
print(last_coords)
sums = {}
for coords in last_coords:
if sums.get(coords) is None:
sums[coords] = 1
else:
... | [
"john@mentalvelocity.com"
] | john@mentalvelocity.com |
7f1ab427afdff94d83f6e4759d9de6159fc61dd8 | 91e0a29332eaadf067807e438a4a595c93507729 | /Object Oriented Programming/Day-1/Assgn-9.py | ea0a1f301af3d1cadd386b082616b15f9c537f6a | [] | no_license | ankushsharma0904/Infytq-assignment-solution | 873f49339e4876ce00485f5c8a429d903fad451a | b898a50f8c4d8eed2422ac04b2baa222284cb2b5 | refs/heads/master | 2022-11-30T01:03:00.373026 | 2020-08-07T12:01:32 | 2020-08-07T12:01:32 | 285,252,900 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | #OOPR-Assgn-9
#Implement Student class here
class Student:
def __init__(self):
self.__student_id = None
self.__marks = None
self.__age = None
self.__course_id = None
self.__fees = None
def set_student_id(self, student_id):
self.__student_id = stude... | [
"noreply@github.com"
] | ankushsharma0904.noreply@github.com |
4cc53c7f07f6e0d25fbff329f7bd73059cedeb84 | f8d188821191dd6c69313763f71d370c3b1281b2 | /Code/ExecuteDist.py | 38a20205d9d00b1241c5a6f521636ed0274e0c94 | [] | no_license | ahhuang007/SionExecuteProject | ae732583b663d86a15120522479c0be2c03df3e5 | 857b6fa497c82ec8db44c8ea2f15d3a28c06a6c5 | refs/heads/main | 2023-02-12T17:54:05.177023 | 2021-01-19T07:27:23 | 2021-01-19T07:27:23 | 330,897,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 24 00:14:37 2018
@author: Andy
"""
import numpy as np
import pandas as pd
# 0 for-loops, I'm actually 64042039 IQ
def ExecuteDist(df):
siondf = df[df["champion"] == "Singed"]
siondf = siondf.drop(["matchid", "win", "championid", "rank", "champion", "Unnamed: 0"]... | [
"ahhuang007@gmail.com"
] | ahhuang007@gmail.com |
e7037b0c637e6e97570ddb28a181f279e8d4c597 | 38744aa4f3ba165a8c043ac51c87b849882ea129 | /game/lib/python3.7/site-packages/pip-20.2b1-py3.7.egg/pip/_internal/commands/install.py | 2eb2bef6c2ce6551c2a36965104ce40a6ae0f626 | [] | no_license | CleverParty/containers | 5be3c82e38e65ccbaf703fe68f35992ad9941219 | a0d45e62fda2cb7b047c7a930cf6437e71a31d80 | refs/heads/master | 2023-08-04T01:32:58.122067 | 2021-02-07T15:14:35 | 2021-02-07T15:14:35 | 266,421,416 | 2 | 0 | null | 2021-09-22T19:39:31 | 2020-05-23T21:20:17 | Python | UTF-8 | Python | false | false | 26,024 | py | # The following comment should be removed at some point in the future.
# It's included for now because without it InstallCommand.run() has a
# couple errors where we have to know req.name is str rather than
# Optional[str] for the InstallRequirement req.
# mypy: strict-optional=False
# mypy: disallow-untyped-defs=... | [
"shanatmail@gmail.com"
] | shanatmail@gmail.com |
494ad832fa6990170d4b16f55a4cc7e8f864096f | 1b9bb81824a6e3623f4a1a39bb226794eb6838bb | /Ch3-Control-Structures/p4.py | b2d55b237db6970e02c25cf7649c4fca175ef111 | [] | no_license | sabricast/Charles-Dierbach-Solutions | 9c920506192b46671bf84c5a10f85f825955a651 | f8ec88c8156ae2d0e43d7fe9a190f9b83065e6e5 | refs/heads/master | 2020-03-19T00:07:56.822258 | 2018-06-22T22:09:39 | 2018-06-22T22:09:39 | 135,455,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | # Program that sums a series of positive integers entered by the user,
# excluding all numbers greater than 100.
terminate = False
sum = 0
while not terminate:
num = int(input('Please, enter an integer: '))
if num > 0:
sum = sum + num
if num == -1:
terminate = True
print(sum)
| [
"sabrina.castejon@gmail.com"
] | sabrina.castejon@gmail.com |
f6da95104305909cbfb8a5ff584892ff174bb1df | 11d265eba2ced9de43c339e4014c779b521320cd | /budget/urls.py | d21285624659058a7773c6937a88fcec99164e59 | [] | no_license | Sloshpit/budget_old | d9271de625cd7e3aa66ccbec501b005e50cd2812 | a5603996b026542adb3bc8c578c03bcb843bea01 | refs/heads/master | 2022-04-23T08:42:43.377827 | 2020-04-25T14:40:39 | 2020-04-25T14:40:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | """budget URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-based ... | [
"neel.maheshwari@gmail.com"
] | neel.maheshwari@gmail.com |
8c6c888913d98e1c22f9888d836e117845354dbb | 320280bfce76713436b76ffc3125ccf37e65a324 | /AnalyzeMiniPlusSubstructure/test/ttbar/ttbar_447.py | c15a0f7aeaa121a42e163f11de21cc3f77df3c9d | [] | no_license | skhalil/MiniValidation | 75ea5c0d7cde17bf99c7d31501f8384560ee7b99 | 1a7fb8377e29172483ea6d3c7b3e427ff87e7e37 | refs/heads/master | 2016-09-05T10:31:38.562365 | 2015-01-29T05:30:32 | 2015-01-29T05:30:32 | 29,898,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,861 | py | import FWCore.ParameterSet.Config as cms
###############################################
useMiniAOD = True
# AOD
pfcandidates = 'particleFlow'
chsstring = 'pfNoPileUpJME'
genjetparticles = 'genParticles'
importantgenparticles = 'genParticles'
tracks = 'generalTracks'
vertices... | [
"skhalil@fnal.gov"
] | skhalil@fnal.gov |
041d2d78acf76ad17561a3cf13bdd379042cbb0b | efae09bf12200004e50121572fef13fc635b255c | /Day14/Code/mypack/games/contra.py | c06e80acc0703fc451f419ff3ab906a886da338b | [] | no_license | supremepoison/python | 5655146a7a49d94e42b8aad139ae6b48a72c7015 | 9abc639c1496e6bd228dd923be98e54280658946 | refs/heads/master | 2020-04-05T07:07:05.096234 | 2018-11-08T07:22:04 | 2018-11-08T07:22:04 | 156,664,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # file : mypack/games/cotra.py
def play():
print("正在玩 魂斗罗")
def game_over():
# #绝对导入
# from mypack.menu import show_menu
# show_menu()
#相对导入:相对于当前 mypack/games/
from ..menu import show_menu
show_menu()
#调用mypack/games/tanks.py里的play()
...#相对导入
from .tanks import play
play()
... | [
"897550138@qq.com"
] | 897550138@qq.com |
d805d86670a23c03a0561093ce7ee2e1e1665412 | 1145a739e0472baf15086da421bb20ccc693f631 | /student_private.py | c0dddb5d92d6a5ddfd267a445845d534d009cfde | [] | no_license | islon/lxf | 261f73af6539ad26155e6bcb2c5284847fd90250 | c354bfb4d301b627bc3154197da052f40854e504 | refs/heads/master | 2021-01-12T17:51:06.818285 | 2016-11-27T18:44:24 | 2016-11-27T18:44:24 | 71,651,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | class Student(object):
def __init__(self,name,score):
self.__name=name
self.__score=score
def pt_score(self):
print "%s:%d"%(self.__name,self.__score)
def get_name(self):
return self.__name
def get_score(self):
return self.__score
def __len__(self):
return 100
xm=Student("xiaoming",80)
print xm.pt_sc... | [
"longai1567@163.com"
] | longai1567@163.com |
53ce4757b88e4be8b9d68c9da903d256458d43ca | 10256107b92bbf3c85371943a9ccd65f6a4b1092 | /qubayes_tools.py | 494db7d2c5b261b2e9a6a6f6e8fdb5f2b99f9fc0 | [
"MIT"
] | permissive | Quantum-Ducks/QuBayes | 5f970de8a721a6734499df9049a67fb95064889f | f9b658f5e5ebcf3d9327472b09dd89b5d740758f | refs/heads/master | 2022-11-29T02:09:24.242073 | 2020-07-16T19:20:26 | 2020-07-16T19:20:26 | 273,986,416 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,019 | py | from itertools import product
import numpy as np
from network_setup import *
def generate_cond_keys(child, ps):
##############################################
#THIS FUNCTION WILL GENERATE A LIST OF STRINGS TO USE AS KEYS FOR CONDITIONAL PROBABILITIES
### INPUT ###
# s_0 int number of states of th... | [
"mbruff@unc.edu"
] | mbruff@unc.edu |
97526b2d07a57713e091b7a40b2016652f423481 | 961042b1e542e3648b20de407041f02b5b0d50f3 | /python_lesson/homework/hw4/rain.py | 45fc59b643e77a6a5f50a268805ee8546b9f7291 | [] | no_license | jasonwu0908/tibame | f4a9275bfbcc4b8e591907482c725a872b55c18a | 9f49f95f1bdcb6d241737657cbb4f468f57c22d2 | refs/heads/master | 2020-08-28T23:26:53.180559 | 2020-05-17T06:34:08 | 2020-05-17T06:34:08 | 217,852,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,528 | py | # 輸入一字串,字串為”all” 表示計算60個月的總平均降雨量,”year”、”season”和”month”
# 分別表示計算某年、某季或某月的平均降雨量。若為後三者,再輸入一個正整數表示那一年、那一季或那一月。
# 說明:5年12個月的降雨量以三維陣列形式事先給好60個浮點數
# 需做誤錯處理:
# a. 輸入除了”all”、”year”、”season”和”month”以外的字串
# b. 若輸入”year”,而正整數輸入1至5以外的數字
# c. 若輸入”season”,而正整數輸入1至4以外的數字
# d. 若輸入”month”,而正整數輸入1至12以外的數字
import random
list_rain = []
... | [
"jw840908@gmail.com"
] | jw840908@gmail.com |
53bf12582b148ff36491728a65ce0940d7cd0349 | c3feb5a8569436f22192412f5e3234b940994622 | /writing_raster.py | 910920a5b5b7aaa73f435ff1a72b1119cf8dfd40 | [] | no_license | grathee/ISRIC-awc | 68aa511810ab05e4a5847c929f7e043aa7900d13 | 90629100a8fa6c236f65ffa6596a02f503c2ff2a | refs/heads/master | 2021-01-10T10:57:22.352441 | 2016-04-10T20:24:53 | 2016-04-10T20:24:53 | 51,150,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 10 16:01:08 2016
@author: user
"""
rf = gdal.Open("/media/user/data/AWC-IN_022016/sdata/BLD_sd1_M_1km_T386.tif")
cols = rf.RasterXSize
rows = rf.RasterYSize
geotransform = rf.GetGeoTransform()
originX= geotransform[0]
originY= geotransform[3]
pixelWidth= geotransform[1]
... | [
"geetika.rathee@wur.nl"
] | geetika.rathee@wur.nl |
ec14f58a983cc07d6cc84ca1a9767d97e9932fe9 | 480849d5c9de11ad7a57b8d491e7047f3b3a643e | /functions.py | 7dccc1335ea73c9fa16ca9836aa6e4062b247fcf | [] | no_license | Jrossi11/Streamlit-Backtesting | b404730d33018f005bca38995a7bf50fe097f94f | 04028afd5a506e831a53a20b1a6f712635a9486c | refs/heads/main | 2023-04-04T07:09:13.651200 | 2021-04-15T15:13:47 | 2021-04-15T15:13:47 | 344,124,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,706 | py | import yfinance as yf
import numpy as np
import pandas as pd
from indicators import MACD, BBANDS
def create_df(ticker, days, std, a, b, signal, start, end, freq):
df = yf.download(ticker, start = start, end=end, interval = freq)
data = pd.DataFrame()
data['Close'] = df['Close']
data = BBANDS(df,days,s... | [
"noreply@github.com"
] | Jrossi11.noreply@github.com |
aa7a76f3941412f0af24311100dbb6ddf5fd5935 | 632544cb106ca1456d528cd650418f66f1715e5b | /backend/app_1_21879/settings.py | 2957bf57e0b60bcedc3768f223af76b86999ba84 | [] | no_license | crowdbotics-apps/app-1-21879 | e38079331882dd023ea086e5f2699fa887f688e5 | 2ba321b7f4d5c48a7a787db49d424891a4c01803 | refs/heads/master | 2023-01-02T06:15:05.927470 | 2020-10-23T17:48:54 | 2020-10-23T17:48:54 | 306,707,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,083 | py | """
Django settings for app_1_21879 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ccee0ae76b708de8d873628460ed5fd1800af471 | 33612e7ca82f22bb8c96515f448afefd680f9134 | /dho-screencap.py | 03474b750a113b35da8ba5e1c205518ea1ea2f9f | [] | no_license | coderpete/dotfiles | 959bca73c61924fe363b96d027305b60829e57f3 | c09e75853c048a31cddfc38aaa2674dde352b7f8 | refs/heads/master | 2022-08-15T06:21:29.645361 | 2022-08-03T01:21:56 | 2022-08-03T01:21:56 | 4,587,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | #!/usr/bin/env python
'''
Integrates Mac OS X's screenshot utility with DreamObjects for easy sharing.
'''
from datetime import datetime
from uuid import uuid4
import os
import subprocess
import webbrowser
import urllib2
import json
import boto
import boto.s3.connection
# configuration
f = open('.dho_access', 'r... | [
"pete.chudykowski@dreamhost.com"
] | pete.chudykowski@dreamhost.com |
2e10e0235035397bd356c040ca5aa38dfa087ded | d7e3988bd90ffa6259d564e8426eed18766a5e03 | /old/tarea3.py | 6aec20f4c9fa2621c44eb679717a861f0a75232e | [] | no_license | yerkortiz/py-code | 7e405705bcd92819c555ba0ba43551fa3c852657 | b120c4c613c8cbecf89a8473fde40bb1d69bc724 | refs/heads/master | 2023-01-08T22:17:05.807915 | 2020-11-14T18:58:26 | 2020-11-14T18:58:26 | 214,654,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | from gost import *
#gost.py es parte de la libreria, pero solo el archivo.
#como es un standar ruso, gran parte de lo que encontré en internet
#estaba en ese idioma así que el camino más corto fue ver directamente
#la implementación del algoritmo y ver como usarlo
#el resto de funciones de pygost son para codificar y d... | [
"yerko.ortizm@mail.udp.cl"
] | yerko.ortizm@mail.udp.cl |
ea7d3b60c24ca6ccdc9de4c84e580fdb27c80e0b | 802997443ff625296e09eed55e349f319953e47a | /Versoes Anteriores/Gestao_v1/gestao/gestaoapp/models/projeto.py | 0c74fe69f47d23d7d7e0e0ec089490b5d30b7192 | [] | no_license | elizabethsilvano/GestaoProjetos | 7531277f4c51fb7802a70f24a406ad81bc467d96 | 3d21fff452cf42cd2d78a6591d0fab9ac9b46eb5 | refs/heads/master | 2023-04-01T18:54:41.932959 | 2015-11-17T17:43:00 | 2015-11-17T17:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from django.db import models
from gestaoapp.models import Coordenador
from gestaoapp.models import Bolsista
from gestaoapp.models import Nucleo
class Projeto(models.Model):
nome_projeto = models.CharField(max_length=255)
coordenador = models.ForeignKey(Coordenador)
nucleo = models.ForeignKey(Nucleo)
bolsista = mod... | [
"paatrick_reis@hotmail.com"
] | paatrick_reis@hotmail.com |
305ec6ed0199cbc83888fec821fb398ad5eb7314 | 677744a2392da10141b0a8f19458dba730a35bff | /Algorithm/backjoon/bronze/최댓값.py | b62e8f5f601576834ee97b03b9c76756d2ccfd14 | [] | no_license | xxoellie/growth_recording | daf1cf2a89b62ca4e683bd6e7b5507b038bbd66d | f45e46a50a7941d31c3c9a754d40617da9541a31 | refs/heads/master | 2023-09-06T08:13:39.720428 | 2021-11-17T15:16:38 | 2021-11-17T15:16:38 | 403,450,642 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | num = []
for i in range(9):
num.append(int(input()))
a = max(num)
b= num.index(a)
print(a)
print(b+1)
| [
"elliesohyeon1202@gmail.com"
] | elliesohyeon1202@gmail.com |
f42e432426681660f78bd781ade6c893b3eeee8f | b6cdc35b12a1ae8834d76c7731f79c9689f75e04 | /polling_bot/excel_reader.py | d73b1a9173bcc5252bd8567185c7fd38be113e52 | [
"Apache-2.0"
] | permissive | balemessenger/poll_bot | 40abd3235c1587d73a84d395d124ae7e56a2d140 | 672ed66aa376ac1580c48c119ca2743a16976326 | refs/heads/master | 2023-08-07T22:13:18.246312 | 2020-02-19T06:06:11 | 2020-02-19T06:06:11 | 241,539,543 | 0 | 0 | Apache-2.0 | 2023-07-23T06:07:38 | 2020-02-19T05:21:01 | Python | UTF-8 | Python | false | false | 960 | py | from collections import defaultdict
import pandas
class ExcelReader:
def __init__(self, file_path):
self.file = file_path
self.data_list = defaultdict(list)
self.data = list
def read_excel_data(self, sheets=None):
if sheets and isinstance(sheets, list):
for sheet... | [
"bayatimasoood@gmail.com"
] | bayatimasoood@gmail.com |
ffecc0dbc60ce26f507ac4edbfda23261709f8bf | 41a0cd9b039e3c7752ff938077aa228bb9773575 | /ExCode/Lab09_NormalMapOnTangentSpace/main.py | 9a44ebfb7910ed3d3103a8bdda68d9485577d26a | [] | no_license | dknife/201802_GPUProgramming | c23d1361df41fca267f99e83a442266f29989507 | 1a722082a74bb8b6088c47bdc88375a81b68d1b7 | refs/heads/master | 2021-07-17T07:44:11.498713 | 2019-01-22T19:42:36 | 2019-01-22T19:42:36 | 147,673,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,273 | py | import wx # requires wxPython package
from wx import glcanvas
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
import numpy as np
import random as rnd
import math
import Light
import Shader
import Texture
import Surface
class MyFrame(wx.Frame) :
def __init__(self):
self.size = (... | [
"young.min.kang@gmail.com"
] | young.min.kang@gmail.com |
42266d9378f9aa963204c4446c5147e3eb0b353b | 3cdda95ca9ad49915243ba5d3d2b9725880373e1 | /215-sklearnMultipleLinearRegressionandAdjustedR-squared-FRegression.py | cb4e158497e067c65261a8e94dbb7adc424cffb8 | [] | no_license | evelynda1985/215-MultipleLinerRegressionF-regression | ab3910e9223ff10e78660c692087492d2bd2740d | b0227a6da9299d7db079677276f7e0b9cda8b0e4 | refs/heads/main | 2023-07-15T04:53:35.463960 | 2021-08-27T00:53:14 | 2021-08-27T00:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | #!/usr/bin/env python
# coding: utf-8
# # Adjusted R-squared - Exercise
#
# Using the code from the lecture, create a function which will calculate the adjusted R-squared for you, given the independent variable(s) (x) and the dependent variable (y).
#
# Check if you function is working properly.
#
# Please solve th... | [
"noreply@github.com"
] | evelynda1985.noreply@github.com |
42a1be2cf61229d6cd3c6f26fd4af8dd26623f2c | 12b5903f2748e9f46ff79969926ebd4090d90988 | /dbengine.py | 16b1a1c0a4c748655425f13d5eac30a49a81ef84 | [] | no_license | Singer-id/seqgan | e20cda5cabbbfd63f89999dd376740be22a97901 | b5f63d4a7ffbd8af9bb87e9c88f6b12f52b6580b | refs/heads/main | 2023-01-22T09:44:43.322394 | 2020-12-09T15:45:31 | 2020-12-09T15:45:31 | 319,955,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | import records
import re
from babel.numbers import parse_decimal, NumberFormatError
schema_re = re.compile(r'\((.+)\)')
num_re = re.compile(r'[-+]?\d*\.\d+|\d+')
agg_ops = ['', 'max', 'min', 'count', 'sum', 'avg']
cond_ops = ['=', '>', '<', 'OP']
class DBEngine:
def __init__(self, fdb):
#fdb = 'data/te... | [
"noreply@github.com"
] | Singer-id.noreply@github.com |
78733a3c69333568ebea00a2b8534eb88cc94240 | 34b9b39442bde1a3c8fa670ef60bcc84d772a067 | /Assignment 3- Deadline 10 Oct 2017/Assignment3_step1_DiNarzo.py | a8c729685f567ea64b8c86274dbdc04c671dd8cb | [] | no_license | bnajafi/Scientific_Python_Assignments_POLIMI_EETBS | b398fc2754b843d63cd06d517235c16177a87dcf | 8da926e995dcaf02a297c6bb2f3120c49d6d63da | refs/heads/master | 2021-05-07T22:36:14.715936 | 2018-01-16T21:12:33 | 2018-01-16T21:12:33 | 107,265,075 | 38 | 86 | null | 2018-01-16T21:12:34 | 2017-10-17T12:24:04 | Python | UTF-8 | Python | false | false | 1,384 | py | # -*- coding: utf-8 -*-
#EXERCISE 1.3
Materials= {'Wood_bevel_lapped':0.14,'Wood_fiberboard':0.23,'Glass_fiber':2.45,'Wood_stud':0.63,'Gypsum':0.079,
'Outside_sourface':0.03,'Inside_surface':0.12}
Between_studs= ['Wood_bevel_lapped','Wood_fiberboard','Glass_fiber','Gypsum']
At_studs= ['Wood_bevel_lapped','Wood_fiberbo... | [
"behzad najafi"
] | behzad najafi |
894c8fe2c30f30f16184a080402e256b71bec1db | cd4d4e21d077857fd8d9c999feced51aac5f6b0d | /env/bin/django-admin | 1ce23704dc2af631516e89625efd9ed7d98b0799 | [] | no_license | fieldhawker/akagi | f9b88fe53b3e2bf1eb50185f497af8c0a278e9b2 | 2890061ec3b5c8be5b9d17a7bcf70a939eccc41a | refs/heads/master | 2022-12-21T22:20:15.857871 | 2019-09-09T13:32:12 | 2019-09-09T13:32:12 | 207,040,596 | 0 | 0 | null | 2022-12-08T06:08:35 | 2019-09-08T00:17:40 | JavaScript | UTF-8 | Python | false | false | 303 | #!/Users/takano/Documents/SixPack/akagi/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
""
] | ||
3f2a471cf157e3154c848bf20c4c2bc368f01729 | 1127436a238a56da21757f38d939a5aac9ecf790 | /myenv/bin/pilprint.py | 23fdf09841df6c153e811046bfda4f0deb00929d | [] | no_license | comeondown/gas | b163e86b011c39c4d6243f291c137fc15f6690b2 | b0182bdfbd2c09797d4dff8424b612c222acfc84 | refs/heads/master | 2021-01-21T04:41:46.116834 | 2016-06-16T02:16:18 | 2016-06-16T02:16:18 | 55,646,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | #!/var/www/gas/myenv/bin/python3
#
# The Python Imaging Library.
# $Id$
#
# print image files to postscript printer
#
# History:
# 0.1 1996-04-20 fl Created
# 0.2 1996-10-04 fl Use draft mode when converting.
# 0.3 2003-05-06 fl Fixed a typo or two.
#
from __future__ import print_function
import getopt
imp... | [
"root@vm20711.hv8.ru"
] | root@vm20711.hv8.ru |
e25b8faaa3e5edff82ea687079a64c3f7e2ce024 | 328bc5a846fb951e1127f13706ad09e75b93b023 | /0x00-python_variable_annotations/2-floor.py | 877281684c3a01003daa1b49e5a17f3c69dac206 | [] | no_license | MatriMariem/holbertonschool-web_back_end | 37f39cc286d949e347baafee0697c8ad042dbb05 | 2ab609541ff8b45cdc923c24d629f160ddc6f3cf | refs/heads/master | 2023-02-28T23:06:47.490221 | 2021-01-28T13:08:43 | 2021-01-28T13:08:43 | 305,419,798 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/env python3
""" a type-annotated function floor """
import math
def floor(n: float) -> int:
"""
a type-annotated function floor that
takes a float n as argument
and returns the floor of the float.
"""
return math.floor(n)
| [
"meriemmatri1994@gmail.com"
] | meriemmatri1994@gmail.com |
25bee7f047a571e837f50efb534fc2afe2c02d47 | 53f2f59c8a186b7028596679a1307f6c5b3bc853 | /install-webfaction-cpanel-awstats.py | f172b85f4438093fc1817910e2d8aa68a7bd1cd3 | [] | no_license | turian/osqa-install-webfaction | f7c4189b681ac2ea15bcd4db3817d4aa5293503d | 9a80576ebddd1955a5221736ab31556f110f1fe4 | refs/heads/master | 2020-06-03T06:47:34.439598 | 2010-07-03T19:43:58 | 2010-07-03T19:43:58 | 597,755 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | #!/usr/bin/env python
from globals import *
from moreglobals import *
import sys
from cpanel import try_remove, force_create
import xmlrpclib
server = xmlrpclib.ServerProxy('https://api.webfaction.com/')
session_id, account = server.login(USERNAME, PASSWORD)
#print >> sys.stderr, repr(session_id)
#print >> sys.std... | [
"turian@gmail.com"
] | turian@gmail.com |
acef5a2b5636f84c4e332012fbb9a52906076306 | 9554f2acac15c65a1092b8ff2c118edc27c8b754 | /server.py | ccc9782e412cb18b9f138603d1128af130d19c7b | [] | no_license | hunnain/flaskReacttodoapp | 3af1feee9bdbbf72987d9fe4f2ed276794a163e5 | d7fac40991e3bbc5892c0076e25cb62f8e54d210 | refs/heads/master | 2020-03-26T17:03:40.888646 | 2018-12-17T14:53:44 | 2018-12-17T14:53:44 | 145,139,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,052 | py |
import os
from flask import Flask, render_template, url_for, request, send_from_directory, session, jsonify
import json
import firebase_admin
from firebase_admin import db, credentials, auth
from flask import Session
app = Flask(__name__, static_folder="./dist", template_folder="./")
# SESSION_TYPE = 'redis'
app.conf... | [
"hunnainpashahgchgc@gmail.com"
] | hunnainpashahgchgc@gmail.com |
099ef008b3f080c1f48b86d42aebb4646b7a3341 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_040/ch42_2020_03_30_19_42_32_027965.py | abd6af2dd2a16f2dd4ee9fb879398800cc961684 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | x=0
lista=[]
palavra = 0
while palavra!="fim":
palavra = input("Digite uma palavra: ")
lista.append(palavra)
while x < len(lista):
if (lista[x])[0] == "a":
print (lista[x])
x+=1
else:
x+=1 | [
"you@example.com"
] | you@example.com |
7eee97a56674f29c34f9eeec948a1a8cfacc1158 | 8f850b559b8058f3e31712e7809191576a774449 | /src/levenshtein.py | 84a492c6435977e83f3d7ec7cca7196aa20b9df9 | [] | no_license | crystal-k7/edit-distance | 4c1f60354aede0fb10887f21eda35328bff94180 | afc9cc7e48684af369c22ca201edddc5c44aa775 | refs/heads/master | 2022-09-01T07:04:40.522227 | 2020-05-25T05:02:30 | 2020-05-25T05:02:30 | 266,682,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | from time import time
# Levenshtein Distance(Edit Distance Algorithm)
def levenshtein(ref, input):
dist = list()
for i in range(len(ref) + 1):
temp = list()
for j in range(len(input) + 1):
temp.append(0)
dist.append(temp)
for i in range(len(ref) + 1):
dist[i][0... | [
"soul7crystal@gmail.com"
] | soul7crystal@gmail.com |
5949ea4733b4a8596f5cd12e5fa04142cea360f1 | d4999070ab353e7067677aec333d46eb20586606 | /django_basic/settings.py | cc3fbc9987d880c887b7ee13ba0b1e189107194f | [] | no_license | rubenqc/basic_django | 610d101353afc0f041d3b03ee1374699f9a4642d | 9bc78b0d00ff5a5b8558768efad451087cec44ac | refs/heads/main | 2023-06-10T16:45:44.814831 | 2021-07-04T00:07:06 | 2021-07-04T00:07:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,257 | py | """
Django settings for django_basic project.
Generated by 'django-admin startproject' using Django 3.2.5.
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/
"""
from pa... | [
"mmacolluncoc@uni.pe"
] | mmacolluncoc@uni.pe |
96eb1e8ba12a5a37a9f2fcc5ae4473e1479a4e81 | 22ab14f25c770afcffb74401ff618883485483e8 | /市场行情爬取/scrapy-pyinstaller/gp/spiders/DailyFunds.py | e3403309ab13642a4646bb2bcb50077ec9ff3f2f | [] | no_license | nativefans/note | c86f5864b07774e9d18332830d4f5d38ce9a5691 | 25e426de22fd72c0569fb1d329ce437b0a26c706 | refs/heads/master | 2022-10-28T11:00:30.076231 | 2020-06-21T13:22:43 | 2020-06-21T13:22:43 | 273,837,221 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,113 | py | # -*- coding: utf-8 -*-
import scrapy
import logging
import copy
from datetime import date
from ..items import FundsItem
from scrapy.utils.project import get_project_settings
settings = get_project_settings()
#logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('DailyFundSpider')
class DailyfundsSpide... | [
"1366124823@qq.com"
] | 1366124823@qq.com |
f1c0d28721be3c4b319beb10fa3e9e4745ad45a6 | 1cfefe5b50ad7c780c03254cd02bb4319485cf4f | /face_adding/core/augimg/augment.py | 3b49eea08ed80d39e4c93f1f19400e5aacc134de | [] | no_license | phamngocquy/face_recognition_server | b08d75508654fc2a7589f55cb896f9b2585896e6 | 3263c1cd24494e1f2793e9e3cbe06cd731608de8 | refs/heads/master | 2021-09-21T23:44:12.761191 | 2018-09-03T10:36:58 | 2018-09-03T10:36:58 | 146,284,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | import imgaug as ia
from imgaug import augmenters as iaa
from imgaug import parameters as iap
import numpy as np
import cv2
import os
from datetime import datetime
from face_adding.utils.config import Config
from face_adding.models import *
class ImgAugment(object):
@staticmethod
def make(path, name):
... | [
"phamngocquy97@gmail.com"
] | phamngocquy97@gmail.com |
836eabd9670091509ba654c4b4d8203fe6124063 | c56a670ce30216c753e054603c5eef0804ca6866 | /ros2/kmr_communication/kmr_communication/nodes/camera_node.py | 7b4609bf834b817b8733bf6ee2efb2c7272b7606 | [] | no_license | TPK4960-RoboticsAndAutomation-Master/ROS2-ENTITY | 72b98e7bc4ced15e5746dceb9ff6cac8e9744fde | a67f734ecc55654375edaad52debe90bcc64526f | refs/heads/main | 2023-04-20T15:51:25.719852 | 2021-05-04T14:13:00 | 2021-05-04T14:13:00 | 346,657,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | #!/usr/bin/env python3
import sys
from typing import Callable
import rclpy
import argparse
from std_msgs.msg import String, Float64
from rclpy.node import Node
from rclpy.utilities import remove_ros_args
import subprocess
def cl_red(msge): return '\033[31m' + msge + '\033[0m'
def cl_green(msge): return '\033[32m' + ms... | [
"andreas@arnholm.org"
] | andreas@arnholm.org |
03b2f74c8f32bd75544078a14aaba0e73a6f8709 | e66b0e2461eaabd677e3c60726002533bf7e0d89 | /serverExempel/funktioner.py | a495252ab4721a0c21cc8043b01aa53fd1e10a24 | [] | no_license | simoneje/projektspel | 72940f5155bf682b39da3043886aacc6ed809989 | 227ee803459c4d7bdbec60ac1a1f2a60ba115f84 | refs/heads/master | 2021-04-14T07:12:19.479431 | 2020-03-27T07:00:41 | 2020-03-27T07:00:41 | 249,215,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,907 | py | import numpy as np
import os
import sqlite3
from sqlite3 import Error
from flask import Flask, escape, request, jsonify, render_template
import requests
import time
import sys
RAD = 6
KOLUMN = 7
#Skapar en 2d array utav nollor
def boardCreate(Rad, Kolumn):
board = np.((Rad,Kolumn))
return board
... | [
"noreply@github.com"
] | simoneje.noreply@github.com |
904d92dd1f12f043fe448e3d4decd8e93773cea5 | c297e5e766c65d89d2b62682fccd902bdd0412f1 | /encoder/fcn8_incepV3_u_net.py | 6bf1899a31b340f83e269622e03addb1454bd5e9 | [] | no_license | zmyu/My_kittiseg | ea23b8b1f520403ec7d6a1961bfba5132e7182ca | 4a15c738cb8285cf96a7a3b7f1ee1ae0eead13ed | refs/heads/master | 2021-09-08T07:10:15.084960 | 2018-03-08T07:20:30 | 2018-03-08T07:20:30 | 113,545,809 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | """
Utilize inceptionV3 as encoder.
------------------------
The MIT License (MIT)
Copyright (c) 2017 Marvin Teichmann
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from inception import inception_v3_u_net as inception
imp... | [
"zmyu@vw-mobvoi.com"
] | zmyu@vw-mobvoi.com |
b92e139730515dc62aed3f13e56bb4ee72213938 | 69ec16d994040399b8167b66e18f456c9419ec16 | /PyQt5Ex/pyqt2.py | b8b6e52f0f366db3e4ab13079a7cd4358ed5bab2 | [] | no_license | syshinkr/Python-Study | e8201701b1df74b31cc8eb04aaedad9061b46cfc | 5eee7928049e7532a2c31e63a46b1036e5b9fa6d | refs/heads/master | 2020-06-12T06:48:00.723277 | 2019-06-28T06:36:46 | 2019-06-28T06:36:46 | 194,219,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | import sys
from PyQt5 import QtCore, QtGui, QtWidgets
class Window(QtWidgets.QMainWindow):
def __init__(self):
super(Window, self).__init__()
self.setGeometry(50, 50, 300, 300)
self.setWindowTitle('PyQt5')
self.setWindowIcon(QtGui.QIcon('image/bird.png'))
self.show()
app... | [
"syshinkr228@gmail.com"
] | syshinkr228@gmail.com |
14f8948b312431d771703a511b627c4b06b8c8ea | b39778e9a161fab5b42577042b2e66a1e201ee08 | /v1/accounts/urls.py | 3fede521463b56e2c9d809cc28c6c1c3f64a32df | [
"MIT"
] | permissive | Kenan7/Bank | e1f95d05d44f0749c7c90f32b619d4cd2df449ce | 45e2a558dd725dcc9c9995e03dbc0d02221b3710 | refs/heads/master | 2022-11-17T06:27:30.291586 | 2020-07-14T08:01:39 | 2020-07-14T08:01:39 | 279,518,998 | 0 | 0 | MIT | 2020-07-14T07:50:39 | 2020-07-14T07:50:38 | null | UTF-8 | Python | false | false | 150 | py | from django.urls import path
from .views.account import AccountView
urlpatterns = [
# Accounts
path('accounts', AccountView.as_view()),
]
| [
"buckyroberts@gmail.com"
] | buckyroberts@gmail.com |
c0c175405a61370f1bddbb8daa7d3b347ad91026 | e86d020f8ade86b86df6ad8590b4458a9d415491 | /projects/test-crrr/base_auth/utils/org.py | 36eb99ea5977b0b4d024845975eb2040cc04547e | [] | no_license | g842995907/guops-know | e4c3b2d47e345db80c27d3ba821a13e6bf7191c3 | 0df4609f3986c8c9ec68188d6304d033e24b24c2 | refs/heads/master | 2022-12-05T11:39:48.172661 | 2019-09-05T12:35:32 | 2019-09-05T12:35:32 | 202,976,887 | 1 | 4 | null | 2022-11-22T02:57:53 | 2019-08-18T08:10:05 | JavaScript | UTF-8 | Python | false | false | 3,811 | py | import logging
from django.db.models import Q
from base_auth import app_settings
from base_auth.models import User
logger = logging.getLogger(__name__)
def org_level(org):
level = 1
while org.parent:
level += 1
org = org.parent
return level
def get_org_level(user):
if user.is_sup... | [
"842995907@qq.com"
] | 842995907@qq.com |
de358e94f05cb216d81c1af497a11e985cb81554 | b3aa0ec7bdb6084bff3bcd2652aa123b08ccb7b5 | /real_deal/api/apps.py | 656acc8e49f7810bd593c95e59ba3fbc31edf8d3 | [] | no_license | silverlogic/real-deal-back | 9e31796f1783dabe1c7b38964fed9732a1ea6842 | bd45b544a6deb4fcf94b40c12e4fd8014b94fa3b | refs/heads/master | 2021-01-25T11:55:28.701052 | 2017-06-11T10:38:52 | 2017-06-11T10:38:52 | 93,952,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.apps import AppConfig
class ApiConfig(AppConfig):
name = 'real_deal.api'
verbose_name = 'API'
| [
"ryanpineo@gmail.com"
] | ryanpineo@gmail.com |
1a29da616b6de738a22a6267911bf60a23306322 | dc616d885cc37e03357de4b03e2857af49bbc68e | /numpy/13.py | 02cb8f7ca5c7f3644b7247a5cb9b8fe80f97b3f6 | [] | no_license | sergey061102/AltanML | fb446b5ef53dd67ace53823132d02ba9f2b3eb38 | 6511cabe1b9b22b5f0215505aac7f4395fd9dfaf | refs/heads/master | 2020-04-29T07:38:18.058319 | 2019-03-20T10:59:55 | 2019-03-20T10:59:55 | 175,960,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | import numpy as np
Z = np.random.random((10, 10))
Zmin, Zmax = Z.min(), Z.max()
print(Zmin, Zmax) | [
"example@example.com"
] | example@example.com |
ca757733ef37956f24f3ada5f7ca77951a2acdd8 | 6c26a9bd075d3d54a307d7c1e5a0bc67b50df8c2 | /python_intermediate/python3/06_try.py | 90f7c184d4e8c0658a13b89e26d206ffdfe88ef1 | [] | no_license | marialobillo/dataquest | 86efc49c0339c07e6263d428b5ecd2f80d395ecb | 49e8b653adf23a12fb9eb6a972d85bc1797dba0a | refs/heads/master | 2021-08-28T08:01:36.301087 | 2017-12-11T16:02:18 | 2017-12-11T16:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | try:
float('hello')
except Exception:
print('Error converting to float.')
| [
"maria.lobillo.santos@gmail.com"
] | maria.lobillo.santos@gmail.com |
1d93a85e106b3cb7328abc26ce64275a1eef2658 | 0d3ff1880e0305eec78a2e56be201bb814645a3d | /Day 01/Work/fizzbuzz.py | 99d47825e055f2a443261950c68fbef0570e936a | [] | no_license | vijay-lab/FSDP2019 | 1b64ee5dc2c904ecf2f2a64845feaa486bb8e7d7 | 3cba03dc859a3108710cf575d1a400929709b2a8 | refs/heads/master | 2020-05-24T08:53:27.677911 | 2019-07-26T13:24:24 | 2019-07-26T13:24:24 | 187,193,086 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 7 18:14:52 2019
@author: TAPAN
"""
count = 0
while (count< 100):
count = count + 1
if (count%3 == 0 and count%5 == 0 ):
print("FizzBuzz")
continue
elif(count%3 == 0):
print("Fizz")
continue
elif(count%5 == 0):
pr... | [
"tapanvijay@outlook.com"
] | tapanvijay@outlook.com |
3dc82b9b6ad073e7c515052a34193857fd44cbea | ea629f716a83da061b85fbb4c951e0709a731acb | /scripts/interf.py | 4a1b8d3c9b87305626c844701a94d02473bf4082 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | mkarim2017/insarzd | 5b0c04527574b67d236ef874c8e60b0bceed8c79 | e7d05f836e7ca044166e38bad549629ed00d71f1 | refs/heads/master | 2020-12-22T23:56:09.455132 | 2020-03-30T23:59:47 | 2020-03-30T23:59:47 | 236,969,323 | 0 | 0 | NOASSERTION | 2020-01-29T11:43:15 | 2020-01-29T11:43:14 | null | UTF-8 | Python | false | false | 1,653 | py | #!/usr/bin/env python3
import os
import sys
import shutil
import argparse
import isce
import isceobj
from crlpac import getWidth
from crlpac import getLength
from crlpac import runCmd
from crlpac import create_xml
def cmdLineParse():
'''
Command line parser.
'''
parser = argparse.ArgumentParser( d... | [
"cunrenl@caltech.edu"
] | cunrenl@caltech.edu |
c2f193958b22b647e6c01429eb9cd83866b0e351 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_070/ch147_2020_04_08_11_05_33_482121.py | a1ed04de6fd783e69fc92a8aad6b949ebb31ce09 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | def conta_ocorrencias(lista):
dicio = {}
for i in lista:
if i not in dicio:
dicio[i] = 1
else:
dicio[i] +=1
return dicio
def mais_frequente(lista):
x = conta_ocorrencias(lista)
mais = 0
palavra = 0
for i,n in x.items():
if n > mais:
... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.