blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de94c56c7667c7a7c99683be9a0bf04d00ecca56 | a5688a923c488414ecffcb92e3405d3876f1889d | /examples/computer_vision/mmdetection_pytorch/configs/guided_anchoring/ga_faster_x101_64x4d_fpn_1x_coco.py | 28f4fd4b13801f9cb47ceb3d715244d40c281c70 | [
"Apache-2.0"
] | permissive | armandmcqueen/determined | ae6e7a4d5d8c3fb6a404ed35519643cf33bd08e4 | 251e7093b60a92633b684586ac7a566379442f15 | refs/heads/master | 2023-05-28T17:52:18.915710 | 2021-06-09T23:55:59 | 2021-06-09T23:55:59 | 259,449,481 | 0 | 0 | Apache-2.0 | 2021-04-09T12:13:11 | 2020-04-27T20:47:23 | Go | UTF-8 | Python | false | false | 376 | py | _base_ = "./ga_faster_r50_fpn_1x_coco.py"
model = dict(
pretrained="open-mmlab://resnext101_64x4d",
backbone=dict(
type="ResNeXt",
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type="BN",... | [
"noreply@github.com"
] | armandmcqueen.noreply@github.com |
3af8710d6b01d30dfe73cc770a65abe5f3cdfb70 | 99da8a6d2392472cb66e5b12c03142c90640186a | /BOJ/DFS&BFS/2573.py | 784c81d48ea577cc9b507ab56b9611ea6bc47a60 | [] | no_license | chorwonkim/__Algorithms__ | cf6cf4ae5cf091d856397369b6db1bb41f925377 | 0c1e58410ae90b72c0d7e44a6179b8fedc786131 | refs/heads/master | 2022-09-28T16:59:20.841482 | 2022-09-25T09:57:58 | 2022-09-25T09:57:58 | 130,082,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | # import sys
# sys.setrecursionlimit(100000)
#
# dx = [-1, 0, 1, 0]
# dy = [0, -1, 0, 1]
#
# N, M = map(int, sys.stdin.readline().rstrip().split())
# ice_map = []
# ice_map_checker = []
# result = 0
#
#
# def func_2573(p, q):
# ice_map_checker[p][q] = True
#
# for k in range(4):
# ice_p = p + dx[k]
# ... | [
"upheaval212@gmail.com"
] | upheaval212@gmail.com |
6fe6df1f0c3cf8fbc8b71b768fcb421f521466e2 | 2d4127f5fa1bca8ba41b9da48d9180c64680b327 | /openid_connect_op/utils/jwt.py | 7c7f306b1959045ffe75b8aaff0c8c8189a54732 | [
"MIT"
] | permissive | WilliBobadilla/django-openid-op | ce02b7fe9db4fa8aca0cec4df003c905927dfbe3 | 732812cab7610080289ae70b8ea791ba9f0105ad | refs/heads/master | 2023-04-19T08:49:19.962249 | 2021-05-03T18:21:26 | 2021-05-03T18:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,642 | py | import datetime
from functools import lru_cache
import python_jwt as jwt
import jwcrypto.jwk as jwk
from django.conf import settings
from os import urandom
from jwcrypto.jws import JWS
from jwcrypto.common import base64url_encode, json_encode, json_decode
from calendar import timegm
# need to add "kid" header which... | [
"miroslav.simek@vscht.cz"
] | miroslav.simek@vscht.cz |
24e1af42b6cf8518e8c366fe186394139c53ee9a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /2f9vjBiynkBtF3TBi_2.py | 78016bb10def75086de7b057fd4c4c5f57730f40 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | """
In this challenge, you must verify the equality of two different values given
the parameters `a` and `b`.
Both the _value_ and _type_ of the parameters need to be equal. The possible
types of the given parameters are:
* Numbers
* Strings
* Booleans (`False` or `True`)
* Special values: `None`
What hav... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
32f75d1ab64a5f215393d6f5c1848e0138edc409 | eb5fa3bdbad17674e95b360694e6d794387a557c | /menuhin/middleware.py | 2f5bf781bf9e2cac82946707eb46785c3e434752 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | kezabelle/django-menuhin | 0648bc923fe159612846282a526f2c60d0f535a9 | b9c4111eed04e241c29ca8ec95c8a3ffeaac48da | refs/heads/master | 2021-05-02T02:00:44.896065 | 2014-12-19T10:00:50 | 2014-12-19T10:00:50 | 14,557,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | import logging
from django.utils.functional import SimpleLazyObject
from django.conf import settings
from django.core.urlresolvers import reverse, NoReverseMatch
from .models import MenuItem
from .utils import (LengthLazyObject, get_menuitem_or_none,
get_relations_for_request)
logger = lo... | [
"keryn@kerynknight.com"
] | keryn@kerynknight.com |
da11b4cca48ae0c88eb3b8c66a041828ea0b021e | e38db85f6a13b32c60bf66d78838d6ed348f1798 | /healthplans/tests.py | 549fcf58df9886eecfa78cb4e957f908105e148f | [
"BSD-2-Clause"
] | permissive | westurner/health-marketplace | ab72d60d9469c9f3622bc64c391b222018c7c7a1 | 15f5379cc213e2e2b2150e967b56092ea8468db2 | refs/heads/master | 2020-12-28T21:28:09.415775 | 2013-11-09T17:55:08 | 2013-11-09T17:55:08 | 14,261,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,880 | py | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
from healthplans.models import Provider
from healthplans.models import Plan
class HealtplansModelsTes... | [
"wes@wrd.nu"
] | wes@wrd.nu |
098c796afacb67484884c0be523186710e54f517 | 32e6e405bebc7c63ca0a1721512a9abe4c2ed7cb | /food_reference_listing/database/archive_loader/initialize_database.py | 86532879fe4e3fdf107fdcc2b05257eba61c3ebd | [
"MIT"
] | permissive | bfssi-forest-dussault/food_reference_listing | d034d853a966967a94b6a1e82beee442786f1e7f | 85372a81a9201dda02797ab0c11b1bd710f9b70d | refs/heads/master | 2023-01-03T22:44:13.388149 | 2020-10-29T18:40:18 | 2020-10-29T18:40:18 | 241,152,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | import sys
import django
from pathlib import Path
# Need to do this in order to access the database models
sys.path.append("/app")
django.setup()
# For some bizarre reason I need to import all functions, rather than have them be defined in this file vOv
from food_reference_listing.database.archive_loader.helpers impo... | [
"forest.dussault@canada.ca"
] | forest.dussault@canada.ca |
0e73a9a57c08e990f0dd90913c0a96dfe81fc02a | 6f7032e954334d102a9e1eff8f420f0a8b7ee70a | /pytestpackage/test_conftest_demo1.py | 2820a6af2e706f8e8ff16ee55e6d55b40b53b7c1 | [] | no_license | suchismitarout/selenium_practice | 186596e14ed66550ef184703a04aa323faad9f45 | 2281e6a3a526f2ff5c1c566517dc85b4ae23b85b | refs/heads/master | 2022-12-26T12:16:17.297471 | 2020-10-06T06:21:04 | 2020-10-06T06:21:04 | 301,632,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import pytest
def test_demo_conf1(onetimesetUp):
print("This is conftest demo")
def test_demo_conf2(onetimesetUp):
print("This is second conftest demo") | [
"suchismitarout47@gmail.com"
] | suchismitarout47@gmail.com |
d16c9b91a5c897f61fb9bd659fd74a37ceeb379c | 5995b039f039accf17538283a51668be929aeaea | /red_mind/red_mind/wsgi.py | 6eb39eb6bbcbd2a0289055e40fd2dc5560db6e82 | [] | no_license | harshitdixit69/red_mind_heart | 0c9bed294a8e89b05ecdd93590da25f79139ad6c | 8693ddef44e949219eab6670a3b1b862646f3dd8 | refs/heads/main | 2022-12-29T23:17:51.061114 | 2020-10-14T21:12:21 | 2020-10-14T21:12:21 | 304,288,555 | 0 | 0 | null | 2020-10-15T10:21:03 | 2020-10-15T10:21:02 | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for red_mind project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"satyam1998.1998@gmail.com"
] | satyam1998.1998@gmail.com |
d271a9cf8126ae56eb7272193959b38f7de60c87 | 7463a66dfa00572f4e4d8ef4349309531f0105ae | /ServerDL/cfgs/configfiles.py | 3ba6e38d4d33dfb1119a53e1b5ed363987540186 | [] | no_license | fx19940824/DetectionModel | f2e380fd21f4b31a17fd175a6dea1067b8f0d5cc | edc0d2f9eea481d2bc6f3abb2f222b59fdc25538 | refs/heads/master | 2022-12-20T19:58:32.224829 | 2019-05-30T01:16:05 | 2019-05-30T01:16:05 | 188,800,679 | 2 | 0 | null | 2022-11-22T02:39:23 | 2019-05-27T08:13:38 | Python | UTF-8 | Python | false | false | 2,983 | py | from ServerDL.apis.transformers import *
from ServerDL.apis.postprocesses import *
from Algorithm.classifications.utils.model_factory import classification
from Algorithm.segmentation.deeplabv3plus.modeling.deeplab import DeepLab
model_register_table = dict()
model_register_table["maskrcnn_box"] = {
"model_w... | [
"you@example.com"
] | you@example.com |
8196a02855f2ae340915ff324e2199e99211f8a6 | 3eadf176c95f0c924af53770441afc0797d7c6ff | /memberships/admin.py | ccbd60dec107d29cc05318f498a7790d51b957e8 | [
"MIT"
] | permissive | Maneesh9063/video-membership | d144d559fe721e4a077659d610e6c0e8c35062d6 | c241310a6a4e3b7ee831b1d65ae8afaef7d3076a | refs/heads/master | 2022-12-08T23:58:37.176632 | 2020-09-04T15:41:40 | 2020-09-04T15:41:40 | 292,874,425 | 0 | 0 | MIT | 2020-09-04T14:52:54 | 2020-09-04T14:52:53 | null | UTF-8 | Python | false | false | 227 | py | from django.contrib import admin
# Register your models here.
from .models import Membership, UserMembership, Subscription
admin.site.register(Membership)
admin.site.register(UserMembership)
admin.site.register(Subscription)
| [
"freire1996@gmail.com"
] | freire1996@gmail.com |
2b1638999ca31a03dac9b7ae400bf86815b43735 | 0e8dd5901b1f98934c44a85b133eb7ca6f44b4b9 | /osr2mp4/Parser/osrparser.py | 398325f8b59fc702a5af1c87a8170c270acdc087 | [] | no_license | Hazuki-san/osr2mp4-core | dbd2f4d44a3d0e90974214c97b434dcbb2eedd18 | 83dc5c47bc73dcb0b4d4b6a5ae1924771c13c623 | refs/heads/master | 2022-11-24T13:41:15.703261 | 2020-07-03T14:00:54 | 2020-07-03T14:00:54 | 279,099,127 | 1 | 0 | null | 2020-07-12T16:02:35 | 2020-07-12T16:02:34 | null | UTF-8 | Python | false | false | 2,041 | py | import osrparse
# index for replay_event
from ..CheckSystem.Judgement import DiffCalculator
# noinspection PyTypeChecker
from ..EEnum.EReplay import Replays
def setupReplay(osrfile, beatmap):
replay_info = osrparse.parse_replay_file(osrfile)
replay_data = [None] * len(replay_info.play_data)
start_time = beatm... | [
"snkraishin87@gmail.com"
] | snkraishin87@gmail.com |
3ec57b2531ab6a937124feee52ac1b6da03020ff | b5ef3b9da130f604f111bd469128b73e78d6ba9d | /bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getProjectItemList.py | 43b31ee9f20c5d1e877c6974693c15afe6a456ef | [] | no_license | soediro/erp5 | 154bb2057c4cd12c14018c1ab2a09a78b2d2386a | 3d1a8811007a363b7a43df4b295b5e0965c2d125 | refs/heads/master | 2021-01-11T00:31:05.445267 | 2016-10-05T09:28:05 | 2016-10-07T02:59:00 | 70,526,968 | 1 | 0 | null | 2016-10-10T20:40:41 | 2016-10-10T20:40:40 | null | UTF-8 | Python | false | false | 1,341 | py | """Returns all validated projects.
This script is indented to be used on custom listfields for accounting lines, and on reports.
If this script returns an empty list, it means that reports by project are disabled.
"""
from Products.ERP5Type.Message import translateString
portal = context.getPortalObject()
# case 1: s... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
2309594889f7eaf0567ecb3881e41ae564d04ca9 | 22fa0db584e41a9f06d829a5dd06b32bcdeb3646 | /registration/mobile_backend.py | dfb3c3b608616dec696f7b31dceed277b810a84c | [] | no_license | muthuraj-python/muthuinterview | 186ecd4efd173fa0fe7ce25e721ebadbeabc94f7 | d51b03f90fea9abd6aa763cf666dd39ead7a4753 | refs/heads/master | 2021-02-22T07:24:10.319876 | 2020-03-15T13:37:16 | 2020-03-15T13:37:16 | 245,371,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.backends import ModelBackend
class MobileBackend(ModelBackend):
def authenticate(self, request, **kwargs):
UserModel = get_user_model()
try:
user = UserModel.objects.get(mobile_number=kwargs.get('username'))
... | [
"you@example.com"
] | you@example.com |
64cd0072445b206c8f730510ee8bb8e3f9fedfcd | 7765acf96f3c334a073f647ead1e6c862046fd41 | /tex/figures/photometry_nullspace.py | 6cb74974a958ef681cf8425500f031c951b3c321 | [
"MIT"
] | permissive | rodluger/fishy | da752a2e7aab159b10d24eb0433251b8485d6983 | 94bb393b01ade283e416589ea013d604166749e3 | refs/heads/master | 2020-05-06T15:15:44.725979 | 2019-07-08T13:19:04 | 2019-07-08T13:19:04 | 180,179,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # -*- coding: utf-8 -*-
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import starry
ydeg = 10
theta = np.linspace(-180, 180, 1000)
s = np.zeros(((ydeg + 1) ** 2, len(theta)))
map = starry.Map(ydeg, lazy=False)
n = 0
for l in range(ydeg + 1):
for m in range(-l, l + 1):
map.reset()
... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
3bd32d35fa515727b1d2fdf19b6da268ce008399 | 5a42ce780721294d113335712d45c62a88725109 | /project/graphdata/module/yiyiyuan/model/yi_favorite_contacts.py | 03a9050f0826ae4d25e32f4863e189e8bd71ffc5 | [] | no_license | P79N6A/project_code | d2a933d53deb0b4e0bcba97834de009e7bb78ad0 | 1b0e863ff3977471f5a94ef7d990796a9e9669c4 | refs/heads/master | 2020-04-16T02:06:57.317540 | 2019-01-11T07:02:05 | 2019-01-11T07:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | # -*- coding: utf-8 -*-
# sqlacodegen mysql://root:123!@#@127.0.0.1/xhh_test --outfile yyy.py --flask
from lib.application import db
from .base_model import BaseModel
from .yi_user import YiUser
class YiFavoriteContact(db.Model, BaseModel):
__bind_key__ = 'xhh_yiyiyuan'
__tablename__ = 'yi_favorite_contacts'
... | [
"wangyongqiang@ihsmf.com"
] | wangyongqiang@ihsmf.com |
1603f794730d82775b9c08df1c1c6289ae8cf270 | f68cd225b050d11616ad9542dda60288f6eeccff | /testscripts/RDKB/component/WIFIHAL/TS_WIFIHAL_5GHzIsRadioAutoBlockAckEnabled.py | 342c1a28d36b0e908ebc40dcbfc9e62a2bb7a193 | [
"Apache-2.0"
] | permissive | cablelabs/tools-tdkb | 18fb98fadcd169fa9000db8865285fbf6ff8dc9d | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | refs/heads/master | 2020-03-28T03:06:50.595160 | 2018-09-04T11:11:00 | 2018-09-05T00:24:38 | 147,621,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,337 | py | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2017 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not... | [
"jim.lawton@accenture.com"
] | jim.lawton@accenture.com |
84e7d9a493e30b3985e39ae5126bbaeeca00239c | 82c73b70c2002f647bdc254125f0bdb18f0b79d2 | /openstack_dashboard/dashboards/admin/license/forms.py | 099ccaf8c180726a41000b7ec3cdcf950aee7eaa | [
"Apache-2.0"
] | permissive | xuweiliang/Codelibrary | cfb5755ced54c65cacdb3e35ab2b98385f8d5f8e | 54e45b2daa205132c05b0ff5a2c3db7fca2853a7 | refs/heads/master | 2021-05-04T00:31:42.025238 | 2018-03-20T07:05:20 | 2018-03-20T07:05:20 | 71,852,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,302 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Nebula, Inc.
#
# 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
#
# ... | [
"root@newton.com"
] | root@newton.com |
b5b156cdd0e5a59512ec09150e8dfd07ed2350af | 3ba8bf9fb1a3d54233e927893bc2d3865692c896 | /ophyd/controls/ophydobj.py | c94c640ca165b825b3e5f70be5d377a4f711108f | [] | no_license | NSLS-II-CSX/ophyd | 68fee01393d819350270b143457f76a4a5ccf703 | aadf6197f7a3b1ba907e48a73d5af8b07b7c57ad | refs/heads/master | 2021-01-17T21:19:16.867892 | 2014-12-13T23:39:40 | 2014-12-13T23:39:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | # vi: ts=4 sw=4
'''
:mod:`ophyd.control.ophydobj` - Base object type
================================================
.. module:: ophyd.control.ophydobj
:synopsis:
'''
from __future__ import print_function
from ..session import register_object
class OphydObject(object):
_default_sub = None
def __init__... | [
"klauer@bnl.gov"
] | klauer@bnl.gov |
a2c709a82b9f707add011e641eedf079ded0b67e | 95f9c734c4bf5de8e5d0adff9ac2cf0228df75ac | /Django/mysite-bak/mysite/polls/views.py | da0e946bc8b3ef8aea7fb16256eecbdb21caf692 | [] | no_license | holen/Python | 7a996b13ff2224084397223879c380169d47ff8c | 506fff291d6e9c6f80c30a51cc3b77e9dd048468 | refs/heads/master | 2022-12-12T22:12:51.561716 | 2019-10-16T03:08:00 | 2019-10-16T03:08:00 | 14,278,665 | 1 | 0 | null | 2022-12-08T00:51:26 | 2013-11-10T15:29:59 | Python | UTF-8 | Python | false | false | 2,090 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from polls.models import Question, Choice
from django.template import RequestContext, loader
from django.http import Http404
from django.shortcuts import get_object_or_404, render
from django.core.urlresolvers import reverse
... | [
"yh_zhl@sina.com"
] | yh_zhl@sina.com |
7fa86d8b542bd91ae527f605694388c5e6e58d35 | 5608a9cd3bec8cab1c3f9d7f42896107b78593cc | /tests/unit/mock_docker/fake_stat.py | b85bc3b8007c8c020d9650a655a3cbcd34fdafe7 | [
"Apache-2.0"
] | permissive | troyready/runway | cdee6d94f42173c8aa0bd414620b68be36a510aa | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | refs/heads/master | 2021-06-18T16:05:30.712211 | 2021-01-14T01:44:32 | 2021-01-14T01:44:32 | 151,314,626 | 0 | 0 | Apache-2.0 | 2018-10-02T19:55:09 | 2018-10-02T19:55:08 | null | UTF-8 | Python | false | false | 2,990 | py | """Stats for fake Docker API."""
OBJ = {
"read": "2015-02-11T19:20:46.667237763+02:00",
"network": {
"rx_bytes": 567224,
"rx_packets": 3773,
"rx_errors": 0,
"rx_dropped": 0,
"tx_bytes": 1176,
"tx_packets": 13,
"tx_errors": 0,
"tx_dropped": 0,
... | [
"noreply@github.com"
] | troyready.noreply@github.com |
b4e60d4747db4b3823750c69fecee8522989f43d | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ControlRegions/SS/2016HIPM_v9/variables.py | b38df10fccc279186d7b3cf5a9b34a05e48c2e2e | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 3,120 | py | # variables
# 0 = not fold (default), 1 = fold underflowbin, 2 = fold overflow bin, 3 = fold underflow and overflow
#variables = {}
#variables['nvtx'] = { 'name': 'PV_npvsGood',
# 'range' : (20,0,100),
# 'xaxis' : 'nvtx',
# 'fold' : 3
#... | [
"nicolo.trevisani@cern.ch"
] | nicolo.trevisani@cern.ch |
ff9d10c84448a1f47b8ab9374247b004431a8c67 | 766da3ffcbd26e7f58d711f5b0e7312cb365e9fb | /layers/transformer/__init__.py | 9950eabee3288f70b34f0e30bc81b80b808266ca | [
"MIT"
] | permissive | RobertCsordas/ndr | 1277b353eb61267e023b671072730bdc7e779ca5 | da20530dfb4336deddfbe5e79d62e72d1dc2580e | refs/heads/master | 2023-09-02T22:38:57.601098 | 2021-11-19T09:52:23 | 2021-11-19T09:52:23 | 414,588,414 | 20 | 4 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | from .transformer import Transformer, AttentionMask
from .relative_transformer import RelativeTransformer
from .universal_transformer import UniversalTransformer
from .universal_relative_transformer import UniversalRelativeTransformer
from .transformer import TransformerEncoderWithLayer
from .relative_transformer impor... | [
"xdever@gmail.com"
] | xdever@gmail.com |
476654bc49e7272f77917b445426eaf80a1cee93 | 35efa105f00073303284103699fcaec54045a8a4 | /invoke_servers.py | d3bd5d43949a4ac06d60f0cf6a4d3fb25c6e0e22 | [] | no_license | Quantumke/mpesaapi | b12c7e663fc89d6b98170a229b7876fdb5c1541f | e0941927b194d361f443aa8cf665fc3cfce71bca | refs/heads/master | 2021-01-19T00:25:47.958078 | 2016-05-27T09:19:27 | 2016-05-27T09:19:27 | 59,822,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | import urllib.parse
import urllib.request
import ssl
def invoke_server():
url="https://safaricom.co.ke/mpesa_online/lnmo_checkout_server.php?wsdl"
values = ({
"MERCHANT_TRANSACTION_ID": "1",
"PASSWORD": "1",
"REFERENCE_ID" :'1',
"TIMESTAMP":'1461164700'
})
find_a_better_way = ssl.SSLCo... | [
"nguruben@gmail.com"
] | nguruben@gmail.com |
e1da3255668999c3b77aa8c9332b197a9203478e | 42104a0ebfc03caf9c7648211ca6ac69de984cbb | /memedata/errors.py | 1a923ec91aa865271c3a85ad8fe34bf5b1120fc9 | [
"MIT"
] | permissive | bomdiabot/memedata-service | 61fbdf00d32fb9ef55f352aa400c8830588b8cfe | 52c772c1440901fd23bc8d5254d1f16d11d6c629 | refs/heads/dev | 2022-12-09T13:46:29.588250 | 2018-10-29T23:31:30 | 2018-10-29T23:31:30 | 147,910,641 | 2 | 0 | MIT | 2022-12-08T02:53:13 | 2018-09-08T07:09:59 | Python | UTF-8 | Python | false | false | 1,818 | py | from marshmallow import ValidationError
from werkzeug.exceptions import HTTPException
from flask_jwt_extended.exceptions import JWTExtendedException
from memedata.util import mk_errors
from memedata import config
def jwt_error_handler(error):
code = 401
messages = list(getattr(error, 'args', []))
return mk... | [
"erik.perillo@gmail.com"
] | erik.perillo@gmail.com |
31abd5ef24459b6c62af258b25f1201638b650b3 | 8e1d05d2e130e30585a08b54ce8d613ee78d6b8c | /Evaluation/modularity_analysis.py | 93c04dc25880df6da1ce71526c29416018e92e39 | [] | no_license | mturja-vf-ic-bd/AD-Longitudinal-Smoothing | 11793fafcfb039629a5a5265d98789a1e1576de2 | 10fafdd57c63cc7b5a1c0400abdbfaa4353254f3 | refs/heads/master | 2020-04-16T17:09:14.790401 | 2019-08-17T17:05:54 | 2019-08-17T17:05:54 | 165,764,720 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,380 | py | # Modularity Analysis of the raw and smooth connectomes
# The goal is to show that our method produce connectomes that has consistent modularity along time
#from bct import community_louvain
import numpy as np
from utils.readFile import readSubjectFiles
from plot_functions import plot_matrix_all, plot_community_structu... | [
"mturja.vf.ic.bd@gmail.com"
] | mturja.vf.ic.bd@gmail.com |
7e59f965301071339cf8b02f1232ee076d1d8bc1 | d697c1d45e96bd440be9c17ab14243a5882b1f52 | /qianfeng/常用模块/Tkinter/Text控件.py | 720a8d02a87bfe968a9f57bcdad6841620b2607e | [] | no_license | ithjl521/python | 9eeda2e60dda97ee36e8764c06400eb12818689f | f4fe50799501c483cb64445fd05ee0f30f56576c | refs/heads/master | 2020-07-12T23:10:53.608276 | 2019-11-08T08:59:35 | 2019-11-08T08:59:35 | 204,931,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import tkinter
# 创建主窗口
win = tkinter.Tk()
# 设置标题
win.title('title-hjl')
# 设置大小和位置
win.geometry("400x400+200+50")
'''
文本控件,用于显示多行文本
'''
text = tkinter.Text(win,width=30,height=4)
text.pack()
str = '''
【推荐】超50万C++/C#源码: 大型实时仿真组态图形源码
【活动】阿里云910会员节多款云产品满减活动火热进行中
【推荐】新手上天翼云,数十款云产品、新一代主机0元体验
【推荐】零基础轻松玩转华为云产品,获壕礼加返百元大礼
【推... | [
"it_hjl@163.com"
] | it_hjl@163.com |
9e374836569d4aa1541f6d838fc0cf6528594d4e | 70c69365a7a5b86af601fbf071f221c85abef9fc | /tensorflow/python/tpu/api.py | 540f425494a6a23291c5ec68fa93deda8c08911a | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | dyna999/tensorflow | 3ed8f243b8cc8bb30a8c96dbd30e4b27be226f83 | 163c946f6827ce9e3ffa49e56fa65ce520bf6ea5 | refs/heads/master | 2022-03-28T03:00:28.650532 | 2022-03-25T22:47:49 | 2022-03-25T22:51:26 | 97,944,926 | 0 | 0 | Apache-2.0 | 2022-01-07T22:43:29 | 2017-07-21T12:22:03 | C++ | UTF-8 | Python | false | false | 1,365 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
2ee0088396c8b6299c327c0d2faefc2d53d9a962 | f0cec246e2f30f6b4ee5656f1cb6406dd0f7879a | /thingsboard_client/models/rule_node_id.py | cad448df1ff67cb7c21896a0d4480fd703c9bb39 | [] | no_license | ascentio-tech/thingsboard-swagger-client | 4e2f7c943e243ec8505c32dab0aa3d6cf1559105 | 1e8bf7664c281c29612fd5b44261f049ca7c44fd | refs/heads/master | 2021-07-20T07:18:12.969459 | 2020-06-17T02:35:54 | 2020-06-17T02:35:54 | 184,322,192 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | # coding: utf-8
"""
Thingsboard REST API
For instructions how to authorize requests please visit <a href='http://thingsboard.io/docs/reference/rest-api/'>REST API documentation page</a>. # noqa: E501
OpenAPI spec version: 2.0
Contact: info@thingsboard.io
Generated by: https://github.com/swagger-... | [
"gmatheu@ascentio.com.ar"
] | gmatheu@ascentio.com.ar |
af566ecfbb44440a1ec164059caab18a664f4f21 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/fdlm_chordrec/chordrec-master/experiments/mlsp2016/create_crf_init_params.py | 989cab4c857b5f28322c54b30be3b0271045634f | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,285 | py | import numpy as np
import pickle
import os
from docopt import docopt
from glob import glob
from os.path import join, exists
USAGE = """
create_crf_init_params.py - creates initial crf parameters from a learned
gap convnet.
Usage:
create_crf_init_params.py <src_dir> <dst_dir>
Argument... | [
"659338505@qq.com"
] | 659338505@qq.com |
9f531e0eaf6f4b7c54ba7928cb1cfa50714bfe90 | 49dbac90edc329416525825e842382470345641d | /tests/medium/test_num_sum.py | 13f451161779c5dc0a928281932484afcf2ce90a | [] | no_license | AleksTor/belhard_6_tasks | 4a9ed9367978a2086531a9e31f2d1c71a17446b6 | f5f77a622bbb020a01d251423cbb5f25cc6239f3 | refs/heads/master | 2023-07-26T19:10:22.957008 | 2021-09-13T02:19:28 | 2021-09-13T02:19:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | import pytest
from tasks.medium.num_sum import sum_of_numbers
@pytest.mark.parametrize(
"n, expected", (
(123, 6),
(1111111, 7),
(4, 4),
(935145, 27),
)
)
def test_sum_of_numbers(n, expected):
assert sum_of_numbers(n) == expected
| [
"rineisky@gmail.com"
] | rineisky@gmail.com |
ef65d624ada369ecd60fd78c94bf7905807cefb2 | 2af5f89257e268b63d66a29287a6290c40125372 | /Array/Leetcode_JZO_74_medium_二维数组的寻找.py | 1fca5bff8d82796caede9ab8f694f070255a3fa1 | [] | no_license | lilitom/Leetcode-problems | 7dea24a1d07b3ee49e2f90764330f3e695f4f64d | 82901a31c558433478dd23026efda63cf4dae8e5 | refs/heads/master | 2020-12-02T22:39:34.812479 | 2018-10-21T11:38:31 | 2018-10-21T11:38:31 | 96,162,066 | 2 | 2 | null | 2017-07-05T13:06:18 | 2017-07-04T01:07:41 | Python | GB18030 | Python | false | false | 1,164 | py | '''
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous row.
For example,
Consider the following matrix:
[
[1, 3, 5,... | [
"ahguohao11@163.com"
] | ahguohao11@163.com |
ffc51a551202748e2b844689ae88726dc0f22a93 | b310ea0f7a60786f7e17ac80154fcd5f2c3ffd29 | /Entity/Entity.py | 756f25faf1a3f34fce0ad9b1028e4b5531edb829 | [
"MIT"
] | permissive | twtrubiks/Flask-Migrate-Tutorial | 464e475e7ed8bd5127420c819b4672dc15f9ba61 | a659171eee4c84fd0ea1a1e39914c53d44177ea8 | refs/heads/master | 2021-01-11T22:42:04.620084 | 2017-02-15T09:49:45 | 2017-02-15T09:49:45 | 79,018,103 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db'
db = SQLAlchemy(app)
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_comman... | [
"twtrubiks@gmail.com"
] | twtrubiks@gmail.com |
97210ea3fec9b92d035e5e3c826327e710361fdc | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /pytools/utilities/python/tklib_image_utils.py | fcfd1fa577b7d1e1f3361b64d84d1a8f276abf3b | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | from copy import deepcopy
from scipy import *
def median_filter(myimage, filter_size):
new_map = deepcopy(myimage)
#for i in range(filter_size, len(myimage)-filter_size):
# for j in range(filter_size, len(myimage[0])-filter_size):
for i in range(len(myimage)):
for j in range(len(myimage[0])... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
c442edea8bffc494b18b504b67a661651392627c | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/icml2020/hand/sparse/mc1.py | 91b9a0c61f14b220fae8f8cf80a48e1e0efe16a4 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,473 | py | """
AWR + SAC from demo experiment
"""
from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader
from rlkit.launchers.experiments.awac.awac_rl import experiment
import rlkit.misc.hyperparameter as hyp
from rlkit.launchers.arglauncher import run_variants
from rlkit.torch.sac.policies import GaussianP... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
93dc4b460365f00007184adbfdfea6b17f6f08bb | 066ee4df594a5dc90335d271b9d5a1b1e2a4d34c | /y/google-cloud-sdk/platform/gcutil/lib/google_api_python_client/oauth2client/django_orm.py | 3607bb9442651745171963eb5d3b141bae8d4add | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | ychen820/microblog | a2d82447525325ec58285c2e5db58b79cceaca1b | d379afa2db3582d5c3be652165f0e9e2e0c154c6 | refs/heads/master | 2021-01-20T05:58:48.424357 | 2015-04-28T22:03:09 | 2015-04-28T22:03:09 | 32,948,331 | 0 | 2 | BSD-3-Clause | 2020-07-25T05:04:35 | 2015-03-26T19:45:07 | Python | UTF-8 | Python | false | false | 3,782 | py | # Copyright (C) 2010 Google Inc.
#
# 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 writ... | [
"ychen207@binghamton.edu"
] | ychen207@binghamton.edu |
3e8fa85fb7afd03c45f83c311743c88e5e962eb2 | fd7406dcf3f898bd5b82a0ee4306e02c1d1b4970 | /backup/testcase/operation_testcase/testWebBasicDataOperation.py | d50339d1639b7162ead6e2eccf1c21f0aedb5275 | [] | no_license | 18786262315/zidonghuaapi | e5f979fc599f8bca08e7e5cfbd58943fe36b75d3 | 28145f13231e9df76a33894b82c0e552afb485fc | refs/heads/master | 2020-03-26T01:48:13.018859 | 2018-08-11T12:32:51 | 2018-08-11T12:32:51 | 144,383,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | # -*- coding: utf8 -*-
import unittest
from AthenaTest.common.loadDatas import *
import sys
import importlib
importlib.reload(sys)
class testWebBasicDataOperation(unittest.TestCase):
def setUp(self):
self.datafile = '../../datacase/operation_datacase/web_basic_data_operation.xls'
def test_merchantIn... | [
"843092012@qq.com"
] | 843092012@qq.com |
63ef7efb72cdbd6ab053b45a1e1b67b28b822140 | 3bb57eb1f7c1c0aced487e7ce88f3cb84d979054 | /reliability/scripts/selectors/user_study_sgss/Run_All_Grammaticality.py | e9e24f48f1582714451889b5453d7e2feb86cc90 | [] | no_license | ghpaetzold/phd-backup | e100cd0bbef82644dacc73a8d1c6b757b2203f71 | 6f5eee43e34baa796efb16db0bc8562243a049b6 | refs/heads/master | 2020-12-24T16:41:21.490426 | 2016-04-23T14:50:07 | 2016-04-23T14:50:07 | 37,981,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | import os
#Generators:
generators = os.listdir('../../../substitutions/')
#generators.remove('all')
#Parameters:
ks = ['all']
criterions = ['gini']
splitters = ['best']
maxes = ['sqrt']
depths = ['None']
for c in criterions:
for s in splitters:
for m in maxes:
for d in depths:
for k in ks:
for generat... | [
"ghpaetzold@outlook.com"
] | ghpaetzold@outlook.com |
6e0ebec1fc78e0835c6ecbdb7219e01a09843027 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_disobeying.py | 6227a9b226dae0e7d81f3e25281a295fcd1d7404 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#calss header
class _DISOBEYING():
def __init__(self,):
self.name = "DISOBEYING"
self.definitions = disobey
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['disobey']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6e591a5e888418ed9a9c93a7560a9da591c60be4 | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/tower/lib/python2.7/site-packages/awx/main/migrations/0033_v303_v245_host_variable_fix.py | fad3545b65c1e39e6a6594561e71708a6219f49d | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 661 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
from awx.main.migrations import _migration_utils as migration_utils
def update_dashed_host_variables(apps, schema_editor):
Host = apps.get_model('main', 'Host')
for host in Host.objects.filter(variables='---'):
... | [
"admin@example.com"
] | admin@example.com |
7540c67ee87e4363953e1932e1e8090ac2b4bef0 | 444079944e66d19dd8a01fe9834b43d7aa5fc427 | /DRRQueue.py | 0083c37ff00f549cd00373f0ef062d82bde4f67b | [
"Apache-2.0"
] | permissive | dound/vns | 6ea2a6560a87fc86c6533a7e4532d61af908894d | 675c581fa18b57b801782079ed33f7b095898c7f | refs/heads/master | 2016-09-05T23:17:28.078179 | 2011-04-30T20:40:25 | 2011-04-30T20:40:25 | 288,103 | 20 | 9 | null | 2020-02-01T01:25:56 | 2009-08-25T21:54:12 | Python | UTF-8 | Python | false | false | 2,958 | py | """The DDRQueue module implements a Queue subclass for use with Deficit Round
Robin (DRR) like algorithms."""
from Queue import Queue, Empty
class DRRQueue(Queue):
"""Implements a queue for use with a DRR-like algorithm. Each queue tracks
"quanta" available to it (some unit of work - for the original DRR, th... | [
"dgu@cs.stanford.edu"
] | dgu@cs.stanford.edu |
642e1e9eb6213ea382a825d9cf12a1a9552fa277 | ad8b30544480ba1e5f5b1cb2dec2aa77a644e8d2 | /SWEA/D2_5102_노드의거리.py | ffc560ef41043f390c247473811e0b1d849de0e1 | [] | no_license | hyunwoojeong123/Algorithm | 79abc82d944ca60342a7f8b6fc44fac20ac55123 | 0baaf3222fbbec699ffbec5d4cc680067cf293fb | refs/heads/master | 2023-07-10T18:28:51.934005 | 2021-08-18T01:51:23 | 2021-08-18T01:51:23 | 284,403,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | T = int(input())
for tc in range(1,T+1):
V,E = list(map(int,input().split()))
linked = [[False for j in range(V+1)] for i in range(V+1)]
#print('연결:')
for e in range(E):
s,g = list(map(int,input().split()))
#print(s,g)
linked[s][g] = True
linked[g][s] = True
#print('연... | [
"hw2621@daum.net"
] | hw2621@daum.net |
993e1f05b6625bd9b8a9e969e2a2bc0c853cb581 | 4552bce7f09cffe1770162130896c30e481f1989 | /Tensorflow components and Linear Regression/Variables.py | 16ac2f75f07572ea4151a43503576e4e67a70924 | [] | no_license | Marius-Juston/Tensorflow_Tutorial | b953745a046e068af2eb5e803180b9fdc67b9c45 | bc2217f86f31b4722426899152c6355e973de8f5 | refs/heads/master | 2021-07-17T19:11:23.685737 | 2017-10-26T03:51:46 | 2017-10-26T03:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | # coding=utf-8
# In machine learning we will typically want a model that can take arbitrary inputs, such as the one above. To make
# the model trainable, we need to be able to modify the graph to get new outputs with the same input. Variables allow
# us to add trainable parameters to a graph. They are constructed with... | [
"Marius.juston@hotmail.fr"
] | Marius.juston@hotmail.fr |
60bccdd0b292adf076dd2409f1527cfdfa80ee7b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /q5jCspdCvmSjKE9HZ_10.py | d11123755af6974e993ef6ec8e17acbdeed16337 | [] | 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 | 240 | py |
def lcm(a,b):
if a<b:
a,b=b,a
for i in range(b,a*b+1):
if i%a==0 and i%b==0:
break
return i
def lcm_of_list(numbers):
m=lcm(numbers[0],numbers[1])
for i in range(2,len(numbers)):
m=lcm(m,numbers[i])
return m
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6d8aecc8c41ff3f7b51eb4678cc55f2310d9c393 | ed7e61c8eef7fb2213adeb67557d605470c17fb3 | /ML/50-mlps/28-keras-cnn-big-filters/create_validation_curve.py | f39496852849e0b8a1383a08607ff10c06e7c771 | [] | no_license | MartinThoma/algorithms | 535840224323822f2ea6b7dd6f82a0fdd22a0ff9 | a251e9599b685dbf89c891f02d20fefd8538ead5 | refs/heads/master | 2023-02-23T17:58:10.913634 | 2023-02-21T05:58:59 | 2023-02-21T05:58:59 | 4,939,076 | 241 | 126 | null | 2023-02-16T05:16:23 | 2012-07-07T16:07:23 | Python | UTF-8 | Python | false | false | 780 | py | #!/usr/bin/env python
"""Visualize validation curve."""
import matplotlib.pyplot as plt
import pandas as pd
Y_SCALE_FACTOR = 100
# Prepare dataframe
df = pd.read_csv('log.csv', sep=';')
df = df[['epoch', 'acc', 'val_acc']]
df[['acc', 'val_acc']] = df[['acc', 'val_acc']] * Y_SCALE_FACTOR
df = df.set_index('epoch').r... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
1cc80ab7f1cc14d254b7aa8d4c1063259b1c3fbb | 45b180004c441663bd223219f8edef8c82481be1 | /color.py | 9c26e029d1b9faa98fc5d9d1338fca7c4d1aa9db | [] | no_license | bradbann/mypy | a679e22fdd04525faf32a73934d813a45af1092f | 8bf6234be438aaf3ce2b69e4c10b2ce84eaccb98 | refs/heads/master | 2023-02-19T14:21:59.362385 | 2020-12-31T09:35:11 | 2020-12-31T09:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from colorama import Fore,Back,Style
import colorsys
print(Fore.BLACK + 'some red text')
print(Back.BLUE + 'and with a green background')
print(Style.DIM + 'and in dim text')
print(Style.RESET_ALL)
print('back to normal now') | [
"127575708@qq.com"
] | 127575708@qq.com |
88e97776f2dcc40e428edb17c7c0b4271f3e1855 | 4d995c70ab763e0422ed52e76a3aef9a48208023 | /tests/test_data_processors.py | e2b6a855b09d563ab4023b41385a7ba32cb9a542 | [] | no_license | QualiSystems/cloudshell-autodiscovery | b254008c3422b525cdb72d4c2716ef5771a38b8a | 9ed9e8e74fcf12cb7f7c7fd945f8bc4fae6d5755 | refs/heads/master | 2021-06-03T17:45:36.975215 | 2019-05-30T13:39:30 | 2019-05-30T13:44:48 | 83,421,029 | 1 | 1 | null | 2021-03-25T22:03:43 | 2017-02-28T10:44:13 | Rich Text Format | UTF-8 | Python | false | false | 7,409 | py | import unittest
import mock
from autodiscovery.data_processors import JsonDataProcessor
class TestJsonDataProcessor(unittest.TestCase):
def setUp(self):
self.filename = "example.json"
self.logger = mock.MagicMock()
self.json_data_processor = JsonDataProcessor(logger=self.logger)
@mo... | [
"anton.p@qualisystems.com"
] | anton.p@qualisystems.com |
5ca3a3da95dfa01675de20c2a2689d7b0c4568a5 | b9faae037d6c2fb69406aa1f2e86f42d3a6225ce | /data/snippets/github.com/kkkmmu/useful_script/python/function.py | 07ead533d318ceefbec699c872dfd32f30dc60cf | [] | no_license | lovefcaaa/snk.dev-assistant | 9eaedd448ee2c3f532aa7acdbee1ff1d91f9c07f | 20ffcdddba19102348d75235f7d6d557c2386e69 | refs/heads/master | 2023-07-09T14:12:55.141283 | 2018-06-25T14:18:49 | 2018-06-25T14:18:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | print(abs(-110))
print(max(1, 5, -10, 10))
print(int("123"))
print(int(1.24))
print(float("1.2345"))
print(str(1.23))
print(str(1000))
print(bool(100))
print(bool(-1000))
print(bool(0))
print(bool(None))
a = abs
print(a(-1234))
print(hex(1234))
def mabs(x):
if x >= 0:
return x
else:
return... | [
"rosco_pecoltran@msn.com"
] | rosco_pecoltran@msn.com |
a892c3b8705ffa0ffda05544d3ee3374853c0d4a | 65f548bbeb62d7f2476351bda7b723dab216ce08 | /train_scripts/trainScriptNN.py | aae161d89eeaafeb65bc1a94037985b9c6919291 | [] | no_license | StefanPushkov/TestDocker | f6148db20e2f50694528f88a837e4c517e5a8afe | aecdd0b5207e9f93950faa51535a888d62bb67c1 | refs/heads/master | 2022-11-21T08:44:00.607204 | 2020-07-20T10:46:39 | 2020-07-20T10:46:39 | 280,253,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,911 | py | import torch
import torch.nn as nn
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
from torch.utils import data as data_utils
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import roc_curve, auc
from... | [
"stefan.pushkov@icloud.com"
] | stefan.pushkov@icloud.com |
6634da207df73bf435953807b98cb2f9663aeea0 | 3d705ec48c94373817e5f61d3f839988910431e3 | /misc/tool/player/create_m3u8.py | 9a477d1647cb3a6a26eaa517614fc0aad8c674d8 | [] | no_license | namesuqi/zeus | 937d3a6849523ae931162cd02c5a09b7e37ebdd8 | 3445b59b29854b70f25da2950016f135aa2a5204 | refs/heads/master | 2022-07-24T14:42:28.600288 | 2018-03-29T08:03:09 | 2018-03-29T08:03:09 | 127,256,973 | 0 | 0 | null | 2022-07-07T22:57:57 | 2018-03-29T07:53:16 | Python | UTF-8 | Python | false | false | 475 | py | # coding=utf-8
"""
不停地将m3u8子片段写入文件
用于测试直播播放器的模拟器
__author__ = 'zengyuetian'
"""
from random import randint
import time
if __name__ == "__main__":
for i in range(124):
time.sleep(randint(1, 4))
with open("zeus.m3u8", "a") as f:
url = "http://buddiestv.qiniudn.com/sUWPWh5odxh9vtorJ2tsEu... | [
"suqi_name@163.com"
] | suqi_name@163.com |
86274f2d6be5ec0e61d7bdcfd74fd71805bf9bb9 | 0b3024565732948d36cb1ada431274db7fb2d6f1 | /PublicReference/config.py | 9559073ec5f12b9d486615af8f062953b627adf7 | [] | no_license | Luyaojun/DNFCalculating | adaa5b761e34985661d0c994ad52a63f092c6e62 | 02d701ec63ed083a8b7043229dfceb758e426cae | refs/heads/master | 2022-11-17T11:04:00.245554 | 2020-07-18T07:07:32 | 2020-07-18T07:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | import configparser
conf = configparser.ConfigParser()
conf.read('./ResourceFiles/set.ini', encoding='utf-8')
#窗口缩放
try:
窗口显示模式 = conf.getint('窗口显示', 'value')
except:
窗口显示模式 = 0
#不计算装备属性,武器类型为角色武器选项第一个
try:
调试开关 = conf.getint('调试开关', 'value')
except:
调试开关 = 0
#输出搭配和伤害数据到csv
try:
输出数据 = conf.geti... | [
"wxh_email@yeah.net"
] | wxh_email@yeah.net |
23cc18ee51c728fe6203cb595154805a17389974 | f5d2a1459c81eb23a745bd63f41ef980c41ea0a4 | /ZG-PhaseFour/code/website/pcauto/PcautoComments.py | 3d29bfc7086cc8fd34cc48ac7d373bdd125bca66 | [] | no_license | ErBingBing/django-tonado-crawler | 6800bb0269e99e2454fb0a9079175ffe9d4d0a0b | db31b4cdf7ecc509f1a87aa325621943df825e98 | refs/heads/master | 2021-08-22T11:30:08.419583 | 2017-11-30T04:04:40 | 2017-11-30T04:04:40 | 112,562,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,027 | py | # encoding=utf-8
##############################################################################################
# @file:PcautoComments.py
# @author:Ninghz
# @date:2016/11/18
# @note:太平洋汽车网获取评论的文件
# @修改日志
# @author:yongjicao
# @date:2017/9/12
# @note:修改评论存储方式为mysql
######################################################... | [
"913702626@qq.com"
] | 913702626@qq.com |
dc0cd93f35f2c1313c250efce57156a66fbf52bb | 4bf3aaf77c309a489100b98a8c03532632df152c | /Python/동빈북/10주차2/트리의지름.py | 5a204ed65235c2f7a796144aba287d2f73437648 | [] | no_license | murane/PS | 7fbfc54d962231949efc67f1a35c4b0119de0780 | e938c6c503aeac08bf65e1e66709172b0e5da6ef | refs/heads/master | 2023-05-06T22:51:54.105811 | 2021-05-30T03:34:53 | 2021-05-30T03:34:53 | 293,699,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import sys
r=sys.stdin.readline
V=int(r())
tree=[dict() for _ in range(V+1)]
for _ in range(V):
line=list(map(int,r().split()))
target=line[0]
line=line[1:-1]
for i in range(len(line)//2):
tree[target][line[i*2]]=line[i*2+1]
tree[line[i*2]][target]=line[i*2+1]
leng=0
pole=0
visit=[False... | [
"murane@naver.com"
] | murane@naver.com |
381983aa73140a1fb84cd80fcf777075c6e1922f | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/vse-naloge-brez-testov/DN7-M-175.py | 9f07005e81b8ff32835a51038b44d55f2690253c | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,198 | py | # To funkcijo prijazno podarjam vsem, ki bodo programirali v eni vrstici. :)
# Kako jo uporabiti, je v navodilih. Kdor je ne potrebuje, naj jo ignorira.
import collections
def vsa_polja(s, v):
"""
Generiraj vse koordinate (x, y) za polje s podano širino in višino
Args:
s (int): širina
v (int... | [
"lenart.motnikar@gmail.com"
] | lenart.motnikar@gmail.com |
14d337cc0ae57c9c93b5155c34ee19114e1317c7 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/openpyxl/openpyxl/drawing/connector.pyi | 3b3e8a479f72006e2689a5b70ac025c01e2a488f | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 1,867 | pyi | from typing import Any
from openpyxl.descriptors.serialisable import Serialisable
class Connection(Serialisable):
id: Any
idx: Any
def __init__(self, id: Any | None = ..., idx: Any | None = ...) -> None: ...
class ConnectorLocking(Serialisable):
extLst: Any
def __init__(self, extLst: Any | None =... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
51773bb0b5cf61f1eb2f13888232b12c252e6fbe | f121695e2dff353607fa47fb42482470e03bbf8a | /capitulo_06-Dicionarios/user.py | 27f9b3f93f445d4a391344208f4b9726d72af033 | [] | no_license | ranog/python_work | 76cbcf784c86fae4482be5383223e4b0a34f4130 | 47c442a90dcf32d5aef70858693a772a3c76a7ac | refs/heads/master | 2022-12-22T11:02:26.482059 | 2021-04-17T01:12:22 | 2021-04-17T01:12:22 | 233,634,221 | 2 | 1 | null | 2022-12-08T07:38:43 | 2020-01-13T15:58:46 | Python | UTF-8 | Python | false | false | 2,642 | py | #! /usr/bin/env python3
"""
NOME
user.py - Percorrendo todos os pares chave-valor com um laço
SINOPSES
chmod +x user.py
./user.py
Key: username
Value: efermi
Key: first
Value: enrico
Key: last
Value: fermi
- 6.12 - Extensões:
Username: efermi
Name: Erico Fermi
... | [
"jprnogueira@yahoo.com.br"
] | jprnogueira@yahoo.com.br |
7a14e8464e65364030788781634321eba09f3d7f | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v1/synthetics/CreateSyntheticsAPITest.py | 84904e1d7992fcae134d9955d3c134e4da54febc | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 4,304 | py | """
Create an API test returns "OK - Returns the created test details." response
"""
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
from datadog_api_client.v1.model.synthetics_api_test import SyntheticsAPITest
from datadog_api_client.v1.model.... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
50942d27099e308aa4147588ac09f780f7856048 | f9308d5a8efe2dbb48e9cc87cd06405b60a9dc7b | /samples/python/apidocs/ee_featurecollection_getstring.py | 8f9996c332c70c0c6ba24aec13ae4de989df6de8 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | google/earthengine-community | 4e054b421f66f03507d58668084aee981062fc24 | ce931040c518860f8788b4888c0acfdebd2952fc | refs/heads/master | 2023-09-01T14:47:54.812703 | 2023-08-31T23:01:00 | 2023-08-31T23:01:39 | 200,732,820 | 428 | 552 | Apache-2.0 | 2023-09-13T21:46:51 | 2019-08-05T21:42:11 | Jupyter Notebook | UTF-8 | Python | false | false | 1,007 | py | # Copyright 2023 The Google Earth Engine Community Authors
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
548439ff669f3f0d005ab4790ec8a3cb6a20f164 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_officiates.py | 4b9a0f7403716650f0c91ed440000739919939b4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _OFFICIATES():
def __init__(self,):
self.name = "OFFICIATES"
self.definitions = officiate
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['officiate']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8aed7256c3bb58a3dd4968ada6a007943f82ab89 | 3034cb06289f747066571c4ab54ca81996c22319 | /module_utils/RubrikLib/rubrik_lib/models/download_file_job_config.py | 54fb2f3618d7eb072adffba24a2445ad05a26500 | [] | no_license | tarunactivity/ansible-rubrik | b2f644805f13a553bd0635e6ddc230257d125ef7 | 5d978c23902fd32d92cc90c75e48e5fe2209f8e0 | refs/heads/master | 2023-04-29T04:25:26.834701 | 2023-04-20T21:58:47 | 2023-04-20T21:58:47 | 116,251,368 | 0 | 0 | null | 2018-01-04T11:18:38 | 2018-01-04T11:18:37 | null | UTF-8 | Python | false | false | 684 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"tarun.activity+github@gmail.com"
] | tarun.activity+github@gmail.com |
715dc05ef8ff9902ec23f1039df3e9c7fa5bbe74 | a9ca484b422c802f02684ad64694212a7374a180 | /devel/lib/turtlebot3_example/turtlebot3_server | e8c5800d6414be4bda9b9bbc6d47d9b985fbad01 | [] | no_license | akash1306/mate_unity | 791cd5fadc1fae10e01e6f577fef5c43098eb766 | e947904f37cad6c814c9e5dfea0017a3d02a5b31 | refs/heads/master | 2022-12-10T11:22:59.709816 | 2020-08-30T10:29:34 | 2020-08-30T10:29:34 | 290,722,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# generated from catkin/cmake/template/script.py.in
# creates a relay to a python script source file, acting as that file.
# The purpose is that of a symlink
python_script = '/home/kajal/mate_unity/src/turtlebot3/turtlebot3_example/nodes/turtlebot3_server'
with open(python_scr... | [
"akash.chaudhary1306@gmail.com"
] | akash.chaudhary1306@gmail.com | |
10051e7b6695576ce02e1731f8384c452f3e9597 | 08583f5a46dab2455ef707a91a342e6a30f62e8a | /advanced-web-scraping-2/14.py | d97c5ac81eb880454b2680bb8a8a6d3656c18d5e | [] | no_license | mahdi-asadzadeh/python-webscraping-simple-projects | 924cfefcf1e88698bd76e09e2824da28a9460cb0 | 24f629f48921e7d047f5b5c0803e4d9b3ec31c86 | refs/heads/main | 2023-06-20T08:58:46.730938 | 2021-07-22T11:59:56 | 2021-07-22T11:59:56 | 388,445,419 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import requests
url = 'http://www.webscrapingfordatascience.com/referercheck/secret.php'
my_headers = {
'Referer': 'http://www.webscrapingfordatascience.com/referercheck/'
}
r = requests.get(url, headers=my_headers)
print(r.text)
print(r.headers)
print(r.request.headers) | [
"mahdi.asadzadeh.programing@gmail.com"
] | mahdi.asadzadeh.programing@gmail.com |
608b91ef49bdcf91ae244f0073ec6a7bb4b05a22 | 87163acf1614292be250754f28114f89013f73a3 | /HackerRank/Problem Solving/Implementation/Easy/Cut the sticks.py | 400aa182819db47b8f08baf51c32151e0dddc50c | [] | no_license | khush-01/Python-codes | 742a9d9966d2ceb3ad2e7c78e34ef88e55df955a | da3cae8df0aafe763399066eefc9b786538fdb35 | refs/heads/main | 2023-03-20T04:37:14.020134 | 2021-03-12T04:56:30 | 2021-03-12T04:56:30 | 346,941,048 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | n = int(input())
arr = list(map(int, input().split()))
while len(arr):
print(len(arr))
low = min(arr)
arr = [x for x in arr if x != low]
for x in arr:
x -= low
| [
"noreply@github.com"
] | khush-01.noreply@github.com |
38bfd9428ec551d1e7378c0bed6889e115ea4cdb | a8499deff2fa4abde885891d655c3f53ab741d37 | /rotkehlchen/typing.py | baf11f828d8959e799887993f4df71e0658772a7 | [
"BSD-3-Clause"
] | permissive | georgerobescu/rotkehlchen | 4c6d2cadcf8b1a8a20f33bb7352b3924a492af54 | 817c880b771b8daf5635b02642861dd9949689e2 | refs/heads/master | 2020-06-25T00:22:20.442607 | 2019-07-26T11:42:13 | 2019-07-26T11:42:13 | 199,137,746 | 0 | 0 | BSD-3-Clause | 2019-07-27T08:25:06 | 2019-07-27T08:24:59 | Python | UTF-8 | Python | false | false | 3,836 | py | from enum import Enum
from typing import Dict, NamedTuple, NewType, Optional, Union
from rotkehlchen.fval import FVal
T_BinaryEthAddress = bytes
BinaryEthAddress = NewType('BinaryEthAddress', T_BinaryEthAddress)
T_Timestamp = int
Timestamp = NewType('Timestamp', T_Timestamp)
T_ApiKey = bytes
ApiKey = NewType('ApiK... | [
"lefteris@refu.co"
] | lefteris@refu.co |
09be8dca5ceacb21fe25c7dffea510e79c928207 | 2379e840d0a9e47331ac247f4d6164cdfd548cbd | /tools/docs/docload.py | 6cdadb8d0f4de2a0db4459bf4ad0b6d8bf40ee44 | [
"BSD-3-Clause",
"PostgreSQL"
] | permissive | jberkus/pgweb | b9d04bc60da437f2f60c8e4cf844e0cfa601a160 | fa07ed84b8708240264fe9f091b2087b7f872b8c | refs/heads/master | 2020-04-03T10:12:04.734671 | 2017-05-11T13:00:07 | 2017-05-11T13:00:20 | 30,271,195 | 0 | 0 | null | 2015-02-03T23:49:04 | 2015-02-03T23:49:04 | null | UTF-8 | Python | false | false | 3,730 | py | #!/usr/bin/env python
# Script to load documentation from tarballs
import sys
import os
import tarfile
import re
import tidy
from optparse import OptionParser
from ConfigParser import ConfigParser
import psycopg2
pagecount = 0
quiet = False
re_titlematch = re.compile('<title\s*>([^<]+)</title\s*>', re.IGNORECASE)
... | [
"magnus@hagander.net"
] | magnus@hagander.net |
76dc68fb3fe760087f98d3966455e9f50c8e0e40 | c5d6e21744f10c6e57d58b57bba2763b82a9726b | /Bimestre_03_Aula_03/exercicios/04_somando_forcas.py | ccae92fe26f595c8832a0e1be2f97b2d84922e72 | [] | no_license | valeriacavalcanti/ALP-2020-R | bf32af707d49db650deb6d122a1abdf58d94ae4f | 62e0be861ad7439b99ae5d0b0e14d97c887424c7 | refs/heads/main | 2023-05-05T02:05:00.128872 | 2021-06-04T10:30:05 | 2021-06-04T10:30:05 | 316,784,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # declarar as matrizes
matriz1 = []
for i in range(6):
matriz1.append([0] * 4)
matriz2 = []
for i in range(6):
matriz2.append([0] * 4)
matriz_soma = []
for i in range(6):
matriz_soma.append([0] * 4)
# ler os dados das matrizes
for i in range(6):
for j in range(4):
matriz1[i][j] = int(input("M... | [
"valeria.cavalcanti@ifpb.edu.br"
] | valeria.cavalcanti@ifpb.edu.br |
7b5cbe0847dd7ee161252a3f29692ab99f07de36 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/carts/models_20211010234636.py | 41796b5b857bad7162f4bffa6392f2ca23d6f216 | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.db import models
# Create your models here.
class Cart(models.Model):
cart_id = models.CharField(max_length=255, blank=True)
date_added = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.cart_id
class CardItem(models.Model):
product = models.ForeignKey(Produ... | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
9f29c6cd97e8f4ec92d968578340ad5c858fb023 | be4459658d667c47eefeeb3cf689a678042edb94 | /modules/ext/util/lua/packages/luaunit/luaunit/doit.py | b4e636abe621a2734eb4e4f3ce9b7ce2d3bef357 | [
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kparr/RIFT.ware-1 | 7945174aa23ac1f7d74a7464b645db5824982fc3 | 6846108d70b80b95c5117fdccd44ff058ac605be | refs/heads/master | 2021-01-13T08:36:03.751610 | 2016-07-24T21:36:15 | 2016-07-24T21:36:15 | 72,420,438 | 0 | 0 | null | 2016-10-31T09:11:27 | 2016-10-31T09:11:27 | null | UTF-8 | Python | false | false | 2,796 | py | import subprocess, sys, os, shutil, os.path, optparse
VERSION='3.0'
RELEASE_NAME='luaunit-%s' % VERSION
RELEASE_DIR='release/' + RELEASE_NAME + '/'
TARGET_ZIP=RELEASE_NAME + '.zip'
TARGET_TGZ=RELEASE_NAME + '.tgz'
REPO_PATH='d:/work/luaunit/luaunit-git/luaunit/'
LUA50='d:/program/lua/lua50/lua50.exe'
LUA51='d:/progra... | [
"Jeremy.Mordkoff@riftio.com"
] | Jeremy.Mordkoff@riftio.com |
6bc2f2f74fa4f7f954d72f9f188aa154ec803c32 | 4f7aa44d21ae38093869e79e10f5cdc8842d48b7 | /01-python-academy-intro-lab/exceptions_01.py | 743b25bface618a473cf911dd91b8165a4e2d8b3 | [
"Apache-2.0"
] | permissive | iproduct/intro-python | 31e802c2c21a4df3361656f12d267ec52c2d6564 | 7e08e144da2907fcf45dc734ab4e896631625d75 | refs/heads/master | 2023-02-19T11:42:37.522624 | 2023-02-13T15:54:03 | 2023-02-13T15:54:03 | 128,980,155 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import sys
class MyException(Exception):
def __init__(self, *args):
# Exception.__init__(self, *args)
super().__init__(*args)
def erroneuos():
try:
return 1 / 0
except:
print("Within except.")
raise
finally:
print("Within finally.")
if __name__ == "__... | [
"office@iproduct.org"
] | office@iproduct.org |
6c6ca35bcb1cae919f48bc7f70104caabf953925 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/2329.py | bf535ce3f6a4ddf821921237facfb76044f407d5 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | ipt = open('B-large.in').read().splitlines()
cases = int(ipt[0])
fw = open('B-large.out','w')
for i in xrange(cases):
c_per_sec = 2.0
c,f,x = map(lambda x: float(x), ipt[i+1].split(' '))
just_wait = x / c_per_sec
sub_total = 0
while True:
#print just_wait
sub_total += c/c_per_sec
c_per_sec += f
total =... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2ece9826a7c51f922007dd4b37ea17ae54963ccc | c609730a43596a2d3303f072fc97d9cf681fac7b | /cagey/kache/kache/spiders/woniuhc.py | 954c5f0dbca656d7d140c892215686432f16e2ad | [] | no_license | sinnettluo/ChenProject | 5403311c0c7b78c484145e16d692abff00d2a110 | 0e33ecf1683afb22f1deb4bd54294c41aed8a46b | refs/heads/master | 2023-03-22T23:48:08.430178 | 2020-09-02T15:05:02 | 2020-09-02T15:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,182 | py | # -*- coding: utf-8 -*-
import scrapy
import time
import json
from copy import deepcopy
from kache.items import woniuItem
class WoniuhcSpider(scrapy.Spider):
name = 'woniuhc'
allowed_domains = ['woniuhuoche.com']
# start_urls = ['http://woniuhuoche.com/']
@classmethod
def update_settings(cls, set... | [
"1316446041@qq.com"
] | 1316446041@qq.com |
b3305b39cd894d4e5bb295a10bedfc5a27e0d140 | e358b0c801b0173e2b5fe31820af2a45d5fff8ae | /altair_saver/savers/tests/test_html.py | 6899fec8d9fd514217be3d235d24a1e5c2dde027 | [
"BSD-3-Clause"
] | permissive | steevensmelo/altair_saver | a3270d2a4c2615c0b86b6d10f87e67f04c3bd40f | d8dfc9a8d40b3ad20d152e014b37e3b1e6d512ef | refs/heads/master | 2022-06-11T11:53:12.329070 | 2020-05-13T14:50:11 | 2020-05-13T14:50:11 | 263,651,277 | 0 | 0 | BSD-3-Clause | 2020-05-13T14:19:45 | 2020-05-13T14:19:44 | null | UTF-8 | Python | false | false | 5,557 | py | import io
import json
import os
from typing import Any, Dict, IO, Iterator, Optional, Tuple
from altair_data_server import Provider
from PIL import Image
import pytest
import selenium.webdriver
from selenium.webdriver.remote.webdriver import WebDriver
from altair_saver import HTMLSaver
from altair_saver._utils import... | [
"jakevdp@google.com"
] | jakevdp@google.com |
360826c9d54c53412f463d98e4c247151a877b01 | 16d159d6d3fe69d513717caad3e2c21320f93224 | /AtCoder/ABC/ABC101-150/abc141/abc141b.py | 23b49e7105c52df065df47863ad2a802a189189d | [] | no_license | tsushiy/competitive-programming-submissions | d4f068a5157c0de0f1822367e0ca66dd978e43f9 | 9011d855d9252134179cc9cc8f328f6e0ca32407 | refs/heads/master | 2023-04-11T08:34:01.015316 | 2021-04-11T15:16:17 | 2021-04-11T15:17:35 | 175,807,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | s = input()
flag = True
for i, e in enumerate(s):
if i%2==0 and e not in "RUD":
flag = False
elif i%2==1 and e not in "LUD":
flag = False
if flag:
print("Yes")
else:
print("No") | [
"28962399+tsushiy@users.noreply.github.com"
] | 28962399+tsushiy@users.noreply.github.com |
6e6e1991a34c11354f69814d4470d27f07744b55 | 8e02228b5857d876de244d37b1d6ec3bbd21227e | /python_modules/dagit/dagit_tests/test_debug_cli.py | 8131baa4613455e33bad678940c7646f893f743e | [
"Apache-2.0"
] | permissive | ChocoletMousse/dagster | 4af255d5ab99c25d1a2be379a5bbd83fa3221b64 | a256cb43cde0ab5a800a87ee1f55de560587a4ab | refs/heads/master | 2022-12-26T00:04:31.172150 | 2020-09-25T21:36:15 | 2020-09-26T02:15:35 | 297,765,844 | 1 | 0 | Apache-2.0 | 2020-09-22T20:35:23 | 2020-09-22T20:35:22 | null | UTF-8 | Python | false | false | 1,226 | py | from os import path
from click.testing import CliRunner
from dagit.debug import dagit_debug_command
from gevent import pywsgi
from dagster import execute_pipeline, lambda_solid, pipeline
from dagster.cli.debug import export_command
from dagster.core.test_utils import instance_for_test
@lambda_solid
def emit_one():
... | [
"alex@elementl.com"
] | alex@elementl.com |
61b8dbbbc2d89a236263828285aac5e64b2dec48 | e8d719fe45dfbff9cbbc4ed872832cec6cabaca6 | /128_Longest_Consecutive_Sequence.py | 1ccccaf698c6be4b9c5f01f29d570fac2016dac6 | [] | no_license | nlfox/leetcode | 64f4f48d7f4be6df0542e51cc7037df40bf184a3 | d61363f99de3d591ebc8cd94f62544a31a026d55 | refs/heads/master | 2020-12-21T01:43:01.792899 | 2016-11-14T23:10:12 | 2016-11-14T23:10:12 | 56,680,839 | 2 | 0 | null | 2016-05-17T17:16:37 | 2016-04-20T11:19:58 | Python | UTF-8 | Python | false | false | 500 | py | class Solution(object):
def longestConsecutive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums=list(set(nums))
nums.sort()
maxCnt = 1
cnt = 1
for i in xrange(1, len(nums)):
if nums[i] - 1 == nums[i - 1]:
... | [
"nlfox@msn.cn"
] | nlfox@msn.cn |
08a6fe350bd23f142bad00a4690285eba2230d71 | a9dc497a723917d4256ef15b2e9c3cf88a3fae4f | /GPinv/mean_functions.py | e2f7bd94404647f0cc8161fe0941bcca89455f3f | [
"Apache-2.0"
] | permissive | chaoshunh/GPinv | 83b8773870f7ccc8a636fc88ac9a96acfa306c54 | e46964991459cb43752cd344c18be0e197d439f8 | refs/heads/master | 2023-03-16T06:42:39.966449 | 2016-10-15T05:39:58 | 2016-10-15T05:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,458 | py | import tensorflow as tf
import numpy as np
from GPflow import mean_functions
from GPflow.param import Param,ParamList
from GPflow._settings import settings
float_type = settings.dtypes.float_type
np_float_type = np.float32 if float_type is tf.float32 else np.float64
class MeanFunction(mean_functions.MeanFunction):
... | [
"fujiisoup@gmail.com"
] | fujiisoup@gmail.com |
8f1ad2f8765959e86316c7bf0ab8d91cc8ace7c1 | 8fc2ab3d29a30e603e19b30bb9517928de529167 | /recursion_count7.py | da54e1e6515b053de42599e4a335a9a73680a757 | [] | no_license | rushilchugh/Practise | 35a9861bec6786580dc0a440eb25d78e43cb7bc9 | 98fd593b95dad641bef1d519c6c6ed1daaae630f | refs/heads/master | 2020-03-13T21:14:14.013604 | 2018-04-27T12:23:50 | 2018-04-27T12:23:50 | 131,291,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | __author__ = 'Rushil'
def count7(n):
if n == 0:
return 0
if n%10 == 7:
return 1 + count7(n//10)
else:
return count7(n//10)
print(count7(77177)) | [
"noreply@github.com"
] | rushilchugh.noreply@github.com |
2d90be2e1a6b6bc6c2fe03c9b529449c1127a540 | fd0604a74b72e273e194cae9145b4a299d2e1858 | /cogs/helpers/context.py | e5289d13bd928bfaecd26cf9b74ac09ac4cc12da | [] | no_license | DuckHunt-discord/DuckHunt-Community-Rewrite | 4610f0f5a503ae072b6092ddd031264842c6919c | c53ed8c994527052bcf588824ce6519280974056 | refs/heads/master | 2020-03-23T05:14:02.442187 | 2018-11-03T00:37:17 | 2018-11-03T00:37:17 | 141,131,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | import logging
from discord.ext import commands
class CustomContext(commands.Context):
def __init__(self, **attrs):
super().__init__(**attrs)
@property
def logger(self):
# Copy that to log
if self.channel:
cname = self.channel.name
else:
cname = "... | [
"jovart.arthur@gmail.com"
] | jovart.arthur@gmail.com |
a87152f3a008ec4832177a68b36f5aa27bf07c1b | cda43bf6a84f7e55fab26aa70cda934683a51fe5 | /MainMajor/cifar_loader.py | fa597d04eb30e7dc0e3b560acb21758dfb94fd31 | [] | no_license | nikolaosdionelis/NeuralNetworksNNs | abb55622882e31c8d130a8986868b3d19ede186f | 8a217490ad5bb3f7fccf4002c6b43a06c1e562fc | refs/heads/master | 2022-11-13T00:50:23.578197 | 2020-07-12T18:52:20 | 2020-07-12T18:52:20 | 279,042,013 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | py | """
Utilities for downloading and unpacking the CIFAR-10 dataset, originally published
by Krizhevsky et al. and hosted here: https://www.cs.toronto.edu/~kriz/cifar.html
"""
import os
import sys
import tarfile
from six.moves import urllib
import numpy as np
def maybe_download_and_extract(data_dir, url='http://www.cs.t... | [
"noreply@github.com"
] | nikolaosdionelis.noreply@github.com |
c377555c2f0b5965254d6b7ac73814194212cf28 | 2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5 | /archive/298BinaryTreeLongestConsecutiveSequence.py | 92d9aa4d93f3055c85599dd48eacc42d05e24958 | [] | no_license | doraemon1293/Leetcode | 924b19f840085a80a9e8c0092d340b69aba7a764 | 48ba21799f63225c104f649c3871444a29ab978a | refs/heads/master | 2022-10-01T16:20:07.588092 | 2022-09-08T02:44:56 | 2022-09-08T02:44:56 | 122,086,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | # coding=utf-8
'''
Created on 2017�?6�?16�?
@author: Administrator
'''
from data_structure.Tree import list_to_tree
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def longe... | [
"yanhuang1293@gmail.com"
] | yanhuang1293@gmail.com |
31179b3b337c588adca95e89088525bd446ce1e8 | b01182728eb4a657f9bd8974ba8508010cc8173e | /manage.py | 314bde693826fb496c2d2cd9215db691ca17844c | [
"BSD-3-Clause"
] | permissive | pombredanne/django-buildbot | 459a6d8a942c8c5f857626f4772010a3aaba2a6e | 660ec35473aec081428a115eab6460f5a1cd2a0d | refs/heads/master | 2021-01-17T19:57:01.296286 | 2014-07-29T06:25:03 | 2014-07-29T06:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djbuildbot.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"xordoquy@linovia.com"
] | xordoquy@linovia.com |
36c7630adaee0011f298f2b5daaa682935d10da2 | 76b983258793d294b81791ebe72591bfebf78625 | /tools/pesearch.py | d6b57f8548ff6441b7acce963e476872846cc4ae | [
"BSD-2-Clause"
] | permissive | lotusexpeditor/syringe | 18ac9cb800a7fefb7d67e31936db6a84e47df9eb | 34a8386b90f534f9a856d0a436bba04dbf5100bd | refs/heads/master | 2023-02-08T10:08:20.295797 | 2020-12-27T00:06:09 | 2020-12-27T00:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,743 | py | import os,sys
import pecoff
from ptypes import utils
def traverse_address(address):
def edges(self, address=address, **kwargs):
if not isinstance(self, ptypes.ptype.container):
return
for item in self.value:
if item.contains(address):
yield item
c... | [
"arizvisa@gmail.com"
] | arizvisa@gmail.com |
e38298b3db6bf24895dd9139bc51769fbef8cd78 | 37f10a692d0e1a9a396f505af60b04f7db44d3e1 | /01 Algorithms/01 Warmup/CompareTheTriplets.py | 9b18b2dcebec59ded6a89ae7c2987fd725d10ec4 | [] | no_license | nbrahman/HackerRank | 95842f5dbda2ab8aedc7808831c12b9f92a37e03 | ec5d42d7e578f01efba87a099f42e82512704dca | refs/heads/master | 2021-01-19T11:53:59.685444 | 2017-07-29T16:04:21 | 2017-07-29T16:04:21 | 88,003,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | '''
Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from to for three categories: problem clarity, originality, and difficulty.
We define the rating for Alice's challenge to be the triplet , and the rating for Bob's challenge to be the triplet .
Y... | [
"nikhil.brahmankar@gmail.com"
] | nikhil.brahmankar@gmail.com |
7f7e6202d1b1aa73181f18176a9a42fd131c5023 | 9cef4ef20efd0eec18846242e78be0b9be144c30 | /homework/20200717/子进程中修改全局变量.py | 9a7989b2eec30662def98571d1867a21fc6cbba9 | [] | no_license | Vaild/python-learn | 4e6511a62a40b6104b081e0f8fe30f7d829901f5 | 5d602daf3b4b7e42349b7d9251df1f4dd62c299c | refs/heads/master | 2022-11-19T00:47:48.808384 | 2020-07-20T14:27:49 | 2020-07-20T14:27:49 | 279,044,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | #!/usr/bin/python3
# coding = UTF-8
# code by va1id
# 定义全局变量
import os
import time
from multiprocessing import Process
N= [1, 2]
def change_process():
print('未修改之前的列表:', N)
print('列表此时的ID是:', os.getpid())
for i in range(10):
N.append(i)
print('修改之后的列表:', N)
print('修改之后的ID:', os.get... | [
"cubersongwenbo@gmail.com"
] | cubersongwenbo@gmail.com |
91bebb09bc6024dfa9e4392aaab0a55020f063b4 | d7f33fd19ecc59aadebe4f50db605ad39b967dbd | /disambig_creation.py | 36a957f12832a0936243132decf3d61f9165915d | [] | no_license | juansaenz/leaguepedia_util | 9687ab3634ccdf022c637323dceb0638ed5ece88 | 77e3dfe501b333b3a8dc2a04f207b8bf0858dbc3 | refs/heads/master | 2020-08-05T19:01:30.131055 | 2019-10-04T11:34:01 | 2019-10-04T11:34:01 | 212,667,697 | 0 | 0 | null | 2019-10-03T19:54:58 | 2019-10-03T19:54:58 | null | UTF-8 | Python | false | false | 7,129 | py | import re, threading, mwparserfromhell
from log_into_wiki import *
#################################################################################################
original_name = 'Starky'
irl_name = "Juan Carlos Cano"
new_name = '{} ({})'.format(original_name, irl_name.strip())
init_move = True
blank_edit = False
l... | [
"18037011+RheingoldRiver@users.noreply.github.com"
] | 18037011+RheingoldRiver@users.noreply.github.com |
fe8bc6b1e305d6f955d5f51ccdbcbb03567c3c5f | 33787153c4f85cb626cf16e0e4d40d5970df2871 | /reservation_system/order/admin.py | 873c45edd8890e68e2a1d428784197d437bc8309 | [] | no_license | nazaninsbr/E-Commerce-Website | 93e14576d69618f749d7fd6f19b6b1b989fa47a8 | 46bed8c58f4adac37dc4ddd881f57e694961b9b2 | refs/heads/master | 2021-09-22T14:20:56.940950 | 2018-09-11T05:01:23 | 2018-09-11T05:01:23 | 125,370,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from django.contrib import admin
from .models import Order, OrderItem
class OrderItemInline(admin.TabularInline):
model = OrderItem
raw_id_fields = ['product']
class OrderAdmin(admin.ModelAdmin):
list_display = ['id', 'first_name', 'last_name', 'email', 'address', 'postal_code', 'department', 'paid', 'c... | [
"nazanin.sabrii@gmail.com"
] | nazanin.sabrii@gmail.com |
99addf12f6477d42e6cc49078268d5e6afdf5f2d | d7016f69993570a1c55974582cda899ff70907ec | /sdk/devcenter/azure-developer-devcenter/samples/create_environment_sample.py | 637a5e178d90414987a7ffcd3707ca295f73c41e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 3,239 | py | # coding=utf-8
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
e48457d278580c6a39e5c28f37e35ec482015823 | 5b58a332c6bea0688d196aabedfc8ccc49bdd134 | /experiments/cnn_short_embeddings/get_embeddings.py | c2dfad97b2a1949c516d77ecfb2e88218654e2d3 | [] | no_license | ver228/classify_strains | 5420c2b3ea8e93b6ba46900c385f52f664f1cbd7 | dc61e7431410e25ab7c2da0acb6d090cc2ebaabb | refs/heads/master | 2021-09-20T08:52:14.505868 | 2018-08-07T12:26:22 | 2018-08-07T12:26:22 | 108,448,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,628 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 17 14:57:25 2017
@author: ajaver
"""
import sys
import os
import pandas as pd
import torch
import tqdm
import numpy as np
import tables
#Be sure to use abspath linux does not give the path if one uses __file__
_BASEDIR = os.path.dirname(os.path.abs... | [
"ajaver@MRC-8791.local"
] | ajaver@MRC-8791.local |
e563aed309c589208366c684765d85e75140080d | 78a28bd6b95041bfe67d8aa6a3a3c111911afaab | /03.Complete Python Developer - Zero to Mastery - AN/01.Python Basics/13.1 Exercise Repl.py | 1e15204ddbb52cbedf68211f4ad2a6edf0cfeb2c | [
"MIT"
] | permissive | jailukanna/Python-Projects-Dojo | 8200a60ab925bf796bd39cb1977e6f0e0a575c23 | 98c7234b84f0afea99a091c7198342d66bbdff5b | refs/heads/master | 2023-03-15T06:54:38.141189 | 2021-03-11T08:17:02 | 2021-03-11T08:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | counter = 0
counter += 1
counter += 1
counter += 1
counter += 1
counter -= 1
counter *=2
#Before you click RUN, guess what the counter variable holds in memory!
print(counter)
#6 | [
"ptyadana@users.noreply.github.com"
] | ptyadana@users.noreply.github.com |
26f999a48d12ee717570e8a1ae1e7e96e06c6f69 | 245b0329360b18c32510a6d13b2650fd6ca752cc | /ch03/trendline.py | 14d037ac047d819a1524cf921cf4e087b23e6a60 | [] | no_license | TanUkkii007/numpy-begginers-guide | 56c315d207f681bd4e6d70abeac82bfc0db2bad5 | 6d483bc8672947a06d4240c4379f00183da46d8b | refs/heads/master | 2021-01-17T08:08:07.113571 | 2016-06-29T16:45:59 | 2016-06-29T16:45:59 | 61,984,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | import numpy as np
import matplotlib.pyplot as plt
def fit_line(t,y):
'''Fits t to a line y = at + b'''
A = np.vstack([t, np.ones_like(t)]).T
return np.linalg.lstsq(A, y)[0]
# Determine pivots
h,l,c = np.loadtxt('data.csv', delimiter=',', usecols=(4,5,6), unpack=True)
pivots = (h+l+c)/3
# Fit trend line... | [
"yusuke.007.yasud@gmail.com"
] | yusuke.007.yasud@gmail.com |
b45c9b02f05aa2a1d529bacf9ec69c1b70e7e35b | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Data-Structures-Algos-Codebase/ALGO/__PYTHON/YT_DOWN.py | 2e47b44e59c00793d16628f53a9120871d31a7a4 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 310 | py | simport pafy
url = "https://www.youtube.com/watch?v=OE7wUUpJw6I&list=PL2_aWCzGMAwLPEZrZIcNEq9ukGWPfLT4A"
video = pafy.new(url)
print(video.title)
stream=pafy.new(url).streams
best=video.getbest()
for i in stream:
print(i)
print(best.resolution,best.extension)
print(best.url)
best.download(quiet=False)
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
2e06b237f8de00ed2eda46de62f6d4a013feeb58 | 5989e503a733e8b29f4c502008446a75c2b43ff8 | /src/geofr/api/serializers.py | e6b9048e6acbf53169edb9aa681077ec2224fb2d | [] | no_license | samuelpath/aides-territoires | 399a6a7b0607ef5a8d2b327247446b239f5b1a42 | 5793bd49d7157a34e08c29e56a46e1e3ead0651f | refs/heads/master | 2022-12-20T14:35:18.671563 | 2020-08-21T08:00:33 | 2020-08-21T08:00:33 | 288,424,578 | 0 | 0 | null | 2020-08-18T10:27:17 | 2020-08-18T10:27:16 | null | UTF-8 | Python | false | false | 388 | py | from rest_framework import serializers
from geofr.models import Perimeter
class PerimeterSerializer(serializers.ModelSerializer):
id = serializers.CharField(source='id_slug')
scale = serializers.CharField(source='get_scale_display')
text = serializers.CharField(source='__str__')
class Meta:
... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
d9213d2c6b72b46b327ce6a9697cc507a3850b4e | c29cdc64f42eae3bc7d584a7b9b84961ce09da04 | /bitcoinx/__init__.py | d8c08b3d58a13838d07a60b0f1dbabaa6c15fe86 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | msinkec/bitcoinX | d379e32e9dc0f43700710032ad0ce7ffca2e398d | 26ec8a8a8c2a6423e0438dea9918c740c96f5eb2 | refs/heads/master | 2023-04-28T18:52:12.072225 | 2021-05-11T11:19:44 | 2021-05-11T11:19:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from .address import *
from .base58 import *
from .bip32 import *
from .chain import *
from .consts import *
from .errors import *
from .hashes import *
from .interpreter import *
from .keys import *
from .misc import *
from .mnemonic import *
from .networks import *
from .packing import *
from .script import *
from .s... | [
"kyuupichan@gmail.com"
] | kyuupichan@gmail.com |
ed146779588cd7189d51bb5d520952ed956f518a | 7ff0077a55f6bf4a74704e430f354aeabaae3e0b | /tensorflow_probability/python/distributions/relaxed_onehot_categorical_test.py | a92246b95c13587324e028dd9841e11f232c49ad | [
"Apache-2.0"
] | permissive | markaduol/probability | 50a1d97810d11c747bd9546f977b2937c9e04d78 | 8af21dff96502a5bdc01b1be2c595043a3efc5d1 | refs/heads/master | 2020-03-29T20:50:26.001297 | 2018-09-25T21:51:10 | 2018-09-25T21:51:50 | 150,333,784 | 0 | 1 | Apache-2.0 | 2018-09-25T21:54:49 | 2018-09-25T21:54:49 | null | UTF-8 | Python | false | false | 6,579 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# 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 o... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
6741d8af6bd64f44ce8282efeb4594958db494e4 | 1fc9a12c86be4e440f4f0d95c8b871c79df07545 | /ML Libariries/python_pandas/dataframe_row.py | b1f101d5632b2dcc45428ad701ace69103a14311 | [] | no_license | Rohit-Gupta-Web3/Articles | a56e7f1b36d6d5efd846eec2e1a4036716ac16eb | 0f584916e065059d4dd1e95e7de874a7830fdff4 | refs/heads/master | 2023-05-14T02:50:17.817951 | 2020-07-26T06:44:10 | 2020-07-26T06:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | import pandas as pd
data = {'Name':['C','Sharp','Corner'], 'Age':[20,21,22], 'Address':['Delhi','Kanpur','Tamil Nadu']}
df = pd.DataFrame(data)
data1= df.loc[0]
print(data1)
| [
"rohit.gupta@iic.ac.in"
] | rohit.gupta@iic.ac.in |
f2c4e6b1a789554712a287c4f0a34afbf2126b22 | f9c0e305ca873cd9784f1a6f441fee0ca7fbc468 | /recom/main/map.py | e13f55ae806969fe8b3404e4775d65e18b170a56 | [] | no_license | flybetter/recom_web | b3caac2873786f4a10fbedc8b34d2ea4888aeafe | ef06f64931df594f4c8c6b2f72a59e0ad4a5e637 | refs/heads/master | 2020-03-27T10:21:35.813149 | 2018-10-10T08:47:56 | 2018-10-10T08:47:56 | 146,412,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | from flask import render_template, Blueprint
from urllib import request
import json
from recom.main.recom_glorithm import startup, secondHouseRequestJson, get_history, get_associate_community
import logging
logging.basicConfig(level=logging.DEBUG)
bp = Blueprint('map', __name__, url_prefix='/map')
HISTORY_URL = 'ht... | [
"flybetter@163.com"
] | flybetter@163.com |
bad111c370e04a62e3e9f19868fc1862a53e48f3 | fd877cb919622d6a4efa305fb9eaec8a31e8dd37 | /scripts/coop/extract_idhs.py | 96006b4849a3fe65260d49d3758153010ba1974b | [
"MIT"
] | permissive | NCiobo/iem | 37df9bc466ffcbe4f6b1f9c29c6b5266559f200c | 75da5e681b073c6047f5a2fb76721eaa0964c2ed | refs/heads/master | 2021-01-23T09:39:33.090955 | 2017-09-05T16:34:12 | 2017-09-05T16:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | """Extraction as requested by IA Public Health"""
import psycopg2
import sys
YEAR = int(sys.argv[1])
def main(argv):
"""Do Something"""
pgconn = psycopg2.connect(database='postgis', host='localhost',
port=5555, user='nobody')
cursor = pgconn.cursor()
cursor2 = pgconn.cur... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
2ebeb1af2486684d1a3e45df73b6fbb9fe41cad1 | ba157236151a65e3e1fde2db78b0c7db81b5d3f6 | /String/Shortest Distance to a Character.py | 61944332f699e54e8ea2514cf4b61df0e868fee3 | [] | no_license | JaberKhanjk/LeetCode | 152488ccf385b449d2a97d20b33728483029f85b | 78368ea4c8dd8efc92e3db775b249a2f8758dd55 | refs/heads/master | 2023-02-08T20:03:34.704602 | 2020-12-26T06:24:33 | 2020-12-26T06:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | class Solution(object):
def produce_range(self,arr,s,e):
if s == e:
return
else:
length = e-s
c = 1
for i in range(s,s+length/2):
arr[i] = c
c += 1
if (e-s) % 2 == 0:
c -= 1
... | [
"spondoncsebuet@gmail.com"
] | spondoncsebuet@gmail.com |
26f7c3a515ee832fb3576f44619b37adfd2f0357 | 6f56e44e04a287a2545b4c43a09fa82d6f8551a6 | /dcp100 - given infinite 2D grid and seq of points to cover in order, find min num steps.py | 27412150dba3353bf13f3ff326d280e14bae840d | [] | no_license | seanchen513/dcp | bb7ab2f9632700c5d23ccfa92b0e8a541c508d3b | c0b19833c51833d1d80016afe637734316194327 | refs/heads/master | 2020-04-10T21:21:23.308335 | 2020-01-30T15:51:49 | 2020-01-30T15:51:49 | 161,294,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | """
dcp#100, 416
This problem was asked by Google.
You are in an infinite 2D grid where you can move in any of the 8 directions:
(x,y) to
(x+1, y),
(x - 1, y),
(x, y+1),
(x, y-1),
(x-1, y-1),
(x+1,y+1),
(x-1,y+1),
(x+1,y-1)
You are given a sequence of points and the order in which y... | [
"seanchen513@gmail.com"
] | seanchen513@gmail.com |
5e10d01be687ad36d906c3e893f05564f5edc79e | bf4f11bcac4c92975fdcb98c328a03a663d2d9ae | /dask_gdf/tests/test_sort.py | 9c4988271286624f74c78fcbd7e0bede033a9e90 | [
"Apache-2.0"
] | permissive | Quansight/dask_gdf | 88063f6ca4d3de5a5e7ed5d2f3e23fbe55cc1523 | 9f67410f4ff6c5cea18f831404d2f2fe7bf632ab | refs/heads/master | 2020-03-28T14:46:50.533877 | 2018-11-06T19:26:56 | 2018-11-06T19:26:56 | 148,521,998 | 1 | 1 | Apache-2.0 | 2018-09-19T14:43:19 | 2018-09-12T18:12:49 | Python | UTF-8 | Python | false | false | 1,314 | py | import pytest
import numpy as np
import pandas as pd
import pygdf
import dask
import dask_gdf as dgd
@pytest.mark.parametrize('by', ['a', 'b'])
@pytest.mark.parametrize('nelem', [10, 100, 1000])
@pytest.mark.parametrize('nparts', [1, 2, 5, 10])
def test_sort_values(nelem, nparts, by):
df = pygdf.DataFrame()
... | [
"michael.lam.sk@gmail.com"
] | michael.lam.sk@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.