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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd97094e0e53418b16229ca0ca1a5efacd5e520f | 1b53325f6976bd2697f1d9678054b8a1e5dd059c | /update/without_expansion/2.run_calculate_concept_map.py | d0f902e4761716435b798ad4bda40a5255298bc5 | [
"MIT"
] | permissive | vsoch/semantic-image-comparison | d34150b4fed36d55f934e727297ee188951e3ed9 | ab029ad124fc6d6e7ae840c24a8e9471d8737525 | refs/heads/master | 2020-04-06T07:04:21.726094 | 2016-08-13T23:13:10 | 2016-08-13T23:13:10 | 48,921,431 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | #!/usr/bin/python
from glob import glob
import sys
import pandas
import os
# Classification framework
# for image1 in all images:
# for image2 in allimages:
# if image1 != image2:
# hold out image 1 and image 2, generate regression parameter matrix using other images
# generate predicte... | [
"vsochat@stanford.edu"
] | vsochat@stanford.edu |
f44574379435b1f2cd4ce38956cd022587c8a169 | f64fde1c4ae338987b76c10c1029468143f1d83a | /Test_programs/stacking_arm/main.py | 86a75d8333a3fe74d564dc64820892d75fccba01 | [] | no_license | abhijithneilabraham/Project-ANTON | 56a21941042034c9c2b407e25d4e75925a158e71 | 03478d9c9a537c2507a06e3c022a1092587cdc06 | refs/heads/master | 2023-04-01T21:01:14.568164 | 2020-05-01T14:19:24 | 2020-05-01T14:19:24 | 203,203,760 | 2 | 0 | null | 2023-03-24T22:42:40 | 2019-08-19T15:52:11 | Python | UTF-8 | Python | false | false | 1,285 | py | """
Make it more robust.
Stop episode once the finger stop at the final position for 50 steps.
Feature & reward engineering.
"""
from env import ArmEnv
from rl import DDPG
MAX_EPISODES = 900
MAX_EP_STEPS = 200
ON_TRAIN = False
# set env
env = ArmEnv()
s_dim = env.state_dim
a_dim = env.action_dim
a_bound = env.action_... | [
"abhijithneilabrahampk@gmail.com"
] | abhijithneilabrahampk@gmail.com |
96a2c8ceb28ab064438abaa8b14ad96c713bff9c | b1d921644161105c3fa12d51702565a22b3e0d1e | /typeidea/blog/migrations/0001_initial.py | 84095c3a37f3779d83ece9dee0a3985fb3718f2e | [] | no_license | FATE-0/blog | 01e74a1f105ea2fc1b27e69be376ce4270e32f13 | fca878f68f8dc67a4e8b75d9c8f109d6e820375d | refs/heads/master | 2020-06-19T10:17:35.152719 | 2019-07-19T11:17:26 | 2019-07-19T11:17:26 | 196,675,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | # Generated by Django 2.2.3 on 2019-07-14 08:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"eric@example.com"
] | eric@example.com |
79ce3d8730d723b0fcac829ec4d82d885bbddb31 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/StructuredProductsDealPackage/FPythonCode/SP_TrfExerciseCalculations.py | 908ccec668aabaa4a82d6a6f0e52e0a4cb029113 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,027 | py |
#***************************************************************
#
# Module calculating the settlement amounts
#
#***************************************************************
import acm
from SP_TrfUtils import BuySellMapping, TrfHasBarrier, TrfExpiryEvent, TrfExpiryEventsSortedByDate
from SP_DealPackageHelper im... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
a264914ada26cf2cef65b45470569fb9c72b51bb | 01dc09fdf4a9203da336b893650235f16ff5380f | /Backtest/Historical_BackTest/Neat/tf_neat-trader-intraday/no_hidden_layer/Tech_Input/simple/genome_test.py | 91c0fbe7c5d8937396ad29d1897557fa3872d7e4 | [] | no_license | webclinic017/RayTrader_v3 | 2b15228881bf7a08e90682a2364905317c282f65 | 2ea39946a2654dbc3b05b41abcaf5a4a4082a1b6 | refs/heads/master | 2023-03-16T04:40:41.392465 | 2019-06-04T04:46:46 | 2019-06-04T04:46:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | import glob
import multiprocessing
import trader_env
import trader_data
import visualize
import reporter
from statistics import mean
import numpy as np
import neat
import pickle
import matplotlib.pyplot as plt
file_name = "G:\\AI Trading\\Code\\RayTrader_v3\\HistoricalData\\Min_data\\ADANIPORTS-EQ.csv"
data = trader_... | [
"rayanup3@gmail.com"
] | rayanup3@gmail.com |
487890ec6dfa248593a93530920bc2c0b559b453 | 3cdb4faf34d8375d6aee08bcc523adadcb0c46e2 | /web/env/lib/python3.6/site-packages/django/contrib/messages/storage/base.py | fd5d0c24aa8037c6beb35ed14e85fda6851aa798 | [
"MIT",
"GPL-3.0-only"
] | permissive | rizwansoaib/face-attendence | bc185d4de627ce5adab1cda7da466cb7a5fddcbe | 59300441b52d32f3ecb5095085ef9d448aef63af | refs/heads/master | 2020-04-25T23:47:47.303642 | 2019-09-12T14:26:17 | 2019-09-12T14:26:17 | 173,157,284 | 45 | 12 | MIT | 2020-02-11T23:47:55 | 2019-02-28T17:33:14 | Python | UTF-8 | Python | false | false | 5,643 | py | from django.conf import settings
from django.contrib.messages import constants, utils
LEVEL_TAGS = utils.get_level_tags()
class Message:
"""
Represent an actual message that can be stored in any of the supported
storage classes (typically session- or cookie-based) and rendered in a view
or template.
... | [
"rizwansoaib@gmail.com"
] | rizwansoaib@gmail.com |
5b6746bc96796294065d58ec98028daa3d44bbf9 | 2f5ab43956b947b836e8377370d786e5ee16e4b0 | /sklearn2code/sym/test/test_printers.py | d1f8d27e37ac139c656be81f1359268ce15271d4 | [
"MIT"
] | permissive | modusdatascience/sklearn2code | b175fb268fa2871c95f0e319f3cd35dd54561de9 | 3ab82d82aa89b18b18ff77a49d0a524f069d24b9 | refs/heads/master | 2022-09-11T06:16:37.604407 | 2022-08-24T04:43:59 | 2022-08-24T04:43:59 | 115,747,326 | 4 | 2 | MIT | 2018-05-01T00:11:51 | 2017-12-29T19:05:03 | Python | UTF-8 | Python | false | false | 874 | py | from sklearn2code.sym.expression import FiniteMap, Integer, false, true,\
IntegerVariable, RealPiecewise, RealNumber
from sklearn2code.sym.printers import JavascriptPrinter
from nose.tools import assert_equal
def test_javascript_finite_map():
expr = FiniteMap({Integer(0): false, Integer(1): true}, IntegerVari... | [
"jcrudy@gmail.com"
] | jcrudy@gmail.com |
1a01f5c2747cdd429c329c7250f34280b5f686d2 | 412b699e0f497ac03d6618fe349f4469646c6f2d | /env/lib/python3.8/site-packages/web3/_utils/threads.py | ba45d8775e0e35fd72ae6117133e9d50ea23bdc3 | [
"MIT"
] | permissive | EtienneBrJ/Portfolio | 7c70573f02a5779f9070d6d9df58d460828176e3 | 6b8d8cf9622eadef47bd10690c1bf1e7fd892bfd | refs/heads/main | 2023-09-03T15:03:43.698518 | 2021-11-04T01:02:33 | 2021-11-04T01:02:33 | 411,076,325 | 1 | 0 | MIT | 2021-10-31T13:43:09 | 2021-09-27T23:48:59 | HTML | UTF-8 | Python | false | false | 3,979 | py | """
A minimal implementation of the various gevent APIs used within this codebase.
"""
import threading
import time
from types import (
TracebackType,
)
from typing import (
Any,
Callable,
Generic,
Type,
)
from web3._utils.compat import (
Literal,
)
from web3.types import (
TReturn,
)
cla... | [
"etiennebrxv@gmail.com"
] | etiennebrxv@gmail.com |
d5439756a472a776f6e2de4f77152fbc8854b8cf | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/280/97935/submittedfiles/testes.py | d88ecb76f5e989a6ee41f07dc266207edd3ddf88 | [] | 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 | 2,328 | py | """
valor=["X","O"]
symh=valor[0]
sympc=valor[1]
print(symh)
print(sympc)
line1=[" "," "," "]
line2=[" "," "," "]
line3=[" "," "," "]
print("|%s|%s|%s|" % (line1[0],line1[1],line1[2]) )
print("|%s|%s|%s|" % (line2[0],line2[1],line2[2]) )
print("|%s|%s|%s|" % (line3[0],line3[1],line3[2]) )
line1[2]=sym... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3b86e81c1aefa746ea0b2327c9bc1e620689dd0a | 7a013424c82b71bc82aa312e0165a1af4170ac23 | /ABC/ABC173/C.py | c0f86d46455b822b965fac48b703f8bf73750487 | [] | no_license | kikugawa-shoma/Atcoder | fe3405e36dd3e4e25127b6110d6009db507e7095 | 7299116b7beb84815fe34d41f640a2ad1e74ba29 | refs/heads/master | 2020-12-21T19:10:12.471507 | 2020-10-10T16:38:18 | 2020-10-10T16:38:18 | 236,531,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | import copy
H,W,K = map(int,input().split())
C = [list(input()) for _ in range(H)]
M = [[0]*W for _ in range(H)]
for i in range(H):
for j in range(W):
if C[i][j] == "#":
M[i][j] = 1
def bit_01(keta):
ans = []
for i in range(2**(keta)):
ans.append("".join(["{:0", ... | [
"kikugawa-s@sys.i.kyoto-u.ac.jp"
] | kikugawa-s@sys.i.kyoto-u.ac.jp |
9176d3e53da70f0692fbab648cb4c76f58216f6d | 059c4606fd93b70c244a0017cc1727d1b951e75a | /5-packages/http-examples/httpie-notes/httpie/context.py | c0840c9d051252a44b25937acfd607e94db2b7e7 | [
"BSD-3-Clause"
] | permissive | andyguwc/python-resources | 1f6850b1fde243912644530ee8985ae09773c68e | d8ab7e54d287a697e4763a36b10136af461ec820 | refs/heads/master | 2021-06-24T13:30:25.196129 | 2021-03-02T03:11:49 | 2021-03-02T03:11:49 | 210,958,803 | 1 | 1 | null | 2019-10-25T03:12:31 | 2019-09-25T23:29:29 | Python | UTF-8 | Python | false | false | 3,005 | py | import os
import sys
from pathlib import Path
from typing import Union, IO, Optional
try:
import curses
except ImportError:
curses = None # Compiled w/o curses
from httpie.compat import is_windows
from httpie.config import DEFAULT_CONFIG_DIR, Config, ConfigFileError
from httpie.utils import repr_dict
# u... | [
"tianyou.gu@gmail.com"
] | tianyou.gu@gmail.com |
da2ea8e51998c780767ce2552d82184f69db07fe | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba4199.pngMap.py | 1ad5d97a840efedf5f02dfe430ab6575dc397483 | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba4199.pngMap = [
'00000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111100000000000000000',
'00000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111110000000000000000',
'0000000000000000000000000000000000000... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
05eacae54547837444451aba6a9ab0c685add15e | 03198f075072bfb9d5c5afab2fef99d3ec5f37db | /source/api_v2/serializers/advert.py | 8c9cf5e5ce4d0f747676fb2b5908d2bbc2e61240 | [] | no_license | Azer-Denker/Ex_12 | 2c402dffddbf726bfaab61f5022ea0cf6b6b3562 | 97d4eda2d621163c6e12ea388569b50157d09fd5 | refs/heads/main | 2023-07-14T19:05:39.763400 | 2021-08-21T13:30:31 | 2021-08-21T13:30:31 | 398,558,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from rest_framework import serializers
from webapp.models import Advert
class AdvertSerializer(serializers.ModelSerializer):
class Meta:
model = Advert
fields = ('id', 'title', 'text', 'author', 'created_at')
read_only_fields = ('author', 'id')
def create(self, validated_data):
... | [
"azerarlen312@gmail.com"
] | azerarlen312@gmail.com |
efceb7bfde0ca3da44a812a43f838b7ac79170bb | 79eb159b3ee36eb76bd921be24081708f44ac735 | /tests/test_codec.py | d9f73bcd0a34d29503f034d3199e6d5a2172f9d8 | [] | no_license | osh/PyAV | d7139f8faf7ee0973376db807e3b917863e9fb73 | 5fa85fd142ee8dabf01f4873e29678aeca153b4f | refs/heads/master | 2021-01-18T13:24:52.202662 | 2015-12-11T04:01:52 | 2015-12-11T04:01:52 | 47,802,016 | 1 | 0 | null | 2015-12-11T03:12:18 | 2015-12-11T03:12:18 | null | UTF-8 | Python | false | false | 620 | py | from .common import *
from av.codec import Codec
from av.video.format import VideoFormat
class TestCodecs(TestCase):
def test_codec_mpeg4(self):
c = Codec('mpeg4')
self.assertEqual(c.name, 'mpeg4')
self.assertEqual(c.long_name, 'MPEG-4 part 2')
self.assertEqual(c.type, 'video')
... | [
"github@mikeboers.com"
] | github@mikeboers.com |
13d80f56e85681da4140ed64b47d36026edbf212 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/operations/_subscriptions_operations.py | 44a1d6b996b444a635fd1f5eca5b7f564867551d | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 10,390 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
2614cf1f44792beeb55c2a2e4257282366b8da9c | f33b30743110532ddae286ba1b34993e61669ab7 | /869. Reordered Power of 2.py | 9fecfa97156c715493e1bcf2e58aab9b47cf8034 | [] | no_license | c940606/leetcode | fe9dcee7a5daa4d52999d5f53253dd6dd33c348b | 631df2ce6892a6fbb3e435f57e90d85f8200d125 | refs/heads/master | 2021-07-10T14:01:26.164966 | 2020-08-16T10:46:16 | 2020-08-16T10:46:16 | 186,588,449 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | class Solution:
def reorderedPowerOf2(self, N):
"""
:type N: int
:rtype: bool
"""
from collections import Counter
c = Counter(str(N))
return any(c == Counter(str(1 << i)) for i in range(32))
a = Solution()
print(a.reorderedPowerOf2(16))
| [
"762307667@qq.com"
] | 762307667@qq.com |
100195dfd715236cf3362301bc411a12a0be41c5 | 693567f042c6bd93ecdda41cb5db81c55ccf3158 | /List/swap two elements in a list (another approach).py | c013b3bb504c2f734752ab41623c4161c62e0bf9 | [] | no_license | supriyo-pal/Python-Practice | 5806e0045ebfeb04856246a245430e2ab7921ba9 | 2025369f0d23d603ad27eaff149500137e98dbcf | refs/heads/main | 2023-01-25T05:31:58.404283 | 2020-12-09T19:08:22 | 2020-12-09T19:08:22 | 317,021,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 2 21:57:25 2020
@author: Supriyo
"""
number=input("enter the numbers between 0-9:")
number_list=list()
length=0
for i in range(len(number)):
number_list.append(number[i])
length=len(number_list)
print("Choose one position between 0 to",length)
... | [
"noreply@github.com"
] | supriyo-pal.noreply@github.com |
7281be76556fd8d629e4800ad5a8fe24b6f8e645 | 2880ec0276330b0d3248ad21476769a4959a9f66 | /life_expectancy/views.py | 78b6b7477419a6eec68e53b376c7cb384fadaf8f | [
"MIT"
] | permissive | Cally99/Data-Labs-with-Python-Tableau | 5a13c3b4d241633848c7a16d83977e9ee9ca9599 | 6fe58cd45d6c2b058abe771b3ffcf108b8832a49 | refs/heads/master | 2020-07-06T00:47:27.801260 | 2019-07-03T06:50:27 | 2019-07-03T06:50:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.shortcuts import render
def life_expectancy(request):
return render(request, "life_expectancy.html") | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
f735e541e2852a473ab392064cf9429ac1a90ffc | 0db19410e9751790af8ce4a0a9332293e379c02f | /configs/body_2d_keypoint/rtmpose/humanart/rtmpose-s_8xb256-420e_humanart-256x192.py | b4263f25e741e25a0ec5b85900ff1b2587d2805d | [
"Apache-2.0"
] | permissive | open-mmlab/mmpose | 2c9986521d35eee35d822fb255e8e68486026d94 | 537bd8e543ab463fb55120d5caaa1ae22d6aaf06 | refs/heads/main | 2023-08-30T19:44:21.349410 | 2023-07-04T13:18:22 | 2023-07-04T13:18:22 | 278,003,645 | 4,037 | 1,171 | Apache-2.0 | 2023-09-14T09:44:55 | 2020-07-08T06:02:55 | Python | UTF-8 | Python | false | false | 6,656 | py | _base_ = ['../../../_base_/default_runtime.py']
# runtime
max_epochs = 420
stage2_num_epochs = 30
base_lr = 4e-3
train_cfg = dict(max_epochs=max_epochs, val_interval=10)
randomness = dict(seed=21)
# optimizer
optim_wrapper = dict(
type='OptimWrapper',
optimizer=dict(type='AdamW', lr=base_lr, weight_decay=0.)... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
1cc3c3e0a40e800b3eca55bc1f2adf1f5bbcee2a | 0fb867b48b5a0bd88f9fefb5cdcad0b4abe720b6 | /calculator.spec | 646bfee63aa626e392df8c449574bd17d9edbe61 | [] | no_license | sparshjaincs/Simple-Calculator | c010181d0ad0bc09719f813e6d91f7b87d990d5d | 76c597c2e59a806c8d8a93ad8b798288639e7da1 | refs/heads/master | 2020-06-21T17:10:16.012591 | 2019-07-18T19:15:22 | 2019-07-18T19:15:22 | 197,511,687 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['calculator.py'],
pathex=['G:\\Projects\\Calculator'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_r... | [
"sparshjaincs@gmail.com"
] | sparshjaincs@gmail.com |
eb07d2a3f8f793245785b8e732d7d785d49671b6 | 282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19 | /Malware1/venv/Lib/site-packages/scipy/interpolate/fitpack2.py | 0f14d84f30435f315adac039526c16ae5d5cd92f | [] | no_license | sameerakhtar/CyberSecurity | 9cfe58df98495eac6e4e2708e34e70b7e4c055d3 | 594973df27b4e1a43f8faba0140ce7d6c6618f93 | refs/heads/master | 2022-12-11T11:53:40.875462 | 2020-09-07T23:13:22 | 2020-09-07T23:13:22 | 293,598,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:422178a9adf00766a95a781c4d8e1837d120bc65542ddd936c9f14decc375ae8
size 62749
| [
"46763165+sameerakhtar@users.noreply.github.com"
] | 46763165+sameerakhtar@users.noreply.github.com |
f046f12d7b3f16ea03cc78bebd1b08607193f082 | c086a38a366b0724d7339ae94d6bfb489413d2f4 | /PythonEnv/Lib/site-packages/pythonwin/pywin/framework/editor/frame.py | 9e74114d102460a9401b98c1320ac20636a4a733 | [] | no_license | FlowkoHinti/Dionysos | 2dc06651a4fc9b4c8c90d264b2f820f34d736650 | d9f8fbf3bb0713527dc33383a7f3e135b2041638 | refs/heads/master | 2021-03-02T01:14:18.622703 | 2020-06-09T08:28:44 | 2020-06-09T08:28:44 | 245,826,041 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | # frame.py - The MDI frame window for an editor.
import pywin.framework.window
import win32ui
import win32con
import afxres
from . import ModuleBrowser
class EditorFrame(pywin.framework.window.MDIChildWnd):
def OnCreateClient(self, cp, context):
# Create the default view as specified by the template (ie... | [
"="
] | = |
1c10b542571142609fd929c7bb5db2a96ef660cd | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/H3C-PORTAL-MIB.py | 64fd13746f0c6c4162f4bf5d9b6313b40e2af202 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 30,326 | py | #
# PySNMP MIB module H3C-PORTAL-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/H3C-PORTAL-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:10:13 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
a2a2518930512317c83f34ef6273bff3efd67fe4 | 88a54c5e2cf3d16e5288261a37840428bf6c4834 | /src/article_loader.py | 8654a31e9a45bdbf8fdbf8d3c4253eac3d4185af | [] | no_license | VitalyRomanov/document-clustering | f2fa1c617ef8f4e2ba69ba0c152d80c919361b25 | 412a21b857b79a644f77b728b8798dda9e854e29 | refs/heads/master | 2022-04-07T22:04:30.804892 | 2018-02-03T18:50:25 | 2018-02-03T18:50:25 | 104,849,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,666 | py | import json
import os
# import pickle as p
import joblib as p
from datetime import datetime
import urllib.request
import numpy as np
def date2int(date):
return int(datetime.strptime(date, '%Y-%m-%d %H:%M:%S').timestamp())
def get_date(ts):
return datetime.fromtimestamp(
int(repr(ts))
).strftime... | [
"mortiv16@gmail.com"
] | mortiv16@gmail.com |
be1d104b2f9883aeb4d68360c1c230337ff776cd | 3740de0d6e43ea140fc09ab314e4c492603ba185 | /scripts/sources/S_EstimateQuantileMixtureStressTest.py | fb9d5a602ba8a987d718463a4796f474687762ad | [
"MIT"
] | permissive | s0ap/arpmRes | 29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | refs/heads/master | 2022-02-16T05:01:22.118959 | 2019-08-20T16:45:02 | 2019-08-20T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,523 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # S_Es... | [
"dario.popadic@yahoo.com"
] | dario.popadic@yahoo.com |
78143c4e6942051b155a1e0dc181ef0d38715934 | c67f2d0677f8870bc1d970891bbe31345ea55ce2 | /zippy/lib-python/3/test/test_genexps.py | cc75ac26ee667116ef05274e3e3a41516ae62aeb | [
"BSD-3-Clause"
] | permissive | securesystemslab/zippy | a5a1ecf5c688504d8d16128ce901406ffd6f32c2 | ff0e84ac99442c2c55fe1d285332cfd4e185e089 | refs/heads/master | 2022-07-05T23:45:36.330407 | 2018-07-10T22:17:32 | 2018-07-10T22:17:32 | 67,824,983 | 324 | 27 | null | null | null | null | UTF-8 | Python | false | false | 7,149 | py | doctests = """
Test simple loop with conditional
>>> sum(i*i for i in range(100) if i&1 == 1)
166650
Test simple nesting
>>> list((i,j) for i in range(3) for j in range(4) )
[(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 1), (1, 2), (1, 3), (2, 0), (2, 1), (2, 2), (2, 3)]
Test nesting with the inner ... | [
"thezhangwei@gmail.com"
] | thezhangwei@gmail.com |
43d2678fe00adbaa6aeb89d3ac85cee449782bf5 | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /homeassistant/components/tankerkoenig/binary_sensor.py | 5f10b54f7042763cd7b371c8f9cef7f5b76c43ec | [
"Apache-2.0"
] | permissive | konnected-io/home-assistant | 037f12c87bb79e19220192eb918e49db1b1a8b3e | 2e65b77b2b5c17919939481f327963abdfdc53f0 | refs/heads/dev | 2023-05-11T08:57:41.891518 | 2023-05-07T20:03:37 | 2023-05-07T20:03:37 | 109,931,626 | 24 | 10 | Apache-2.0 | 2023-02-22T06:24:01 | 2017-11-08T05:27:21 | Python | UTF-8 | Python | false | false | 2,257 | py | """Tankerkoenig binary sensor integration."""
from __future__ import annotations
import logging
from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
BinarySensorEntity,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE... | [
"noreply@github.com"
] | konnected-io.noreply@github.com |
878ea199022c142618b146acd39e6a8e298d8e7d | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4456629.3.spec | 8a2485d2abe4621730ed59fee93f7b17ba12906e | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,301 | spec | {
"id": "mgm4456629.3",
"metadata": {
"mgm4456629.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
a0ba0f8d5ac0bf71c18e90491831eea9e884eea3 | 2a91a64f5464c48fb56bd2f0e01668737d4eafa9 | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/resourcesettings/v1alpha1/resourcesettings_v1alpha1_messages.py | b11a7c1f6f7f92eb4e127e2fa1b46f7f49f45edf | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | salewski/google-cloud-sdk | 8513faf8c2f5b9180361efb567c4cfb9986d1e21 | 060174026ac068b6442b6c58bedf5adc7bc549cb | refs/heads/master | 2023-08-16T09:44:57.948620 | 2021-10-05T00:00:00 | 2021-10-05T16:15:40 | 417,465,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,806 | py | """Generated message classes for resourcesettings version v1alpha1.
The Resource Settings API allows users to control and modify the behavior of
their GCP resources (e.g., VM, firewall, Project, etc.) across the Cloud
Resource Hierarchy.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __... | [
"gcloud@google.com"
] | gcloud@google.com |
94c88e893fab70eb22becd4d8470f07518bbf6a5 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/networkx/algorithms/centrality/tests/test_dispersion.py | ea1ba9e9b7e48392782524321a3dcf960ee5d629 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:831ddc7c07f1bc0699f90cfd23a91ebe38264e16cd0c35dcf82dab49654d5e00
size 1601
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
d00f8a5113df64077c306d43ae28a8fd05eda42a | ae4e517aebe74a851df977af1a11d2a67120050c | /h2o-py/tests/testdir_munging/unop/pyunit_expr_math_ops.py | 970952c2b4e4d21a1f40dda8da7beca2cf42bea5 | [
"Apache-2.0"
] | permissive | StephaneFeniar/h2o-dev | 8dd06549ddee490d6db5b7dd41f043e061cee121 | 2c0c69aeda69d08be5edce330bf34898e9b2ab2b | refs/heads/master | 2021-01-14T08:51:40.694426 | 2015-04-18T21:01:23 | 2015-04-18T21:01:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,544 | py | import sys
sys.path.insert(1, "../../../")
import h2o
import numpy as np
import random
import math
import scipy.special
def expr_math_ops(ip,port):
# Connect to h2o
h2o.init(ip,port)
sin_cos_tan_atan_sinh_cosh_tanh_asinh_data = [[random.uniform(-10,10) for r in range(10)] for c in range(10)]
asin_acos... | [
"eric.eckstrand@gmail.com"
] | eric.eckstrand@gmail.com |
54784ae241ebb27af2105733d27895990c63c635 | d024ccbb4cc04af3866a4db1ac1d8c1d7395d909 | /boj/4673.py | 28d025abbfa54b5cb36be7af6190215810610b63 | [] | no_license | demetoir/ps-solved-code | ff0418dddd10f3b053c9b8d32af48027b10c8481 | f4d4fd2183176b083f2287c9d89c6d5a1e983cc5 | refs/heads/master | 2022-10-14T20:11:34.581439 | 2020-06-12T11:24:11 | 2020-06-12T11:24:11 | 68,782,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | l=lambda n:n%10+l(n//10) if n>0 else 0
a=[1]*20002
for i in range(1,10000):a[l(i)+i]=0
for i in range(1,10000):
if a[i]==1:print(i) | [
"wnsqlehlswk@gmail.com"
] | wnsqlehlswk@gmail.com |
5df196843c25b81138c44c75987e86e0af7debc1 | 3dfa65c42241d866dcf82d2f6faf603e5aec096c | /gladweb/views/index.py | 340e3f77f04331b417dcf26cd0303c55a194ac4b | [] | no_license | Dav1dde/glad-web | 0ad5f11f4ca0966ae29b4c1972a02295bdd6c47c | ff05bd08efca97c2f40fbf3e9f8fde265b7c8e7d | refs/heads/master | 2023-03-07T18:31:52.638325 | 2023-02-25T16:14:12 | 2023-02-25T16:14:12 | 35,337,528 | 396 | 74 | null | null | null | null | UTF-8 | Python | false | false | 4,874 | py | import json
import os
import sys
import tempfile
import zipfile
from collections import namedtuple
from flask import Blueprint, request, render_template, g, url_for, redirect, flash, current_app
import glad.lang.c.generator
from glad.spec import SPECS
from gladweb.views.exception import InvalidUserInput
if sys.versio... | [
"admin@dav1d.de"
] | admin@dav1d.de |
e44e9989565a9d1ffcbc9142748500ff5a274785 | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201022114431.py | 652f1b7cfbfba3d9c2325e1ea062cb799ef42b97 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | from wagtail.core import blocks
from wagtail.images.blocks import ImageChooserBlock
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
required = True,
elp_text='Tekst do wyświetlenia',
)
class Meta:
template = 'streams/title_block.html'
icon = 'edycja'
... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
566b949d5b6105ffa0ac3812e25ae751a59de219 | fdd67d3733d3db2fb381f25b0985952e3f7c9a4f | /epdAlarm.py | 9fc35afaa5fac12a5bf4482d115b6d71392bd049 | [] | no_license | star-controls/epdAlarm | 56c6ef50616ea4290217b41d0daf3c4ebf7ee952 | 4a966e38116344b9d209dd8efc9abfbbc0e4db5a | refs/heads/master | 2020-03-21T07:51:27.655488 | 2019-03-05T15:04:12 | 2019-03-05T15:04:12 | 138,303,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,072 | py |
from epdchan import epdchan
import paho.mqtt.client as mqtt
from watchdog import watchdog
from softioc import builder
import time
import pandas as pd
#EPD PVs
builder.SetDeviceName('EPD')
#list of all EPD channels as 3-index list
npp = 12
ntile = 31
elist = []
#east/west loop
for ew in range(0,2):
elist.append([])... | [
"jaroslav.adam@cern.ch"
] | jaroslav.adam@cern.ch |
a06b4cdb26e979978b7442a5953e6661148f9c4d | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /scripts/make_contract_tests.py | c5a713b158970664e7323b7f9745d351a8a8b188 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 5,441 | py | from os.path import join, dirname, exists
from os import mkdir
import json
from conseil import conseil
from conseil.api import ConseilApi
from pytezos import pytezos
from tests import relpath
from tests.templates import michelson_coding_test_case, micheline_coding_test_case, \
test_michelson_parse,test_michelson_f... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
a3b4529f2a8af100e1863c8d7f61d0522f76b1ce | a46646a707b9d747fcf29a86f67a4ccbcbd0ddb9 | /week10/book/76prayme.py | 9a15021619c3da6599d23328531d5d56030c674c | [] | no_license | DevooKim/algorithm-study | 5720642bb43ea364dae924ee038f97379f2ef85b | 830b148defc7f0097abe2f5d3f4e9d8f3333efb0 | refs/heads/main | 2023-02-23T18:40:28.978111 | 2021-01-28T12:09:06 | 2021-01-28T12:09:06 | 302,206,505 | 2 | 1 | null | 2021-01-28T12:09:07 | 2020-10-08T01:54:08 | Python | UTF-8 | Python | false | false | 2,155 | py | import collections
import heapq
import functools
import itertools
import re
import sys
import math
import bisect
from typing import List
class Solution:
def minWindow(self, s: str, t: str) -> str:
# T의 크기부터 점점 키워가기
def contains(s_substr_lst: List, t_lst: List):
for t_elem in t_lst:
... | [
"dbfpzk142@gmail.com"
] | dbfpzk142@gmail.com |
ba739e1e9487460532edf7325747f1c35b66b048 | 1e9ad304868c2bda918c19eba3d7b122bac3923b | /kubernetes/client/models/v1beta1_http_ingress_rule_value.py | 168b201cfa6cc6450e6154e0ffdd4d11d9e0805c | [
"Apache-2.0"
] | permissive | pineking/client-python | c77e5bd3d476ac852e6dffa96056008baa0f597f | 74a64d7325518f4298600d4bb300f92843c29347 | refs/heads/master | 2021-01-22T22:16:27.368406 | 2017-03-15T08:21:21 | 2017-03-15T08:21:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.1-660c2a2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
im... | [
"mehdy@google.com"
] | mehdy@google.com |
16b6d2a2bb371aec5835e7f3d24bccfd8b4ec178 | b005d794cfd8e3b063b08d6a266b1e07f0f0f5e9 | /src/webapp/geolist/forms.py | 37418890337878c9eab7f4a4c60577f54493ef96 | [] | no_license | GeoRemindMe/GeoRemindMe_Web | 593c957faa5babb3040da86d94a5d884ad4b2db3 | d441693eedb32c36fe853895110df808a9959941 | refs/heads/master | 2021-01-16T18:29:39.633445 | 2011-11-05T23:50:37 | 2011-11-05T23:50:37 | 1,841,418 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | # coding=utf-8
from django import forms
from django.utils.translation import gettext_lazy as _
from georemindme.models_utils import VISIBILITY_CHOICES
class ListRequestedForm(forms.Form):
name = forms.CharField(required=True)
description = forms.CharField(required=False,widget=forms.Textarea())
vi... | [
"jneight@gmail.com"
] | jneight@gmail.com |
e564cbb6e5bd4a5146b48e57490b98887aa49bcc | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /AtCoder/tkppc/c.py | c001eb99b71d1c90cfe2d44eb70b9b13d6f44518 | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 321 | py | # https://tkppc.contest.atcoder.jp/tasks/tkppc2015_c
N, M = map(int, input().split())
S = int(input())
T = [0 for _ in range(10000)]
for _ in range(N):
t, k = map(int, input().split())
T[t-1] = k
# print(T)
total = 0
d = 0
for i in range(S - 1):
total += T[i]
if total >= M:
d += 1
print(d)... | [
"takecian@gmail.com"
] | takecian@gmail.com |
4ab92065962d53964ce2f930d220837337ee3eac | c318bd15c40063639edc95bb8419f4c0f4a2b54f | /update_s3_configuration.py | e520e1541db8ce977a5e0513f0439b48d7e25a29 | [
"MIT"
] | permissive | cwestleyj/HearthstoneJSON | 716fa1b05782d311a04c16c5917ad6e6ae15749a | ed30c943983a4ee0da3a80562655d5a274faad39 | refs/heads/master | 2021-01-19T10:36:59.554294 | 2017-02-10T16:29:13 | 2017-02-10T16:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | #!/usr/bin/env python
import sys
import boto3
from pprint import pprint
API_BUCKET = "api.hearthstonejson.com"
ART_BUCKET = "art.hearthstonejson.com"
def update_website_configuration(s3, build, bucket=API_BUCKET):
print("Querying website configuration for %r" % (bucket))
orig_config = s3.get_bucket_website(Bucke... | [
"jerome@leclan.ch"
] | jerome@leclan.ch |
731800828469aa1b78563d3dae74e8f7ed296abf | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/point/president/way/kerberos_place_part.py | a02fe413ce8add5d86a79fbfa0f688adb60943f7 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Translator.API;
namespace CSharp_TranslateSample
{
public class Program
{
public static string traducida;
public static void Main(string[] args)
{
//TranslateAsync().Wait();
... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
f5693ba9d5f5661315af0ff316348508bfffa665 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_42606.py | 4c7ba5374406b23f4f9662574ff7bdd96180c47f | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,833 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
b5d7d906ca1b952f86510b73dd4b2ab3e980c6db | 283815445952a37e0124801b456844774355733f | /app/models/__init__.py | ffca30aca69e6931817c66d4933a609c5d6bf330 | [] | no_license | paulosjd/woodrecs | 7aa4bec22f2c126bd51023e141f1a113c8faf3d8 | 19a8a53c753ae0978fc092d9a2f6f560dc8644bf | refs/heads/master | 2022-07-07T08:36:06.902801 | 2020-11-08T21:59:00 | 2020-11-08T21:59:00 | 251,587,209 | 0 | 0 | null | 2022-06-22T01:36:43 | 2020-03-31T11:47:53 | Python | UTF-8 | Python | false | false | 183 | py | from .profile import Profile
from .profile_board import ProfileBoard
from .route import Route
from .user import User
__all__ = [
Profile,
ProfileBoard,
Route,
User
]
| [
"pjdavis@gmx.com"
] | pjdavis@gmx.com |
061b46322d284653c94c803921d86a35f31c4c3a | 8c067089ac94844919c4dc37681c898c0f93819e | /jenkins-master/jobs/scripts/workspace/config.py | c477a45df06ebcddcd194c10096182da65606db8 | [] | no_license | Ramireddyashok/mozmill-ci | 9ac1a5762fa8c14c4802447a9d5878422d2e164a | 0b8c6417e596235cca403ca80947fc328bd2fe8b | refs/heads/master | 2021-04-30T01:27:42.502771 | 2017-06-14T18:24:50 | 2017-06-14T18:24:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
here = os.path.dirname(os.path.abspath(__file__))
config = {
'test_types': {
'functional': {
... | [
"mail@hskupin.info"
] | mail@hskupin.info |
b969aff50964ebae5ecd9541c8ed4af2b0ec93fa | 4d99350a527a88110b7bdc7d6766fc32cf66f211 | /OpenGLCffi/GLX/EXT/NV/copy_image.py | 1981ca497e85e50301da73e66cd5b08f9e4f85dd | [
"MIT"
] | permissive | cydenix/OpenGLCffi | e790ef67c2f6c9877badd5c38b7d58961c8739cd | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | refs/heads/master | 2021-01-11T07:31:10.591188 | 2017-04-17T11:04:55 | 2017-04-17T11:04:55 | 80,312,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from OpenGLCffi.GLX import params
@params(api='glx', prms=['dpy', 'srcCtx', 'srcName', 'srcTarget', 'srcLevel', 'srcX', 'srcY', 'srcZ', 'dstCtx', 'dstName', 'dstTarget', 'dstLevel', 'dstX', 'dstY', 'dstZ', 'width', 'height', 'depth'])
def glXCopyImageSubDataNV(dpy, srcCtx, srcName, srcTarget, srcLevel, srcX, srcY, srcZ... | [
"cdenizol@gmail.com"
] | cdenizol@gmail.com |
651930fd736184cb7f793d23885d3a0c3a2be442 | 67c3c2a310a4d129a45739ca6351052f36f6d5f4 | /venv/lib/python3.7/tarfile.py | 1ac8bdb103bbf0d353b2ffa45630fbbea77736ed | [] | no_license | cyobero/django-blog | a743203bdaf1d8ae9e6bd47c6e7b33a213a7abfd | 307335c84a0fa9eba6d3f69172a47580144cc066 | refs/heads/master | 2022-12-09T20:25:51.396813 | 2020-03-10T14:52:26 | 2020-03-10T14:52:26 | 245,950,344 | 0 | 0 | null | 2022-11-22T05:22:50 | 2020-03-09T05:20:31 | Python | UTF-8 | Python | false | false | 48 | py | /home/cyobero/anaconda3/lib/python3.7/tarfile.py | [
"cyobero@gmail.com"
] | cyobero@gmail.com |
f3d1fe716956a41dcaccd88cddd806332ba54e33 | 1b5c3039c05427ad5e731a18e06e0e0accb5ce98 | /scripts/creatematches.py | 2c4bb9fd8b280c5439cdaa0f3eddc508cad483bc | [] | no_license | matthew-brett/beatbased | 1df43cb7f16b4d6cde18acecd7d2b7209887ed89 | f6c7c6bd0fb62efcb3397d512f70717b49f5cccd | refs/heads/master | 2021-01-23T21:42:29.063883 | 2014-05-30T19:05:06 | 2014-05-30T19:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | #!/bin/env python
'''Creates as many matches as possible for metric sequences, with 5-7 intervals'''
import beatsequence as BS
#First, create a list of all combinations of intervals, taking those which add up to 12
print "calculating possible combinations"
S=[]
for length in range(5,10):
L=[4 for n in range(lengt... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
b2a97343f96ca9246962933acc173b23375b9a5c | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/apps/scratch/rch/mlab/yarn_cs.py | 2d8a38ca1f2761ea2b42d42e5d831bb3cf157889 | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 3,840 | py | #-------------------------------------------------------------------------------
#
# Copyright (c) 2009, IMB, RWTH Aachen.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in simvisage/LICENSE.txt and may be redistributed only
# under the conditions des... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
df4de3c89e3e0456ec62e028fb88040009f9c36e | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/googlecloudsdk/third_party/appengine/api/taskqueue/taskqueue_service_pb.py | bb940144f8a18ef4f4b1e6b825080cea0ed6df38 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 262,899 | py | # Copyright 2016 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 required by applicable law or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
7b459863ace7904da1f6e6affba8dd4247466e96 | fea6e9d6b20b0c5f2a05a6f2433aae4176b2a00a | /server/applibs/account/models/phoneuser.py | 2b9987502723a11b18689e14372406d54281c047 | [] | no_license | fanshuai/kubrick | fddf6c21bcd500223d9a05bd002e47eb1ecf8839 | b7ed6588e13d2916a4162d56509d2794742a1eb1 | refs/heads/main | 2023-03-24T12:21:44.562850 | 2021-03-19T15:11:40 | 2021-03-19T15:11:40 | 349,445,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,497 | py | import json
import logging
import phonenumbers
from django.db import models, transaction
from django.utils.functional import cached_property
from phonenumbers import PhoneNumberFormat as PNFormat
from phonenumbers import carrier, geocoder
from mirage import fields as mg_fields
from server.constant import mochoice as m... | [
"zfaner@gmail.com"
] | zfaner@gmail.com |
2e2b8705b460a63f5c112ef28e86945c639ebe7a | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CISCO-DNS-CLIENT-MIB.py | 01fce15acb4eef7b472a8ae3f75dca628704efbc | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 8,248 | py | #
# PySNMP MIB module CISCO-DNS-CLIENT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DNS-CLIENT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:38:02 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
3b6a980ffb87af3580820c10aa1428a173c1618d | 9399d687b2e41245968ba0e9d413a6789d773b1d | /CI/erlang/erlang/libs/fake_ne/interface/FakeNeKeyword.py | d00bfa40b778bc57c8f8d8b44ee00d7e54648cad | [] | no_license | jiangliu888/DemoForSpeed | be41bdb85a1d1f5ca9350a3a1f681ced5ec9b929 | 11319bc19c074327d863ac2813a04cef3487f8d6 | refs/heads/main | 2023-08-23T14:16:21.686155 | 2021-10-17T12:01:34 | 2021-10-17T12:01:34 | 388,452,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,959 | py | import os
from client.device import DeviceClient
from erlang.libs.uranus.interface.EsInterface import EsInterface
from erlang.libs.uranus.interface.UranusInterface import UranusInterface
from erlang.libs.variables import MeasureResultVariables
class FakeNeKeyword(object):
DB_PORT = 3000
DB_REST_PORT ... | [
"admin@example.com"
] | admin@example.com |
4d00ccd7e2aa83e59a80c5067dca230245fd07bc | 09f8a8bb1655cc76a29ac60896d1d42b0145f3c2 | /Utils.py | f617be1131d20d1c307cca7ba5b167e85ef6ea3f | [
"BSD-3-Clause"
] | permissive | FlatL1neAPT/PoshC2_Python | 4d1eb4d6a639395a32a2674ee49a17969a2b8a79 | 39f755f67bf4de15e93f56cd690e50924aa8bba0 | refs/heads/master | 2020-05-04T02:58:16.717780 | 2019-03-08T10:32:55 | 2019-03-08T10:32:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import os, base64, string, random, re
validate_sleep_regex = re.compile("^[0-9]*[smh]$")
def gen_key():
key = os.urandom(256/8)
return base64.b64encode(key)
def formStrMacro(varstr, instr):
holder = []
str1 = ''
str2 = ''
str1 = varstr + ' = "' + instr[:54] + '"'
for i in xrange(54, len(instr), 48):
... | [
"email"
] | email |
fbc34bce75ef0bcc33b60c5c56c4ee439012a1ba | 7e470dd54740ca6331d1341328e344a713329a77 | /src/DQD_counting_statistics/zero_freq_statistics.py | a710fb1843cd96bbb95ceec6215f5f71d5d12580 | [] | no_license | rstones/DQD_counting_statistics | 127eb2ad83c5c69bdfb168975077f541c09d4bbc | 3eb5ad9876b59c43c35150238c3af3396b3ad100 | refs/heads/master | 2020-04-07T03:10:59.294391 | 2017-10-22T10:58:06 | 2017-10-22T10:58:06 | 53,421,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | '''
Created on 8 Mar 2016
@author: rstones
'''
import numpy as np
import quant_mech.utils as utils
from DQD_counting_statistics.DQD_model import DQDModel
import matplotlib.pyplot as plt
bias_values = np.array([0, 1.5, 3., 4.5, 6.])
Gamma_R_range = np.logspace(-4, 3, 1000)
model = DQDModel(remove_elements=True)
curre... | [
"r.stones@ucl.ac.uk"
] | r.stones@ucl.ac.uk |
28459452020b3f9d921767c1fd75d3f868741f99 | 26f23588e80acc2b28d4cc70a8fbcf78c5b33a20 | /PythonModels/learnBasic/file_options.py | 4173a88638e76c5058927e4ba42da592ecbd3ca6 | [] | no_license | Timehsw/PythonCouldbeEverything | aa31b3e32bf68b49fe8e96b971637353a8ef644f | 85d4f1a2c93c7b1edc34ceb9e8bb3c8d7beb30e9 | refs/heads/master | 2021-01-01T15:38:25.253094 | 2018-01-22T06:49:05 | 2018-01-22T06:49:05 | 97,661,530 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # coding=utf8
__author__ = 'zenith'
#读文件
f=open("D:\data.txt","r")
#print(f.read())
#print(f.readline().strip())
#print(f.readline().strip())
for line in f.readlines():
print(line.strip())
f.close()
#文件追加内容
f=open("D:\data.txt","a")
f.write("\n超人学院")
f.close()
#文件覆盖内容
f=open("D:\data.txt","w")
f.write("\n超人学院"... | [
"hsw.time@gmail.com"
] | hsw.time@gmail.com |
4ec82c4d69562c103864beb83bc5eac587470077 | 1af49694004c6fbc31deada5618dae37255ce978 | /third_party/blink/renderer/bindings/scripts/bind_gen/__init__.py | 44c068af8ca05cd83d23acbbb3e0bc2dfd11be14 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | sadrulhc/chromium | 59682b173a00269ed036eee5ebfa317ba3a770cc | a4b950c23db47a0fdd63549cccf9ac8acd8e2c41 | refs/heads/master | 2023-02-02T07:59:20.295144 | 2020-12-01T21:32:32 | 2020-12-01T21:32:32 | 317,678,056 | 3 | 0 | BSD-3-Clause | 2020-12-01T21:56:26 | 2020-12-01T21:56:25 | null | UTF-8 | Python | false | false | 2,353 | py | # Copyright 2019 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.
import os.path
import sys
# Set up |sys.path| so that this module works without user-side setup of
# PYTHONPATH assuming Chromium's directory tree structur... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
50d41bc04b35250d86a4adb67e67092dd7f34b51 | 34339da2c834d79c9d3142afb8c498c62fb8917d | /thenewboston_node/blockchain/tasks/debug_task.py | 5af50cb9f0a73b2cb20d0323ab22fd1023029219 | [
"MIT"
] | permissive | olegtropinin/thenewboston-node | 5abfcbe02404f7c5347af724fb06c7f6420226ba | 2de4e14ef6855646121840224a82fcfc505b213c | refs/heads/master | 2023-08-23T09:33:25.286098 | 2021-10-14T22:53:15 | 2021-10-14T22:53:15 | 417,582,617 | 0 | 0 | MIT | 2021-10-15T17:27:52 | 2021-10-15T17:27:51 | null | UTF-8 | Python | false | false | 190 | py | # TODO(dmu) HIGH: Remove this example task once real tasks are created
from celery import shared_task
@shared_task(bind=True)
def debug_task(self):
print(f'Request: {self.request!r}')
| [
"dmugtasimov@gmail.com"
] | dmugtasimov@gmail.com |
9755b139b741d0c2700bb0413e958eed81d94419 | f2668e062d0c72c7e96a007f555459fecfd02ebe | /wagtail_review/__init__.py | 2a422415622321b2cc310a82fd0013f1e2c4c900 | [
"BSD-3-Clause"
] | permissive | BackBayRider/wagtail-review | 170e1f48d421ed46f56c8607756b25d495e35c6c | 45841611921d3cf67be94370e2ab6c332b0f838c | refs/heads/master | 2023-04-19T11:26:15.577124 | 2021-03-01T16:22:32 | 2021-03-01T16:23:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | default_app_config = 'wagtail_review.apps.WagtailReviewAppConfig' | [
"matthew@torchbox.com"
] | matthew@torchbox.com |
8a2ab4c6d3a5e094042ddf4c2df9dbb5ffce65ca | 29091a32fbcbfc5c5db0b1e2a8aa344835a82f68 | /ctrlengine/sensors/__init__.py | 9e8adab2a9274c69dc8209f319d7f4752f1ae404 | [
"MIT"
] | permissive | 0xJeremy/ctrl.engine | 52b0244f42e9a7a92486ba1fcfcf2fe2fedc5631 | 19abba70df149a05edc5722cc95ceacc538448e6 | refs/heads/master | 2022-11-17T23:48:40.547073 | 2020-07-06T22:31:37 | 2020-07-06T22:31:37 | 241,662,968 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | from .camera import camera
from .realsense import realsense_camera
| [
"jeremy.kanovsky@tufts.edu"
] | jeremy.kanovsky@tufts.edu |
088a093e36d31ff4a4fc4890cd0ea0a3f98a32e7 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_BoxCox/trend_MovingMedian/cycle_30/ar_/test_artificial_32_BoxCox_MovingMedian_30__100.py | eaa3d461b45d44c18f2e1bbaffa799b7393f51fd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 265 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 30, transform = "BoxCox", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
f9a3518f256b925c3a31d214b721e8d53706123e | f0b741f24ccf8bfe9bd1950425d83b6291d21b10 | /backend/api/v2beta1/python_http_client/test/test_v2beta1_runtime_config.py | ea104015c08bff480428f747f9b1fe16d1dd0715 | [
"Apache-2.0"
] | permissive | kubeflow/pipelines | e678342b8a325559dec0a6e1e484c525fdcc8ce8 | 3fb199658f68e7debf4906d9ce32a9a307e39243 | refs/heads/master | 2023-09-04T11:54:56.449867 | 2023-09-01T19:07:33 | 2023-09-01T19:12:27 | 133,100,880 | 3,434 | 1,675 | Apache-2.0 | 2023-09-14T20:19:06 | 2018-05-12T00:31:47 | Python | UTF-8 | Python | false | false | 1,580 | py | # coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import ... | [
"noreply@github.com"
] | kubeflow.noreply@github.com |
355ea3438068cb566e9bb686ad11c0e9bbcbe658 | 20f86ba7febb3233516f0e2161bc98604c302cc4 | /tests/acceptance/page_model/base_page.py | 165ad2e4da698093c6351465a36d33bb5fb659c4 | [] | no_license | LukaszMalucha/Machine-Learning-Dashboard | 5369270ff39710f2c6545ea0828f01265d7e797f | 3ee29498d7d74365a2cd33547795ddfe9573dac4 | refs/heads/master | 2022-12-10T05:08:52.693425 | 2019-03-14T11:15:54 | 2019-03-14T11:15:54 | 126,514,014 | 8 | 3 | null | 2022-12-08T01:33:30 | 2018-03-23T16:52:05 | Python | UTF-8 | Python | false | false | 1,023 | py | from tests.acceptance.locators.base_page import BasePageLocators
class BasePage:
def __init__(self, driver):
self.driver = driver
@property
def url(self):
return 'http://127.0.0.1:5000'
@property
def title(self):
return self.driver.find_element(*BasePageLocat... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
fc4dd2aeebba0b006b2c867b0c71b235f777c216 | 4737df4162bee6abc7b78d1e8b4930d2cb542d6b | /graphgallery/nn/layers/pytorch/conv/dagnn.py | 24f060cea3fb5cf39695a42498b8ea286a211594 | [
"MIT"
] | permissive | freebird3366/GraphGallery | d1aa4ff291753ccf0ac4a8e024d18c59d2db8aa8 | f3294dad35ca0e14a525ed48f18feae2e9af661f | refs/heads/master | 2023-02-23T20:04:30.316450 | 2021-02-01T16:06:03 | 2021-02-01T16:06:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | import torch
import torch.nn as nn
from graphgallery.nn.init.pytorch import uniform, zeros
from ..get_activation import get_activation
class PropConvolution(nn.Module):
def __init__(self,
in_channels,
out_channels=1,
K=10,
use_bias=False,
... | [
"cnljt@outlook.com"
] | cnljt@outlook.com |
0180fb50fcc9a71e70b3ccce51b1092d8db51019 | 09ecd5f17ff36896c141db58563de3887d3f627d | /src/accounts/forms.py | ce6f9e63345af563ce7d020d907191aa2146429a | [] | no_license | samirthapa20/tweetme | df9b43bc8be4975343a54cceebba0f259ab6a6dd | 23d77575b85f8f6ff5d8993d3bbbf3898c1e6671 | refs/heads/master | 2021-05-23T15:32:18.136662 | 2020-09-09T14:18:37 | 2020-09-09T14:18:37 | 253,362,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | from django import forms
from django.contrib.auth import get_user_model
User = get_user_model()
class UserRegisterForm(forms.Form):
username = forms.CharField()
email = forms.EmailField()
password = forms.CharField(widget = forms.PasswordInput)
password2 = forms.CharField(widget= forms.PasswordInput)
def clean_... | [
"samirthapa021@gmail.com"
] | samirthapa021@gmail.com |
7fb4f71a9ccc64dc5c65d6bf095c6e49af56ef7a | 6820e74ec72ed67f6b84a071cef9cfbc9830ad74 | /plans/migrations/0008_auto_20150401_2155.py | dbca0bd39f59f421e402b58652c15b1cbd599a57 | [
"MIT"
] | permissive | AppforallHQ/f5 | 96c15eaac3d7acc64e48d6741f26d78c9ef0d8cd | 0a85a5516e15d278ce30d1f7f339398831974154 | refs/heads/master | 2020-06-30T17:00:46.646867 | 2016-11-21T11:41:59 | 2016-11-21T11:41:59 | 74,357,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import jsonfield.fields
import plans.models
class Migration(migrations.Migration):
dependencies = [
('plans', '0007_auto_20150330_0046'),
]
operations = [
migrations.CreateModel(
... | [
"hi@appforall.ir"
] | hi@appforall.ir |
04bb85ca1bdd439c34b6adc124e725772daf1bad | d22a2fbb9adb82644c5665242661bad172550552 | /venv/Scripts/easy_install-3.7-script.py | e05bf4e5e8b133bdefcaf94f129dcc7bb1a6c3db | [] | no_license | felipemanfrin/Python-Zero-ao-Zeno | e98ba3e4b974e88801b8bc947f461b125bc665b8 | d6d08aa17071f77170bbd105452b0d05586131c8 | refs/heads/master | 2022-07-29T19:38:41.729178 | 2020-05-25T01:02:18 | 2020-05-25T01:02:18 | 265,356,280 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #!C:\Users\Felipe\PycharmProjects\666\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\... | [
"felipemanfrin@gmail.com"
] | felipemanfrin@gmail.com |
16093e48e8ea6d2c734900b39e59e698fffa2edc | 29bec83fc600720533ad2bcf17fc90cd9ca385b7 | /0x06-python-classes/prueba_OOP.py | 19e79b242fb1d7fd13ef39f02007e7cc9e743a28 | [] | no_license | VictorZ94/holbertonschool-higher_level_programming | 73a7f504cde583f43f641e18e692e062610870a4 | ad512a1c76dc9b4c999a0ba2922c79f56206dd98 | refs/heads/master | 2023-03-25T04:38:12.708766 | 2021-03-24T01:08:47 | 2021-03-24T01:08:47 | 291,826,914 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!/usr/bin/python3
class coche():
largochasis = 250
anchochasis = 120
ruedas = 4
enmarcha = False
def arrancar(self):
self.enmarcha=True
def estado(self):
if (self.enmarcha):
return "El coche está en marcha"
else:
return "El coche está parado"
m... | [
"zrvictor@outlook.com"
] | zrvictor@outlook.com |
bb5630d590dfe6c1e987d8698e11bff0633d156d | 7a803cd0c16ff676e3d7ecc33ec5e7af2c42d026 | /hello.py | f3123c66e088b6ec25c1b96a658855cae387ee88 | [] | no_license | emetowinner/VGG-Internship-Assignments- | ddc798da4c91572455d4f69b0a0524def13be268 | 67fa5b345b0981dd43694b72d5fc61f45d431c19 | refs/heads/master | 2020-12-15T03:40:37.321894 | 2020-03-05T00:46:39 | 2020-03-05T00:46:39 | 234,981,995 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #Learning Integer Literals
birth_month = input('Enter birth month: ')
if type(birth_month) == str:
print('Not an integer')
if type(birth_month) != int:
print('Converting to int now.........')
int(birth_month)
print('....................')
print('Now is of int type') | [
"emetowinner@gmail.com"
] | emetowinner@gmail.com |
68d80aabd964ecc0c03b3c58dbb4409ea535aea0 | 9381d2a25adac95fab9fc4b8015aadd6c7bed6ca | /ITP1/8_A.py | cf8098d7b4993f62b0cc1f7fe90d16e436e1b142 | [] | no_license | kazuma104/AOJ | e3ca14bd31167656bcd203d4f92a43fd4045434c | d91cc3313cbfa575928787677e5ed6be63aa8acf | refs/heads/master | 2023-03-20T22:16:22.764351 | 2021-03-18T10:38:08 | 2021-03-18T10:38:08 | 262,047,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | def solve():
S = input()
T = ""
for i in range(len(S)):
if S[i] >= 'a':
T += S[i].upper()
else:
T += S[i].lower()
print(T)
if __name__ == '__main__':
solve() | [
"kazuma@info.nara-k.ac.jp"
] | kazuma@info.nara-k.ac.jp |
755c8410856fd9a634ed73e87e50ec135313c22b | 1f3bed0bb480a7d163dab73f1d315741ecbc1072 | /vtkplotter_examples/pyplot/plot7_stream.py | 04cb003af2b8799fd539ccebed6d1317312814c5 | [
"MIT"
] | permissive | ismarou/vtkplotter-examples | 1ce78197182da7496b016b27f1d5eb524c49cac6 | 1eefcc026be169ab7a77a5bce6dec8044c33b554 | refs/heads/master | 2021-03-11T18:43:22.313457 | 2020-03-03T22:11:25 | 2020-03-03T22:11:25 | 246,551,341 | 4 | 0 | null | 2020-03-11T11:18:48 | 2020-03-11T11:18:47 | null | UTF-8 | Python | false | false | 672 | py | """Plot streamlines of the 2D field:
u(x,y) = -1 - x^2 + y
v(x,y) = 1 + x - y^2
"""
from vtkplotter import *
import numpy as np
# a grid with a vector field (U,V):
X, Y = np.mgrid[-5:5 :15j, -4:4 :15j]
U = -1 - X**2 + Y
V = 1 + X - Y**2
# optionally, pick some random points as seeds:
prob_pts = np.random.rand(... | [
"marco.musy@gmail.com"
] | marco.musy@gmail.com |
7c945592d39eb2f6680b846f93d8f8921188613c | 0ed9a8eef1d12587d596ec53842540063b58a7ec | /cloudrail/knowledge/rules/rules_loader.py | 443b78c547b07c45631f401fffc28e2ebc664574 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | cbc506/cloudrail-knowledge | 8611faa10a3bf195f277b81622e2590dbcc60da4 | 7b5c9030575f512b9c230eed1a93f568d8663708 | refs/heads/main | 2023-08-02T08:36:22.051695 | 2021-09-13T15:23:33 | 2021-09-13T15:24:26 | 390,127,361 | 0 | 0 | MIT | 2021-07-27T21:08:06 | 2021-07-27T21:08:06 | null | UTF-8 | Python | false | false | 1,710 | py | import functools
from typing import Dict, Optional
from cloudrail.knowledge.context.cloud_provider import CloudProvider
from cloudrail.knowledge.exceptions import UnsupportedCloudProviderException
from cloudrail.knowledge.rules.base_rule import BaseRule
from cloudrail.knowledge.rules.aws_rules_loader import AwsRulesL... | [
"ori.bar.emet@gmail.com"
] | ori.bar.emet@gmail.com |
f6b845b799f3e15e52f10efd5b2ba60a4d5e1fb8 | da687718aa8ce62974090af63d25e057262e9dfe | /cap12-dicionarios/10_fromkeys_method.py | 59b1594ed08737b3f91bb025905c1d9639f0eab5 | [] | no_license | frclasso/revisao_Python_modulo1 | 77928fa4409c97d49cc7deccdf291f44c337d290 | 1e83d0ef9657440db46a8e84b136ac5f9a7c556e | refs/heads/master | 2020-06-25T05:37:28.768343 | 2019-07-27T22:23:58 | 2019-07-27T22:23:58 | 199,217,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/env python3
"""retorna um novo dicionário cujas chaves são os elementos de uma sequencia e cujos
valores são todos iguais ao argumento valor.
Sintaxe: dict.fromkeys(seq[, value])
"""
seq = ['name', 'age', 'sex']
dict = dict.fromkeys(seq)
print('Novo dicionario: {}'.format(str(dict))) # nenhum valor foi... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
b2f6ba810f56fe21e915805b75b08d7c0443d9fc | 8fb7a7b4fb09ce457ad413d19191235cf4805851 | /notes code/detection of fail/object_only/scan_mark1/find_thing_on_print_bed.py | 1a6610a59ee5df617f1a2396d94b2e6a3a5120ce | [] | no_license | clambering-goat/honner-progect | df8ab2e22c223cf0f8cb59b93b132eea3d9030f2 | ea996ea34ac13867dea6d4935f9760c6915b206f | refs/heads/master | 2020-04-15T19:32:57.303438 | 2019-05-13T17:51:56 | 2019-05-13T17:51:56 | 164,954,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py |
import numpy as np
import cv2
data=np.load("data.npy")
iamge = data.astype(np.uint8)
for Ycount,y in enumerate(iamge):
for x_count,x in enumerate(y):
if iamge[Ycount][x_count]==255:
iamge[Ycount][x_count] =0
cv2.imshow("frame",iamge)
cv2.waitKey(20000)
| [
"camerondrain@gmail.com"
] | camerondrain@gmail.com |
9179210109a8fa035ce59bb29a6582ddd74d25fd | d9d9a203a27bd28fe9afc72ecc613b186b33d673 | /06_MultipleForm/mainform.py | fe80a611cdf948f4f13e439c5959ffe08d143681 | [] | no_license | wildenali/Belajar-GUI-dengan-pyQT | 378951fcf0e172f48bf71ec46d887599cf5e09ed | 06ebbcbf57bec8a6a63fbb6d5397a7e2ab7c9ef9 | refs/heads/master | 2020-04-06T10:51:58.582049 | 2018-12-31T10:37:56 | 2018-12-31T10:37:56 | 157,395,034 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from PyQt5.QtWidgets import QWidget, QPushButton
from otherform import *
class MainForm(QWidget):
def __init__(self):
super(MainForm, self).__init__()
self.setupUI()
def setupUI(self):
self.resize(300, 500)
self.move(400, 200)
self.setWindowTitle('Form nya ada DUA')
... | [
"wildeeeeen@gmail.com"
] | wildeeeeen@gmail.com |
28598f36e66c74da10b429d228ad8e96cb136f00 | aaf9df2f15ec9bbfb7d98c2239db940117bc6762 | /Algorithmic-Toolbox/covering_segments/covering_segments.py | e33a1707cc450ddd489122ddb82f546ec7713987 | [
"MIT"
] | permissive | ugaliguy/Data-Structures-and-Algorithms | db50a0f4b39908d17fa125ca70c0616f52d895d2 | 4bcbd1b0cff66f442a03d06393f654f8e3a61ded | refs/heads/master | 2021-01-21T14:08:42.127708 | 2016-07-04T00:43:38 | 2016-07-04T00:43:38 | 56,821,728 | 0 | 1 | null | 2016-07-04T00:43:39 | 2016-04-22T02:54:23 | Python | UTF-8 | Python | false | false | 854 | py | # Uses python3
import sys
from collections import namedtuple
from operator import attrgetter
Segment = namedtuple('Segment', 'start end')
def optimal_points(segments):
start_sort = sorted(segments, key=attrgetter('start'))
end_sort = sorted(segments, key=attrgetter('end'))
points = []
#write your code... | [
"ugali_guy@hotmail.com"
] | ugali_guy@hotmail.com |
4370545f8a75330aec51c5b699aada3f8df69d5c | 4e4c22dfabb1a0fa89f0f51f58737273412a30e0 | /fort_machine/wsgi.py | 640e612427bbf2c0356ea849505b08617eed3925 | [] | no_license | shaoqianliang/fort_machine | 4cb271d5ef29c924c09172ff397e2af8562ee4ba | cf7e3d4c6682831ce04bcde478930ab7e85abb01 | refs/heads/master | 2020-04-28T15:24:02.056674 | 2019-04-12T23:50:35 | 2019-04-12T23:50:35 | 175,372,042 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for fort_machine 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"1132424753@qq.com"
] | 1132424753@qq.com |
fe7d0f99e3ae6e1f339a1cd8e4642a724e9016f7 | 1b1e8e73649ad1eed89556a5d479b0a549354fd5 | /opennem/db/migrations/versions/4bf86ff5c8ff_update_indicies_that_aren_t_used.py | a7a46b84637e88e727f1fe594938c21feb0ebb3f | [
"MIT"
] | permissive | zalihat/opennem | 3ea8db7246f350fb0eacf8c6078dbffa4fe9aea2 | 0f82e4fc3fd2bcfbf56a2741d89e4228d017dcf3 | refs/heads/master | 2023-02-27T15:37:47.206336 | 2021-02-08T07:28:57 | 2021-02-08T07:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | # pylint: disable=no-member
"""
update indicies that aren't used
Revision ID: 4bf86ff5c8ff
Revises: 64987ea01b57
Create Date: 2020-11-23 02:54:29.564574
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = "4bf86ff5c8ff"
down_revision = "64987ea01b57"
branch_labels = None
depends_on = None
... | [
"git@nikcub.me"
] | git@nikcub.me |
a99c4d3cb68c551d8ecf9d307608d40a13d95cd8 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /0701-0800/0716-Max Stack/0716-Max Stack.py | 698d5125b3a7f7ace31abc4055e1c827e468fd5e | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 967 | py | class MaxStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.St = []
self.maxSt = []
def push(self, x: int) -> None:
self.St.append(x)
maxX = x if not self.maxSt or x > self.maxSt[-1] else self.maxSt[-1]
self.maxSt.append... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
ffaa35bbff6e5594111a59aeed63bc26897a2692 | 0b12e31cafa598c163d2cc53706df193a73e31e3 | /people/models.py | 65c21cc6090d290ebf5ac91ed163dedd5de88207 | [] | no_license | getopen/pro | 6a4dba774558e1de0419a4c6daf030ee360d68fd | 97e939d26d9fdaf54f05f3cd4a9b32a6722d0ac3 | refs/heads/master | 2021-07-06T09:35:18.077577 | 2017-09-30T16:07:06 | 2017-09-30T16:07:06 | 100,471,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,517 | py | from django.db import models
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser
from django.utils import timezone
import hashlib
import random
import string
from django.conf import settings
SALT = getattr(settings, "EMAIL_TOKEN_SALT")
class MyUserManager(BaseUserManager):
def create_user(self,... | [
"zhuoqun527@qq.com"
] | zhuoqun527@qq.com |
954e1a81cae9daf62bf9cb9cf0f83299c3e8a038 | 8b942cbd6a0da0a61f68c468956ba318c7f1603d | /dynamic_programming/0053_maximum_subarray.py | 4ed3786dd1ebedf430bdbe2dfaceed01c1a79c9e | [
"MIT"
] | permissive | MartinMa28/Algorithms_review | 080bd608b0e0c6f39c45f28402e5181791af4766 | 3f2297038c00f5a560941360ca702e6868530f34 | refs/heads/master | 2022-04-13T03:56:56.932788 | 2020-04-06T03:41:33 | 2020-04-06T03:41:33 | 203,349,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | class Solution:
def maxSubArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
# Each slot means the sum of the max-subarray that ends at this index
dp = [float('-inf')] * len(nums)
"""
dp[i] = max((nums[i], dp[i - 1] + nums[i]))
... | [
"1135485226@qq.com"
] | 1135485226@qq.com |
a399301c523887d5bcc02002c2d2c1ac09e638a1 | 07cf86733b110a13224ef91e94ea5862a8f5d0d5 | /permutations/permutations.py | 9adc376b32f889d512681c06e31fc88b05902f97 | [] | no_license | karsevar/Code_Challenge_Practice | 2d96964ed2601b3beb324d08dd3692c3d566b223 | 88d4587041a76cfd539c0698771420974ffaf60b | refs/heads/master | 2023-01-23T17:20:33.967020 | 2020-12-14T18:29:49 | 2020-12-14T18:29:49 | 261,813,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | # First attempt most test cases didn't pass. Perhaps I miss read the permutation
# requirements for this problem.
class Solution:
def permute(self, nums):
# create a permutations array that will hold all the possible
# permutations
# create a recursive function that will... | [
"masonkarsevar@gmail.com"
] | masonkarsevar@gmail.com |
257aa8d1f68e6c7580b34aa3188372ce47c07185 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v7_2_0/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/af_common_cmds_holder/maximum_paths/__init__.py | d3f779d9b38079c6a063f8e88fe16bb0211a6131 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,029 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
588ff9f9d1fd2b83d89b92f998ad98b57b5b6142 | ec513ac551fc0bbb6c8af5b30330445bf52c6c7f | /location_monitor/src/location_monitor_node.py | e907ab747f1eb280bbd66076673f3279e2518249 | [] | no_license | ChuChuIgbokwe/me495_tutorials | b88c4833f35e50b51a4ccaa1a4bae5a1916e12bf | b03e74605cf469d818c4533f3d563622e7d14552 | refs/heads/master | 2020-04-06T07:06:08.360123 | 2016-09-18T08:46:01 | 2016-09-18T08:46:01 | 64,951,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,896 | py | #!/usr/bin/env python
# # -*- coding: utf-8 -*-
# #Created by Chukwunyere Igbokwe on July 27, 2016 by 2:23 PM
# import rospy
# import math
# from nav_msgs.msg import Odometry
# from location_monitor.msg import LandmarkDistance
# def distance(x1, y1, x2, y2):
# xd = x1 - x2
# yd = y1 - y2
# return math.sqrt(xd*xd +... | [
"chukwunyereigbokwe2015@u.northwestern.edu"
] | chukwunyereigbokwe2015@u.northwestern.edu |
6ae54d9ccc133969c04088f132d6ef7883c2e260 | 3d9825900eb1546de8ad5d13cae893eb0d6a9b14 | /AutoWorkup/SEMTools/utilities/brains.py | a9f06b8bfcc070f02a886a1a7dbbda143a65d219 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | rtkarcher/BRAINSTools | 20d69f96e6d5ca92adaeb06aa4fe6556b5e7b268 | 961135366450400409cece431423ed480855d34c | refs/heads/master | 2021-01-15T08:53:48.961607 | 2013-06-26T19:09:34 | 2013-06-26T19:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,809 | py | # -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
from nipype.interfaces.base import CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, OutputMultiPath
i... | [
"hans-johnson@uiowa.edu"
] | hans-johnson@uiowa.edu |
202384744bc82b1b11a8752e20a41b61b8c14117 | 30ab9750e6ca334941934d1727c85ad59e6b9c8a | /zentral/contrib/monolith/management/commands/rebuild_manifest_enrollment_packages.py | 4311863e71bf807a69d5cdb8a2dda5713092f8ef | [
"Apache-2.0"
] | permissive | ankurvaishley/zentral | 57e7961db65278a0e614975e484927f0391eeadd | a54769f18305c3fc71bae678ed823524aaa8bb06 | refs/heads/main | 2023-05-31T02:56:40.309854 | 2021-07-01T07:51:31 | 2021-07-01T14:15:34 | 382,346,360 | 1 | 0 | Apache-2.0 | 2021-07-02T12:55:47 | 2021-07-02T12:55:47 | null | UTF-8 | Python | false | false | 484 | py | from django.core.management.base import BaseCommand
from zentral.contrib.monolith.models import ManifestEnrollmentPackage
from zentral.contrib.monolith.utils import build_manifest_enrollment_package
class Command(BaseCommand):
help = 'Rebuild monolith manifest enrollment packages.'
def handle(self, *args, **... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
bdbf224d07f9a5aeceb878a2ff696537cb9fd117 | 3633bab8066f576c8bf9e7908afe30bb070d0b70 | /Hack-tenth-week/cinema/website/management/commands/populate_db.py | f9afe0316b2236021528fb773fea671a5c9bdfe8 | [] | no_license | 6desislava6/Hack-Bulgaria | 099c195e45a443cf4a3342eff6612ac2aa66565b | de4bf7baae35e21d6a7b27d4bde68247bb85b67a | refs/heads/master | 2021-01-20T11:57:29.027595 | 2015-06-02T17:36:59 | 2015-06-02T17:36:59 | 32,828,816 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py | from django.core.management.base import BaseCommand
from website.models import Movie, Projection, Reservation
class Command(BaseCommand):
def _add_movies(self):
Movie.add_movie(name='The Green Mile', rating=9.0)
Movie.add_movie(name='Stay Alive', rating=6.0)
Movie.add_movie(name='Twenty-S... | [
"desislavatsvetkova@mail.bg"
] | desislavatsvetkova@mail.bg |
c084bf927837edbff9f1738b44a08d195446fec2 | 35fa8925e63f2b0f62ef6bfc1ff4e03cf42bd923 | /tests/models/output/definitions/test_output_definition.py | dc3f2047a98052437876efa3ed6a308349469e6b | [
"Apache-2.0"
] | permissive | TheLabbingProject/django_analyses | 9e6f8b9bd2a84e8efe6dda6a15de6a3ecdf48ec1 | 5642579660fd09dde4a23bf02ec98a7ec264bceb | refs/heads/master | 2023-02-26T07:53:53.142552 | 2023-02-17T08:12:17 | 2023-02-17T08:12:17 | 225,623,958 | 1 | 2 | Apache-2.0 | 2023-02-17T08:12:18 | 2019-12-03T13:15:29 | Python | UTF-8 | Python | false | false | 5,861 | py | from django.core.exceptions import ValidationError
from django.test import TestCase
from django_analyses.models.input.definitions.file_input_definition import \
FileInputDefinition
from django_analyses.models.managers.output_definition import \
OutputDefinitionManager
from django_analyses.models.output.definiti... | [
"z.baratz@gmail.com"
] | z.baratz@gmail.com |
af9bf4858b5793e1641a6963e2f7e683b1de3f12 | 1adc548f1865c0e4fcb3b3ff1049789fa0c72b12 | /tests/observes/test_column_property.py | 058383a5651f5433d39e0d4606bda3d52d6f5663 | [] | no_license | wujuguang/sqlalchemy-utils | ca826a81acdc70168e0b85820aaf8fe1604d6b0a | b6871980a412f2ebd16ec08be3127814b42ba64e | refs/heads/master | 2021-01-12T20:59:48.692539 | 2016-01-15T08:06:48 | 2016-01-18T18:52:12 | 48,418,840 | 0 | 0 | null | 2015-12-22T08:05:48 | 2015-12-22T08:05:47 | null | UTF-8 | Python | false | false | 1,582 | py | import sqlalchemy as sa
from pytest import raises
from sqlalchemy_utils.observer import observes
from tests import TestCase
class TestObservesForColumn(TestCase):
dns = 'postgres://postgres@localhost/sqlalchemy_utils_test'
def create_models(self):
class Product(self.Base):
__tablename__ ... | [
"konsta.vesterinen@gmail.com"
] | konsta.vesterinen@gmail.com |
c2e9ac93f8629983cb977f8a65caf9dee5bfceaa | 80760d4c8a6b2c45b4b529bdd98d33c9c5509438 | /Practice/atcoder/ABC/054/src/c2.py | 007ef8de5fd091ec21679eb96f94eb5ea1f9c5f2 | [] | no_license | prrn-pg/Shojin | f1f46f8df932df0be90082b475ec02b52ddd882e | 3a20f1122d8bf7d95d9ecd205a62fc36168953d2 | refs/heads/master | 2022-12-30T22:26:41.020473 | 2020-10-17T13:53:52 | 2020-10-17T13:53:52 | 93,830,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # 全域木?っていうんだっけ?でもコストは関係ないか
# 適当に隣接リストでもってしてDFSする
N, M = map(int, input().split())
Neighbor_list = [[] for _ in range(N)]
for _ in range(M):
s, t = map(int, input().split())
Neighbor_list[s-1].append(t-1)
Neighbor_list[t-1].append(s-1)
def dfs(cur, path):
if len(path) == N:
return 1... | [
"hjod1172@yahoo.co.jp"
] | hjod1172@yahoo.co.jp |
cd53fdab752cc6628b086d089002c796748479b8 | e09bbdc53af6be9281795189f26f6e59997abf68 | /tests/test_forex.py | eeb783520060d238446a4a97fba67b6f1d7c96a9 | [
"Apache-2.0"
] | permissive | jag787/ppQuanTrade | 620ce72c7875bb730708c48ae0481376b43e501b | 9a6da7522d281da130a2c459e2e614a75daa543d | refs/heads/master | 2021-01-11T13:53:40.583710 | 2013-12-20T10:43:58 | 2013-12-20T10:43:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,100 | py | #
# Copyright 2013 Xavier Bruhiere
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"xavier.bruhiere@gmail.com"
] | xavier.bruhiere@gmail.com |
838a1a224339fe920c49a50a2b316a3903af131c | fca7958875d4650c6daeec7049fef02139db9eb1 | /mi/dataset/parser/test/test_parad_k_stc_imodem.py | e220343f8e3a8ebed36ef5cb7da6e5a3da97baf2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | oceanobservatories/mi-dataset | 36f08a076b24c40f91abd0a97e47a72ec85fc5e6 | 93aa7289f5f4788727f3b32f11d62f30ad88fd2f | refs/heads/master | 2020-04-04T04:25:22.372472 | 2017-02-24T17:06:23 | 2017-02-24T17:06:23 | 24,067,634 | 1 | 9 | null | 2016-06-29T23:24:46 | 2014-09-15T18:15:01 | Python | UTF-8 | Python | false | false | 26,149 | py | #!/usr/bin/env python
"""
@package mi.dataset.parser.test.test_parad_k_stc_imodem
@file marine-integrations/mi/dataset/parser/test/test_parad_k_stc_imodem.py
@author Mike Nicoletti, Steve Myerson (recovered)
@brief Test code for a Parad_k_stc_imodem data parser
"""
import struct, ntplib
from StringIO import S... | [
"petercable@gmail.com"
] | petercable@gmail.com |
e32fadc710671ee0d561a5192a3e0c6875072673 | ac7e039a70ba627f6d9a7a02c9a8849ed5e18a89 | /unep.project-database/tags/0.2/content/Project.py | d13c620db2288f39c6b8598a0df372dc144dd473 | [] | no_license | jean/project-database | 65a2559844175350351ba87e820d25c3037b5fb2 | e818d322ec11d950f2770cd5324fbcd1acaa734d | refs/heads/master | 2021-01-01T06:27:24.528764 | 2014-01-31T11:11:45 | 2014-01-31T11:11:45 | 32,125,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,359 | py | # -*- coding: utf-8 -*-
#
# File: Project.py
#
# Copyright (c) 2008 by []
# Generator: ArchGenXML Version 2.0
# http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#
__author__ = """Jean Jordaan <jean.jordaan@gmail.com>, Jurgen Blignaut
<jurgen.blignaut@gmail.com>"""
__docformat__ = 'p... | [
"jurgen.blignaut@61ed036f-b72b-0410-9ea5-b9ec1d72d98d"
] | jurgen.blignaut@61ed036f-b72b-0410-9ea5-b9ec1d72d98d |
4f599b8dfbd69a5f176a51a7c15b40ac767c1900 | caaf1b0754db1e676c37a6f1e58f19183754e654 | /sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_delete.py | 532bf47b34961b57f4acac61960084e27f172f18 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | rdomenzain/azure-sdk-for-python | 45dfb39121a0abda048c22e7309733a56259f525 | 58984255aeb904346b6958c5ba742749a2cc7d1b | refs/heads/master | 2023-07-07T06:53:12.967120 | 2023-07-04T16:27:37 | 2023-07-04T16:27:37 | 258,050,134 | 0 | 0 | MIT | 2020-04-23T00:12:14 | 2020-04-23T00:12:13 | null | UTF-8 | Python | false | false | 1,583 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | rdomenzain.noreply@github.com |
24606d612bfe57df9133c52158fa43cb8df4b0fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02554/s686857894.py | 2b0827ac913366bf60ab8e65803058621790719e | [] | 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 | 69 | py | N = int(input())
print(((10**N) - 2*(9**N) + (8**N)) % ((10**9)+7))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
66fa92e9025251b90129308bd92a3f521649690c | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /models/research/domain_adaptation/domain_separation/dsn_test.py | 3d687398a9b9356455f739417bc96ddb2ca5ad40 | [
"MIT",
"Apache-2.0"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 6,027 | py | # Copyright 2016 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"finn.niu@apptech.com.hk"
] | finn.niu@apptech.com.hk |
abde9955cdf401538f6a48140cc38c426eea896a | 8e29c21c631d2b3a21f18a210a2c0bbab0d1f347 | /python/pfs/drp/stella/datamodel/pfsTargetSpectra.py | 37983859c2a5a41486dce2a196d966979720b153 | [] | no_license | Subaru-PFS/drp_stella | 630d25118dcc074cf14629f2f1389fad21a023a8 | 85602eea2485ac24e0831046dc74f1b2d1a3d89f | refs/heads/master | 2023-09-01T06:23:57.661286 | 2023-08-23T21:22:25 | 2023-08-23T21:22:25 | 53,125,359 | 3 | 1 | null | 2023-09-07T05:52:04 | 2016-03-04T09:51:39 | Python | UTF-8 | Python | false | false | 13,208 | py | from collections.abc import Mapping
from typing import Dict, Iterator, Iterable, List, Type
import astropy.io.fits
import numpy as np
import yaml
from astropy.io.fits import BinTableHDU, Column, HDUList, ImageHDU
from pfs.datamodel.drp import PfsSingleNotes, PfsSingle, PfsObjectNotes, PfsObject
from pfs.datamodel.mask... | [
"price@astro.princeton.edu"
] | price@astro.princeton.edu |
310a2ff7d5c25b08fd026424c91c406d6dce04a7 | 8e4a5e0a81fc9401fc0b6e55dd55e8d6e29c3ed6 | /PycharmProjects/licamb/licamb/db.py | 56e07023c14dd0a9ab4cc3e86d345f33321735e3 | [] | no_license | rogeriodelphi/portifolio | 1fb16c8c723b97f20cdd305224b660a1657f3913 | 5c704305ce26576afb4efd1e410f691971f06fac | refs/heads/master | 2023-08-11T05:33:37.539047 | 2021-09-26T01:57:02 | 2021-09-26T01:57:02 | 284,164,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SQLITE = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NA... | [
"rogeriodelphi@gmail.com"
] | rogeriodelphi@gmail.com |
e610e2ff68b9264be3b2f2e6659c8a516cad7e27 | eb136fec7f6dfcb11834cc0cd4d3daec1d7a4dc6 | /fiasco_api/expenses/migrations/0001_initial.py | 40ad410a30d5561dfacbc245e35bd26e587ef388 | [
"MIT"
] | permissive | xelnod/fiasco_backend | 4635cff2fd220585c4433010e64208dfebbf2441 | edeca8cac8c7b1a1cc53051d4443cc2996eba37c | refs/heads/master | 2020-09-21T13:37:37.971952 | 2020-09-15T19:38:37 | 2020-09-15T19:38:37 | 224,804,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | # Generated by Django 3.1.1 on 2020-09-13 21:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('categories', '0001_initial'),
('channels', '0001_initial'),
]
operations = [
mi... | [
"s.zench@yandex.ru"
] | s.zench@yandex.ru |
895a6ff291a61e66f00fd311bf599cf8fdb80ba1 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_workspaceusers_request.py | 03fe5cb9797831a7a33f080679f078e6c5bedd22 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,633 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListWorkspaceusersRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is at... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.