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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c5aa7f93751a048f50aaa962110d508c77f27ea8 | d8018fc2cd52db17fa288d58197bb949cd1b9ec8 | /tests/test_modification.py | a88d88a6fc0732a9b4995e5afe68b256f509d718 | [
"MIT"
] | permissive | tbenthompson/quadracheer | 6570a3062ecd95a97c59d203e7cfc8d525b68db5 | da32766c4b58dba1c8c6e3904404bc0c9ce28b12 | refs/heads/master | 2016-08-04T10:46:12.473391 | 2014-08-16T20:08:12 | 2014-08-16T20:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | import numpy as np
from math import log
from quadracheer.legendre import legendre_integrals
from quadracheer.rl135 import rl1, mu_3_0, mu_3_1, mu_5_0, mu_5_1
from quadracheer.recursion import modified_moments
from quadracheer.modification import modify_times_x_minus_a,\
modify_divid... | [
"t.ben.thompson@gmail.com"
] | t.ben.thompson@gmail.com |
298108ece4c8718b4432baa9c6e668f912393043 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /few_point/old_week/own_work/few_week.py | 306d6f06c372a5769ed6fd951d99f35ff768f832 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py |
#! /usr/bin/env python
def big_thing(str_arg):
different_fact(str_arg)
print('be_few_time_for_first_group')
def different_fact(str_arg):
print(str_arg)
if __name__ == '__main__':
big_thing('number')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
672429a929f0b4039ab90f49799335d9905bfc26 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/Spinning Wheel Game.py | 000a3af5a17a97fd12c47f3e74f68bb8da51e8c5 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6beb45d5af6bb4b3dda6649cd2180c46ef2980ca83ed163e32141e0be85b318b
size 3274
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
9536b7cdda40955e08d4ba5aa24b6a2c788400a4 | b64f4a01f1b15d7128b1bd806bfe3d10c66f14d4 | /api/migrations/0002_auto_20190603_1829.py | 13f3ac400e3f5ee67dfb59716276212bd2de90a2 | [] | no_license | mahmoudzeyada/Cloned-Pastbin-webapp | 2e85a92b852baf0253a169107e0dafd8f90a9d0c | c3fbb768707d2fee5a3bed7c99f64109d103707f | refs/heads/master | 2022-05-15T15:28:46.681474 | 2019-06-03T21:39:00 | 2019-06-03T21:39:00 | 190,085,592 | 0 | 0 | null | 2022-04-22T21:26:07 | 2019-06-03T21:34:59 | Python | UTF-8 | Python | false | false | 780 | py | # Generated by Django 2.2.2 on 2019-06-03 18:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"mahmoudzeyada440@gmail.com"
] | mahmoudzeyada440@gmail.com |
df49bc8ad919e9c82907d2cfd9a95acdb0a52376 | 7f5dca89315a869b2f30d39a9ed3d3c848960bd0 | /basic_cms/migrations/0001_initial.py | 6293c2a85468d2f2bf467386cf084a16d2b6b674 | [] | no_license | ljean/balafon_standalone_example | 6df5f3252a9ec3fcc180ced2ee3301f5ca42f196 | bde12ee9c1f1735a0a3c63271fab1a5caee9ecf9 | refs/heads/master | 2021-01-10T08:10:35.437568 | 2016-03-24T11:31:42 | 2016-03-24T11:31:42 | 54,129,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import datetime
import django_extensions.db.fields
import coop_cms.models
class Migration(migrations.Migration):
dependencies = [
('sites', '0001_initial'),
('coop_cms', '0003_auto_20160204_1... | [
"ljean@apidev.fr"
] | ljean@apidev.fr |
157071c1ddc49afcb2bfc97bcb34aadf7234d5f8 | 43cdd7cb26fe44b1ed7de6a46f8b5e680c9b1372 | /tests/components/binary_sensor/test_device_condition.py | 32b1d256f46d2699d45765c8d946854d81949cfc | [
"Apache-2.0"
] | permissive | OpenPeerPower/Open-Peer-Power | 02ec5c133564b47c6f72f669e844a666643cacd6 | 940a04a88e8f78e2d010dc912ad6905ae363503c | refs/heads/master | 2022-08-16T09:38:49.994009 | 2021-05-29T03:54:13 | 2021-05-29T03:54:13 | 183,174,237 | 1 | 0 | Apache-2.0 | 2022-07-15T18:43:02 | 2019-04-24T07:35:47 | Python | UTF-8 | Python | false | false | 8,613 | py | """The test for binary_sensor device automation."""
from datetime import timedelta
from unittest.mock import patch
import pytest
import openpeerpower.components.automation as automation
from openpeerpower.components.binary_sensor import DEVICE_CLASSES, DOMAIN
from openpeerpower.components.binary_sensor.device_conditi... | [
"pcaston@arach.net.au"
] | pcaston@arach.net.au |
f7082a7156a6dda784bb7806d3d451b3a8383186 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /ncsnv3/configs/ncsnv3/cifar10_continuous.py | 7e44c6bc6fe36efad48a5bd257ab4994d5ae3fb1 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,219 | py | # coding=utf-8
# Copyright 2023 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
2094da5347167c011a3f4e1919c4ee4ac2648197 | 88b298dd3ea7f8daac6ce74c7c22c28aa707d156 | /exercises/chapter02.py | c64abc6190256f26932efc08746233144c7d1ef8 | [] | no_license | carlhinderer/python-math | 7780c91046e6cea8773bc4b921206db647f56e57 | f8c71e1adc00634b8e736b1209e2603e0b34d812 | refs/heads/master | 2020-04-09T01:48:01.143330 | 2018-12-27T06:56:15 | 2018-12-27T06:56:15 | 159,917,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,140 | py | # Chapter 2 Exercises
import matplotlib.pyplot as plt
import math
g = 9.8
# 2-1: Temperature Varying During The Day
#
# Pick 3 cities, and plot their daily hourly temperatures.
def plot_hourly_temperatures():
hours = range(24)
nyc_temps = [29, 29, 28, 28, 27, 27, 27, 28, 28, 30, 32, 34, 35, 36, 37, 36, 35,... | [
"carl.hinderer4@gmail.com"
] | carl.hinderer4@gmail.com |
609e576738d5a8aa402657f45f472c5b61e34a4c | 9ee2623d415ac789c7a79b31f9b4408b86235d0f | /setup.py | 8c97a58ac030be8a2a26ce1dd6fbd9589cec2ee9 | [] | no_license | dieynaba77/WaterWatch | b8ec15bf9622df0b833438b9b34e9821498b3e87 | 735f02c4f2ad7658a61e0efbcaecbce0f995a6f8 | refs/heads/master | 2020-03-26T06:26:56.689332 | 2018-07-25T07:53:24 | 2018-07-25T07:53:24 | 144,605,840 | 1 | 0 | null | 2018-08-13T16:29:27 | 2018-08-13T16:29:26 | null | UTF-8 | Python | false | false | 1,138 | py | import os
import sys
from setuptools import setup, find_packages
from tethys_apps.app_installation import custom_develop_command, custom_install_command
### Apps Definition ###
app_package = 'waterwatch'
release_package = 'tethysapp-' + app_package
app_class = 'waterwatch.app:Waterwatch'
app_package_dir = os.path.join... | [
"sarvapulla@gmail.com"
] | sarvapulla@gmail.com |
1ab1a7a7c06cb956850044d840257ddc192b878d | dc3642ea21337063e725441e3a6a719aa9906484 | /csv2mbtiles/gdal2tiles.py | e6cadfb31def6febf94d9c317a5c8c0614aae0f2 | [] | no_license | akmiller01/alexm-util | 9bbcf613384fe9eefd49e26b0c841819b6c0e1a5 | 440198b9811dcc62c3eb531db95abef8dbd2cbc7 | refs/heads/master | 2021-01-18T01:51:53.120742 | 2020-09-03T15:55:13 | 2020-09-03T15:55:13 | 23,363,946 | 0 | 7 | null | null | null | null | UTF-8 | Python | false | false | 102,576 | py | #!/usr/bin/env python
#******************************************************************************
# $Id: gdal2tiles.py 19288 2010-04-02 18:36:17Z rouault $
#
# Project: Google Summer of Code 2007, 2008 (http://code.google.com/soc/)
# Support: BRGM (http://www.brgm.fr)
# Purpose: Convert a raster into TMS (Tile... | [
"alex.k.miller@gmail.com"
] | alex.k.miller@gmail.com |
792c3769cb7b55e0b7f9f96ca9808de7d932e87f | 97bd82d809168b2cf43441981b754edcd937cb2e | /resto/models.py | 046d4072e18e6e1d436088e86eceacb834f0be8a | [] | no_license | harshvardhan7395/rest | c841bc81f4eecf6dda72e856b58e87fef20c1ef1 | 6f726950dca60116a167d3e9a39e9c43b4668ccc | refs/heads/master | 2020-09-26T18:31:30.283807 | 2020-02-03T05:41:36 | 2020-02-03T05:41:36 | 226,313,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Rest(models.Model):
name_text = models.CharField(max_length=200)
address_text = models.CharField(max_length=400)
def __str__(self):
return self.name_text
def __str__(self):
retur... | [
"you@example.com"
] | you@example.com |
0966d96c62f7fc473804c0193685c1e6fe42f153 | 1554150a9720ebf35cd11c746f69169b595dca10 | /old_package_and_launchers/import_derivation.py | af4de935941cc78df7b214ef5394add39f0cb4c6 | [] | no_license | andrewili/shape-grammar-engine | 37a809f8cf78b133f8f1c3f9cf13a7fbbb564713 | 2859d8021442542561bdd1387deebc85e26f2d03 | refs/heads/master | 2021-01-18T22:46:51.221257 | 2016-05-31T21:15:28 | 2016-05-31T21:15:28 | 14,129,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | # import_derivation.py
import package.controller_view.importer as importer
imp = importer.Importer()
imp.import_derivation() | [
"i@andrew.li"
] | i@andrew.li |
6ac44b55cdb421a17cb7da6239f3f32c9c02a4bd | 5419f9706d17fd088b6facea88ca7e5f489efe0a | /python/fate_client/pipeline/param/cross_validation_param.py | dca405efa324f9f874fb85e7854cd2ec0be629ef | [
"Apache-2.0"
] | permissive | sf-fl/federatedML | f686ca5a97f31b8ea458646851eb52e0d0dfe01f | 6cb48525d662ba1bad12702622f2b43f67da67cf | refs/heads/master | 2023-07-16T21:09:02.109514 | 2021-09-02T01:39:52 | 2021-09-02T01:39:52 | 311,584,205 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 The FATE 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/lic... | [
"35332465+windwithmind@users.noreply.github.com"
] | 35332465+windwithmind@users.noreply.github.com |
dba68c36a803c8c2611a79171bcc7462f574cd4a | 0755a5f8d821b2b02b7f087d26e1433156075f04 | /programmers/level1/콜라츠추측.py | 23cea283bf0d463df0339ec2dfb3cb2fe3a582ad | [] | no_license | kimevanjunseok/Algorithm | 35fdfdd5a0c5c8ad1029429aba8d6c2320088993 | ea0883964e43779e569a1a2c8a879a246083ef0e | refs/heads/master | 2020-08-17T22:50:13.096789 | 2020-01-07T14:28:56 | 2020-01-07T14:28:56 | 215,720,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # My solution
def solution(num):
cnt = 0
while True:
if cnt == 500:
return -1
elif num == 1:
return cnt
elif num % 2 == 0:
num = num // 2
cnt += 1
elif num % 2 != 0:
num = num*3 + 1
cnt += 1 | [
"jnunseok@gmail.com"
] | jnunseok@gmail.com |
5b727617d4a65c12285e973357cefbfebff470c9 | b4808bc9e777c0f4cbb22bc8571c9d0d6ee5e984 | /fep1_actel_check/tests/test_fep1actel_acis.py | b9f084902b870ed3ff117b42e49d7f743ba5c89d | [] | no_license | jzuhone/fep1_actel_check | b454c14df14f57ca80788c15848416a2997f00b8 | af6b9332d18e539d99c1bea6bed999f8b816a499 | refs/heads/master | 2023-04-10T06:55:28.744658 | 2021-04-01T18:28:19 | 2021-04-01T18:28:19 | 87,862,654 | 0 | 1 | null | 2021-01-04T15:44:36 | 2017-04-10T22:17:40 | Python | UTF-8 | Python | false | false | 843 | py | from ..fep1_actel_check import model_path, FEP1ActelCheck
from acis_thermal_check.regression_testing import \
RegressionTester, all_loads
import pytest
@pytest.fixture(autouse=True, scope='module')
def fa_rt(test_root):
# ACIS state builder tests
rt = RegressionTester(FEP1ActelCheck, model_path,
... | [
"jzuhone@gmail.com"
] | jzuhone@gmail.com |
a21da1150f4a7c402b931dfc2a345336519b5fa0 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/env_variable_resp.py | 40067510863069f23bd1ea2e2717c77645127dfe | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,704 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class EnvVariableResp:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
ce82b7275b9d22abd9f113e6193dcc3154ad0dff | a8b0599af76b5393039431f876be00d628a1fe43 | /backend/kangas/datatypes/text.py | cd0ead0ae0c47e9a40ad7e4f360a0f5d6682a57d | [
"Apache-2.0"
] | permissive | comet-ml/kangas | c951f648d890dca5a66cbab405d3437be2f3e9e3 | df0c1a495032cc4f1c367c74fcb0ef6e5a2063be | refs/heads/main | 2023-06-12T23:38:43.068259 | 2023-06-05T18:38:34 | 2023-06-05T19:28:33 | 550,324,241 | 944 | 41 | Apache-2.0 | 2023-06-05T19:28:35 | 2022-10-12T15:10:04 | Jupyter Notebook | UTF-8 | Python | false | false | 1,759 | py | # -*- coding: utf-8 -*-
######################################################
# _____ _____ _ _ #
# (____ \ _ | ___) (_) | | #
# _ \ \ ____| |_ ____| | ___ ___ _ _ | | #
# | | | )/ _ | _)/ _ | |(_ / __) |/ || | #
# | |__/ ( ( | | |... | [
"doug.blank@gmail.com"
] | doug.blank@gmail.com |
c06ea0544d92d4880353a72cb9d5ece5a4a8ab8b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02663/s129674013.py | 4ed14b9c6e5d2601567f715e76bae59457b5c195 | [] | 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 | 78 | py | h1, m1, h2, m2, k = map(int,input().split())
s = -60*h1-m1+60*h2+m2
print(s-k) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8e23a6396a07e2824051e591a2264143d84551cb | 3952c7b723163a454a694380951a98f0ebfdff8d | /fbapps/tests/mocks.py | f6b3420a97573c775bf6b61576afb1a053234134 | [
"BSD-3-Clause"
] | permissive | Manduka/django-fbapps | e49dae22892539c523d0a280005c72b750fb94e2 | 3f1410d69231489a26cb46d06fd25eeeff4dbe0f | refs/heads/master | 2020-12-01T01:08:11.079909 | 2013-01-29T00:15:26 | 2013-01-29T00:15:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | #DO not import at test setup time
import base64
import hmac
import hashlib
try:
import json
except ImportError:
from django.utils import simplejson as json
from fbapps.views import FacebookTabView
#from fbapps.utils import parse_signed_request
class MockedFacebookTabView(FacebookTabView):
object = None
... | [
"jasonk@cukerinteractive.com"
] | jasonk@cukerinteractive.com |
57b06614dc5fb453268dfe042633a4fd66d510a1 | 52f8ac63714421e1930d7b90cb8200bb24d6ac42 | /milove/shop/admin/payment.py | 98b55aa047ea35479aee0e8a64b6b5efb10ee3e3 | [] | no_license | richardchien/milove-backend | ccc7afa17e88b17199ad3878b9315e12c2af8ef1 | 0310f2a60ebcbc3143d0aedcc6cb5842ba264a43 | refs/heads/master | 2023-07-06T12:45:13.622032 | 2017-10-02T04:40:00 | 2017-10-02T04:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from django.contrib import admin
from ..models.payment import *
class BillingAddressInline(admin.StackedInline):
model = BillingAddress
def has_add_permission(self, request, obj=None):
return False
def has_delete_permission(self, request, obj=None):
return False
class PaymentAdmin(adm... | [
"richardchienthebest@gmail.com"
] | richardchienthebest@gmail.com |
58ecebdb3fc981492ee9bd667d4773082c6f8964 | 56be7f6b6a1243c532af9ea98310ccea165a1e66 | /day18/about_fenye/about_fenye/settings.py | 89ec6c16b96098094c0b0ebd63a8a82d2a2e88c6 | [] | no_license | 214031230/Python21 | 55b0405ec4ad186b052cde7ebfb3f4bb636a3f30 | d7fc68d3d23345df5bfb09d4a84686c8b49a5ad7 | refs/heads/master | 2021-05-26T06:00:53.393577 | 2019-01-09T02:29:04 | 2019-01-09T02:29:04 | 127,778,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | """
Django settings for about_fenye project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | [
"214031230@qq.com"
] | 214031230@qq.com |
731bd47232300631441334490fdd574ad7048092 | cd9224afd9f377adf00b9dfd18669daf39f2663f | /src/per_cls_acc.py | 19ff8db7156379304d7dc49cbc357517e2b12179 | [] | no_license | luzai/few-shot | 56fc03ff87652d18eda291980cf01486ce2f339e | 792406d990b5a0aaea0f8589883643120ede1170 | refs/heads/master | 2021-03-27T13:34:05.766349 | 2017-11-11T10:56:21 | 2017-11-22T08:32:36 | 96,596,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | from utils import *
from metadata import *
from model_utils import *
from gen_imglst import *
from keras import backend as K
from keras.engine.topology import Layer
@chdir_to_root
def load_model(path):
import parrots
import string, os
from parrots.env import Environ
import parrots.dnn as dnn
impor... | [
"907682447@qq.com"
] | 907682447@qq.com |
ee56bd687ba22cd692482612f4b6285cc8269d56 | 9959162401c59da445d5cb48644848cc08f0d5ea | /special/generator.py | 9b5af75a82adeb63f40ac13243ab3e58fdaad071 | [] | no_license | lyyljs/learnpython2.7 | 05cb87af4aefe01cc2c818d7ae80517447199d49 | bd4cf7685da83c1480e6d6b295a13f3a710eeb23 | refs/heads/master | 2020-05-27T18:11:55.537798 | 2014-11-23T05:28:07 | 2014-11-23T05:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | g = (x * x for x in range(10))
#print g.next()
#for n in g:
# print n
def fib(max):
n,a,b = 0,0,1
while n < max:
yield b
a,b = b,a + b
n = n + 1
print fib(6)
for n in fib(6):
print n
| [
"lyyljs@gmail.com"
] | lyyljs@gmail.com |
8e9e105ef82770e175048f5f80c30ba71d206663 | 51d348426c6e5fa79f2e77baf59bdbf8357d9f12 | /week10/Инфоматрикс/c.циклы/for/c)i.d.py | 4b82754fd69f79de7d32c8f398ecc207bd74b5a6 | [] | no_license | Zhansayaas/webdev | c01325b13abf92cef13138d7ffc123cf9bc4f81a | dd054d0bcafc498eccc5f4626ab45fd8b46b3a3f | refs/heads/main | 2023-04-10T23:33:30.469465 | 2021-04-17T10:21:53 | 2021-04-17T10:21:53 | 322,049,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | d=int(input())
x=int(input())
c=0
while(d>0):
if(d%10==x):c=c+1
d=d//10
print(c) | [
"noreply@github.com"
] | Zhansayaas.noreply@github.com |
2e6dc90011a790b267df1376e1885271b16657fc | 687b2858d3ed5ea6e8e3beee60a412f249b1f30e | /services/shape_detection/DEPS | 7db8eb292dca02c84e6ec730adcf718cfb2b0022 | [
"BSD-3-Clause"
] | permissive | JoKaWare/chromium | 058baa01702fa3462f166cbd5d15795a08e76fbb | 936c16d92cb3caf815cd31fa455576aac2bece75 | refs/heads/master | 2023-01-16T10:54:14.597984 | 2017-02-10T20:20:30 | 2017-02-10T20:20:30 | 39,988,275 | 1 | 0 | null | 2015-07-31T05:27:21 | 2015-07-31T05:27:19 | null | UTF-8 | Python | false | false | 71 | include_rules = [
"+media/capture/video/scoped_result_callback.h",
]
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
e0ee8332241f33e8ac224531f96a59b70ca20d6a | d4c47276c8fbd15240aa228eda04ee8e338caf02 | /Python/Python Lesson/First/Lesson6/Sample5.py | a5bbddca38ab215550aa763df0123ef5cfff1199 | [] | no_license | developer579/Practice | a745384450172fb327913c130303ab76492096f1 | 54084468af83afcc44530e757800c8c3678147c1 | refs/heads/main | 2023-05-06T01:36:06.222554 | 2021-06-02T07:04:03 | 2021-06-02T07:04:03 | 324,312,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | data1 = {"東京":80,"名古屋":60,"京都":22}
data2 = {"京都":100,"大阪":50,"福岡":75}
print("1のデータは",data1,"です。")
print("2のデータは",data2,"です。")
print("1を2で更新します。")
data1.update(data2)
print("1のデータは",data1,"です。") | [
"69954570+developer579@users.noreply.github.com"
] | 69954570+developer579@users.noreply.github.com |
c2e6bdaf1ed939fe510a417bd3e4a4e879e25359 | 72ab1015b460cb0cbfef4221023855cd7302594c | /Terningkastar (python)/terning.pyw | e0ebcc47945b891d9f349c8802a4e186b4e2e35f | [] | no_license | madsop/shellscript | abc99a0f1834078b67cc60a9122da7c17a113fe7 | eb118778b16ca399084177d4f89fcea25cd3abb7 | refs/heads/master | 2022-11-12T14:48:45.113944 | 2020-06-29T18:51:04 | 2020-06-29T18:51:04 | 275,900,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | pyw | # -*- coding: UTF-8 -*-
import random
import sys
def dice(terningstorleik):
kast = random.randint(1,terningstorleik)
array[kast-1] += 1
#input = raw_input("antalkast d auge? ")
#print sys
temp = sys.argv[0]
if temp[0] != int(temp[0]):
print "antal kast er ikkje eit heiltal"
if temp[1] != int(temp[1]):
print "an... | [
"devnull@localhost"
] | devnull@localhost |
ef35c2c0130fc2dde812644e0630fea9428f6120 | f14ef312e5ce56b3064f9f1fba41d60b307ec980 | /4.1_morphology/number/char-lm-ud-stationary-separate-bidir-with-spaces-probe-baseline-prediction-wiki-plurals-2-tests-redone-wikisource-balanceE-RNN.py | 8ff83c2a579ee6929e46f27af3e64a623892eb2f | [] | no_license | m-hahn/tabula-rasa-rnns | d02160a2c2e3c58d933833449cbec85fb15280ae | 0ffd77164bf93c9e90708fac2f931fe6cc7bb51e | refs/heads/master | 2020-05-31T12:27:12.573104 | 2019-06-27T23:19:43 | 2019-06-27T23:19:43 | 190,281,220 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 19,477 | py | # Like in the paper (1st round, but more efficient implementation).
# python char-lm-ud-stationary-separate-bidir-with-spaces-probe-baseline-prediction-wiki-plurals-2-tests-redone-wikisource-balanceE-RNN.py --batchSize 256 --char_dropout_prob 0.01 --char_embedding_size 50 --char_noise_prob 0.0 --hidden_dim 2048 --lang... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
c5a6a90601b89c76dc19f9acfb6301c34c546b88 | c77625eca982bac81ce97630e1e1273e022490ad | /week3-tools/homework/2.py | 1235685eed0df95d6a6b0d3266e511babc8ce38a | [] | no_license | benzitohhh/cs212-style | 7b66a5b948f828b0ccece6c22ad49c3eed2d202b | 0cefe0fd374e2a3c84ecf15d1ac657392aacfcf1 | refs/heads/master | 2021-01-23T19:45:43.506797 | 2012-06-03T23:53:16 | 2012-06-03T23:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | # --------------
# User Instructions
#
# Write a function, inverse, which takes as input a monotonically
# increasing (always increasing) function that is defined on the
# non-negative numbers. The runtime of your program should be
# proportional to the LOGARITHM of the input. You may want to
# do some research into... | [
"immanuel_ben@yahoo.co.uk"
] | immanuel_ben@yahoo.co.uk |
35f3a9d69045f53d4157109a883b1c239e64de3f | ba4fe6a6705b2e05917a21c93178ed884eea3c95 | /i18nkit/__init__.py | ae8a27279ad42c6fd390608362de0aacf27217f9 | [] | no_license | akx/django-i18nkit | ce0a1e4cda6cfdc5e5d78b8586dabfca651e416d | 53087e2b7f1d95ff1f4c114e838d7b6da6a4425f | refs/heads/master | 2020-04-17T14:04:14.792972 | 2020-02-18T11:00:31 | 2020-02-18T11:00:31 | 66,849,739 | 0 | 0 | null | 2020-02-18T10:56:37 | 2016-08-29T14:13:38 | Python | UTF-8 | Python | false | false | 53 | py | default_app_config = 'i18nkit.apps.I18nKitAppConfig'
| [
"akx@iki.fi"
] | akx@iki.fi |
048627c5264d14a48229bcb81cf95e286e8f66c4 | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L4P/4P-3K_wat_20Abox/set_1.py | 11b457d32e4c87a61891578fc169b943afbd7c9c | [] | 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 | 738 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L4P/wat_20Abox/ti_one-step/4P_3K/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_1.in'
temp_pbs = filesdir + 'temp_1.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 lambd... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
4ff54e46cbaa3c0b6a6d782c56c49dde9d7f46f9 | a643281b09ddc4e4c1e04faddbf54ee4f373c74a | /chapter_15_PDF_DOCX/custom_invite.py | 6e574e545b7084992362f519db2d2931a496e211 | [] | no_license | mkoundo/Automate_the_Boring_Stuff | 5036d983d30282231552710087a9445262179653 | 0b03a8918e5c9a5aaa4d21ef9c85361cfab435bb | refs/heads/master | 2022-12-02T17:00:16.295787 | 2020-08-17T09:22:23 | 2020-08-17T09:22:23 | 280,481,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | #! python3
# custom_invite.py
# Author: Michael Koundouros
"""
Write a program that would generate a Word document with custom invitations. Since Python-Docx can use only those
styles that already exist in the Word document, you will have to first add these styles to a blank Word file and then
open that file with Pytho... | [
"michael.koundouros@outlook.com"
] | michael.koundouros@outlook.com |
56f6b0931deacd8bce5f8851e5e3be6a274d9362 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /pytorch/source/caffe2/python/layers/batch_distill_lr_loss.py | c4a367956922eb1cf747a09c56d7b5deb34e742b | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 7,084 | py | ## @package batch_distill_lr_loss
# Module caffe2.python.layers.batch_distill_lr_loss
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core, schema
from caffe2.python.layers.layers import (
... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
6c653971a68f7ccaaa4be290ad468be14023ef48 | 746cd1d11eb24e7a987f2dd4db72b68a8e0a5b99 | /android/external/adt-infra/build/scripts/slave/recipes/syzygy/coverage.py | c7375c5f3a9102d61605ec5e1e3bc1abf464aa05 | [] | no_license | binsys/BPI-A64-Android7 | c49b0d3a785811b7f0376c92100c6ac102bb858c | 751fadaacec8493a10461661d80fce4b775dd5de | refs/heads/master | 2023-05-11T18:31:41.505222 | 2020-07-13T04:27:40 | 2020-07-13T12:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Buildbot recipe definition for the various Syzygy coverage builder.
To be tested using a command-line like:
/build/scripts/tools/run_recipe.py syzygy/... | [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
2feb27f933d79a2daa4173fe023eddbd30a8aa14 | 72f9c5c099fe07073a4a619c2d843a44aa69343e | /state-of-the-art algorithm/affine_transform_optimize.py | 5b2455e2fb0e5db5478ea1a1dbc6dde2d595e9dc | [] | no_license | fixernhc/radar_mti | 4d1fb80193bb316a7822df6557900ca2fb040610 | 4213025d0305f453d1ff1dee3c5ff2fa77636077 | refs/heads/master | 2023-05-24T19:19:45.150242 | 2021-06-11T20:13:36 | 2021-06-11T20:13:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,941 | py | import torch
import torchvision
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
from torch import nn, optim, cuda, cos, sin
from torch.utils.data import Dataset, DataLoader
from torch.autograd import Variable
import matplotlib.pyplot as plt
import natsort
import wand... | [
"nakorn.vistec@gmail.com"
] | nakorn.vistec@gmail.com |
4317463ecd73adcd2602a4702b3ccc8e39b72717 | 38b0b9679d10010d2edd169840ec0036f1df3b9e | /models/city.py | 52181c39893bf28aef39fe105a76024ec72f3127 | [] | no_license | Simonster04/AirBnB_clone | 0be961d9aeca1c7b78bac6d3628d1143f5b55fe7 | a0ac7a887d27033697d7d25b95fd8048b36433de | refs/heads/master | 2021-01-04T13:17:50.430628 | 2020-03-02T16:55:19 | 2020-03-02T16:55:19 | 240,567,835 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | #!/usr/bin/python3
"""
Contains City class
"""
from models.base_model import BaseModel
class City(BaseModel):
"""class City that inherits from BaseModel"""
state_id = ""
name = ""
def __init__(self, *args, **kwargs):
""" initialize City """
super().__init__(*args, **kwargs)
| [
"simon.pahe@gmail.com"
] | simon.pahe@gmail.com |
aa7f053adc2fb10ba11fe656e97ae19f155393d8 | d456096948cc1dcc43907985cc0896579ba6dd3d | /python/final2.py | f1192633d0e75e6fb50fbe56c97bfbfb5afe68d6 | [] | no_license | Brijesh-kumar-sharma/learning | f465bde3f9f722ab946b22145b7138123586c446 | 14e86d7477d14b8dff7d8225ee150baac9e4ef0a | refs/heads/main | 2023-02-16T20:47:30.506495 | 2021-01-20T22:58:13 | 2021-01-20T22:58:13 | 331,270,579 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | # Python program to find the largest number
# that can be mode from elements of the
# array and is divisible by 3
# Number of digits
def solution(arr):
n = len(arr)
ans1=largest3Multiple(arr, n)
ans=concatenate(j)
if(ans1==True):
return ans
else:
return 0
def concate... | [
"123@gmail.com"
] | 123@gmail.com |
c748236a0e6d349255ef91e478c666923008639e | 463c053bcf3f4a7337b634890720ea9467f14c87 | /python/ray/tests/test_runtime_env_conda_and_pip_3.py | 0303fa786622163f64633b4e985153d644fd4969 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 6,061 | py | import os
import pytest
import sys
import time
from ray._private.test_utils import (
wait_for_condition,
check_local_files_gced,
generate_runtime_env_dict,
)
import ray
from unittest import mock
if not os.environ.get("CI"):
# This flags turns on the local development that link against current ray
... | [
"noreply@github.com"
] | pdames.noreply@github.com |
233a1e1550443158862d3caa4fed464ac058f81f | 1df9b7ff43c9e1316cdeb8defad7f64e4ffc4b06 | /lint_rules/ardana_sudo_in_top_level_rule.py | 21b4be14dc4977ce6bb2018ae548e1c9a087bb2a | [
"Apache-2.0"
] | permissive | ArdanaCLM/ardana-dev-tools | 3701e681b1aaa5b8987f2ab05ff418ff922924f0 | fde6e354351bf6dc19187d40e75aa5376a7b0f87 | refs/heads/master | 2022-11-07T01:48:38.878491 | 2022-10-06T17:13:28 | 2022-10-06T17:13:28 | 105,183,965 | 3 | 11 | Apache-2.0 | 2022-10-26T16:16:50 | 2017-09-28T18:20:50 | Shell | UTF-8 | Python | false | false | 1,561 | py | #
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# 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-... | [
"nicolas.bock@suse.com"
] | nicolas.bock@suse.com |
60860345d40d3fd1458fb62009a055295405a8a1 | f68eda51246c95597def569224f3b56d4c3700e7 | /top/api/rest/LogisticsAddressModifyRequest.py | 98cc7e5c7b8023814b6e279f5c6e937fe67578c2 | [
"MIT",
"BSD-3-Clause"
] | permissive | stoensin/taobao-openapi | 47de8fb29ae2d8ce47d4fce07c0ccaeaee1ef91f | 202a9df2085229838541713bd24433a90d07c7fc | refs/heads/main | 2023-07-17T02:17:51.527455 | 2021-08-25T15:08:49 | 2021-08-25T15:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | '''
Created by auto_sdk on 2018.07.26
'''
from top.api.base import RestApi
class LogisticsAddressModifyRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.addr = None
self.cancel_def = None
self.city = None
self.contact_id = None
self... | [
"samzong.lu@gmail.com"
] | samzong.lu@gmail.com |
1251f15c1faf17f1e6c2e9b40e52df5bdf736944 | e37e8da610cfef5431f0501b1bbf30169236044e | /src/greentest/3.8/test_socket.py | c472be135e392dd8d7fd09aacef03d496ddbf0c2 | [
"Python-2.0",
"MIT"
] | permissive | samson886/gevent | b57a97f0086ef9b238dbf3f20212c21acd0059f4 | 4f269628e88a6b4fb2700deefe4ed305bb6efaf7 | refs/heads/master | 2020-08-26T13:22:05.723394 | 2019-10-22T11:20:52 | 2019-10-22T11:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238,170 | py | import unittest
from test import support
import errno
import io
import itertools
import socket
import select
import tempfile
import time
import traceback
import queue
import sys
import os
import platform
import array
import contextlib
from weakref import proxy
import signal
import math
import pickle
import struct
impo... | [
"jamadden@gmail.com"
] | jamadden@gmail.com |
ac7447818344e6904dff31b166f57f069c83d371 | 4c0328c7fa7805cdd196cf890695ec1a8a438a5f | /devel/lib/python2.7/dist-packages/pal_motion_model_msgs/msg/_MotionModelList.py | c1d79ced194f54dd2ce45db1a237eaad4e1b6996 | [] | no_license | SebsBarbas/iRob_KTH | d98dfce8692bdd4d32ce3a4d72daa8d022976c0a | c164c9d12efcab56b4871fc5bb5538df5849a42e | refs/heads/main | 2023-01-23T10:49:59.073113 | 2020-12-04T18:49:53 | 2020-12-04T18:49:53 | 318,595,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,492 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pal_motion_model_msgs/MotionModelList.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import pal_motion_model_msgs.msg
class MotionModelList(genpy.Message):
_md5su... | [
"ssbl@kth.se"
] | ssbl@kth.se |
80bae7c34e1c80636cad9ee806246e554330b832 | c30fbcaeede77091e548b19a68a2de021e984e9f | /PostModule/serializers.py | 3ebf410bb90a46bba722c0e2e1334992e1fccac4 | [
"BSD-3-Clause"
] | permissive | chorkei/viperpython | cc8507ed5abe1c74ccea8219c0d173d4ef6d3ed3 | 26772b1865623e1c27ffbf2f9463b9cf43bee324 | refs/heads/main | 2023-07-10T05:48:57.908946 | 2023-07-01T09:43:32 | 2023-07-01T09:43:32 | 399,507,746 | 0 | 0 | BSD-3-Clause | 2021-08-24T15:01:54 | 2021-08-24T15:01:54 | null | UTF-8 | Python | false | false | 83 | py | # -*- coding: utf-8 -*-
# @File : serializers.py
# @Date : 2018/11/15
# @Desc :
| [
"none"
] | none |
e4ce6c230c52670af6dfcf7cd34db5701ae8747c | c63d4b6c1d61b88bebc8dee773e704db4457b94a | /link.py | 6578c44bccd37f90a3e6be369e9231f5581c2833 | [] | no_license | drewp/href | be625c17ac766f3726540fa0d1b9a357710c4416 | fd76d667c092f7f0e21c6c4b95faee974ab7c785 | refs/heads/master | 2022-07-28T17:11:05.784109 | 2020-07-12T20:35:41 | 2020-07-12T20:35:41 | 8,795,344 | 0 | 0 | null | 2022-07-08T19:09:26 | 2013-03-15T09:00:13 | Python | UTF-8 | Python | false | false | 2,593 | py | import urllib.parse
import urllib.request
import urllib.parse
import urllib.error
from dateutil.tz import tzlocal
class NotFound(ValueError):
pass
class Links(object):
def __init__(self, db):
self.coll = db['links']
def insertOrUpdate(self, doc):
if not doc['href']:
raise Va... | [
"drewp@bigasterisk.com"
] | drewp@bigasterisk.com |
2e9468ec0210a0f8fdebc600281cf73a45274af5 | 11b9623a8acd968cc683ba8ff8f7527043f6e80b | /fit_nr_band/examine_band_mc.py | fceb1765cd6e072d60c1bd219ece2f4404364731 | [] | no_license | mdanthony17/xenon1t | ecae2d2ed0873874d32c02d048f75f8833dc4c47 | 3f56e102fe9af85c8784f0171714d0af777db556 | refs/heads/master | 2020-12-25T05:44:52.213533 | 2017-08-24T13:12:07 | 2017-08-24T13:12:07 | 63,275,516 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,024 | py | #!/usr/bin/python
import sys, array, os
sys.path.insert(0, '..')
import matplotlib
matplotlib.use('QT4Agg')
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import matplotlib.patches as mpatches
import ROOT as root
from rootpy.plotting import Hist, Hist2D, Canvas, Legend
import config_xe1t
import num... | [
"mda2149@columbia.edu"
] | mda2149@columbia.edu |
d1d618104ca6fdc160bb7f65429ba62683d708bd | 86f3973554eb61b12528835851cbdc96aba9ccc0 | /io_scene_xray/formats/level/exp/geom.py | c94d927aa8865aacc86b34898a09ea036f8d20cb | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | PavelBlend/blender-xray | 02d68e424ae9088221bafc1d0d9019690323d9da | a3abb9eb805182eec8ed8de4058dd744aee0e291 | refs/heads/develop | 2023-09-03T15:10:56.022070 | 2023-08-22T17:50:23 | 2023-08-22T17:50:23 | 20,459,902 | 150 | 40 | BSD-2-Clause | 2023-08-10T15:01:24 | 2014-06-03T21:12:53 | Python | UTF-8 | Python | false | false | 6,210 | py | # standart modules
import os
# addon modules
from . import header
from .. import fmt
from .... import utils
from .... import rw
def _write_geom_swis(geom_writer):
swis_writer = rw.write.PackedWriter()
swis_writer.putf('<I', 0) # swis count
geom_writer.put(fmt.Chunks13.SWIS, swis_writer)
def _write_g... | [
"stalkermodkytia@yandex.ru"
] | stalkermodkytia@yandex.ru |
7701a1e30eabebdb5a0729666eb1901ff0911fed | a61ebd1507eeaa334aff44800b022ef0a258752a | /Code/CodeChef/servant.py | bc7aee978e8bdf9841eacba1ada6af5b82a02df9 | [
"MIT"
] | permissive | Jimut123/competitive_programming | 14ce0ab65414e6086763519f95487cddc91205a9 | b4cdebaceee719c1a256921829ebafda11c515f5 | refs/heads/master | 2023-03-05T15:42:57.194176 | 2022-04-08T08:53:26 | 2022-04-08T08:53:26 | 156,541,142 | 1 | 0 | null | 2019-05-29T17:10:28 | 2018-11-07T12:09:55 | C++ | UTF-8 | Python | false | false | 160 | py | T = int(input())
for i1 in range(T):
item = int(input())
if item < 10:
print("What an obedient servant you are!")
else:
print("-1")
| [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
796a53536fba0ce7a713603ab72befc68941ec7a | 86bcaa6d007748a6f4fc16d5fd6ccfb9def2d2ed | /tools/socket_server.py | 71c98621439961b1d22994529e2bcccf42becc16 | [
"MIT"
] | permissive | mini338/mpf | 1063bb8cc4582299a10121238b9cdd4fa5fea062 | b4877a66b06a87e9c54fd593ae585dcd6486b291 | refs/heads/master | 2021-01-17T08:22:41.755921 | 2015-12-01T09:59:17 | 2015-12-01T09:59:17 | 47,421,521 | 1 | 0 | null | 2015-12-04T18:19:55 | 2015-12-04T18:19:55 | null | UTF-8 | Python | false | false | 1,103 | py | import socket
import sys
def handle_command( cmd ):
print( "Received command " + cmd )
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Bind the socket to the port
server_address = ('localhost', 5050)
print >>sys.stderr, 'starting up on %s port %s' % server_address
sock.bind(se... | [
"brian@missionpinball.com"
] | brian@missionpinball.com |
7ed0bf2314b14bc88d62fe8465db6a9916e31eb0 | 3e805766bbe504ae23e876aede9472dcede89f99 | /tech/web/fullstack/Backend/Django/shortcut/utils/location.py | f414db26308d09cf2cd308132651ece74be06543 | [
"MIT"
] | permissive | vimm0/auto-script | a20c1ee38f39f3299cc63aed5f647d6e73181e52 | 2392dd22087ccbbdd8f3e833df26a4ca6eb31bd4 | refs/heads/master | 2021-03-31T00:21:33.964259 | 2020-05-02T17:28:51 | 2020-05-02T17:28:51 | 124,433,500 | 1 | 1 | null | 2018-08-17T18:17:34 | 2018-03-08T18:45:51 | Java | UTF-8 | Python | false | false | 1,251 | py | from django.db import models
from django.conf import settings
from django import forms
"""
USAGE:
location = LocationField(blank=True, max_length=255)
"""
class LocationPickerWidget(forms.TextInput):
class Media:
"""
Place assets to static folder
"""
css = {
'all'... | [
"vimmrana0@gmail.com"
] | vimmrana0@gmail.com |
8fe21bc34b527015d143faa7de7440dab2334c5f | f22ca9aecda111a019502b462ce6772cb22d9425 | /swagger_client/models/inline_response20082_result.py | ee7511f402585ac0f60495e7d7ce08b85e470e89 | [] | no_license | sivanv-unbxd/a2c-sdk-pim | cac05bc6335ddc3c4121d43e2dc476a6fec14965 | 51a07a0b7f90d74569ad14b47b174da7ac1fc374 | refs/heads/main | 2023-05-29T05:45:32.279821 | 2021-06-09T03:52:11 | 2021-06-09T03:52:11 | 375,218,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | # coding: utf-8
"""
Swagger API2Cart
API2Cart # noqa: E501
OpenAPI spec version: 1.1
Contact: contact@api2cart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class InlineResponse20082Result(object):
"""NOTE: This... | [
"sivanv@unbxd.com"
] | sivanv@unbxd.com |
c5d1a2850cf45b3e5b71476846664318bfe40ab0 | 60aa3bcf5ace0282210685e74ee8ed31debe1769 | /simulation/postures/posture_specs.py | 6db39d7c5878d385cd4ef76ef6153b51d99f3fa7 | [] | no_license | TheBreadGuy/sims4-ai-engine | 42afc79b8c02527353cc084117a4b8da900ebdb4 | 865212e841c716dc4364e0dba286f02af8d716e8 | refs/heads/master | 2023-03-16T00:57:45.672706 | 2016-05-01T17:26:01 | 2016-05-01T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,409 | py | from contextlib import contextmanager
import collections
import functools
import itertools
import operator
import re
from objects.slots import RuntimeSlot
from sims4.callback_utils import consume_exceptions
from sims4.log import Logger
from sims4.repr_utils import standard_repr
from sims4.tuning.tunable import Tunable
... | [
"jp@bellgeorge.com"
] | jp@bellgeorge.com |
5973b5ab32c51ed83ca87aeb9977a8adbbe204b5 | d6c752397624c5aad31eb75e40d3fae4460acaf5 | /torch/distributed/algorithms/ddp_comm_hooks/powerSGD_hook.py | 60607b7bbf4912903585f656683d85cce0133539 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | amccollum/pytorch | be8dca2efcdf5f914f4a638018fcc1357486b1f0 | 6c0bf28da651eb8ff1d2d0dcfe807ea757fb61e5 | refs/heads/master | 2023-05-04T22:58:11.947499 | 2021-02-06T19:34:10 | 2021-02-06T19:36:36 | 336,648,760 | 0 | 0 | NOASSERTION | 2021-02-06T22:46:46 | 2021-02-06T22:19:53 | null | UTF-8 | Python | false | false | 28,128 | py | import logging
import math
import numpy as np
import torch
import torch.distributed as dist
from . import default_hooks as default
def _orthogonalize(matrix, epsilon=1e-8):
"""
Applies Gram-Schmidt procedure to orthogonalize a given 2D tensor.
If epsilon is 0, this is equivalent to `torch.qr(matrix, out... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
35ac05c4a6159bc59a22a6cf225fd46bfe14070c | 6375b7e4dfe11ced7dcd3fad1a7a2de9a504910d | /exc14_input_and_argv.py | 7bbae171fa85874cbef8a36ca8c3922ad9ed7f6b | [] | no_license | yaowenqiang/lpthw | b65e6b8ce576e7caa5cfba5570550e546d1e0549 | 4bbd7ebb4e8c570a39bf9c55df9bd97e4f86e1e5 | refs/heads/master | 2020-04-01T10:57:32.959389 | 2019-05-01T09:27:25 | 2019-05-01T09:27:25 | 153,140,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from sys import argv
script, user_name = argv
prompt = "> "
print(f"Hi, {user_name},I'm the {script} script.")
print("I'd like to ask you a few quastions.")
print(f"Do you like me {user_name}?")
likes = input(prompt)
print(f"Where do you live {user_name}?")
lives = input(prompt)
print("What kind of computer do you ha... | [
"yaowenqiang111@163.com"
] | yaowenqiang111@163.com |
b64573dcdca6887a73c266deb5862144b9805094 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/grazie/StringLiterals.py | 4493152e8743732f9d19f60b6833747b4cfe6cb7 | [
"Apache-2.0"
] | 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,264 | py | # TODO add f-Strings support
oneTypo = "It is <warning descr="EN_A_VS_AN">an</warning> friend of human"
oneSpellcheckTypo = "It is <TYPO descr="Typo: In word 'frend'">frend</TYPO> of human"
fewTypos = "It <warning descr="IT_VBZ">are</warning> working for <warning descr="MUCH_COUNTABLE">much</warning> warnings"
ignoreTe... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
dfe6e8e1a60ef89ba1474d2c591e1439106a6603 | 8454441f899c3beb9fcea26cffc2f4c3cf75ff6a | /common/code/snippets/gdb/log_changes.py | 4c26911b6a28c303b03a6523d9c05c888efdd5d3 | [
"MIT"
] | permissive | nevesnunes/env | 4a837e8fcf4a6a597992103e0a0c3d0db93e1c78 | f2cd7d884d46275a2fcb206eeeac5a8e176b12af | refs/heads/master | 2023-08-22T15:49:35.897161 | 2023-08-15T13:51:08 | 2023-08-15T13:51:08 | 199,400,869 | 9 | 6 | MIT | 2023-06-22T10:59:51 | 2019-07-29T07:24:47 | Python | UTF-8 | Python | false | false | 6,049 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import gdb
import operator
cs_instances = []
# This module helps generate a complete log of the call stack of a breakpoint.
# It can also record the value of some variables.
# Get a table horizontal line
def get_hline(length):
s = ''
for x in range(0, length):
... | [
"9061071+nevesnunes@users.noreply.github.com"
] | 9061071+nevesnunes@users.noreply.github.com |
c33a4614e776c380a65cf45ad3cfb2d3bd100337 | d973df1e60d17b2c4ac6430ec29cce7fd139c3ec | /08-flask/web-dev-for-data-scientists/exercises/flask-btc/data.py | 528cc366dba73cfbf84f58154cf4f8f83dbef137 | [
"MIT"
] | permissive | dushyantkhosla/viz4ds | 49153414f10bfa0b577fa5e076ef6c697298146a | 05a004a390d180d87be2d09873c3f7283c2a2e27 | refs/heads/master | 2022-06-28T14:21:47.116921 | 2019-10-22T10:34:16 | 2019-10-22T10:34:16 | 133,490,301 | 0 | 0 | MIT | 2022-06-21T21:30:16 | 2018-05-15T09:08:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,219 | py | import sqlite3
import requests
def get_rates():
results = {}
try:
bitstamp = requests.get(
'https://www.bitstamp.net/api/v2/ticker/btcusd/')
results['bitstamp'] = float(bitstamp.json()['bid'])
kraken = requests.get(
'https://api.kraken.com/0/public/Ticker?pair=X... | [
"dushyant.khosla@pmi.com"
] | dushyant.khosla@pmi.com |
ec1a4bfdcf0d5057c23c4c020aed39c3b2e1b4d4 | a6ed0c42659f54f88024a9171c353e7cbe51328e | /Python/Django/loginreg/apps/regapp/migrations/0003_auto_20171017_0709.py | b6e79d8f6327e2ee7378a68fc486d437a7595365 | [] | no_license | tomama1/Practice | c4a44a044fe67b3f4eb34dca0a0dd9ea38f4c766 | 8adecd0ee985db06497578a11d067ac16502da7b | refs/heads/master | 2021-09-05T04:32:42.020673 | 2018-01-24T05:51:16 | 2018-01-24T05:51:16 | 104,159,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-10-17 07:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('regapp', '0002_user_password'),
]
operations = [
migrations.AlterField(
... | [
"matthewtoma123@gmail.com"
] | matthewtoma123@gmail.com |
f2dc1b1b2db443d115b5abca193f0f414400c61e | ed0ee3d5ca7a67545d379a769e34fd06037ac7d2 | /drones/urls.py | 4b21360e3b1efbf843614966dcb8bf7787a31128 | [] | no_license | lifeofperfect/Drone-competition | b2a16a578b5097081fcb55144f7295107bdbd453 | b091f7666d97c70e50826d6b14f25851afdee3e4 | refs/heads/master | 2022-06-11T02:33:19.456003 | 2020-05-05T01:32:07 | 2020-05-05T01:32:07 | 261,335,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | from django.urls import path
from drones import views
urlpatterns = [
path('drone-categories/', views.DroneCategoryList.as_view(), name=views.DroneCategoryList.name),
path('drone-categories/<int:pk>/', views.DroneCategoryDetail.as_view(), name=views.DroneCategoryDetail.name),
path('drones/', views.DroneL... | [
"perfect.igbadumhe@gmail.com"
] | perfect.igbadumhe@gmail.com |
bfecfcbe5b99c612d0f93dbbeee3e74c2517d308 | 2c02fe74f67b5cdc51a09bf7b8029ba7cc0188aa | /patchCLS/test.py | afb3c484575020e0d63306adbcc2ae8ce9ea5861 | [
"MIT"
] | permissive | codingPingjun/SuspiciousRegionWSI | d27dc665b2eaaab7206faac96df8f175a3b054d1 | 91473d842e1a21268440eb330eb146739b556cdc | refs/heads/master | 2020-07-30T13:03:30.135077 | 2019-09-03T01:31:00 | 2019-09-03T01:31:00 | 210,243,991 | 1 | 0 | MIT | 2019-09-23T01:57:14 | 2019-09-23T01:57:13 | null | UTF-8 | Python | false | false | 1,240 | py | # -*- coding: utf-8 -*-
import os, sys
import argparse
import torch
import torch.backends.cudnn as cudnn
from train_eng import validate_model
from patchloader import val_loader
def set_args():
parser = argparse.ArgumentParser(description='Thyroid Classification')
parser.add_argument('--seed', typ... | [
"chenpingjun@gmx.com"
] | chenpingjun@gmx.com |
bb0a9e2dcdee4c874310ad1a71ffdc4751a324a2 | bb11350c9f600d0021d81f7f6ee8c2cc5961a5f0 | /ZKDEMO/21_flame_sensor_module/21_flame_senspr.py | 37be6108273e23b8fb8a3d70a38f44c37914813b | [] | no_license | atiger808/raspberry-tutorial | 045178877a456908aa8ce764aad62159d674ae79 | e877939fd1c72e09ce20497f08d854872588e1ef | refs/heads/master | 2022-12-25T19:35:08.378370 | 2020-10-14T09:56:15 | 2020-10-14T09:56:15 | 303,970,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | # coding=utf-8
'''
LM393模块 配合PCF8591模块 做 雨水检测
接口分别为:A0, D0, VCC, GND
A0 对应 PCF8591模块的AIN0
D0 对应 GPIO接口
VCC 接 5v
GND 接 地线
'''
import PCF8591 as ADC
import time
import RPi.GPIO as GPIO
import math
DO = 17
def setup():
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
ADC.setup(0x48)
GPIO.setup(DO, GPIO.I... | [
"atiger0614@163.com"
] | atiger0614@163.com |
fdb21c259bc15c6f9e8fbbad87d4ba0913275fb3 | fa250e917555f7e7281bab24cabbe24295695f2f | /venv/Scripts/pip3.7-script.py | 5346f1c035b50b1c64aca7fd23e9888feef21580 | [] | no_license | FelixZFB/Web_front_end_study | 69124b7f8547e109c09651731aca24a205581ab6 | ae88fd9df16fb3ff778feb48dc7dd48b1ef4f831 | refs/heads/master | 2022-11-15T14:14:07.579738 | 2020-12-16T04:44:05 | 2020-12-16T04:44:05 | 213,529,650 | 0 | 1 | null | 2022-10-23T03:13:43 | 2019-10-08T02:20:22 | Python | UTF-8 | Python | false | false | 411 | py | #!D:\PyProject\Web_front_end_study\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"18200116656@qq.com"
] | 18200116656@qq.com |
da28398fbb5fe7b1291ca338ae568516c4872cdc | 77db6591c5884204d6016bfa89b33691bac38813 | /rcbc/admin.py | a273ce4af58b2a1eddf3c578f91e503cb02c02c2 | [] | no_license | jbukoski/iltf-signal-webmap-suite | 4fc0aafa977e911a1071872f7adbaf2e7d0da37c | b8374e9cfcc80501a8f632721a7cb9b76e668f6b | refs/heads/master | 2021-03-27T11:20:37.174667 | 2020-12-31T18:03:20 | 2020-12-31T18:03:20 | 79,853,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.contrib import admin
from django.contrib.admin import AdminSite
from . import models
class rcbcAdmin(AdminSite):
site_header = 'Red Cliff Band of the Lake Superior Chippewa'
site_url = '/rcbc/'
rcbc_admin = rcbcAdmin(name='rcbc_admin')
| [
"jacob.bukoski@yale.edu"
] | jacob.bukoski@yale.edu |
654f7bb9e61fd240409c9f3c7c5e56e47cc536e1 | 0fa2697dc0894a8920380df0024fd32b138aaf47 | /py_data_struc/py6_4.py | 54e907c5c5bc2e0616e8ce27aeb8042caffc8357 | [] | no_license | QI-Xiao/qxfluentpy | cc7489c636cc9e387140d4fdb9d8fc50d8b6819e | 33f5d26b341c237bacce37cd1db91a2fc8baa0a6 | refs/heads/master | 2020-05-07T09:15:51.913271 | 2019-11-29T16:09:37 | 2019-11-29T16:09:37 | 180,369,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | py | # myTree = ['a', ['b', ['d',[],[]], ['e',[],[]]], ['c', ['f',[],[]], []]]
# print(myTree)
# print('left subtree = ', myTree[1])
# print('root = ', myTree[0])
# print('right subtree = ', myTree[2])
#
#
# def BinaryTree(r):
# return [r, [], []]
#
# def insertLeft(root, newBranch):
# t = root.pop(1)
# if len(t... | [
"524290558@qq.com"
] | 524290558@qq.com |
230a7eb6f3e556e66b21f27b5c5aeee725ac9352 | 3e2e35be84517bc5c6143446692706f68deb0984 | /fn_odbc_query/fn_odbc_query/components/odbc_query.py | 3cb451730744ec94c1141a9cb6ad143cbab8c31c | [
"MIT"
] | permissive | bdjohn/resilient-community-apps | 9957c95d2e36e8c02f87bec9de8c1c25fe292133 | 0ada1fbd0ab4dba935f99c26151b889bfec1aa94 | refs/heads/master | 2020-03-26T09:35:37.624977 | 2019-02-14T21:08:05 | 2019-02-14T21:08:05 | 144,754,375 | 0 | 0 | MIT | 2018-08-14T17:54:35 | 2018-08-14T17:54:34 | null | UTF-8 | Python | false | false | 8,560 | py | # -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved.
"""Resilient functions component to execute ODBC queries"""
# Set up:
# Destination: a Queue named "fn_odbc_query".
# Manual Action: Execute an ODBC query.
import logging
import j... | [
"hpyle@us.ibm.com"
] | hpyle@us.ibm.com |
19bba6d1e083618200425d2253f854eb00fb3dc4 | 98ad95ff9f29a6b513285d1728bd0cf46dfc5b1e | /fabfile.py | e5327f159ec8b75f7158d056e575341988c3f20d | [] | no_license | alexisbellido/The-Django-gunicorn-fabfile-project | 4f79a21d654c218ec2a2fdd6368d6bb1fc0697d1 | 02223eb6cb280a7ec39a197282b824b660cbbe40 | refs/heads/master | 2020-12-25T17:35:39.693444 | 2016-08-19T16:17:59 | 2016-08-19T16:17:59 | 3,094,937 | 71 | 6 | null | null | null | null | UTF-8 | Python | true | false | 22,894 | py | """
This Fabric script allows you setup an Ubuntu 11.10 server to run a Django project with Nginx and gunicorn.
How to use
===============
1. This step is optional. If you still haven't created a user to run the project you can start with an existing user to create one.
$ fab -H existing_user@host add_user:user
That ... | [
"alexis@ventanazul.com"
] | alexis@ventanazul.com |
a5b234854ec365a4b6fefb836946142c0d47892e | 0f8909782b5150783b738df3875c91509a92a33b | /scena/c0360.bin.py | 3ba003a4426001a972794a4678421257ae120154 | [] | no_license | uyjulian/ao_text | e40cd982bcdd5ea9ffd6f0f2e97ce9b92749b63a | 5cc5468aeb64fa97935f334a627357ec10e22307 | refs/heads/master | 2021-06-26T21:43:07.489898 | 2017-07-05T16:55:01 | 2017-07-05T16:55:01 | 96,562,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,364 | py | from ScenarioHelper import *
def main():
CreateScenaFile(
"c0360.bin", # FileName
"c0360", # MapName
"c0360", # Location
0x002D, # MapIndex
"ed7150",
0x00002000, # Flag... | [
"uyjulian@gmail.com"
] | uyjulian@gmail.com |
5105e52f98ed84b79ff269851378c5a40a8a88ff | 52a4d282f6ecaf3e68d798798099d2286a9daa4f | /new/see.py | fe557c2a3f54092dbbfc7bee22afdd9584a41bff | [
"MIT"
] | permissive | bkovitz/FARGish | f0d1c05f5caf9901f520c8665d35780502b67dcc | 3dbf99d44a6e43ae4d9bba32272e0d618ee4aa21 | refs/heads/master | 2023-07-10T15:20:57.479172 | 2023-06-25T19:06:33 | 2023-06-25T19:06:33 | 124,162,924 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | # see.py -- Functions to run experiments, i.e. to "see" something
from typing import Union, List, Tuple, Dict, Set, FrozenSet, Iterator, \
Iterable, Any, NewType, Type, ClassVar, Sequence, Callable, Hashable, \
Collection, Sequence, Literal, Protocol, Optional, TypeVar, IO, \
runtime_checkable
from pprint ... | [
"bkovitz@indiana.edu"
] | bkovitz@indiana.edu |
48b63198a8ead831578b3009bbc21ff97163e61f | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/doctor/migrations/0283_doctorclinictiming_custom_deal_price.py | c86388d49326d3bfb4ada6484e7043ce2a98252d | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Generated by Django 2.0.5 on 2019-07-25 11:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('doctor', '0282_doctorclinictiming_insurance_fees'),
]
operations = [
migrations.AddField(
model_name='doctorclinictiming',
... | [
"sonamsinha@policybazaar.com"
] | sonamsinha@policybazaar.com |
5784d8ec802bef65043ea4f3a90fe73731566251 | 1eba03a3a7b5f6133dfcbc7a0ab9c73f950a79d8 | /algorithms/116. Populating Next Right Pointers in Each Node/python/solution.py | 0869a5e6ec1d4c8bda3fb1ef4a00e715ec37bce0 | [] | no_license | GTxx/leetcode | ab640cad726111a5fd78ecfbc02f75a61112bc2c | b7f85afe1c69f34f8c6025881224ae79042850d3 | refs/heads/master | 2021-06-15T18:43:41.358275 | 2021-05-08T08:15:05 | 2021-05-08T08:15:05 | 70,294,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # Definition for a Node.
class Node:
def __init__(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None):
self.val = val
self.left = left
self.right = right
self.next = next
class Solution:
def connect(self, root: 'Node') -> 'Node':
if not r... | [
"xiongxiong1986@gmail.com"
] | xiongxiong1986@gmail.com |
3efa8a2b00aba54f482ba77ef8f3ad981a187f7e | acb501c11f31e47a727c8233b29a049c36bb46ac | /zounds/timeseries/test_constantrate.py | 3aece4414c4570aee1fd964394f4f84a3e640c12 | [
"MIT"
] | permissive | JohnVinyard/zounds | 2c89c35ce9542f61a1d36c36a77944dfb65e59cc | fc4ed6f9c2ba5db5ba379b5b106dc23c045f1dc0 | refs/heads/master | 2022-12-09T19:55:01.055460 | 2020-03-05T12:50:05 | 2020-03-05T12:50:05 | 54,522,542 | 23 | 8 | MIT | 2022-12-08T00:34:47 | 2016-03-23T01:55:04 | Python | UTF-8 | Python | false | false | 1,491 | py | import unittest2
from .constantrate import ConstantRateTimeSeries
from zounds.core import ArrayWithUnits, IdentityDimension
from zounds.timeseries import TimeDimension, Seconds, Milliseconds, TimeSlice
import numpy as np
class ConstantRateTimeSeriesTests(unittest2.TestCase):
def test_raises_when_not_array_with_u... | [
"john.vinyard@gmail.com"
] | john.vinyard@gmail.com |
57571db10eec5a7923e17bf12f5b4f4bffbc64d6 | cdc53dc4e74ad421e8e520bc3a9b0587fe996d7c | /models/weakly_det.py | 26727f966654c8209adb056dca5403061123812f | [] | no_license | yekeren/WS-EK100 | 9f213926a6683fd778fafef7dd988858ace2927d | 571224e078c8240bb6cd88d980762d72bdddc892 | refs/heads/main | 2023-07-26T13:47:52.954832 | 2021-09-09T06:30:09 | 2021-09-09T06:30:09 | 362,164,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,379 | py | # Copyright 2020 Keren Ye, University of Pittsburgh
#
# 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... | [
"yekeren.cn@gmail.com"
] | yekeren.cn@gmail.com |
22b136c8a0dddfd8b4ab44beb2d11396df0bec6a | 0ff6dcb439a8d92a7c384cfd7f4f4796a394088a | /drfutils/tests/test_serializers.py | 88a49b545bdfc92c9c30f29e931392a83fedd49b | [] | no_license | ployst/drf-utils | 7285329e2983e59ad19febabb512b278cffa8c78 | 8ae3afc80124f840ce29c9913aab6c0e27a68218 | refs/heads/master | 2021-07-15T05:10:21.706722 | 2021-03-22T10:23:38 | 2021-03-22T10:23:38 | 47,344,241 | 0 | 0 | null | 2021-03-22T10:22:17 | 2015-12-03T16:21:12 | Python | UTF-8 | Python | false | false | 4,253 | py | from unittest import TestCase
from unittest.mock import Mock
from rest_framework import fields, serializers
from ..serializers import (
DynamicFieldsSerializerMixin,
ExpandableFieldsSerializerMixin,
SubSerializer,
)
class CreatorSerializer(serializers.Serializer):
name = fields.CharField()
other... | [
"carles@barrobes.com"
] | carles@barrobes.com |
215056e46f37cc1da3eb72cceedda51abdd0cda5 | 032a0c939d96d0e5307dbce86e11faf7060f4ed9 | /lte/gateway/python/scripts/sms_cli.py | c4584e4a089a1e872af1a9b86e7c3a2d54801135 | [
"BSD-3-Clause"
] | permissive | radha0018/magma | cac9ff3491dd2661e5dc0aa1f9a304a5428e2d2a | 8436966a4bb3cf7fdc3f567704062b6f9568db25 | refs/heads/master | 2023-05-05T08:26:07.132969 | 2021-05-27T18:44:44 | 2021-05-27T18:44:44 | 371,097,174 | 0 | 2 | NOASSERTION | 2021-05-26T16:26:21 | 2021-05-26T16:15:53 | Go | UTF-8 | Python | false | false | 2,171 | py | #!/usr/bin/env python3
"""
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BAS... | [
"noreply@github.com"
] | radha0018.noreply@github.com |
b3e15fba0594bc5b837263733cea02f3190b9c27 | e2c99310fecced655cac34bc494d255744e77e4f | /camera_server/led_driver.py | 554584323254d70917c9c9da14a67670b07bed1d | [] | no_license | stfc-aeg/timeslice-camera | 2532b440efdbb2965b16ca68f0d444ea17f1174e | 868648f4c6ffadb60e0f6d91e835583d545f2099 | refs/heads/master | 2022-12-08T22:18:33.092074 | 2022-12-02T12:55:16 | 2022-12-02T12:55:16 | 166,972,587 | 0 | 0 | null | 2022-12-02T12:52:59 | 2019-01-22T10:13:10 | Python | UTF-8 | Python | false | false | 2,484 | py | import importlib
import threading
import time
class LedDriver(object):
GreenLed = 19
RedLed = 26
OFF = 0
RED = 1
GREEN = 2
YELLOW = 3
def __init__(self, simulate=False):
if not simulate:
self.gpio = importlib.import_modu... | [
"tim.nicholls@stfc.ac.uk"
] | tim.nicholls@stfc.ac.uk |
19764049b4d17c5beb95008b433bc33895769e39 | 491980a6d5936d09bc1bb9b9124729c02f3b1724 | /soup.py | 91fa8504bfb622e0ba0b810e7f8afc6a30c9bc99 | [] | no_license | larryback/hello | 2dc8506dcc20af615feff1f29d2b889bbb1142bb | e0937cd616c1dc7795d887ea88613ef399d7b17d | refs/heads/master | 2020-04-04T23:15:36.303348 | 2019-05-02T08:48:31 | 2019-05-02T08:48:31 | 156,352,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # 모듈을 읽어 들입니다.
from urllib import request
from bs4 import BeautifulSoup
# urlopen() 함수로 기상청의 전국 날씨를 읽습니다.
target = request.urlopen("http://www.kma.go.kr/weather/forecast/mid-term-rss3.jsp?stnId=108")
# BeautifulSoup를 사용해 웹 페이지를 분석합니다.
soup = BeautifulSoup(target, "html.parser")
# location 태그를 찾습니다.
for location in... | [
"41230266+larryback@users.noreply.github.com"
] | 41230266+larryback@users.noreply.github.com |
03b2f23d2757fad8b46cab6be4fdbaaaaf3ef33f | f284404ea66c196a1ea71b40965df9f934b45579 | /tohu/v6/base.py | e2af962cb79e90d0c3913ca68098c08153a4af7b | [
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | maxalbert/tohu | 44afe1c9e00612f862725f8292f5bd67e8fabeb1 | 3adf0c58b13ef1e1d716d7d613484d2adc58fb60 | refs/heads/master | 2023-01-09T00:42:03.280102 | 2019-06-16T22:56:26 | 2019-06-16T22:56:26 | 103,514,619 | 1 | 0 | MIT | 2022-12-26T20:58:20 | 2017-09-14T09:37:44 | Python | UTF-8 | Python | false | false | 5,948 | py | import hashlib
from abc import ABCMeta, abstractmethod
from itertools import islice
from random import Random
from tqdm import tqdm
from .item_list import ItemList
from .logging import logger
__all__ = ['SeedGenerator', 'TohuBaseGenerator', 'PrimitiveGenerator']
class SeedGenerator:
"""
This class is used ... | [
"maximilian.albert@gmail.com"
] | maximilian.albert@gmail.com |
4c1804c1cb0ea2f21b572a6c32c51b18d457aa55 | 559f3dec0964d2e0f86c6c871371fe779cf3726c | /paddleseg/optimizers/__init__.py | d669eef84e51b4237c573814032319e5e68cfdc0 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSeg | 319ab26665ea492527a1949671650135123ffc39 | 2c8c35a8949fef74599f5ec557d340a14415f20d | refs/heads/release/2.8 | 2023-08-31T09:08:06.724717 | 2023-08-18T01:59:56 | 2023-08-18T01:59:56 | 204,380,779 | 8,531 | 1,866 | Apache-2.0 | 2023-09-12T02:30:42 | 2019-08-26T02:32:22 | Python | UTF-8 | Python | false | false | 634 | py | # Copyright (c) 2022 PaddlePaddle 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 applic... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
e3e572c265cbc960f9c3b458ab80b1d05f33c2e7 | efc55d73f1425ac90d227209b70867f4dd487c5c | /Chapter4/Aurora/src/test/python/apache/aurora/client/api/test_updater_util.py | 48926c3695dbcf38abd33b2d58a64d8e1ea1cdd3 | [
"Apache-2.0",
"MIT"
] | permissive | PacktPublishing/Mastering-Mesos | 9f6171b449ad96222ce18ad3e3f3c6cdfe8fdbf3 | 88dddb51ed9ad070340edb33eef9fd12745b9f8a | refs/heads/master | 2023-02-08T18:51:28.227621 | 2023-01-30T10:09:39 | 2023-01-30T10:09:39 | 58,921,823 | 12 | 6 | MIT | 2022-12-14T20:22:53 | 2016-05-16T09:52:00 | Java | UTF-8 | Python | false | false | 2,458 | py | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | [
"root@msgin.vvv.facebook.com"
] | root@msgin.vvv.facebook.com |
9b2df1273f127c9935654376dbcb15a1ce17f64a | e14bd4d5cf2c29241365c4d8bd83dacde95e28b5 | /LoggerConsole.py | 2ef99cbfc18cd38a8352953e4fc6c4d43c4f365d | [] | no_license | pns845/Selenium | 1c8aab5038ec1b768c6167f817f8590105130de1 | e3811291a70429bfd64f5c85b5efa3b6db6b517f | refs/heads/master | 2022-11-12T18:45:05.047406 | 2020-06-21T16:07:20 | 2020-06-21T16:07:20 | 269,676,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | import logging
class LoggerConsole():
def test(self):
#Create loggers
logger = logging.getLogger(LoggerConsole.__name__)
#create handlers
c_handler = logging.StreamHandler()
c_handler.setLevel(logging.INFO)#set level
f_handler = logging.FileHandler('testfile... | [
"noreply@github.com"
] | pns845.noreply@github.com |
f6ebc61f91a10c775752e51d0ab39f99bf9cffbf | c85edb98d25d5981a62c0314bcad9c76c7c322a0 | /slowcopy.py | 7d8d536c825082a5f98c92d14bab14838d01d9a2 | [] | no_license | rashley2712/webLogger | 32b3c037248c522ca7e34b7f8f2afaedc1a72a8f | a5663a28edc32fb1b4287e8536d06601e2fba40f | refs/heads/master | 2021-09-15T22:42:55.354876 | 2018-06-11T23:02:15 | 2018-06-11T23:02:15 | 112,726,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,918 | py | #!/usr/bin/env python3
import argparse, os, sys, re, time, shutil, math
import configHelper, generalUtils
defaultConfiguration = {
'delay': 10,
"SearchString": ".*.(fits|fits.gz|fits.fz|fit)"
}
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Copies a list of files from one directory to a... | [
"rashley@gmail.com"
] | rashley@gmail.com |
e449f0cb6f6f48803d5be94defba814652e8a412 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_LeakyReLU_base.py | 11777c8d8a472c34c97d05b5a5f085100c7473c1 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 626 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
1a124e04bca5cc0c8fe2de7777ae479949620e3f | 14d8418ca5990217be67aee89fdaa310db03fbba | /models/aws_ec2_scheduled_events_collector_attribute.py | 31ef0cb1376ccadf76b6a5cc8b3a308f5cf773a5 | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,620 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
385a37961de7925f25629a88a36c1a0d63f41217 | fb91c53b311cf191bc0f3a4efe5b1a0ba197944e | /city/models.py | c4d0e1b0f345e7feb2cb562f76451bc0e2678298 | [
"MIT"
] | permissive | fraferra/PlayCity | e0ba878c52a321afbdbba68d25717b29a5dd3109 | 2bf97c30599b686ca0e642d1ebaf73fc99705291 | refs/heads/master | 2021-01-19T16:26:24.955470 | 2014-08-08T21:56:08 | 2014-08-08T21:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from django.db import models
from datetime import date
from django import forms
from django.contrib.auth.models import User,UserManager
from django.utils import timezone
from django.db.models.signals import post_save
from django.utils.translation import ugettext as _
from social_auth.models import UserSocialAuth
from... | [
"fraferra@cisco.com"
] | fraferra@cisco.com |
a2c48d9c884f1975d9e79e1e159ddc7e2cb51f45 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/atbash-cipher/4a9bb83810cd468a9cf64a87a31ea17f.py | 4f743b7cfd974765f6dc65040ac11985476bcac0 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 676 | py | alphabet = 'abcdefghijklmnopqrstuvwxyz'
ciphered = alphabet[::-1]
def chunks(items, chunk_length):
return [items[i:i + chunk_length] for i in xrange(0, len(items), chunk_length)]
def translate(alpha, cipher, sequence, chunk_length=1, delim=''):
translated = ''
for char in sequence:
if char.isalpha... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
d600ce73b5c09ba644bf7875deae4843bf119281 | 27fe2941eff2160f38c70c2159ff7dc7709f3a04 | /Deep learning framework/Opencv/Feature matching.py | 2593be4ab6e9be5778820ec9e19db4df04c2983e | [] | no_license | 505555998/DL-data-processing-methods | 1c759b8da98626abd4ce17a91ca779aa6578508f | afd230726341058b40167554f9cdb0a681ae35dc | refs/heads/master | 2020-07-28T15:59:41.159182 | 2019-04-19T01:05:00 | 2019-04-19T01:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
MIN_MATCH_COUNT = 10
img1 = cv2.imread('box.png', 0) # queryImage
img2 = cv2.imread('box_in_scene.png', 0) # trainImage
# Initiate SIFT detector
sift = cv2.xfeatures2d.SIFT_create()
# find the keypoints and descriptors with SIFT
kp1, des1 = sift.d... | [
"897158662@qq.com"
] | 897158662@qq.com |
5d21853f3bd2825cf420c50b3e399ac4ff5848bb | 6146e33102797407ede06ce2daa56c28fdfa2812 | /python/GafferUSDUI/USDShaderUI.py | 4cfd5c70dec65a57b7f8bc2877d82d7562ef0f65 | [
"BSD-3-Clause"
] | permissive | GafferHQ/gaffer | e1eb78ba8682bfbb7b17586d6e7b47988c3b7d64 | 59cab96598c59b90bee6d3fc1806492a5c03b4f1 | refs/heads/main | 2023-09-01T17:36:45.227956 | 2023-08-30T09:10:56 | 2023-08-30T09:10:56 | 9,043,124 | 707 | 144 | BSD-3-Clause | 2023-09-14T09:05:37 | 2013-03-27T00:04:53 | Python | UTF-8 | Python | false | false | 8,409 | py | ##########################################################################
#
# Copyright (c) 2023, Cinesite VFX Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions ... | [
"thehaddonyoof@gmail.com"
] | thehaddonyoof@gmail.com |
a55aa82e219b0b660c2a15fe43b7a3d3261614c5 | 24b79d18bc9b522c86d65d7601d7012fe29b0693 | /Revision/emp_constructor.py | 06a199802b1a70bfcbac390ed1bf48e20d18d6bc | [] | no_license | meenapandey500/Python_program | 409fafa2e8f50edfbf30ddfbdf85b47569bf229c | 2bcb5fd51aebb4dca4bcc31a26e6b05a3603d5f0 | refs/heads/main | 2023-03-18T11:49:58.302858 | 2021-03-19T09:29:24 | 2021-03-19T09:29:24 | 349,359,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | class Employee:
def __init__(self): #__init__() constructor function : it is call automatic in main
#or anywhere when create the object of class in main program or anywhere
self.__Emp_no=101 #private variable
self.__Emp_name="Meena Pandey" #private variable
self.__Salary=67000 ... | [
"noreply@github.com"
] | meenapandey500.noreply@github.com |
82ecfe48f91670afdbde7c93fa521fd6b74af8fc | 31b509d7bdeb70dd43db6a611de3e59c7cd43f6c | /fit_model_RF_fitting.py | 9881621f23c1c0e45a4be78120b8643015c1bfaf | [] | no_license | GGXH/stanford_sd_project | f5aac0519faff714ee36ea75ff967e06a17db9af | 978c91a3be8b79f5926fa038cbfa425b06e66979 | refs/heads/master | 2021-01-10T17:30:47.901918 | 2015-12-04T05:37:24 | 2015-12-04T05:37:24 | 45,790,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,565 | py | import sys
from pymongo import MongoClient
import numpy as np
from sklearn import linear_model
from sklearn import svm
from sklearn.ensemble import RandomForestClassifier
from sklearn.externals import joblib
def Get_data_local(coll, y_name, i_start, i_end):
'''Get data from collection local'''
all_key_list = c... | [
"guoxin_94@hotmail.com"
] | guoxin_94@hotmail.com |
16385c39ccc27918d306c88271554e5c61c1d87b | 0fe216bd40886318529dd5cefd2c3b8bef9d0362 | /plasticity/dialogs/waxy/font.py | aefd2280e55c0630f631befc295db153886b26ea | [
"MIT"
] | permissive | bblais/plasticity | cb23f5a6de09a51bd2c3b0c1d79354c9405de23e | 6803f33c224f30d933abb746fcb9caa09b5975a4 | refs/heads/master | 2021-01-22T08:19:12.600330 | 2016-11-24T15:07:56 | 2016-11-24T15:07:56 | 34,904,121 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # font.py
import wx
class Font(wx.Font):
def __init__(self, name, size, italic=0, bold=0, underline=0):
wx.Font.__init__(self, size, wx.DEFAULT, italic and wx.ITALIC or wx.NORMAL,
bold and wx.BOLD or wx.NORMAL, underline, name)
def IsItalic(self):
return bool(self.GetStyle() & wx.ITA... | [
"bblais@gmail.com"
] | bblais@gmail.com |
3dbab705d4e4471e5355aed5c04140014130ce80 | 5d069aa71e5cd242b4f1f29541dc85107822cbda | /mc_states/modules/mc_phantomjs.py | 36380688259cb8ac71b8cebfdd4e5f693f35b5c1 | [
"BSD-3-Clause"
] | permissive | h4ck3rm1k3/makina-states | f22a5e3a0dde9d545108b4c14279451198682370 | 3f2dbe44867f286b5dea81b9752fc8ee332f3929 | refs/heads/master | 2020-02-26T13:17:09.895814 | 2015-01-12T21:45:02 | 2015-01-12T21:45:02 | 29,172,493 | 0 | 0 | null | 2015-01-13T04:23:09 | 2015-01-13T04:23:07 | null | UTF-8 | Python | false | false | 1,532 | py | # -*- coding: utf-8 -*-
'''
.. _module_mc_phantomjs:
mc_phantomjs / phantomjs/npm registry
============================================
'''
# Import python libs
import logging
import mc_states.utils
__name = 'phantomjs'
log = logging.getLogger(__name__)
def settings():
'''
phantomjs
'''
@mc_stat... | [
"kiorky@cryptelium.net"
] | kiorky@cryptelium.net |
0a6dd44f23fab86d0444c757fc7d7888276a5aec | cac9c211a4eeb55cfd61d8e5c54a1d4082c4de33 | /Experimental/WindowsPyDbg/errors.py | 54e3c44867aa40ba8dda79375a8e847c0ccf9293 | [
"BSD-3-Clause"
] | permissive | vchateauneu/survol | 8c8b5db67f81c6400c3e2f4b84b57fb83d69fb1f | 2b5be9d28115f8f9b1dd91bf05449c92bf9a9926 | refs/heads/master | 2020-03-21T09:11:37.765314 | 2018-07-03T20:40:16 | 2018-07-03T20:40:16 | 138,387,051 | 1 | 0 | null | 2018-06-23T09:05:45 | 2018-06-23T09:05:45 | null | UTF-8 | Python | false | false | 2,517 | py | #
# PyDBG
# Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com>
#
# $Id: pdx.py 238 2010-04-05 20:40:46Z rgovostes $
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation;
# either version 2 of ... | [
"remi.chateauneu@gmail.com"
] | remi.chateauneu@gmail.com |
5bace4a42ce861fdb1f8673cf2991d92f8e80a6d | 67973c905a24dcd76d434afcc92fea71657963ad | /pyfileconf/data/models/astitems.py | ff417c1c028bec1b443064222577f7b8d0c384c4 | [
"MIT"
] | permissive | nickderobertis/py-file-conf | 45b485288047b9e6e9d75b9af8a718b9907d549f | 100773b86373035a5b485a1ed96d8f5a1d69d066 | refs/heads/master | 2023-01-10T17:00:52.997057 | 2020-08-06T08:07:11 | 2020-08-06T08:07:11 | 237,109,929 | 2 | 0 | MIT | 2022-12-26T21:40:58 | 2020-01-30T00:27:30 | Python | UTF-8 | Python | false | false | 509 | py | import ast
ast_none = ast.NameConstant(value=None)
ast_dict_constructor = ast.Call(
func=ast.Name(id='dict'),
args=[],
keywords=[]
)
def ast_str(string: str) -> ast.Str:
return ast.Str(s=string)
def ast_dict_constructor_with_kwargs_from_dict(d: dict) -> ast.Call:
return ast.Call(
func=ast... | [
"whoopnip@gmail.com"
] | whoopnip@gmail.com |
f9e7804a745a0aaee85f3f86a5ed3faefde331d7 | ff21dd1b906db472584aa92a32c22fb9351c9ffd | /NOTE/02_PythonBase/day06/day05_exercise/prime.py | 6df2f4f3652e4b40311b2f61b70e989acb474e89 | [] | no_license | Bertram-Liu/Note | 0e176b2c9625f02e463b8f6be3587f1f0b873e9b | 60a30b03ff5d41ab6233e6fd30074de396703b68 | refs/heads/master | 2020-07-18T18:14:24.920528 | 2019-09-04T11:55:59 | 2019-09-04T11:55:59 | 206,290,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # 2. 写一个程序,任意输入一个整数,判断是否是素数(prime)
# 素数(也叫质数),是只能被1和自身整除的正整数
# 如: 2 3 5 7 11 13 17 19 ...
# 提示:
# 可以用排除法: 当判断x是否为素数时,只要让x分别除以
# 2,3,4,5,6,...,x-1, 只要有一次整除了,则x不是素数
# 否则x是素数
x = int(input("请输入一个正整数: "))
if x < 2:
print(x, '不是素数')
else: # x一定大于等于2
flag = True... | [
"bertram_liu@163.com"
] | bertram_liu@163.com |
c39334c2134e25e265469b1c0343f04596d3d68c | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/ariadne/test.py | e8acb3c4b0a78caa1b921f7cfe6ef7b05835e760 | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15 | py | import ariadne
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
c212017f5735ea2c485567ebeb8400b4992a39a2 | 307ccdde9c423f1587b34d05385b90fad7b9eb90 | /codechef/June14/nth_root_binary_search.py | 35e212e3977dc34a8c4727804cbb81eef22dc975 | [] | no_license | ravi-ojha/competitive-sport | 98513e28624f6ff279bf378ba13bb4bed7497704 | 617847cbc880a9b79173d35c243b4c6f73c3f7a8 | refs/heads/master | 2021-06-08T14:02:36.233718 | 2017-08-22T21:47:22 | 2017-08-22T21:47:22 | 56,091,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | def find_invpow(x,n):
"""Finds the integer component of the n'th root of x,
an integer such that y ** n <= x < (y + 1) ** n.
"""
high = 1
while high ** n < x:
high *= 2
low = high/2
while low < high:
mid = (low + high) // 2
if low < mid and mid**n < x:
low... | [
"raviojha2105@gmail.com"
] | raviojha2105@gmail.com |
ac31f95a16424dbc1b1b4e3dd7c11f78bdc17e32 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/nonNegativeInteger/Schema+Instance/NISTXML-SV-IV-list-nonNegativeInteger-length-2-3.py | db1e3d4aaba3c0a94f725eea76ec4807016f3b20 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 475 | py | from output.models.nist_data.list_pkg.non_negative_integer.schema_instance.nistschema_sv_iv_list_non_negative_integer_length_2_xsd.nistschema_sv_iv_list_non_negative_integer_length_2 import NistschemaSvIvListNonNegativeIntegerLength2
obj = NistschemaSvIvListNonNegativeIntegerLength2(
value=[
9873641483534... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
91d7c401a5ea3494d337c75771a071d9e8c5ffec | ebdb220932b649145050c9b182388941e00a8899 | /pwndbg/enhance.py | 45936d0f8e1c6a7259fcbf6a3c1186df37bb38dd | [
"MIT"
] | permissive | br0ns/pwndbg | 48f6aee03febcf46ab84899d9edac5f065515452 | d5e4c6681c98a936218f131d2740f08f3111861f | refs/heads/master | 2021-01-16T20:48:36.151631 | 2016-03-14T08:53:54 | 2016-03-14T08:53:54 | 44,586,717 | 0 | 0 | null | 2015-10-20T06:30:28 | 2015-10-20T06:30:28 | null | UTF-8 | Python | false | false | 4,149 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Given an address in memory which does not contain a pointer elsewhere
into memory, attempt to describe the data as best as possible.
Currently prints out code, integers, or strings, in a best-effort manner
dependent on page permissions, the contents of the data, and an... | [
"riggle@google.com"
] | riggle@google.com |
d463274fc9b9f157e6b5bef2ee27ed5fbd28fc37 | f9a5e7233875989f994438ce267907d8210d60a1 | /training/online/pulsar_star/pulsar_results_2.py | df149cb3ef447eac6240b3400b0478c4d352ebdd | [] | no_license | renoslyssiotis/When-are-Machine-learning-models-required-and-when-is-Statistics-enough | da8d53d44a69f4620954a32af3aacca45e1ed641 | 6af1670a74345f509c86b7bdb4aa0761c5b058ff | refs/heads/master | 2022-08-29T20:21:57.553737 | 2020-05-26T18:03:46 | 2020-05-26T18:03:46 | 256,439,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | import sys, os
from pathlib import PurePath
current_dir = os.path.realpath(__file__)
p = PurePath(current_dir)
sys.path.append(str(p.parents[3]))
from models.meta_features import metaFeatures
from models.classifiers import classifier
from models.pre_processing import preProcessor
import pandas as pd
import numpy as n... | [
"rl554@cam.ac.uk"
] | rl554@cam.ac.uk |
e557869ef3f794ff3d4163103cbed0bb4daefd6b | 262195faec1b59ff67067f2dc7e3eb7db8dba946 | /src/concurrency in python/python concurrecy/18.Controlling Access to Resources.py | 8c00c663086aa9ba987ccef984d553398cdfae71 | [
"MIT"
] | permissive | sudeep0901/python | 3a090ae2cd8a61e8e375cebb4722c051d2d766aa | 7a50af12e72d21ca4cad7f2afa4c6f929552043f | refs/heads/master | 2022-04-21T14:15:25.606241 | 2020-04-13T02:35:56 | 2020-04-13T02:35:56 | 155,167,294 | 0 | 0 | MIT | 2020-03-07T06:59:36 | 2018-10-29T07:08:06 | Jupyter Notebook | UTF-8 | Python | false | false | 1,698 | py | # In addition to synchronizing the operations of threads,
# it is also important to be able to control access to shared resources to prevent corruption or missed data.
# Python’s built-in data structures (lists, dictionaries, etc.) are thread-safe as a side-effect of having atomic
# byte-codes for manipulating them ... | [
"sudeep.tech.patel@gmail.com"
] | sudeep.tech.patel@gmail.com |
3f629d963d47d369664b055140f831e189562bf7 | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/share/pyshared/butterfly/mail_notification.py | 36956584dc3fa17ad56a6557227119a7e9b525fd | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,616 | py | # telepathy-butterfly - an MSN connection manager for Telepathy
#
# Copyright (C) 2010 Collabora Ltd.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at ... | [
"root@xinli.xinli"
] | root@xinli.xinli |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.