blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ebfb829b1d0def60e4c43777cb8f3bf68601fa8 | 4c458854c0b5672a098b496d871a2b4f1d8e828d | /tools/py_bulit_in/getattr_module.py | 4c2d67c27b0d03499119524cbf097660dd38e9c8 | [] | no_license | claire1234995/code | ae918aebd0fb87f50d1ac0ee434e4976e8682b23 | 1bb9f5aaad1ac801e912cd13537de2ebfe9dcb1c | refs/heads/master | 2022-02-20T05:28:40.303611 | 2019-10-11T05:28:11 | 2019-10-11T05:28:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from importlib import import_module
defa = import_module('.'.join(["default"]))
# gettattr(defa, 'info') 是 a function
attr = getattr(defa, 'info')
print(attr())
| [
"mxxhcm@gmail.com"
] | mxxhcm@gmail.com |
4b3f4ce7d3466af21161b49b5de4bb3c3dae016e | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2Z/2Z-2Y_wat_20Abox/set_1ns_equi.py | caf34fdac8c7fd631e0581c3c13b6dd1db8f0e62 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2Z/wat_20Abox/ti_one-step/2Z_2Y/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_pbs = filesdir + 'temp_1ns_equi.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in ... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
178cb057717e1ae8d262ad395a5abd1a2506036e | 71ad2a6587cc7c0a7149465287b2659d81f406e7 | /morpheus_chair_pkg/scripts/simple_firmata.py | d282b902a57547d624cac95b58488394e34f9c8c | [] | no_license | ArifSohaib/morpheus_chair_arduino | 389a091ad00535992260ed8eeb6d897d33c08010 | be4e4892a87f09cc86c8832a12b2ccc06172756f | refs/heads/master | 2020-04-29T09:02:15.593714 | 2019-12-07T05:35:10 | 2019-12-07T05:35:10 | 176,008,958 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,531 | py | from pyfirmata import Arduino, util
import os
if os.name == 'nt':
from pynput import keyboard
import time
"""defining pins"""
#define ENB 5
#define IN1 7
#define IN2 8
#define IN3 9
#define IN4 11
#define ENA 6
ENB = 5
IN1 = 7
IN2 = 8
IN3 = 9
IN4 = 11
ENA = 6
def forward():
"""
ORIGINAL function
void... | [
"arif_sohaib@outlook.com"
] | arif_sohaib@outlook.com |
90aab359ae9197e2d3629214164cb1cc90ca7031 | b86608b6de44642ed29cd88bba4acbbdd31a0b04 | /examples/bq_file_load_benchmark/tests/test_parquet_util.py | 55fff7d7e6872a3077acaea7ee3a1e2d5624fa6b | [
"Apache-2.0"
] | permissive | MCRen88/professional-services | a514a926dd23e3c4ac6dadb656faed22c3d91d5d | d7bc3b194159ffdb149c9507890bb1fbae7a8d88 | refs/heads/master | 2020-12-15T16:38:17.860940 | 2020-01-06T19:29:47 | 2020-01-06T19:29:47 | 235,181,173 | 1 | 0 | Apache-2.0 | 2020-01-20T19:26:15 | 2020-01-20T19:26:14 | null | UTF-8 | Python | false | false | 1,423 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import pyarrow as pa
import unittest
from google.cloud import bigquery
from bq_file_load_benchmark.generic_benchmark_tools import parquet_util
class TestParquetUtil(unittest.TestCase):
"""Tests function... | [
"jferriero@google.com"
] | jferriero@google.com |
b5ce1f91b4d8d62e404127000eb05f3225a5afd7 | 04c343a4b6ba0cee3873a17833ac910e930e27ce | /goals/migrations/0053_add_field_theme_to_sector.py | 16cdfaaa0b865ae88c90451028af51503525f230 | [
"Unlicense"
] | permissive | tehamalab/dgs | f10f45440494aa3404da068cfef69ad2f7385033 | 46de3cdaced5e4afef46fa46c7a3303d53df0da0 | refs/heads/master | 2021-03-16T05:13:57.548503 | 2017-11-24T05:45:49 | 2017-11-24T05:46:08 | 93,390,835 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-28 05:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goals', '0052_add_field_caption_on_plan'),
]
operations = [
migrations.AddF... | [
"bmachaku@gmail.com"
] | bmachaku@gmail.com |
125065bc258175c73d7cc32c947d987f6a4b70e0 | e5de11874e3d68ebd48f22d75d0c5b37ed058ae9 | /src/env/dm_control/dm_control/suite/common/settings.py | b6ace94933a01f6f632e88350d11796f7e6ec6e9 | [
"Apache-2.0"
] | permissive | xiaolonw/policy-adaptation-during-deployment | 4436e568439e3e7df48b7ed529304e9d11e979f0 | e3f98eef83608bb78a55a63405e17106e4dee814 | refs/heads/master | 2022-11-17T19:09:00.967055 | 2020-07-09T00:34:10 | 2020-07-09T00:34:10 | 279,119,345 | 1 | 0 | null | 2020-07-12T17:58:50 | 2020-07-12T17:58:50 | null | UTF-8 | Python | false | false | 5,146 | py | import os
import numpy as np
from dm_control.suite import common
from dm_control.utils import io as resources
import xmltodict
_SUITE_DIR = os.path.dirname(os.path.dirname(__file__))
_FILENAMES = [
"./common/materials.xml",
"./common/skybox.xml",
"./common/visual.xml",
]
def get_model_and_assets_from_set... | [
"hello@nicklashansen.com"
] | hello@nicklashansen.com |
d90cd378e2025596ceacb07d965c298a1359589d | 719da820d1aad1d352544badc022e0422f1f7588 | /tools/demo.py | e8a5d14474411fbf6d0447c7a38e38b2c4bd3789 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | yuhan210/py-faster-rcnn | b0886628ba7c0f01fd4ccbd6b35b14835dfbd922 | dbf36cc2a327d6d58b92ce4b973fdca45cf9d14e | refs/heads/master | 2021-01-10T00:57:05.152454 | 2016-03-14T16:38:11 | 2016-03-14T16:38:11 | 53,615,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | #!/usr/bin/env python
# --------------------------------------------------------
# Faster R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""
Demo script showing detections in sample i... | [
"yuhan210@gmail.com"
] | yuhan210@gmail.com |
c6e1e16d3f9cac75006e39850baa427f272dee11 | 05b3d499424e0ac49a1c7489e1455a48b02439de | /playhouse/dataset.py | 09d63fb2688a5af414cd2d8be4bce1f936cda952 | [
"MIT"
] | permissive | manipuladordedados/peewee | c5d6e0debd33e8163bfbe41e1107003734be0d7f | 82a71566b1f0d76430ac5efccb2bc09f491faedc | refs/heads/master | 2020-12-11T05:56:20.679084 | 2014-11-05T09:17:16 | 2014-11-05T09:17:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,375 | py | import csv
import datetime
from decimal import Decimal
import json
import operator
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
import sys
from peewee import *
from playhouse.db_url import connect
from playhouse.migrate import migrate
from playhouse.migrate import Sc... | [
"coleifer@gmail.com"
] | coleifer@gmail.com |
7ef62aaf8b814aafa9e209c301de90e59413b19d | 84b81ad47af6a4f40c1f2fa7b513b9ede260d038 | /MyDiary_Backend/test_user.py | 93f3fd647bbf531a6f5a990eba6ee1d81235dd9f | [] | no_license | michael-basweti/michael-basweti.github.io | ebc219f69943f55779a888ae7b54cae14a5b09de | 34581d8560b2f7f60a0cf67d7e631e1ef9b89d7e | refs/heads/flask_api | 2022-12-24T21:57:02.396825 | 2018-10-26T10:19:08 | 2018-10-26T10:19:08 | 140,665,411 | 0 | 1 | null | 2022-07-29T22:33:35 | 2018-07-12T05:32:05 | JavaScript | UTF-8 | Python | false | false | 993 | py | """
nose tests for the api
"""
from nose.tools import assert_true
import requests
def test_get_all():
"""
test all returns
:return:
"""
response = requests.get('http://127.0.0.1:5000/mydiary/api/v1.0/entries/get')
assert_true(response.ok)
def test_post():
"""
test post
:return:
... | [
"baswetima@gmail.com"
] | baswetima@gmail.com |
26b00c725a10bf052e14ac1f9e8a0e04d851fb2b | e3ce9a14ba58eaf7a684f2b6088a6172fa08bf41 | /02 Estructuras de control/condicional_anidados.py | 9528be679e9b51cafd89aa1cd194fdf697c8c464 | [] | no_license | edwinhrojasm/python_basico_20203 | f2134170f9ffe7d42fad590f795a8201293771c7 | 54fa3da2d9df3684bd3c07c8b95118ad5f0b7684 | refs/heads/master | 2022-12-30T17:16:31.406874 | 2020-10-22T00:45:27 | 2020-10-22T00:45:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | x = int(input("Ingrese un valor entero: "))
print("Usted ingreso el: " + str(x))
if x % 4 == 0:
x /= 4
else:
if x % 2 == 0:
x /= 2
else:
if x % 3 == 0:
x /= 3
else:
x += 1
print("Ahora el valor es: " + str(x))
| [
"apdaza@gmail.com"
] | apdaza@gmail.com |
77a42a6aed8161e58c41bcbd33af724bea02d78d | 79e45a6e4846927da432087aba845036b11c5622 | /PROD/bin/MarketData/Daily/EOGdailyOHLC_withvol.py | 8bce941f7a85afe3b14750dc940bee4bec6e7c77 | [] | no_license | mjserpico/Scarlett-Trading | cba2bcfaacf886b9d851d978683b4ce641c8f6ad | 9778717393dbb0818ee026356996d1806345a6c2 | refs/heads/master | 2020-03-21T21:39:51.108503 | 2019-05-09T02:06:26 | 2019-05-09T02:06:26 | 139,076,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,162 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 08 09:16:43 2017
@author: Michael
"""
import mysql.connector
from ib.opt import Connection
from ib.ext.Contract import Contract
import time
import logging
import datetime
import datalink #universal logins for environment
import math
Flag = 0
CCY1 = "E"
CCY2 = "OG"
Table ... | [
"mjserpico@gmail.com"
] | mjserpico@gmail.com |
8e729bdeca6812df6854b6e2437387c139da97d3 | 223fde0acac1b6100277e8ad2a7cb0233b4fbce7 | /src/pyMission/multipoint_derivatives.py | 172ace25b7fa21169998aa55a84d802e626152d2 | [] | no_license | hwangjt/pyMission-1 | 26cf5646bf79560a7d52d2db56ecde0b535bdc85 | 316c738afde8b29225586a6a13eea0b97aaa894d | refs/heads/master | 2020-12-25T10:08:39.327912 | 2015-04-02T20:42:20 | 2015-04-02T20:42:20 | 30,985,983 | 0 | 0 | null | 2015-02-26T19:28:24 | 2015-02-18T20:45:25 | OpenEdge ABL | UTF-8 | Python | false | false | 5,825 | py | ''' Analysis with multiple mission segments in parallel '''
import time
import numpy as np
from openmdao.main.api import set_as_top, Driver, Assembly
from openmdao.main.mpiwrap import MPI
from openmdao.main.test.simpledriver import SimpleDriver
from openmdao.lib.casehandlers.api import BSONCaseRecorder
from pyoptsp... | [
"kenneth.t.moore-1@nasa.gov"
] | kenneth.t.moore-1@nasa.gov |
3d8dc115afb63ed44f0989c80921541c2a63bb00 | 2aed68d1ee14eb3fc344fe1e0db99b20f0c9a166 | /xnr_0313/xnr/timed_python_files/community/community_find_weibo.py | ff05052ca2aaca67b9456c264b651a3863fdd17c | [] | no_license | zhhhzhang/xnr1 | a8ab151d99e74124eae2ec15c61281a32cb9ce8d | bfa621916c9a787bcdff4573a06d12056e25c556 | refs/heads/master | 2020-03-19T04:56:22.330912 | 2018-05-30T12:00:12 | 2018-05-30T12:00:12 | 135,883,486 | 0 | 1 | null | 2018-06-03T07:35:36 | 2018-06-03T07:35:35 | null | UTF-8 | Python | false | false | 11,090 | py | # -*- coding: utf-8 -*-
import os
import json
import time
import sys
from elasticsearch import Elasticsearch
import networkx as nx
from community_shuaijian_gailv import find_community
import json,os,time,community
sys.path.append('../../')
from global_utils import es_flow_text,retweet_index_name_pre,retwe... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
d6ed7c947efd9d5100b44e9a063b25dac284ccc0 | b68c2043016baec884e8fb7edcda53243a9807b8 | /src/storage/storage.py | fd44d652b0d77394ca916177b3f979d69662dff8 | [] | no_license | INP-Group/SystemJ | 7a1dcf4867591c663e96be0c41089151cc31887d | c48ada6386653402ed1b6a8895ae223846873158 | refs/heads/master | 2020-04-05T23:20:11.972621 | 2015-07-19T03:34:03 | 2015-07-19T03:34:03 | 39,321,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | # -*- encoding: utf-8 -*-
from project.settings import POSTGRESQL_DB, \
POSTGRESQL_HOST, POSTGRESQL_PASSWORD, POSTGRESQL_TABLE, \
POSTGRESQL_USER, ZEROMQ_HOST, ZEROMQ_PORT
from src.storage.berkeley import BerkeleyStorage
from src.storage.postgresql import PostgresqlStorage
from src.storage.zeromqserver import Z... | [
"sapronov.alexander92@gmail.com"
] | sapronov.alexander92@gmail.com |
3731cf807cb614a2393e21e6bdc30eece5399cf1 | 690cdb4acc7becf3c18955e3c2732ec5b0735b2c | /python-demos/concurrent_parallel_demos/cpu_bound_parallel.py | b0e9e2b7975ba3b0740bc754929bc91af41d7692 | [
"MIT"
] | permissive | t4d-classes/advanced-python_04192021 | 30ba51cad9bc6af96fae2b9e2998fdb60244d6ba | a30cd924d918bf41c0775a1235eef849746a5f3d | refs/heads/master | 2023-04-08T03:22:01.145375 | 2021-04-23T22:35:18 | 2021-04-23T22:35:18 | 357,016,064 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | """ cpu bound single demo """
from collections.abc import Generator
import itertools
import time
import multiprocessing as mp
def fibonacci() -> Generator[int, None, None]:
""" generate an infinite fibonacci sequence """
num_1 = 0
num_2 = 1
yield num_1
yield num_2
while True:
next_... | [
"eric@t4d.io"
] | eric@t4d.io |
c7050b95df428a9e2e0aba7c94567211af4cf38f | bb6ce2f4fc53dc9d2fc7a701cd4683b23ecf30b2 | /tests/py/test_browsing.py | 4897ee674d4f844978c35362aa7bff14e17d8d0c | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | liberapay/liberapay.com | 2640b9f830efaadd17009e3aed72eadd19c0f94e | a02eea631f89b17ac8179bdd37e5fa89ac54ede8 | refs/heads/master | 2023-08-31T10:44:04.235477 | 2023-08-27T07:29:47 | 2023-08-27T07:29:47 | 36,075,352 | 1,586 | 282 | null | 2023-09-03T09:23:26 | 2015-05-22T14:03:52 | Python | UTF-8 | Python | false | false | 4,611 | py | import os
import re
from pando import Response
import pytest
from liberapay.billing.payday import Payday
from liberapay.testing import EUR, Harness
from liberapay.utils import find_files
overescaping_re = re.compile(r'&(#[0-9]+|#x[0-9a-f]+|[a-z0-9]+);')
class BrowseTestHarness(Harness):
@classmethod
... | [
"changaco@changaco.oy.lc"
] | changaco@changaco.oy.lc |
506efc67add5dd69127142ed921f92fd83266cd6 | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/rip/router/router.py | 67c75801f0a30a3cc4d2221e5d627163ebf81cfc | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 10,795 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
8d1ba021d13c75f5e8887ecec97357f511760b85 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/SVJ_2017_mZprime-1100_mDark-20_rinv-0p3_alpha-peak_n-2000_cff.py | d4d743d32e51d3a0fd33d110eea3d4204c870ddc | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 7,432 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/user/lpcsusyhad/SV... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
f2b2b4d9515fcb5e791cf75aec0382ee54e71dfc | 2d4b9ef6aa8c3e39999206cbfd1d1bb60e170077 | /cup/version.py | ef9dfc6395747ccf22e0131a2940f38f9781ecab | [
"MIT",
"Apache-2.0"
] | permissive | IsaacjlWu/CUP | 786ff784c7a22854d083e9cd041b605a1934072e | 5c985cd33ee7dc6f1f052a491d1c7b8915670942 | refs/heads/master | 2023-05-11T23:31:51.975880 | 2018-07-16T08:54:59 | 2018-07-16T08:54:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/python
# -*- coding: utf-8 -*
# #############################################################################
#
# Copyright (c) Baidu.com, Inc. All Rights Reserved
#
# #############################################################################
"""
:author:
Guannan Ma maguannan @mythmgn
"""
VERSION ... | [
"mythmgn@gmail.com"
] | mythmgn@gmail.com |
d58a13c2b21ea0a06e363f887cb465d9d2d70886 | 9680c27718346be69cf7695dba674e7a0ec662ca | /game-Python/Python Challenge-Math Game.py | 9bfe4c62b34c305859a22614baca17bad957cb14 | [] | no_license | Md-Monirul-Islam/Python-code | 5a2cdbe7cd3dae94aa63298b5b0ef7e0e31cd298 | df98f37dd9d21784a65c8bb0e46d47a646259110 | refs/heads/main | 2023-01-19T05:15:04.963904 | 2020-11-19T06:10:09 | 2020-11-19T06:10:09 | 314,145,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import random
import operator
score = 0
def random_problem():
operators = {
"+": operator.add,
"-": operator.sub,
"*":operator.mul,
"/":operator.truediv,
}
num_1 = random.randint(1,10)
num_2 = random.randint(1,10)
operation = random.choice(list(operators.keys()))
... | [
"61861844+Md-Monirul-Islam@users.noreply.github.com"
] | 61861844+Md-Monirul-Islam@users.noreply.github.com |
459b4624310b53ddf1066b5c175112767f16b74e | 60f7d711cb3f743f148ca4be4c507244a61d823d | /gaphor/diagram/classes/__init__.py | 2c89e61845c0a50239c9e661f4a18d4de9e98b58 | [
"Apache-2.0"
] | permissive | paulopperman/gaphor | 84ffd8c18ac4f015668fbd44662cbb3ae43b9016 | 6986c4f3469720a1618a9e8526cb6f826aea626a | refs/heads/master | 2020-05-24T21:57:54.252307 | 2019-05-16T22:51:50 | 2019-05-16T22:51:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from gaphor.diagram.classes.association import AssociationItem
from gaphor.diagram.classes.dependency import DependencyItem
from gaphor.diagram.classes.generalization import GeneralizationItem
from gaphor.diagram.classes.implementation import ImplementationItem
from gaphor.diagram.classes.interface import InterfaceItem... | [
"gaphor@gmail.com"
] | gaphor@gmail.com |
74c35250f7819ac52063403afc93980734d0a8ca | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/781a8eb20c5b32f8e378353cde4daa51/snippet.py | 1042a5ba0a6f94ea25c9ea17708bc9b21544c48c | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 2,545 | py | # [filter size, stride, padding]
#Assume the two dimensions are the same
#Each kernel requires the following parameters:
# - k_i: kernel size
# - s_i: stride
# - p_i: padding (if padding is uneven, right padding will higher than left padding; "SAME" option in tensorflow)
#
#Each layer i requires the following paramete... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
975ef2a3f509bb2905399cf97654bef2b7ff076f | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fabric/acdropexcesshist1d.py | 0ab471b7eb43f5a3c7a4993b0f156a96b13d4623 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 31,834 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
789d91f20f5e4d64ac0bfbc79cc982f2bf8ddde4 | 20cef5de28d025d4d37eb86ba2b1f832d52c089d | /src/gallium/drivers/zink/zink_extensions.py | 6d01052c39f122aec5bcd098d634e276e7171d12 | [] | no_license | martinmullins/mesa-emscripten | 73da0a64901b7664468f951ef09fb9a462134660 | b4225e327b67fd7eef411cc046c1c0fecb3900de | refs/heads/main | 2023-03-27T03:38:19.037337 | 2021-03-29T19:17:22 | 2021-03-29T19:17:22 | 352,753,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,925 | py | # Copyright © 2020 Hoe Hao Cheng
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distrib... | [
"eric+marge@anholt.net"
] | eric+marge@anholt.net |
c4dffc3e3d2d97e40aea2ee1a8c985b1198d34c9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04005/s016124663.py | dbda349dc94067bc2bed8bd607675a19ba22e8d3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | A,B,C = map(int, input().split())
if A*B*C%2==0:
print(0)
exit()
mylist=[A*B,B*C,A*C]
print(min(mylist)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cf2b1104c97b1464770fe039124140845851493c | 8b40a2959b8d2a2faca09f017e529bb6e02c0030 | /backend/manga/asgi.py | 29cb53e8774243095ab48245d7c364e42a77d799 | [
"MIT"
] | permissive | linea-it/manga | 80d0982ec83590abcec10a4d09510425d39c289d | 26add95475345d6c7f34465848d4d33a7a6b63b7 | refs/heads/master | 2023-09-05T20:05:50.471757 | 2023-09-04T15:45:18 | 2023-09-04T15:45:18 | 212,671,416 | 0 | 0 | MIT | 2023-09-12T19:31:22 | 2019-10-03T20:15:19 | Jupyter Notebook | UTF-8 | Python | false | false | 403 | py | """
ASGI config for manga 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('D... | [
"glauber.vila.verde@gmail.com"
] | glauber.vila.verde@gmail.com |
5be29987b306b8975af2a9ab57afca0a1aa21f8a | 3b99e2863db4bcd3707e6f13641ddd9156289bc6 | /tilemap/part 13/settings.py | e9b72d78360aa52426696357aa16353739911721 | [
"MIT"
] | permissive | m-julian/pygame_tutorials | 500a5be3b4fad86fad577a7ea5493ac09ca41168 | be57d865de4ac0c18148e1785443c05445159779 | refs/heads/master | 2022-07-18T00:15:01.335459 | 2020-05-12T15:39:45 | 2020-05-12T15:39:45 | 263,055,700 | 0 | 0 | MIT | 2020-05-11T13:48:49 | 2020-05-11T13:48:48 | null | UTF-8 | Python | false | false | 1,016 | py | import pygame as pg
vec = pg.math.Vector2
# define some colors (R, G, B)
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
DARKGREY = (40, 40, 40)
LIGHTGREY = (100, 100, 100)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
YELLOW = (255, 255, 0)
BROWN = (106, 55, 5)
CYAN = (0, 255, 255)
# game settings
WIDTH = 1024 # 16 * 64 or 32 *... | [
"chris@kidscancode.org"
] | chris@kidscancode.org |
232a9fa2ac5e25b2aad3b20924a51dcc73d3f9b1 | 349f39b27a7c3157a1f3db65f35b96bcdb2f5919 | /03/xx/07-sklearn/16-deep-learning/cnn.py | 12a3bc7c6707c150b18a6aa9e0a89c549f22e8bb | [] | no_license | microgenios/cod | 5f870c9cefbb80d18690909baa4c9d8b9be463c2 | 0805609cc780244c640963dc4c70052e3df57b4e | refs/heads/master | 2022-12-08T20:10:11.742940 | 2020-02-29T10:37:10 | 2020-02-29T10:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,855 | py | #!/usr/bin/python
import argparse
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
def build_arg_parser():
parser = argparse.ArgumentParser(description="Build a CNN classifier using MNIST data")
parser.add_argument("--input-dir", dest="input_dir", type=str, default="./mnist_... | [
"githubfortyuds@gmail.com"
] | githubfortyuds@gmail.com |
ef444176e36f44038492a44d71ac8e6aca7a16c7 | d1c352676563b2decacfad19120001959b043f05 | /superset/migrations/versions/c5756bec8b47_time_grain_sqla.py | 13eb8c9b65479c0103f6fddc7aee44249354651c | [
"CC-BY-4.0",
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | permissive | Affirm/incubator-superset | c9a09a10289b4ebf8a09284a483bca93725a4b51 | 421183d3f46c48215e88e9d7d285f2dc6c7ccfe6 | refs/heads/master | 2023-07-06T11:34:38.538178 | 2019-05-22T23:39:01 | 2019-05-22T23:39:01 | 128,005,001 | 1 | 3 | Apache-2.0 | 2023-03-20T19:49:14 | 2018-04-04T04:02:42 | JavaScript | UTF-8 | Python | false | false | 2,190 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | Affirm.noreply@github.com |
5fd0656ad77ea794a18064b517e5d366cbc9653d | d6ac41c1b17deb7d870a1658b0a613a7ee38e907 | /ex02/2_4.py | 9c77b1f7fbfbcdfb9f102387759955b680037861 | [] | no_license | sarangkhim/sk_python | 9e76a14ad6180420ecbe6f17009f7ac4450ef5b1 | cc3d8f600e343d6f8d967c684cab04ad8e0011d1 | refs/heads/master | 2020-03-10T07:17:31.147720 | 2018-04-12T15:15:51 | 2018-04-12T15:15:51 | 129,259,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | count = 1
count = count + 1
count = 1
print(count)
| [
"sarang.khim@gmail.com"
] | sarang.khim@gmail.com |
898ac4865128e40a00c0e6ebf4e83bf0a1cdff2e | 43fd8b12dc1b6a2fc7cf4d9b8a80d3f1ae0fac66 | /Visualization/11. 3D绘图函数-Points3d().py | b763a01b925d2dfae930f78b64abb6ea2a8b557b | [] | no_license | gxiang666/python_file | e707f829b2c35e6126bea79e299333faabe76b19 | 2ee0f52d53892d193dc83c10564f7326e0bad0da | refs/heads/master | 2022-12-07T04:16:29.166707 | 2019-10-25T02:59:26 | 2019-10-25T02:59:26 | 139,252,161 | 1 | 0 | null | 2022-11-22T02:38:40 | 2018-06-30T13:35:14 | Python | UTF-8 | Python | false | false | 305 | py | import numpy as np
from mayavi import mlab
# 建立数据
t = np.linspace(0, 4 * np.pi, 20) # 0-4pi之间均匀的20个数
x = np.sin(2 * t)
y = np.cos(t)
z = np.cos(2 * t)
s = 2 + np.sin(t)
# 对数据进行可视化
points = mlab.points3d(x, y, z, s, colormap="Greens", scale_factor=.25)
mlab.show()
| [
"1528357474@qq.com"
] | 1528357474@qq.com |
a48d2e017f789758b775bae34f5ef4309987a757 | 458b1133df5b38a017f3a690a624a54f0f43fda7 | /PaperExperiments/XHExp076/parameters.py | 6f436fa18bf3398fcd04dd8ad45ea24a61fd102c | [
"MIT"
] | permissive | stefan-c-kremer/TE_World2 | 9c7eca30ee6200d371183c5ba32b3345a4cc04ee | 8e1fae218af8a1eabae776deecac62192c22e0ca | refs/heads/master | 2020-12-18T14:31:00.639003 | 2020-02-04T15:55:49 | 2020-02-04T15:55:49 | 235,413,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,604 | py |
# parameters.py
"""
Exp 76 - {'Initial_genes': '5000', 'Host_mutation_rate': '0.30', 'TE_progeny': '0.15, 0, 0.55, 1, 0.30, 2', 'TE_Insertion_Distribution': 'Flat()', 'Carrying_capacity': '300', 'TE_excision_rate': '0.5', 'Junk_BP': '1.4', 'Gene_Insertion_Distribution': 'Flat()', 'mutation_effect': '0.01', 'TE_death_r... | [
"stefan@kremer.ca"
] | stefan@kremer.ca |
df03d7cf506c83750e564807e2c690429a10ca18 | e0b750751b22e2d3d93c72f0947b3dd3d173ce54 | /runtests.py | b59af0a0dfe8c95546d7382b46d18af15e8bdf10 | [
"MIT"
] | permissive | CryptAxe/pinax-images | 8deac776c534a2d3ab2d66df364ab654fb02b8df | d041993671cdec6ed3011f6d7ffa499591e7cc9a | refs/heads/master | 2021-01-17T22:27:44.849972 | 2016-02-22T14:38:13 | 2016-02-22T14:38:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | #!/usr/bin/env python
import os
import sys
import django
from django.conf import settings
DEFAULT_SETTINGS = dict(
INSTALLED_APPS=[
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sites",
"pinax.images",
"pinax.images.tests"
],
MIDDLEWARE_CLA... | [
"paltman@gmail.com"
] | paltman@gmail.com |
eba9ca8e639338e02363bdde79d0a78a05881186 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-6860.py | 9d6702f59fb7fd8b3f78e657ca25242a0b170f23 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,752 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
ecacc3a564ffcaf31f442d38ff3d813c6c585b53 | 73d8089381b92b1965e2ac2a5f7c80d9293af2f5 | /main.py | 6a0a75f799a93f53747575c949df0934a27cee92 | [] | no_license | Fufuhu/python_movie_transcoder | b92e420bc0433676863f57c154cc2a7f3d939384 | ddce7f230c52ff532a74b1e1f5b0a5d16fa7bbaf | refs/heads/master | 2021-01-20T04:50:15.511316 | 2017-04-29T14:40:44 | 2017-04-29T14:40:44 | 89,738,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | import sys
from python_movie_transformer.ffmpeg.image_file import ImageFile
from python_movie_transformer.ffmpeg.options import ImageFileOptions
from python_movie_transformer.ffmpeg.manipulater import FFmpegManipulater
in_file = sys.argv[1]
out_file = sys.argv[2]
out_file_options = ImageFileOptions()
out_file_optio... | [
"e238058r@hotmail.co.jp"
] | e238058r@hotmail.co.jp |
55bc19097227723308c5974a0b3429268e833458 | 03bf031efc1f171f0bb3cf8a565d7199ff073f96 | /apps/splash/utils.py | 55a7485240634ae9178da8eacef57efa57c85d31 | [
"MIT"
] | permissive | emilps/onlineweb4 | a213175678ac76b1fbede9b0897c538c435a97e2 | 6f4aca2a4522698366ecdc6ab63c807ce5df2a96 | refs/heads/develop | 2020-03-30T01:11:46.941170 | 2019-05-10T19:49:21 | 2019-05-10T19:49:21 | 150,564,330 | 0 | 0 | MIT | 2019-05-10T19:49:22 | 2018-09-27T09:43:32 | Python | UTF-8 | Python | false | false | 699 | py | import icalendar
from django.utils import timezone
from apps.events.utils import Calendar
from apps.splash.models import SplashEvent
class SplashCalendar(Calendar):
def add_event(self, event):
cal_event = icalendar.Event()
cal_event.add('dtstart', event.start_time)
cal_event.add('dtend', ... | [
"hlsolbjorg@gmail.com"
] | hlsolbjorg@gmail.com |
bbb5385859b86e8e0d16e6fb2b6b59981333724f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_binaries.py | 57ef5dd6379ebd43cd7d9aa73601d47f274634a6 | [
"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 | 224 | py |
#calss header
class _BINARIES():
def __init__(self,):
self.name = "BINARIES"
self.definitions = binary
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['binary']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c39122b83132e528602a47b61c9c2da7e5a93bbb | 302442c32bacca6cde69184d3f2d7529361e4f3c | /servidores/servidor_7-nao-comitados/code2py/migra_cass_1.py | 483f945ca021c1c77c6c6c22f65b373840ff8c82 | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,202 | py |
import pycassa
from pycassa.pool import ConnectionPool
from pycassa import index
from pycassa.columnfamily import ColumnFamily
pool1 = ConnectionPool('MINDNET', ['localhost:9160'],timeout=1000000)
pool2 = ConnectionPool('MINDNET', ['213.136.81.102:9160'],timeout=1000000)
def migr(tab1,tab2,tb):
#r1=tab... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
41184d6766f09a040692ad47e6ee2ba8729e2760 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02842/s678047490.py | 06867a1e60f0fc09c8a80429d6de00e18537b2ab | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | N = int(input())
n = int(N/1.08)
while int(n*1.08) <= N:
if int(n*1.08) == N:
print(n)
break
else:
n += 1
else:
print(":(") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f73b1d1ae70592ed57aa30e7311dcf68cb0ae8bf | 691c70d88aa242ef97c2b5587de210e94854148a | /omega_miya/plugins/bilibili_dynamic_monitor/monitor.py | 0a86cf1b574a40b34b60614fd103dd63d21f19ce | [
"Python-2.0",
"MIT"
] | permissive | yekang-wu/omega-miya | bf632e28c788f06c74b61056142de23da9201282 | 53a6683fccb0618e306abe9e103cec78445f3796 | refs/heads/master | 2023-08-27T13:54:56.756272 | 2021-10-07T11:31:23 | 2021-10-07T11:31:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,673 | py | import asyncio
import random
from typing import List
from nonebot import logger, require, get_bots, get_driver
from nonebot.adapters.cqhttp import MessageSegment
from nonebot.adapters.cqhttp.bot import Bot
from omega_miya.database import DBSubscription, DBDynamic
from omega_miya.utils.bilibili_utils import BiliUser, Bi... | [
"ailitonia@gmail.com"
] | ailitonia@gmail.com |
13a1236df74a65225769b76df44b5338409bbc7a | 51af810c46774818dbc1c59712164080a3724055 | /miniflow/ops.py | 98d537fddf8e026755c4d69c60e40742361b0f13 | [
"Apache-2.0"
] | permissive | BenJamesbabala/miniflow | bf626f53d887370c5f12bec4892fe8891e62ebc1 | cd92726fc63c2ae9cb52e02a8e9771081a7253a7 | refs/heads/master | 2020-12-02T21:09:34.852835 | 2017-07-04T16:23:39 | 2017-07-04T16:23:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,807 | py | # Copyright 2017 The 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 applicable law or ... | [
"tobeg3oogle@gmail.com"
] | tobeg3oogle@gmail.com |
54dcbee3deeff946bab62193875ecf7f2be7928b | eddb3dfb5e1a0a3e58254f285c3700b45dce76d9 | /mountaintools/mlprocessors/registry.py | 959fb39fb2b78e11dd4457f64337724e13bb1063 | [
"Apache-2.0"
] | permissive | tjd2002/spikeforest2 | f2281a8d3103b3fbdd85829c176819a5e6d310d0 | 2e393564b858b2995aa2ccccd9bd73065681b5de | refs/heads/master | 2020-04-25T07:55:19.997810 | 2019-02-26T01:19:23 | 2019-02-26T01:19:23 | 172,628,686 | 0 | 0 | Apache-2.0 | 2019-02-26T03:11:27 | 2019-02-26T03:11:26 | null | UTF-8 | Python | false | false | 4,238 | py | #!/usr/bin/env python
import json
import os
import traceback
import argparse
from .execute import execute
import types
class ProcessorRegistry:
def __init__(self, processors=[], namespace=None):
self.processors = processors
self.namespace = namespace
if namespace:
for proc in... | [
"jeremy.magland@gmail.com"
] | jeremy.magland@gmail.com |
9df227dc90f6ac68fe20815bb42614b23252771e | 42cc27460f455808e251148cdbf672b04d468156 | /maya/rbRrSubmit/rbRrSubmit.py | 4d5208459d1a393a0bacb22e8a8eb8a5bdc18192 | [] | no_license | cgguo/rugbybugs | dc5f76a48bb0315ae336e8192cdad5d13b087f65 | df66aa2e3a8e38a34224627a7222d6854aa1597f | refs/heads/master | 2020-12-25T05:03:11.905437 | 2015-05-26T18:48:46 | 2015-05-26T18:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,597 | py |
#rbRrSubmit Module
#------------------------------------------------------------------
'''
Description:
Saves and submits the current scene to the rrSubmitter
'''
'''
ToDo:
'''
#Imports
#------------------------------------------------------------------
import os, sys
import maya.cmds as cmds
import pymel... | [
"wagenertimm@gmail.com"
] | wagenertimm@gmail.com |
2fd741f3bbfaaaae1940e8b8e48323a38f156a35 | aa0083936eff7afc66fdf62cb7f632e5b3f26d20 | /Implementation/Boj 10816.py | be340f087f29a435538965a4916c5b3dd5927778 | [] | no_license | b8goal/Boj | ab31a8e1a414125bb4a0eb243db7dce2dda1ed4a | b7e395191eda01427a6db8a886a5ce3c49b03abf | refs/heads/master | 2022-02-03T13:15:26.904488 | 2021-12-30T11:58:07 | 2021-12-30T11:58:07 | 161,286,778 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | a,b=0,1
for i in range(int(input())):
a,b=a+b,a
print(a) | [
"b8goal@naver.com"
] | b8goal@naver.com |
e128911fbf66839c06d7fca59b87cd5b97dee95f | cc096d321ab5c6abf54fdcea67f10e77cd02dfde | /flex-backend/pypy/translator/c/gc.py | b4dab2aed4db908b150f72af0a3e773bbbde0a49 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | limweb/flex-pypy | 310bd8fcd6a9ddc01c0b14a92f0298d0ae3aabd2 | 05aeeda183babdac80f9c10fca41e3fb1a272ccb | refs/heads/master | 2021-01-19T22:10:56.654997 | 2008-03-19T23:51:59 | 2008-03-19T23:51:59 | 32,463,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,221 | py | import sys
from pypy.translator.c.support import cdecl
from pypy.translator.c.node import ContainerNode
from pypy.rpython.lltypesystem.lltype import \
typeOf, Ptr, ContainerType, RttiStruct, \
RuntimeTypeInfo, getRuntimeTypeInfo, top_container
from pypy.rpython.memory.gctransform import \
refcounting, bo... | [
"lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d"
] | lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d |
eb3ad9c31d3ebfe873ad9cae4a6722addf5dd306 | 946111147d7e3c2e9bc75f41e2c1fccaa365ae2d | /EdgeDetector.py | cfa70d7d305fe923db485f288522b479b83e557c | [
"MIT"
] | permissive | Sid2697/Image-Processing | 3c779c2be82e430f2f207ef2fc9d134dc0400196 | d25628d9b90e238b1df0881ec55359c41692ebbb | refs/heads/master | 2021-04-29T17:45:35.239800 | 2018-02-15T20:23:34 | 2018-02-15T20:23:34 | 121,676,811 | 2 | 0 | MIT | 2018-02-15T20:23:35 | 2018-02-15T20:06:34 | Python | UTF-8 | Python | false | false | 284 | py | import cv2
import numpy as np
cap=cv2.VideoCapture(0)
while True:
_,frame = cap.read()
Black=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
edges=cv2.Canny(frame,100,130)
cv2.imshow('Edges',edges)
if cv2.waitKey(2) & 0xFF == ord(' '):
break
cv2.destroyAllWindows()
cap.release()
| [
"noreply@github.com"
] | Sid2697.noreply@github.com |
f965f55a5bd74cc12296683f04052d1b179291c4 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_jostles.py | e3ce9b04d14de25bb110e8ff39d95f207397bd36 | [
"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 | 222 | py |
#calss header
class _JOSTLES():
def __init__(self,):
self.name = "JOSTLES"
self.definitions = jostle
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['jostle']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
61f5914638bc300b27e0e1bbddc6ba9a4dfdcc4a | 967de4753954f8a7988446c9edc5fbb14e3013a5 | /conf/wsgi.py | b98642582f06de1bf7b21bac19ed12f6c73a3ef8 | [
"MIT"
] | permissive | uktrade/directory-ui-verification | 20e199c9f4da180d82328a26f306f382736f10e1 | e95b0e51c23ac2b79c8fab8b40cbc30808e3ea47 | refs/heads/master | 2020-03-18T11:34:07.562385 | 2018-06-18T11:13:53 | 2018-06-18T11:13:53 | 134,679,321 | 0 | 0 | MIT | 2018-06-18T11:13:54 | 2018-05-24T07:39:17 | Python | UTF-8 | Python | false | false | 494 | py | """
WSGI config for directory-verification 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.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.djang... | [
"rikatee@gmail.com"
] | rikatee@gmail.com |
a2b3aac32895d4ae785523f896686c3d758b2889 | 9f9f4280a02f451776ea08365a3f119448025c25 | /plans/hsppw/qcut_hsp-l_005_pwcc_linear_hs.py | 77e7cf7c8225054e48851cd9a3b74fcb28338848 | [
"BSD-2-Clause"
] | permissive | dbis-uibk/hit-prediction-code | 6b7effb2313d2499f49b2b14dd95ae7545299291 | c95be2cdedfcd5d5c27d0186f4c801d9be475389 | refs/heads/master | 2023-02-04T16:07:24.118915 | 2022-09-22T12:49:50 | 2022-09-22T12:49:50 | 226,829,436 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | """Plan using all features."""
import os.path
from dbispipeline.evaluators import CvEpochEvaluator
from sklearn.linear_model import LinearRegression
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler
import hit_prediction_code.common as common
from hit_prediction_code.dataloaders imp... | [
"mikevo-uibk@famv.net"
] | mikevo-uibk@famv.net |
849c7944c6f42de4793f349e57f2d1419d86a881 | 7361493342853a2bd9a3225eb71819c3cfd39985 | /python-numpy-to-cnn/Momentum.py | 7989051e0e6a566f7ee4e8fd25fac6a1921d6eef | [] | no_license | brightparagon/learn-machine-learning | 234df2c1298f9d0a34b0db010d9f870f97f1b867 | 3e6fe095d416317b97827615dbb7aa538261d117 | refs/heads/master | 2021-05-01T10:45:55.661458 | 2018-05-26T15:54:45 | 2018-05-26T15:54:45 | 121,107,145 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | import numpy as np
class Momentum:
def __init__(self, lr=0.01, momentum=0.9):
self.lr = lr
self.momentum = momentum
self.v = None
def update(self, params, grads):
if self.v is None:
self.v = {}
for key, val in params.items():
self.v[key] = np.zeros_like(val)
for key in par... | [
"kyeongmo2@gmail.com"
] | kyeongmo2@gmail.com |
e91e8d0a0d428aa8bb747635a2c022adadbd95bc | 9ac405635f3ac9332e02d0c7803df757417b7fee | /cotizaciones/migrations/0076_cotizacionpagoproyectadoacuerdopago_motivo.py | d72a7ebf5cd297d779fd188093e3930c7e98020e | [] | no_license | odecsarrollo/07_intranet_proyectos | 80af5de8da5faeb40807dd7df3a4f55f432ff4c0 | 524aeebb140bda9b1bf7a09b60e54a02f56fec9f | refs/heads/master | 2023-01-08T04:59:57.617626 | 2020-09-25T18:01:09 | 2020-09-25T18:01:09 | 187,250,667 | 0 | 0 | null | 2022-12-30T09:36:37 | 2019-05-17T16:41:35 | JavaScript | UTF-8 | Python | false | false | 475 | py | # Generated by Django 2.2.6 on 2020-07-29 19:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cotizaciones', '0075_auto_20200729_1345'),
]
operations = [
migrations.AddField(
model_name='cotizacionpagoproyectadoacuerdopago... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
def10769c95cfd6a081ef74f1f9c3574746eb34b | a4830a0189c325c35c9021479a5958ec870a2e8b | /routing/signals.py | c84cfbc1a8c76acc691ca275dec3a812c4b8c014 | [] | no_license | solutionprovider9174/steward | 044c7d299a625108824c854839ac41f51d2ca3fd | fd681593a9d2d339aab0f6f3688412d71cd2ae32 | refs/heads/master | 2022-12-11T06:45:04.544838 | 2020-08-21T02:56:55 | 2020-08-21T02:56:55 | 289,162,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Python
import datetime
# Django
from django.db.models.signals import post_save
from django.dispatch import receiver
# Application
from routing import models
@receiver(post_save, sender=models.Record)
def route_post_save(sender, **kwargs):
instance = kwargs['instance']
instance.route.numbers.all().update(m... | [
"guangchengwang9174@yandex.com"
] | guangchengwang9174@yandex.com |
06565d34f279d486d103d05a7560479d58d6a764 | 45eb50864138759adbcc7f8d9742c9f6c8102604 | /remind_me/services/ping.py | 1903aa1947bed8b5c31a86dd4b5ce54fa8521f32 | [] | no_license | bbelderbos/remind_me | bc8df4b24f701bb96edf336f9b310ee43dbbd9b4 | d432d4fb9632aa9531ee6e101f80de233d97ce56 | refs/heads/master | 2023-08-29T06:39:08.127091 | 2021-04-28T17:51:44 | 2021-04-28T17:51:44 | 409,145,017 | 0 | 0 | null | 2021-09-22T09:40:07 | 2021-09-22T09:40:06 | null | UTF-8 | Python | false | false | 1,066 | py | from datetime import datetime, timedelta
import requests
from apscheduler.schedulers.background import BackgroundScheduler
from dateutil.parser import parse
from remind_me.data import db_session
from remind_me.data.events import Events
from remind_me.schedule_jobs import timezones
from remind_me.sms import send
sche... | [
"jbrink0925@gmail.com"
] | jbrink0925@gmail.com |
5647ac16de076973951bdb0f0c028435874b9b27 | 5b40c6df03e477f3109fda9dc9b15a347df6c2ca | /ch04_bayes/monoDemo.py | bbd883492c4566a90337f9ee56d6ff09de3171b9 | [] | no_license | yphacker/machinelearninginaction | e40dfebd4634fd8fa48473c497ce5c9184cd6513 | 886a86e0cb1f5e61828774d4337cd08d2b2c54ed | refs/heads/master | 2020-03-28T02:09:38.090126 | 2019-12-06T11:54:25 | 2019-12-06T11:54:25 | 147,551,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # coding=utf-8
# author=yphacker
from numpy import *
import matplotlib
import matplotlib.pyplot as plt
t = arange(0.0, 0.5, 0.01)
s = sin(2*pi*t)
logS = log(s)
fig = plt.figure()
ax = fig.add_subplot(211)
ax.plot(t,s)
ax.set_ylabel('f(x)')
ax.set_xlabel('x')
ax = fig.add_subplot(212)
ax.plot(t,logS)
ax.set_ylabel('... | [
"yphacker@163.com"
] | yphacker@163.com |
a1606ca7c6c07c8ac5fa8713cd5d9e1a21a4b4d0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/96/usersdata/218/52922/submittedfiles/estatistica.py | ee08c21d7372d72bf781c64fa80059a6fcfa769b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # -*- coding: utf-8 -*-
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
resultado = soma/len(lista)
return resultado
#Baseado na função acima, escreva a função para calcular o desvio padrão de uma lista
def desvio(lista):
soma=0
for i in range(0,len(l... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4bb8a72949aeb629e53475884686f226216061d6 | 45560786af3eddd0a538edcbf3027bd688b9a763 | /wed2/wed2/wsgi.py | 9cb3ca2445f8dfd3fc744d7fb89317e7fc684f08 | [] | no_license | MunSeoHee/gachonlikelion8th | 9c1d2470fcf27b87558c933afd14c1c748cb6ff6 | 9eff4a10e09764ac7ae6d6156f6b6c81eac4f2da | refs/heads/master | 2023-03-31T05:57:50.094402 | 2020-08-18T09:53:50 | 2020-08-18T09:53:50 | 273,183,296 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for wed2 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"58267660+immaruel@users.noreply.github.com"
] | 58267660+immaruel@users.noreply.github.com |
fd892f61cc3cebc966b6d92a58fa0b4f1b3e556f | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/safezone/DistributedDLTreasure.py | 1eebfe55516411c19e8b8c7a936f73b8fe62096a | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 333 | py | import DistributedSZTreasure
class DistributedDLTreasure(DistributedSZTreasure.DistributedSZTreasure):
def __init__(self, cr):
DistributedSZTreasure.DistributedSZTreasure.__init__(self, cr)
self.modelPath = 'phase_8/models/props/zzz_treasure'
self.grabSoundPath = 'phase_4/audio/sfx/SZ_DD_t... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
1a8c7ee320b8aa83c9b60017f7c089b22d17f1f6 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/iam/service_accounts/get_iam_policy.py | b17087b6af89786547df27eda790cbdb2de1bd61 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 2,191 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google Inc. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
457b1a12a0a97fa73a7741275fd78efe40fc3593 | 00b762e37ecef30ed04698033f719f04be9c5545 | /scripts/test_results/keras_test_results/conflicts/22_convolutional_actual.py | 558cdd4d8b8eeeea857b7fd396dcb456440dc194 | [] | no_license | kenji-nicholson/smerge | 4f9af17e2e516333b041727b77b8330e3255b7c2 | 3da9ebfdee02f9b4c882af1f26fe2e15d037271b | refs/heads/master | 2020-07-22T02:32:03.579003 | 2018-06-08T00:40:53 | 2018-06-08T00:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,277 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import theano
import theano.tensor as T
from theano.tensor.signal import downsample
from .. import activations, initializations, regularizers, constraints
from ..utils.theano_utils import shared_zeros, on_gpu
from ..layers.core import Layer
if on_gpu():
... | [
"srhee4@cs.washington.edu"
] | srhee4@cs.washington.edu |
cc15763bac4ad87f4375500cf02cf860c4a57dec | ecd4b06d5d5368b71fd72a1c2191510a03b728fd | /8 - statistical thinking in python - part 1/quantitative exploratory data analysis/computing the ECDF.py | 2ed8e62c2f0144dda23cca03c57322c98d0e5f72 | [
"MIT"
] | permissive | Baidaly/datacamp-samples | 86055db5e326b59bfdce732729c80d76bf44629e | 37b4f78a967a429e0abca4a568da0eb9d58e4dff | refs/heads/master | 2022-07-27T01:18:00.700386 | 2022-07-18T19:27:23 | 2022-07-18T19:27:23 | 123,827,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | '''
In this exercise, you will write a function that takes as input a 1D array of data and then returns the x and y values of the ECDF. You will use this function over and over again throughout this course and its sequel. ECDFs are among the most important plots in statistical analysis. You can write your own function,... | [
"daulet.urazalinov@uptake.com"
] | daulet.urazalinov@uptake.com |
990da7948f16010dbffcd011ca083b1ea177b02e | fed6c6bdb6276d195bc565e527c3f19369d22b74 | /test/multi_shear.py | 39dd5a7acffb39105c56fd9dc77b27df6c74ef91 | [] | no_license | hekunlie/astrophy-research | edbe12d8dde83e0896e982f08b463fdcd3279bab | 7b2b7ada7e7421585e8993192f6111282c9cbb38 | refs/heads/master | 2021-11-15T05:08:51.271669 | 2021-11-13T08:53:33 | 2021-11-13T08:53:33 | 85,927,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | import numpy
import os
from sys import path,argv
path.append("E:/Github/astrophy-research/my_lib")
from Fourier_Quad import Fourier_Quad
import tool_box
import time
from astropy.io import fits
import matplotlib.pyplot as plt
import h5py
rng = numpy.random.RandomState(123)
fq = Fourier_Quad(12,122)
bin_num = 20
gh_nu... | [
"hekun_lee@sjtu.edu.cn"
] | hekun_lee@sjtu.edu.cn |
994ed213b18ce3f3062cdf14bd95b41d0758b7f6 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/behavioral/test_observer.py | 821f97a61aa7a46e2b10c705af230637a92179e0 | [
"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 | 876 | py | from unittest.mock import Mock, patch
import pytest
from patterns.behavioral.observer import Data, DecimalViewer, HexViewer
@pytest.fixture
def observable():
return Data("some data")
def test_attach_detach(observable):
decimal_viewer = DecimalViewer()
assert len(observable._observers) == 0
observ... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
4bcf70c72206f3613479dcdf9297012a0979000b | 099b57613250ae0a0c3c75cc2a9b8095a5aac312 | /leetcode/Tree/235. 二叉搜索树的最近公共祖先.py | 1acbf0c219561464eeeca8a6ce5a098e67523a47 | [] | no_license | MitsurugiMeiya/Leetcoding | 36e41c8d649b777e5c057a5241007d04ad8f61cd | 87a6912ab4e21ab9be4dd6e90c2a6f8da9c68663 | refs/heads/master | 2022-06-17T19:48:41.692320 | 2020-05-13T16:45:54 | 2020-05-13T16:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | """
Given a binary search tree (BST), find the lowest common ancestor (LCA)最小公共祖先
of two given nodes in the BST.
"""
class Solution(object):
def lowestCommonAncestor(self, root, p, q):
"""
:type root: TreeNode
:type p: TreeNode
:type q: TreeNode
:rtype: TreeNode
"""... | [
"yifu3@ualberta.ca"
] | yifu3@ualberta.ca |
79f3fc754229d3f7b6c4f441ef53015c1b039e64 | b595a24b07662a89826a1b6d334dfcaa3ec1c4b0 | /venv/lib/python3.6/site-packages/storages/backends/mogile.py | d6194194368306a8bb32dfed8b8bdf42f24f7c91 | [
"CC0-1.0"
] | permissive | kentarofujiy/base1 | 4629b638f96b3ed091ea695c81b3b7837af1ec79 | f820b9b379cda86ca5b446c63800fbe4bb8f3bce | refs/heads/master | 2021-07-13T02:06:01.371773 | 2017-03-11T12:43:19 | 2017-03-11T12:43:19 | 84,649,225 | 0 | 1 | CC0-1.0 | 2020-07-26T01:08:25 | 2017-03-11T12:43:32 | Python | UTF-8 | Python | false | false | 4,079 | py | from __future__ import print_function
import mimetypes
import warnings
from django.conf import settings
from django.core.cache import cache
from django.utils.deconstruct import deconstructible
from django.utils.text import force_text
from django.http import HttpResponse, HttpResponseNotFound
from django.core.exceptio... | [
"Kentaro@Kentaros-MacBook-Pro.local"
] | Kentaro@Kentaros-MacBook-Pro.local |
7ab2153783df2bde81ef89f4762af1316f8b3a5c | 6ef3b1919e7acbc72e5706b2dc6d716f8929e3d2 | /transformers/commands/convert.py | 8c3f952f4a73fb49cf88b2f47e54fcb22282ebb7 | [
"MIT"
] | permissive | linshaoxin-maker/taas | 04f7dcc7c0d2818718e6b245531e017ca5370231 | 34e11fab167a7beb78fbe6991ff8721dc9208793 | refs/heads/main | 2023-01-19T20:58:04.459980 | 2020-11-27T02:28:36 | 2020-11-27T02:28:36 | 329,522,465 | 6 | 0 | MIT | 2021-01-14T06:02:08 | 2021-01-14T06:02:07 | null | UTF-8 | Python | false | false | 7,151 | py | from argparse import ArgumentParser, Namespace
from transformers.commands import BaseTransformersCLICommand
from ..utils import logging
def convert_command_factory(args: Namespace):
"""
Factory function used to convert a model TF 1.0 checkpoint in a PyTorch checkpoint.
:return: ServeCommand
"""
... | [
"czh097@gmail.com"
] | czh097@gmail.com |
87cb1e514667d13033ff73c89aa8f2625c17fd15 | b2260e6588f60f0830248757a858be8c129350f4 | /QLabel img.py | c876389f8ade045218cc263cac41cfe34549d9d6 | [] | no_license | nengkya/PyQt | 1fe04aeb23532f4a5b92248a3414ac000d41d078 | 06068556348c6906198d4db7efc979889263fd56 | refs/heads/master | 2023-02-08T01:10:20.970167 | 2023-01-20T18:03:57 | 2023-01-20T18:03:57 | 105,175,866 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | import sys
#from PyQt5.QtGui import *
#from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
class MainForm(QWidget):
def __init__(self):
super().__init__()
self.setupUi()
def setupUi(self):
self.resize(400, 200)
self.move(300, 300)
self.setWindowTitle('Demo QLabel')... | [
"you@example.com"
] | you@example.com |
53dd9814341ea2b91a56c29803edfa507a2eaf25 | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/conv3dsigmoid_11.py | 5c9ca5cdb81a4e3052630d571bc92b9b040cf256 | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 1,460 | py | # -*- coding: utf-8 -*-
"""
conv3dsigmoid_11.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class Conv3dSigmoid_11(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Conv3d(in_channels=1, out_channels=12, ke... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
203728418ef83b30a6c1a44c18db32698264f957 | e68c3cbb9d6291fcdd51adae8a55616dcfafe55c | /spf/parser/ccg/cky/chart/cell.py | e6c2ec2917c119fdfa78536df3e673831ccf333b | [] | no_license | Oneplus/pyspf | 26126f5094065960d5f034fea2be4709aa1a4c50 | 175f90b4f837aa60fd660cba850d10a82dd578a1 | refs/heads/master | 2016-08-12T15:18:25.606712 | 2015-11-22T02:49:07 | 2015-11-22T02:49:07 | 45,725,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #!/usr/bin/env python
from spf.utils.log import get_logger
class Cell(object):
LOG = get_logger(__name__)
def __init__(self, parse_step, start, end, is_complete_span):
"""
:param CKYParseStepI parse_step:
:param int start:
:param int end:
:param bool is_complete_span:... | [
"oneplus.lau@gmail.com"
] | oneplus.lau@gmail.com |
c53065dc8d2be291b77cd95ecce9adf660a7552e | a0dbc48f31cf3fbddd3cc7672cf3db415cb391c4 | /compiler/datasheet/__init__.py | 369ba8feafaf111065bcf9505df5044d9a93ff82 | [
"BSD-3-Clause"
] | permissive | wangyaobsz/OpenRAM | 4178ef93816b233bac0aaecc580e2cbd235ac39d | 0d616ae072e6c42a0d8a006eebc681408502e956 | refs/heads/master | 2022-08-23T07:51:39.745708 | 2022-07-21T16:37:24 | 2022-07-21T16:37:24 | 113,813,373 | 1 | 0 | null | 2017-12-11T04:47:53 | 2017-12-11T04:47:52 | null | UTF-8 | Python | false | false | 41 | py | from .datasheet_gen import datasheet_gen
| [
"mrg@ucsc.edu"
] | mrg@ucsc.edu |
0a58b79c5071070e9cbe7f8dc945427cbf48c695 | fea10afefd89f5138a57fd4d6ac1a87844cf6e7c | /robocrys/condense/component.py | 98ff05f3b524ef9f9e298c3ed5fd346b31066453 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-hdf5",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | mukhtarbayerouniversity/robocrystallographer | ed192898acb60b7f18af4740cbf1524a2865bb79 | 11b39bfac157624d84d704dd4e7602e76b45a5b9 | refs/heads/main | 2023-06-12T16:23:00.260579 | 2021-07-05T18:12:35 | 2021-07-05T18:12:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,425 | py | """
This module implements functions for handling structure components.
"""
from copy import deepcopy
from typing import Any, Dict, List, Tuple
import networkx as nx
import numpy as np
from monty.fractions import gcd
from pymatgen.analysis.structure_matcher import StructureMatcher
from pymatgen.core.composition import... | [
"alexganose@googlemail.com"
] | alexganose@googlemail.com |
6fc0344b9b9c4a260c80ee9f7f61a9f1d948ca1e | 40d371136f2d7de9c95bfe40fd3c0437095e9819 | /build/rbx1/rbx1_nav/catkin_generated/pkg.develspace.context.pc.py | a74ba9f55c2c3dd4d7c607c520ce9e56cd9b59fa | [] | no_license | marine0131/ros_ws | b4e6c5cf317260eaae1c406fb3ee234b3a3e67d5 | 6ddded3a92a717879bb646e7f2df1fea1a2d46b2 | refs/heads/master | 2021-07-05T06:29:43.054275 | 2017-09-28T08:29:14 | 2017-09-28T08:29:14 | 100,458,679 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/whj/catkin_ws/devel/include".split(';') if "/home/whj/catkin_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "dynamic_reconfigure".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = ""... | [
"wanghj@woosiyuan.com"
] | wanghj@woosiyuan.com |
4ab744495bdd71914089b3fabd09162e9ee06ce5 | 4c77c3f68ddd280ad26ed78a9f4927ff9eb5e1f1 | /src/ledger/lib/python2.7/site-packages/pip/_internal/commands/freeze.py | ac562d7d84b626944ef398efbea2d4f93b40da0b | [
"MIT"
] | permissive | neoscoin/neos-core | 5f4a4e9fcdf13a21d1dbedfc7c01a8a8ba454a98 | 22cecda54875e3554e7c2a4569551c042fa6c0a2 | refs/heads/master | 2020-03-23T18:54:58.602764 | 2019-08-04T16:44:27 | 2019-08-04T16:44:27 | 141,940,658 | 4 | 4 | MIT | 2018-07-28T21:39:26 | 2018-07-23T00:05:03 | C++ | UTF-8 | Python | false | false | 3,320 | py | from __future__ import absolute_import
import sys
from pip._internal import index
from pip._internal.basecommand import Command
from pip._internal.cache import WheelCache
from pip._internal.compat import stdlib_pkgs
from pip._internal.operations.freeze import freeze
DEV_PKGS = {'pip', 'setuptools', 'distri... | [
"kris@blockchaindatasystems.com"
] | kris@blockchaindatasystems.com |
0e888f3c5656339bfcd90422c0e0e3b11133b3ef | c94662c1c58f4b75e01195da6e2446993eada579 | /core/cooggerapp/signals/__init__.py | 96b341230d38d951150ab6786ad691283328fec6 | [
"MIT"
] | permissive | ozcanyarimdunya/coogger | e8f74ac215630473f88b612e6c236bd5441b32a8 | 832b9af196cf68917dabaa5b9c5ab0b80725ca6e | refs/heads/master | 2020-07-12T03:59:41.928819 | 2019-08-27T08:33:09 | 2019-08-27T08:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from .topic import when_utopic_create, increase_utopic_view
from .userextra import follow_and_repos_update, create_userprofile, send_mail_to_follow
from .issue import when_issue_delete, issue_counter
from .content import when_content_delete, when_content_create
from .commit import when_commit_create
| [
"hakancelik96@outlook.com"
] | hakancelik96@outlook.com |
851aede55bcaefdea7999c415c35cdc90ce4b200 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/2808. Minimum Seconds to Equalize a Circular Array/2808.py | 5390dcc57938a36fa03a978735ee042ecbc01463 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 622 | py | class Solution:
def minimumSeconds(self, nums: List[int]) -> int:
n = len(nums)
ans = n
numToIndices = collections.defaultdict(list)
for i, num in enumerate(nums):
numToIndices[num].append(i)
def getSeconds(i: int, j: int) -> int:
"""Returns the number of seconds required to make num... | [
"me@pengyuc.com"
] | me@pengyuc.com |
11a1ce5dc526b7604a7b8b1257f22f55b26ae5e1 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_noisy383.py | 552ed9b1b74d4b568697c570d633b3c387234b8a | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=17
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5c491fba4b421a9a4742e951f5c6d9f00279d088 | 88d8eed7081167bf5f81766dc5758ea4074eb9e5 | /opt2q_examples/cell_death_data_calibration/calibration_fixed_measurement_model_p9_pysb_timout_arg.py | 7be59c473e49651616e8b3bb052ae553721a3e2a | [] | no_license | michael-irvin/Opt2Q | e28ee272dc1630f1f1cbc6ef2692888d9a09b6b2 | 58c18fd7ecab11857ce386202f13a8586c329836 | refs/heads/master | 2023-04-20T00:12:09.985042 | 2021-05-15T06:20:27 | 2021-05-15T06:20:27 | 143,816,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,691 | py | import numpy as np
import datetime as dt
from scipy.stats import norm, invgamma
from pydream.core import run_dream
from pydream.convergence import Gelman_Rubin
from pydream.parameters import SampledParam
from multiprocessing import current_process
from opt2q.calibrator import objective_function
from opt2q_examples.cell... | [
"michael.w.irvin@vanderbilt.edu"
] | michael.w.irvin@vanderbilt.edu |
07a4523135d60b04ed51747157c9e44b0f036a7f | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/Products.CMFQuickInstallerTool-3.0.5-py2.7.egg/Products/CMFQuickInstallerTool/tests/test_install.py | 159fd3c8b974543f139c8c6551b4c3dc743d10b2 | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | import doctest
import unittest
from Products.CMFTestCase import CMFTestCase
from Products.GenericSetup import EXTENSION, profile_registry
from Testing.ZopeTestCase import FunctionalDocFileSuite as Suite
CMFTestCase.installProduct('CMFQuickInstallerTool')
CMFTestCase.installProduct('CMFCalendar')
CMFTestCase.setupCMF... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
a0ae43e473fed201713fb7ef16cd61bf0708f846 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /zqr6f8dRD84K8Lvzk_3.py | cf260be9367695b002d1e201a20f2264da1b9dae | [] | 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,722 | py | """
As stated on the [On-Line Encyclopedia of Integer
Sequences](https://oeis.org/A003215):
> The hexagonal lattice is the familiar 2-dimensional lattice in which each
> point has 6 neighbors.
A **centered hexagonal number** is a centered figurate number that represents
a hexagon with a dot in the center and all o... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
654481ab224a9394d1a33536a5456ad7582ecd1a | c6070314ce23ede0f7b10cf3a4126b3575909e57 | /canvas2nbgrader.py | 5248ec5c33aa093d864dec72c8d1e31de970075e | [] | no_license | vahtras/canvas2nbgrader | b4615b49c4ebdd041a3a91d9be6d4c2fd7275349 | b880e478b9c98c9976005df63620a264d257d134 | refs/heads/master | 2020-03-08T10:40:08.219057 | 2018-04-04T19:13:24 | 2018-04-04T19:13:24 | 128,078,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #!/usr/bin/env python
"""Import student id from Canvas (Exported Grade table)"""
import sys
import csv
def get_records(csv_file):
return list(csv.DictReader(csv_file))
def split_names(records):
new = []
for r in records:
s = r['Student']
if s == 'Studenttest' or s.strip() == 'Points Possib... | [
"vahtras@kth.se"
] | vahtras@kth.se |
e2840943beaeff8e715d3e36a75da31ff4fa3a26 | fb3b5ec37b2a56f1170cd750e1e30fce9a6dc125 | /test2020013004_dev_1562/urls.py | 57cd70ddd1e5bbfefbda3653605aa9b87e7edcd1 | [] | no_license | crowdbotics-apps/test2020013004-dev-1562 | cd3d2b88cbf6c0172ddb80bced1dcfa8a1843098 | a2bea260fe854574ffd38315a88953560bb335f2 | refs/heads/master | 2022-04-02T18:38:24.481241 | 2020-02-05T22:41:23 | 2020-02-05T22:41:23 | 237,356,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | """test2020013004_dev_1562 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='ho... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
61e0747aab767e96bb13632b74f3de7fa9282af3 | e146d44875fb44a13b3b004604694bccaa23ddf2 | /docs/Amadeus-master/pactravel-master/swagger_client/models/flight_search_bound.py | 5fd17c599197fd7743dbc3b5a7ee7b5989daf56d | [] | no_license | shopglobal/travel | 8d959b66d77f2e1883b671628c856daf0f3b21bb | 0c33467cd2057da6e01f9240be2fd4b8f5490539 | refs/heads/master | 2022-12-23T00:13:02.597730 | 2017-09-26T06:03:15 | 2017-09-26T06:03:15 | 104,405,869 | 0 | 0 | null | 2022-12-08T00:35:36 | 2017-09-21T22:43:23 | PHP | UTF-8 | Python | false | false | 3,993 | py | # coding: utf-8
"""
Amadeus Travel Innovation Sandbox
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 1.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import ... | [
"president@worldvaporexpo.com"
] | president@worldvaporexpo.com |
de52fcf01c00c0c8c33658cec50f0c1df04688f3 | 32eba552c1a8bccb3a329d3d152b6b042161be3c | /9_pj_mcw.pyw | 3ed748fdabe7367b51ed1ef4ff3088848476a0c4 | [] | no_license | ilmoi/ATBS | d3f501dbf4b1099b76c42bead3ec48de3a935a86 | 7f6993751e2ad18af36de04168d32b049d85a9c1 | refs/heads/master | 2022-07-11T21:56:23.284871 | 2020-05-15T05:26:06 | 2020-05-15T05:26:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | pyw | import pyperclip
import sys
import shelve
# uncomment and run once!
# TEXT = {'agree': """Yes, I agree. That sounds fine to me.""",
# 'busy': """Sorry, can we do this later this week or next week?""",
# 'upsell': """Would you consider making this a monthly donation?"""}
# file =shelve.open('phrase_db')... | [
"iljamoisejevs@gmail.com"
] | iljamoisejevs@gmail.com |
b99eaded4ce9e40c473b322f7ef3d19ceb146945 | 3299ee49e292fc5f4a0f1c0e364eb27cd539521a | /lesson_33_homework/test_site/Articles/views.py | 0ae598994470e23fd2cc65f5fba238d2c49aba5f | [] | no_license | alexeypodorozhnyi/Python_course_django_part | 5258db76b5ca0592ed62f1d2d7a5bf8f80353bf1 | 9b51531f8b2d042210797c707d5f38b398897977 | refs/heads/master | 2020-11-26T01:52:13.467747 | 2020-01-29T20:55:23 | 2020-01-29T20:55:23 | 228,926,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from django.http import HttpResponse
from django.shortcuts import render
class MyClass:
string = ''
def __init__(self, s):
self.string = s
def index(request):
my_list = [1,2,3,4,5,6]
return render(request, 'index.html', {
'my_list': my_list
})
def new(request):
return Htt... | [
"alexey.podorozniy@gmail.com"
] | alexey.podorozniy@gmail.com |
a8efba78448b1dc04d5429185122c8a008f4251c | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/tsai90k/dnn-titanic/dnn-titanic.py | 05f82ff728e796c5618951fe9f09ab2533515609 | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,685 | py | #!/usr/bin/env python
# coding: utf-8
# ## Setup environment
# In[ ]:
# This Python 3 environment comes with many helpful analytics libraries installed
# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python
# For example, here's several helpful packages to load in
import numpy ... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
a88b2e2e2cbe66502e17b460f6c306fee092a54e | 660e87488effa7f3e6c043cf45a11bc59b31a1e9 | /setup.py | 59eae9dd4f0ecf542ee3dfeaa1513f436fa1a424 | [] | no_license | bramwelt/alabaster | df967aa165ea15678cce0b960d2993cff058c697 | 65876483837ecdd4e6798b4a5c5b1842f598f4f2 | refs/heads/master | 2021-01-17T15:48:51.117359 | 2014-01-01T03:07:10 | 2014-01-01T03:07:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | #!/usr/bin/env python
from setuptools import setup
# Version info -- read without importing
_locals = {}
with open('alabaster/_version.py') as fp:
exec(fp.read(), None, _locals)
version = _locals['__version__']
setup(
name='alabaster',
version=version,
description='A configurable sidebar-enabled Sphi... | [
"jeff@bitprophet.org"
] | jeff@bitprophet.org |
a0f34dfff064add39a5a0e2c24fef9d5508e159a | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/schcha027/question2.py | 592328ec8d41a424a62af6a489e967d7653733b3 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | hours=eval(input("Enter the hours:\n"))
minutes=eval(input("Enter the minutes:\n"))
seconds=eval(input("Enter the seconds:\n"))
if 0<=hours<=23:
checkH=1
else:
checkH=0
if 0<=minutes<=59:
checkM=1
else:
checkM=0
if 0<=seconds<=59:
checkS=1
else:
checkS=0
#print("H: ",checkH , ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
2c4948d9b6fb6d08543014d62e1eec37adfb6f85 | 4dbe3b1b2af3ff77e8086ec32ab58dcf47849a3e | /dynamo3/connection.py | 51e7dfcbb584766f04e06a7e9a35022cfd55775a | [
"MIT"
] | permissive | mnpk/dynamo3 | b83dc700345972ea2336ac8ca842fd9f23edf5c2 | 51eacee60bdf8d058831a9ab3583a2cfe9f91ca9 | refs/heads/master | 2021-01-16T21:54:32.089114 | 2016-04-30T00:53:55 | 2016-04-30T00:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,842 | py | """ Connection class for DynamoDB """
from contextlib import contextmanager
import time
import warnings
import botocore.session
import six
from botocore.exceptions import ClientError
from .batch import BatchWriter, encode_query_kwargs
from .constants import NONE, COUNT, INDEXES, READ_COMMANDS
from .exception import t... | [
"stevearc@stevearc.com"
] | stevearc@stevearc.com |
b17e57c7ad95e495e68871a72f53d9b3fa51a4f5 | bf5dcdc1cb57ed72a47e0c444bb2fb631d3f0933 | /setup.py | 3d40c4fdc4479440f3c1e2913596de9a253375ae | [] | no_license | vphpersson/twitter_osint | 3e2128f1d9944053ee127ec748a56ede55cefcac | a437825d488afa2d5b15c221348cc72157f25227 | refs/heads/master | 2023-07-05T08:44:29.579442 | 2021-08-22T09:12:28 | 2021-08-22T09:12:28 | 398,564,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from setuptools import setup, find_packages
setup(
name='twitter_osint',
version='0.1',
packages=find_packages(),
install_requires=[
'httpx',
'httpx_oauth @ git+ssh://git@github.com/vphpersson/httpx_oauth.git#egg=httpx_oauth',
'pyutils @ git+ssh://git@github.com/vphpersson/pyuti... | [
"vph.persson@gmail.com"
] | vph.persson@gmail.com |
893741290acaa4737579c1cfb54e07484866c834 | 70b0d4b4440a97b648a08de0d89cc536e8f4c569 | /1313.py | 69aedd9d90dbd61fabe97a8b396f434ba1868c40 | [] | no_license | seoseokbeom/leetcode | 01c9ca8a23e38a3d3c91d2de26f0b2a3a1710487 | 9d68de2271c2d5666750c8060407b56abbf6f45d | refs/heads/master | 2023-03-27T20:20:24.790750 | 2021-03-25T04:43:50 | 2021-03-25T04:43:50 | 273,779,517 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | class Solution(object):
def decompressRLElist(self, nums):
freq = 0
arr = []
for i, v in enumerate(nums):
if i % 2 == 0:
freq = nums[i]
else:
arr.extend(([nums[i]]*freq))
return arr
a = Solution()
print(a.decompressRLElist([1,... | [
"pronunciatio@naver.com"
] | pronunciatio@naver.com |
1d8792acf20db18580b85389fa2d5f8108a2d512 | b3e9a8963b9aca334b93b95bc340c379544e1046 | /euler/59.py | eab411b4784038d836ba37febc29bd02a82d47d8 | [] | no_license | protocol7/euler.py | 86ea512c2c216968e6c260b19469c0c8d038feb7 | e2a8e46a9b07e6d0b039a5496059f3bf73aa5441 | refs/heads/master | 2022-09-08T22:49:47.486631 | 2022-08-23T20:07:00 | 2022-08-23T20:07:00 | 169,478,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | #!/usr/bin/env python3
from string import ascii_lowercase
from itertools import permutations, cycle
def read_cipher():
with open("p059_cipher.txt") as f:
s = f.read().strip()
return [int(i) for i in s.split(",")]
c = read_cipher()
def to_string(l):
return "".join([chr(x) for x in l])
def fi... | [
"niklas@protocol7.com"
] | niklas@protocol7.com |
010cfa1c616d88a8f9af32b2216f527d47fe7ef3 | dd3b8bd6c9f6f1d9f207678b101eff93b032b0f0 | /basis/AbletonLive10.1_MIDIRemoteScripts/ableton/v2/control_surface/elements/optional.py | f4cef1c4ec91e78d8434b687f1a2ab8f8b7de8ca | [] | no_license | jhlax/les | 62955f57c33299ebfc4fca8d0482b30ee97adfe7 | d865478bf02778e509e61370174a450104d20a28 | refs/heads/master | 2023-08-17T17:24:44.297302 | 2019-12-15T08:13:29 | 2019-12-15T08:13:29 | 228,120,861 | 3 | 0 | null | 2023-08-03T16:40:44 | 2019-12-15T03:02:27 | Python | UTF-8 | Python | false | false | 1,432 | py | # uncompyle6 version 3.4.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10)
# [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/ableton/v2/c... | [
"jharrington@transcendbg.com"
] | jharrington@transcendbg.com |
fbba06a4b19bbae28afe04b3603983a619889f87 | a6f9e8412682d8a9f21b2a3bf54b7088f7149cc9 | /pytest/Compiler/constants32.py | df0f657cfab914f20431d61a087c5fe902148935 | [
"Apache-2.0",
"LLVM-exception"
] | permissive | stellaraccident/mlir-npcomp | 49a3c285d728d43db4caf7d18cb5919be40d6206 | a9d7610f9d6740e984cbeb55854abac1f92414f9 | refs/heads/master | 2021-09-26T18:24:46.630327 | 2020-07-13T23:15:42 | 2020-07-13T23:15:42 | 250,896,585 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | # RUN: %PYTHON %s | npcomp-opt -split-input-file | FileCheck %s --dump-input=fail
# Subset of constant tests which verify against a GenericTarget32.
from npcomp.compiler import test_config
from npcomp.compiler.target import *
import_global = test_config.create_import_dump_decorator(
target_factory=GenericTarget3... | [
"stellaraccident@gmail.com"
] | stellaraccident@gmail.com |
c939c29a265c9ad2c8e60bbe024d8471ccb7348d | 480e33f95eec2e471c563d4c0661784c92396368 | /Geometry/CMSCommonData/test/dd4hep/2026D35.py | fcd71f1b6cde299aae8e0ce696f2cf7e34257bba | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 1,228 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Phase2C4_cff import Phase2C4
process = cms.Process("HcalParametersTest",Phase2C4)
process.load('Geometry.HcalCommonData.hcalParameters_cff')
process.load('Geometry.HcalCommonData.hcalSimulationParameters_cff')
process.load('FWCore.MessageService.Me... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
051b8fc4c4f9b655d4722a097ae2ebb6b6478ded | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_appended.py | d4a4abe95c2c87fcc180869b9bcb91fd2dea25b1 | [
"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 | 224 | py |
#calss header
class _APPENDED():
def __init__(self,):
self.name = "APPENDED"
self.definitions = append
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['append']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
54dd5c9c96fe3d34d65d41b7cc7943a8ad1da41a | e41b86e0b25edc055167aa13a55bd2da14869b73 | /summarizer_app/apps.py | 3ea7b8aad2120fb39dd02f2f970052c1010f2ffb | [] | no_license | tejasa97/django-summarizer | 9ce21ba3ff9176e4cf341531b380415e03cda150 | 5be990ab95358adb002cc8ed62cf8b56cfe85130 | refs/heads/master | 2023-02-16T12:52:52.172337 | 2021-01-04T18:42:36 | 2021-01-04T18:42:36 | 325,529,463 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from django.apps import AppConfig
class SummarizerAppConfig(AppConfig):
name = 'summarizer_app'
| [
"tejasarlimatti@gmail.com"
] | tejasarlimatti@gmail.com |
5ad4df840871267cc1bb83ec88e485f0153556e0 | 25d081c82bf9adc2a8d96c254df0239a9f982a71 | /museum_api/apps.py | cc4d3156bb67434fd105904f896d8798cb30922c | [
"MIT"
] | permissive | asiekierka/z2 | f102de582aaa9fc51b6b598a1fb07c58be4f540f | d926408423dc98d71d5e7fc2fda3202c03c309de | refs/heads/master | 2021-06-15T15:09:41.614135 | 2021-02-23T02:44:54 | 2021-02-23T02:44:54 | 146,348,922 | 1 | 0 | MIT | 2018-08-27T20:14:46 | 2018-08-27T20:14:46 | null | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class MuseumApiConfig(AppConfig):
name = 'museum_api'
| [
"doctordos@gmail.com"
] | doctordos@gmail.com |
544bcce07294878710767c945f78174e204c8843 | af669dbef653dd69474f4c0836582bf14262c80f | /price-test/frame/lib/deploylib/confparser.py | 2aaf1de62efdfe8dc17d1dc8b90fe1dbe81695cb | [] | no_license | siki320/fishtest | 7a3f91639d8d4cee624adc1d4d05563611b435e9 | 7c3f024192e1c48214b53bc45105bdf9e746a013 | refs/heads/master | 2021-01-19T21:58:36.807126 | 2017-04-19T09:56:37 | 2017-04-19T09:56:37 | 88,729,049 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 12,050 | py | # -*- coding: GB18030 -*-
"""
@author: lipeilong
@date: Mar 28, 2012
@summary: 负责拓扑配置文件的解析
@version: 1.0.0.0
@copyright: Copyright (c) 2012 XX, Inc. All Rights Reserved
"""
import os
import string
import ConfigParser
from frame.lib.commonlib.configure.configure import Configure
class EnvConfigHelper(object):
"""... | [
"lisiqi_i@didichuxing.com"
] | lisiqi_i@didichuxing.com |
d93e55450c39085ee035efdef32eaa204a90914b | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=9/params.py | de9ca510da01c4ee2e0649bfbafc64737c8bc56b | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.531929',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 9,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
195af1a86103dd62444c59e3c5fb1c2951f026c8 | 924147cf4ce118a1856bf0e6107d3dac671e6ac4 | /test_app/urls.py | 44861043de0c4c84c4ec4b65c1d706a9b60d1cc0 | [
"BSD-3-Clause"
] | permissive | jlongster/django-waffle | 4a3ec12477a7a2a783c8b3c661a4dbe313311d7c | acc8e4adb41e7713be9778460fc3e99e034b7511 | refs/heads/master | 2020-04-08T16:19:11.434019 | 2012-01-26T18:54:29 | 2012-01-26T18:54:29 | 3,734,066 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | from django.conf.urls.defaults import patterns, url, include
from django.contrib import admin
from django.http import HttpResponseNotFound, HttpResponseServerError
from test_app import views
from waffle.views import wafflejs
handler404 = lambda r: HttpResponseNotFound()
handler500 = lambda r: HttpResponseServerError... | [
"james@mozilla.com"
] | james@mozilla.com |
b4c9f4150acaabb1e1e2cf5d3ca2ba4d4604b129 | 793e9eeaa2b3018fac9fd7964eb2e5ebd11a4fa2 | /phd_thesis/pyROOT/readfile.py | fccfa452ee30e02324499f1d8122911e4dfefcc7 | [] | no_license | attikis/rootMacros | 2c516456c1e39e4306eb433925f5ca39f9ad9599 | 64e7e779f5b19bfbe2b28a2058b829c57b953c3d | refs/heads/master | 2021-05-09T21:41:31.447907 | 2019-07-18T07:15:07 | 2019-07-18T07:15:07 | 118,733,665 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,720 | py | #!/usr/bin env python
### to execute: |myLinux> python readfile.py testFile.dat
### System imports
import os, sys
from array import array
### ROOT imports
from ROOT import *
### HiggsAnalysis imports
from HiggsAnalysis.HeavyChHiggsToTauNu.tools.dataset import *
from HiggsAnalysis.HeavyChHiggsToTauNu.tools.histograms i... | [
"attikis@cern.ch"
] | attikis@cern.ch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.