blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07e0a3f5263b42f5cfbf6a40d74adadb61a31aac | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03836/s870323568.py | ad0d20b04f7d66288bd881e8921f6962e16fadd5 | [] | 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 | 516 | py | def main():
sx, sy, tx, ty = map(int, input().split())
x = tx - sx
y = ty - sy
s = ""
for i in range(2):
tmp = ""
if i:
tmp += "D"
tmp += "R"*(x+1)
tmp += "U"*(y+1)
tmp += "L"
else:
tmp += "R"*x
tmp += "... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
92764ee5fa04ada4b84d89a4c40d1645710675ca | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/WW/FullRunII/Full2017_v9/njets/plot.py | b869826b875f6efbb25b48b65c4cd12b7f151232 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 5,738 | py | # plot configuration
nbins = 4
# groupPlot = {}
#
# Groups of samples to improve the plots.
# If not defined, normal plots is used
#
groupPlot['top'] = {
'nameHR' : 'tW and t#bar{t}',
'isSignal' : 0,
'color': 400, # kYellow
'samples' : [... | [
"saumya.phor4252@gmail.com"
] | saumya.phor4252@gmail.com |
018440f84f40bfcb4de4dbd4916932d807d54935 | 2c7f025568bceb560888d26828aef30e5ae23393 | /src/home-20170804/migrations/0015_auto_20170601_1925.py | aac40a81d41a1db348df5d1c203aa4f5437164e5 | [] | no_license | GustavoCruz12/educacao | 6271ebc71830ee1964f8311d3ef21ec8abf58e50 | d0faa633ed1d588d84c74a3e15ccf5fa4dd9839e | refs/heads/master | 2022-12-08T09:34:42.066372 | 2018-08-03T06:38:49 | 2018-08-03T06:38:49 | 143,387,426 | 0 | 0 | null | 2022-12-08T00:01:52 | 2018-08-03T06:31:03 | Python | UTF-8 | Python | false | false | 493 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-06-01 19:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0014_auto_20170601_1923'),
]
operations = [
migrations.AlterField(
... | [
"gustavocruz201419@gmail.com"
] | gustavocruz201419@gmail.com |
7c720b9d543c458945310c10348f41a006a16bdb | 72900b002fc2c27ea92564da10a87b4c9ab75f63 | /contracts/tests/test_schedule_metadata.py | 66fe05df5396217794d2f39d48bc50611e0b4899 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | firefoxxy8/calc | f495443d28f7fd71da5e881a6d05d92aad2ba0fd | 7ceb2fcadd67bc9fbcb64cdaba50dbbdead0e803 | refs/heads/master | 2020-03-27T19:19:24.127137 | 2018-08-20T22:23:33 | 2018-08-20T22:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | from django.core.management import call_command
from django.test import SimpleTestCase, TestCase
from django.utils.safestring import SafeText
from contracts.models import ScheduleMetadata
def populate_schedule_metadata():
# This is SUPER weird. Previous TransactionTestCase runs (usually
# the result of a Liv... | [
"varmaa@gmail.com"
] | varmaa@gmail.com |
9ed3621af43e4f23d160e89f19f6d78356630961 | 3940b4a507789e1fbbaffeb200149aee215f655a | /lc/145.BinaryTreePostorderTraversal.py | cea3a772e720331356728cbbd39b0eca590101ba | [] | no_license | akimi-yano/algorithm-practice | 15f52022ec79542d218c6f901a54396a62080445 | 1abc28919abb55b93d3879860ac9c1297d493d09 | refs/heads/master | 2023-06-11T13:17:56.971791 | 2023-06-10T05:17:56 | 2023-06-10T05:17:56 | 239,395,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | # 145. Binary Tree Postorder Traversal
# Medium
# 2416
# 112
# Add to List
# Share
# Given the root of a binary tree, return the postorder traversal of its nodes' values.
# Example 1:
# Input: root = [1,null,2,3]
# Output: [3,2,1]
# Example 2:
# Input: root = []
# Output: []
# Example 3:
# Input: root = [1]... | [
"akimi.mimi.yano@gmail.com"
] | akimi.mimi.yano@gmail.com |
a490e7f1e6b2c65087dfabc08bfafafeb3f0052c | 5e9576c368e98927e2965bd2fb23bd35d9993d69 | /featuretools/primitives/standard/aggregation/time_since_last_false.py | da04a8d96f2ab98be1971c71fbac3b5a5bab51cb | [
"BSD-3-Clause"
] | permissive | alteryx/featuretools | c6e319e063e8e84e7684bf232376f95dc5272160 | c284c2d27a95b81e0bae913ac90df2b02c8f3b37 | refs/heads/main | 2023-08-25T12:21:33.945418 | 2023-08-23T16:30:25 | 2023-08-23T16:30:25 | 102,908,804 | 1,783 | 201 | BSD-3-Clause | 2023-09-07T18:53:19 | 2017-09-08T22:15:17 | Python | UTF-8 | Python | false | false | 2,223 | py | import numpy as np
import pandas as pd
from woodwork.column_schema import ColumnSchema
from woodwork.logical_types import Boolean, BooleanNullable, Datetime, Double
from featuretools.primitives.base import AggregationPrimitive
class TimeSinceLastFalse(AggregationPrimitive):
"""Calculates the time since the last ... | [
"noreply@github.com"
] | alteryx.noreply@github.com |
d69efc6966a7a0dd85157fa1130e54581402b0c7 | 2feb8dfebbf10ffd03f02bea643195c942ed6739 | /list_doublesplits.py | e6f81a0f131079bc59c5d382b3d93bc6415a1860 | [] | no_license | Prads16/PythonForEverybodyCourseraSpecialization | f961648eb1c92fe7cc41468c278589b151e59cab | 997056b3de23ed1d01f6bb1c94c6b850c114368e | refs/heads/master | 2021-04-12T05:02:42.912896 | 2018-03-27T18:53:26 | 2018-03-27T18:53:26 | 125,952,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #Open the file mbox-short.txt and read it line by line. When you find a line that
#starts with 'From ' like the following line:
#From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008
#You will parse the From line using split() and print out the second word in the
#line (i.e. the entire address of the person who sent... | [
"pradnya.ambre16@gmail.com"
] | pradnya.ambre16@gmail.com |
1b3b643a9de2d0688ccc6fd43534603d811be2eb | 927b50cdaf1c384c8bbf6f13816d0ba465852fd8 | /machine_learning_models/ctscan_covid_prediction/cnn.py | 61c6c1a50ac8a0e672cbe76c993cee29544e1ef9 | [
"MIT"
] | permissive | jhabarsingh/DOCMED | f37d336483cffd874b0a7db43677c08a47bd639c | 8a831886d3dd415020699491687fb73893e674c5 | refs/heads/main | 2023-04-26T06:45:10.409633 | 2021-05-19T14:37:53 | 2021-05-19T14:37:53 | 316,683,855 | 3 | 5 | MIT | 2021-02-21T13:32:33 | 2020-11-28T07:51:22 | JavaScript | UTF-8 | Python | false | false | 2,926 | py | import tensorflow as tf
import keras
import pandas as pd
import numpy as np
import zipfile
import os
from random import randint
from keras.layers import Dense,Flatten,MaxPool2D,Conv2D,Dropout,GlobalAveragePooling2D
from keras.losses import binary_crossentropy,categorical_crossentropy
from keras.models import Model,Sequ... | [
"jhabarsinghbhati23@gmail.com"
] | jhabarsinghbhati23@gmail.com |
7d7cada6debb9f178ad60a991eb6e7cb110ccb8e | dcda5ba16474dd8ff650e04e7f4a9bf700f6a9ff | /shop/admin.py | 35ea34c67b82499abed52b603a899222fbc1937b | [] | no_license | 007vict/shopbyexample | 2084d6e53faafb5c7e856cc8b3a5ff43bc3a82e2 | bc7dcfe5818499731c3cbf956c9c0b95cf3791da | refs/heads/master | 2022-12-21T13:05:08.425653 | 2019-04-10T10:30:41 | 2019-04-10T10:30:41 | 177,291,341 | 0 | 0 | null | 2022-12-08T04:58:00 | 2019-03-23T13:18:59 | JavaScript | UTF-8 | Python | false | false | 667 | py | from django.contrib import admin
from .models import Category, Product
from parler.admin import TranslatableAdmin
@admin.register(Category)
class CategoryAdmin(TranslatableAdmin):
list_display = ['name', 'slug']
def get_prepopulated_fields(self, request, obj=None):
return {'slug': ('name',)}
@admin.r... | [
"super_vg@bk.ru"
] | super_vg@bk.ru |
616df77085bb95807dd89413c1aa21dd7e7250a7 | 442ccaa620eb22d51378a45941d021b44d7cde98 | /src/courses/admin.py | daed5cd7fc1160232f05616b0ed9cc628995f6df | [] | no_license | achiengcindy/supreme-school | 43884b3c34fcac51d8f6ab4df38ee923f473fec9 | c3777cb5f63ec41a167f87f0c7ec6a575e88ff0b | refs/heads/master | 2021-01-16T01:57:01.590225 | 2020-03-26T01:40:14 | 2020-03-26T01:40:14 | 242,935,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from django.contrib import admin
from .models import Subject, Course, Module
# Register your models here.
@admin.register(Subject)
class SubjectAdmin(admin.ModelAdmin):
list_display = ['title', 'slug']
prepopulated_fields = {'slug': ('title',)}
class ModuleInline(admin.StackedInline):
model = Module
@adm... | [
"achiengcindy36@gmail.com"
] | achiengcindy36@gmail.com |
259eb83402332534b5d99c0a6e094279776f1915 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=73/params.py | 885ca21da69a7e1b42cd2a69b712f6a68b7f435e | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.532857',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.65',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 73,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
3f52dd08607f49f62ba2a9fcf0763299051fc089 | 4c7fc810eb442b386969bf345b4dc6ef3152c783 | /src/transformers/models/pegasus/configuration_pegasus.py | ae5f8f007573b77a2c22f667698e25ef5bd39b3e | [
"Apache-2.0"
] | permissive | newcodevelop/transformers | fbcef5d703b12febf6e76e84e3f0493769fb9d37 | e8d1bd7427021d2114ec159b2c90c6b1fcddeae7 | refs/heads/main | 2023-03-15T11:45:09.906184 | 2022-08-30T07:26:17 | 2022-08-30T07:26:17 | 254,360,734 | 0 | 1 | Apache-2.0 | 2020-04-09T12:07:09 | 2020-04-09T12:07:08 | null | UTF-8 | Python | false | false | 7,868 | py | # coding=utf-8
# Copyright 2021, Google and The HuggingFace Inc. team. 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
... | [
"noreply@github.com"
] | newcodevelop.noreply@github.com |
c7bf6347a9483578c151ba6fdf82003fc374d7ff | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L82/82-80_MD_NVT_rerun/set_2.py | 418a71c6ac0ba7775d409fa90b0c3d5147873a7b | [] | 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 | 741 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L82/MD_NVT_rerun/ti_one-step/82_80/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_2.in'
temp_pbs = filesdir + 'temp_2.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 la... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
4b22873ba2b86ee6f8f353268dab2f9cda56c13c | d77c8e7d5ec57940a2e1ee0e9836fb6181b0e051 | /user.py | ff88009a1f188531003aede35af3ba5cdd19b583 | [] | no_license | ultralegendary/Git-RPG | 6111ea5bb25ecbd5d86d4a577935e8aa0fc40f15 | db3caeea635a56303a971a4ee6488de7963a5aa2 | refs/heads/master | 2023-03-21T14:15:18.612195 | 2021-03-14T14:06:57 | 2021-03-14T14:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | import sqlite3
import os
"""Db structure:
{
user_name = ...
file_path = ...
level = {
lvl_no: ["init","commit",....],
}
"""
basepath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "user.sqlite3")
class User:
def __init__(self, path=None):
"""Takes a file-path"""
... | [
"npc203@users.noreply.github.com"
] | npc203@users.noreply.github.com |
422b89a625e8ed71bceb6edd8df9b18591547f09 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/codeabbey/_CodeAbbeyPythonSolutions-master/matching_brackets.py | 6e1fa02b64da38699b6c5780bcf0007efcd986dd | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 745 | py | _______ __
amount_values i..(input
results # list
___ is_matching(word
word __.sub _ [^()[\]{}<>]","",word)
open_brackets ["[","(","{","<"]
close_brackets ["]",")","}",">"]
open_brackets_in_word = # list
___ i __ word:
__(i __ open_brackets
open_brackets_in_word.a..(i)
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
6f16a1c2b4dac3fc4a91743e308c6b7a3bc0d011 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/bigquery/storage/v1/bigquery-storage-v1-py/setup.py | f20749fb5fe943b8d9cce3d3b649c3f8f26a9e70 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google 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-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
29fe8a900520b7b684149b1f22f380300671c0f6 | 0fd2b832673946c9ee532686a2a35bf2680f8408 | /CybORG/CybORG/Shared/Results.py | 59e18af053e39645c2884ab3d8a515ea1d15a00f | [
"MIT"
] | permissive | pvu1984/cage-challenge-2 | 4e57bad7bc30c7df2b90c2fabc8395a5f2a3e65c | e76722dcd79a6b7511e185cde34fac1e0b45720e | refs/heads/main | 2023-09-02T15:11:32.072215 | 2021-11-12T02:33:19 | 2021-11-12T02:33:19 | 429,307,660 | 0 | 0 | MIT | 2021-11-18T05:27:36 | 2021-11-18T05:27:35 | null | UTF-8 | Python | false | false | 2,588 | py | # Copyright DST Group. Licensed under the MIT license.
import pprint
from copy import deepcopy
from CybORG.Shared.Observation import Observation
class Results:
def __init__(self,
observation: dict = None,
done: bool = None,
reward: float = None,
... | [
"david@pop-os.localdomain"
] | david@pop-os.localdomain |
94d3ea0be5e02f307d069584e4530c7fdc6abeaa | 79baf4404e51bdc0f33038b3b16bea86ff09e82f | /azext_iot/central/providers/export_provider.py | d5199774472543a2fd7b5a3ccb8a34bb9aa676be | [
"MIT"
] | permissive | Azure/azure-iot-cli-extension | 80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e | bdbe65c3874ff632c2eba25c762e9ea8e9175b5f | refs/heads/dev | 2023-09-04T10:57:16.118442 | 2023-08-28T17:12:05 | 2023-08-28T17:12:05 | 103,456,760 | 95 | 80 | NOASSERTION | 2023-09-13T00:02:54 | 2017-09-13T22:04:36 | Python | UTF-8 | Python | false | false | 4,040 | 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.
# -----------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
9293d417b66ad07a3eb2ecf542809cd46dfaa542 | 7cb322bfb75500e1627f0d6306789f0c3c59e83f | /django_eveonline_connector/signals.py | e09bb78e636047511d0260cf337617d72affeb7a | [
"MIT"
] | permissive | Demieno/django-eveonline-connector | 9e0cfc6b091d408407544d4486cc5d7ffcf9c3f4 | 7aa47440b5a4df19545c3499d63e39f202f46c61 | refs/heads/master | 2020-12-14T03:45:15.594067 | 2020-01-02T20:57:27 | 2020-01-02T20:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | from django.contrib.auth.models import User, Group
from django_eveonline_connector.models import EveScope, EveClient
from django.dispatch import receiver
from django.db.models.signals import post_delete, post_save
from django.db import transaction
from django.core.exceptions import PermissionDenied
import logging
logg... | [
"porowns@gmail.com"
] | porowns@gmail.com |
2fb7cc835fea101c3497563093dc6b59a9d34543 | 1afa6c852dfc922d1a26a384d965976f31a87692 | /Common/ComputationalGeometry/Testing/Python/CSpline.py | e7feea105e904f590ff75a762cdd74fb4e846c28 | [
"BSD-3-Clause"
] | permissive | dgobbi/VTK | 631d037aacc7258861e70f77c586b01cd4ebff3f | 17f232ee440025c26bc78a897edef78e9fc78510 | refs/heads/master | 2021-01-04T22:27:46.611907 | 2013-03-01T19:44:02 | 2013-03-01T19:44:02 | 938,377 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,097 | py | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Now create the RenderWindow, Renderer and Interactor
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
iren = vtk.vtkRenderWindowInteractor()
iren.S... | [
"nikhil.shetty@kitware.com"
] | nikhil.shetty@kitware.com |
25dbc0f67dd0f2b7ad3b38e4f59b589d9570d866 | c9144edf6236e8214cc54f6c24f5689d11aff1a8 | /week10/yghoon/keypad.py | 500187cc35b217402b14fc2ada564727f2730e73 | [] | no_license | dohvis/kmu-sw-proj | 10aa60066c1a3a11e9f05f54effb22935c8c4381 | 8ab1996f84d80f322b64d35e71cb1a8f0d90c108 | refs/heads/master | 2021-08-23T13:15:46.962343 | 2017-12-05T01:44:56 | 2017-12-05T01:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from calcFunctions import factorial, decToBin, binToDec, decToRoman
numPadList = [
'7', '8', '9',
'4', '5', '6',
'1', '2', '3',
'0', '.', '=',
]
operatorList = [
'*', '/',
'+', '-',
'(', ')',
'C',
]
constantDics = {
'pi' : '3.141592',
'빛의 이동 속도 (m/s)' : '3E+8',
'소리의 이동 속도 ... | [
"the_basic_@kookmin.ac.kr"
] | the_basic_@kookmin.ac.kr |
a9434d2aa6368d8259029d3de1bd9374cec21a2a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/726.py | 511cfe53fe71d562c63735db511b437a68cc20d6 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | f = open('B-small-attempt2.in','r')
fo = open('result.txt','w')
t = int(f.readline())
# 0N, 1R, 2O, 3Y, 4G, 5B, and 6V.
d = [[],[2,6],[1,3],[2,4],[3,5],[4,6],[5,1]]
e = [[],[3,4,5],[4,5,6],[1,5,6],[1,2,6],[1,2,3],[2,3,4]]
st = 'XROYGBV'
for ti in range(t):
u = [int(x) for x in f.readline().split()]
#... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a55c909ea302272ae58bf65f53197abc7929f606 | 45a153a8e27b552d82d137bd94f2d5d0aec3c889 | /GoogleCLoudwithTwilio/google-cloud-sdk/lib/surface/app/gen_repo_info_file.py | 6b22de0c01c26795d53203fb8e81f01af51444b1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Pooshan/App-using-Twilio | 84bc0be1f091c678528bdf161c9fbb0af617fc0e | a6eea3f40ef9f22a7ab47c1f63b90deaa2620049 | refs/heads/master | 2022-11-23T23:56:49.754209 | 2016-10-01T18:47:25 | 2016-10-01T18:47:25 | 69,719,320 | 0 | 1 | null | 2022-11-02T19:48:20 | 2016-10-01T04:26:37 | Python | UTF-8 | Python | false | false | 4,572 | py | # Copyright 2014 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... | [
"pooshan.vyas@gmail.com"
] | pooshan.vyas@gmail.com |
38a29097fb677afe38a3f4e24a7ca69dea1596b0 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pbase/day06/jiangyi/day06/day05_exercise/99.py | 98eb958a8ab699da85a2d9454f6e34a6e82a1522 | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # 1. 写程序打印九九乘法表
# 1x1=1
# 1x2=2 2x2=4
# 1x3=3 2x3=6 3x3=9
# ....
# 1x9=9 .......... 9x9=81
for x2 in range(1, 10):
for x1 in range(1, x2 + 1):
print("%dx%d=%d"%(x1, x2, x1 * x2), end=' ')
print() # 换行
| [
"442315617@qq.com"
] | 442315617@qq.com |
0eedd09812bb4c2cbf5a57643d7aac8c1c200214 | f51c6d0cebb27c377ce9830deec4b727b9b2ee90 | /AI/05_tictactoe/01object_grid.py | b3c72f860a52becf43b6c430e74fbbe1f3bc4994 | [] | no_license | dbbudd/Python-Experiments | 1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8 | b6d294bf11a5c92b8578d16aa2f63cc27fc47b07 | refs/heads/master | 2020-04-17T02:21:36.693593 | 2019-01-17T00:18:34 | 2019-01-17T00:18:34 | 166,130,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | #!/usr/bin/env python
import numpy as np
import itertools
class gameboard(object):
def __init__(self):
#player 1 puts a "X", player 2 puts a "O"
self.g = [[0,0,0],[0,0,0],[0,0,0]]
self.grid = np.array(self.g)
print(self.grid)
def checkWin(self):
if ((self.grid.... | [
"dbbudd@gmail.com"
] | dbbudd@gmail.com |
e8c235b55e0f91859013f3f878d062126d0be59f | 1cb2e45c87c1b961d33cfcbed95f765ca3be15b1 | /0x22-primegame/main_8.py | b78832497631e5415d3cb06df9fadfd917647b07 | [] | no_license | icculp/holbertonschool-interview | a93b5e213861c3349733df1042bc7c323e8129ad | e49ac9e2f3dc356a9cae177472ac54c2e55edabf | refs/heads/main | 2023-07-26T08:41:17.638936 | 2021-08-26T17:09:29 | 2021-08-26T17:09:29 | 319,488,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #!/usr/bin/python3
"""
Main file for testing
"""
isWinner = __import__('0-prime_game').isWinner
nums = [0] * 10000
for i in range(10000):
nums[i] = i
print("Winner: {}".format(isWinner(10000, nums)))
| [
"icculp@gmail.com"
] | icculp@gmail.com |
8ee49add3d08eb326c2b2eb0441beefb3936465b | c5471ada76f276752255b34b910da799dc29d804 | /2016/day/11.py | 0214968c95823e0b526e4725bbb4ea03394a88a3 | [] | no_license | MasterMedo/aoc | 3c75a3b02ed6e65f9a5be2f393af884c79914209 | 42ccde20f31b99bc9e49248a58b732dca5972c69 | refs/heads/master | 2022-12-22T13:22:59.562745 | 2022-12-22T06:29:39 | 2022-12-22T06:29:39 | 112,675,225 | 31 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | import re
from itertools import combinations, chain
from heapq import heappop, heappush
generators, microchips = {}, {}
with open('../input/11.txt') as f:
for floor, line in enumerate(f):
for microchip in set(re.findall(r'\w+(?=-comp)', line)):
microchips[microchip] = floor
for genera... | [
"mislav.vuletic@gmail.com"
] | mislav.vuletic@gmail.com |
d7b9041bc53a89ae60f21bc5562483eb05692a1a | 7b20e2f86c2bb2145ae9ca5bcd4b9ad1566e79b0 | /ABC/ABC134/D.py | 53b03aa78f43b3f56626b735bd9b2b2e47171ff2 | [] | no_license | pto8913/KyoPro | 5f5e769960dfec73af5b0f338f32659ff067094b | 29ebc30a3d45fea273cb9034fba8311673a406dd | refs/heads/master | 2021-06-13T16:43:40.275854 | 2021-03-23T00:02:25 | 2021-03-23T00:02:25 | 174,684,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | N = int(input())
A = list(map(int,input().split()))
box = [0] * (N+1)
res = []
for i in range(1, N+1)[::-1]:
s = 0
for j in range(1, N // i):
s += box[(j+1)*i]
if s % 2 != A[i-1]:
box[i] = 1
res.append(i)
print(len(res))
print(*res)
| [
"noreply@github.com"
] | pto8913.noreply@github.com |
b1967d3e0558202aea64db2d93f90760ba779a18 | 0f2a123478c6fb5941c4180c76fa663833d3c764 | /service/neighborhood.py | dfeeab71407cb8d5ab381e80c1088ed2c3ee5e0f | [
"Apache-2.0"
] | permissive | curtislisle/EntityAlignLarge | 77fc650251724dc5eec9dbde13d34b91dd0d62b9 | d629ef14b5f6abe3f0c758f8df92139dc9d01f07 | refs/heads/master | 2021-01-18T20:32:05.074741 | 2015-07-02T01:36:13 | 2015-07-02T01:36:13 | 35,761,970 | 0 | 1 | null | 2015-07-02T01:36:13 | 2015-05-17T10:32:24 | JavaScript | UTF-8 | Python | false | false | 3,139 | py | import bson.json_util
from bson.objectid import ObjectId
import json
from pymongo import MongoClient
def freeze(rec):
return (str(rec["_id"]), rec["data"]["id"], bson.json_util.dumps(rec))
def process(frozen):
rec = json.loads(frozen[2])
processed = {"key": rec["_id"]["$oid"]}
processed.update(rec[... | [
"clisle@knowledgevis.com"
] | clisle@knowledgevis.com |
092fd67ed334bb3399c9ae96c5673c7487a8ca76 | 31bb411ccdc1581e5a5c9e8acd7fc7c5ffde1067 | /prosper/datareader/intrinio/auth.py | e80a448395a989d2f2f94b1c20e579d053708ca7 | [
"MIT"
] | permissive | EVEprosper/ProsperDatareader | c58b645bab80cbb946cfddd657921a9dadbf403b | 31f0d77074c21222161774f4d653326925611167 | refs/heads/master | 2021-01-01T19:45:39.506553 | 2018-06-13T16:18:03 | 2018-06-13T16:18:03 | 98,676,957 | 0 | 1 | MIT | 2019-01-22T06:09:17 | 2017-07-28T18:32:41 | Python | UTF-8 | Python | false | false | 2,983 | py | """prosper.datareader.intrinio.auth: handle authentication/validation"""
import requests
from .. import exceptions
from .. import config
BASE_URL = 'https://api.intrinio.com/'
class IntrinioHelper(object):
"""parent class for handling requests to Intrininio
Notes:
See https://intrinio.com/account fo... | [
"locke.renard@gmail.com"
] | locke.renard@gmail.com |
739a10dd59b002a18843a90b852d29a3bd234b9b | e41b573b7d2822ba00123e28d1ad6fe39db0631f | /portal/editstore/decorators.py | b12b9ac81dbf47941368253f1213fefb119f6633 | [] | no_license | epodreczniki/epodreczniki-portal | 1e7fc583bd24dc6962fefdc2a2002835a39e122d | 3f3d033c87a186d43cecd119ffe1172d7720c638 | refs/heads/master | 2021-01-16T21:46:12.400414 | 2017-01-31T21:24:35 | 2017-01-31T21:24:35 | 64,475,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | # coding=utf-8
from __future__ import absolute_import
from django.shortcuts import render
from store.exceptions import NiceException
import functools
from editstore.objects import drivers, SpaceDriver
from editstore import models
from django.shortcuts import get_object_or_404
from editstore import exceptions
from comm... | [
"kontakt@epodreczniki.pl"
] | kontakt@epodreczniki.pl |
0b7c4c174ac6c7f498f46996277dc543c4576816 | 7969cea981b2d2c665b62c4de58c2d9556bfeaad | /original/test_new_vctk.py | 3ba4d093058763ef3f014e46af880a1b0c508a41 | [] | no_license | xcmyz/Forced-Alignment | 106dc73072d34bb07e881ee310e2a4a327230214 | c20dd4c892c39b5d6a0ee6bef673ac523621f15e | refs/heads/master | 2020-05-02T03:52:30.079472 | 2019-04-17T09:40:48 | 2019-04-17T09:40:48 | 177,738,186 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import os
from nnmnkwii.datasets import vctk
import hparams as hp
# speakers = vctk.available_speakers
# print(speakers)
# print(len(speakers))
speakers = list()
for file in os.listdir(os.path.join(hp.vctk_processed, "wav48")):
speakers.append(str(file[1:4]))
# print(speakers)
# print(len(speakers))
... | [
"noreply@github.com"
] | xcmyz.noreply@github.com |
f3abd2898ef25b92b7c5f64799adadc6acde5e1d | 5783be589f9f6ab590ea097eb9b84fa3786617e4 | /Trie/contacts_list.py | 31c37f25db381989e9aad83a48ec1dcf4f978847 | [
"Apache-2.0"
] | permissive | suyash248/ds_algo | 5751e46ba4b959f0dd3f6843800f3e21d52100ac | 1ca9470c33236016cbb88a38b2f19db41535e457 | refs/heads/master | 2022-12-10T10:39:16.135888 | 2022-12-06T16:45:25 | 2022-12-06T16:45:25 | 58,738,512 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,179 | py | # https://www.youtube.com/watch?v=vlYZb68kAY0 - Contacts list
# Insert and search costs O(key_length), however the memory requirements of Trie is O(ALPHABET_SIZE * key_length * N)
# where N is number of keys in Trie.
# https://www.youtube.com/watch?v=AXjmTQ8LEoI
class ContactNode(object):
def __init__(self):
... | [
"suyash.soni248@gmail.com"
] | suyash.soni248@gmail.com |
2bb7c7ba3061c50db496fcc55f5566792482e2cd | 65c8a6a7af2ee8cdf3866d012ea814887bd68a26 | /ppro360_automation/Ppro360/CoachingAndTriadCoaching_Pages/RapidFireProcessConfirmation.py | 0a3d8240f845597bb551d6c2ea4dd50383a5257f | [] | no_license | 1282270620/automation_test | 9b3c595c3f7a139ded0a638ae4bcf31e0b7f9686 | 3faf86f0d641089eaf27eba906d22157dd2c1f5d | refs/heads/master | 2020-04-01T06:35:33.873989 | 2018-10-21T03:05:17 | 2018-10-21T03:05:17 | 152,954,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | '''
Created on 20171101
@author: lei.tan
'''
from selenium.webdriver.common.by import By
from Tablet_pages import BasePage
class RapidFireProcessConfirmation(BasePage.Action):
def __init__(self):
self.callRecordingNumber_loc=(By.XPATH,"//*[@id='container']/div/section/div/form/div/div[... | [
"1282270620@qq.com"
] | 1282270620@qq.com |
f2ec15ec6b195fffb34cf7280adecd51ca8ee052 | 95d1dd5758076c0a9740d545a6ef2b5e5bb8c120 | /PY/basic/class_inherit.py | 98146eaa6d42f48c981e6d630f45405486b34194 | [] | no_license | icoding2016/study | 639cb0ad2fe80f43b6c93c4415dc6e8a11390c85 | 11618c34156544f26b3b27886b55c771305b2328 | refs/heads/master | 2023-08-31T14:15:42.796754 | 2023-08-31T05:28:38 | 2023-08-31T05:28:38 | 117,061,872 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | #!/usr/bin/python
from __future__ import print_function
class B(object):
class_var = None
def __init__(self):
print("Class B init..")
self.inst_var = 0
def func(self):
print("B::func()")
print("class_var=%s" % self.class_var)
print("inst_var=%s" % self.inst_var)
... | [
"icoding2016@gmail.com"
] | icoding2016@gmail.com |
f967c5af25bac400dae4bde6a3438947838cd97e | e35eb92b5ab6547119585004b9eea3cafe948050 | /efsw/storage/errors.py | 84ab6044f4679693c7697a6ed29b48ba498314da | [] | no_license | einsfr/mmkit | 0a084db85b2cf5ba268e692676095d768733f387 | f12bc2f83254a3123e02abdc105816cc04c438b5 | refs/heads/master | 2020-12-31T05:56:19.287611 | 2016-06-10T05:56:58 | 2016-06-10T05:56:58 | 29,473,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | FILE_DOES_NOT_EXIST_IN_STORAGE = 'В хранилище "{0}" отсутствует файл "{1}".'
STORAGE_DOES_NOT_CONTAIN_FILE = 'Файл "{0}" не принадлежит хранилищу "{1}".'
FILE_ALREADY_EXISTS_IN_STORAGE = 'Файл "{0}" уже существует в хранилище "{1}".'
STORAGE_ROOT_NOT_FOUND = 'Корневая папка хранилищ "{0}" не существует.'
STORAGE_ROOT_R... | [
"einsfr@users.noreply.github.com"
] | einsfr@users.noreply.github.com |
283f427e9d9fd76dffc9aa0194a13ceee65c1eed | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6010/210006010.py | 9c9a3fead2b5be7e1936e8c84d815fd4b8fdba06 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,639 | py | from bots.botsconfig import *
from records006010 import recorddefs
syntax = {
'version': '00601',
'functionalgroup': 'IM',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'B3', MIN: 1, MAX: 1},
{ID: 'C2', MIN: 0, MAX: 1},
{ID: 'C3', MIN: 0, MAX: 1},
{ID: 'ITD', MIN: 0, MAX: 1},
... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
262e5a8fc1b3277a125ac7ac66fefddc56cae93a | a457e3284fa1f32257969a72c69082dd0179eb73 | /gladweb/config.py | ef8979cda314e9b8cbea6d22467ff25691cdb8b3 | [] | no_license | slow2go/glad-web | 19377a6f17f19a4ebc46bc9c61afc9f709f628b0 | 13f8674c9602d1288b5de9437cf618e835fcac4e | refs/heads/master | 2021-01-24T08:29:43.615111 | 2017-05-22T14:29:30 | 2017-05-22T14:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | # ---
# Default Configuration
# ---
import os
import gladweb.cache
base_path = os.path.abspath(os.path.join(os.path.split(__file__)[0], '..'))
# ---
# Flask
# ---
# This key MUST be changed before you make a site public, as it is used
# to sign the secure cookies used for sessions.
SECRET_KEY = 'ChangeMeOrGetHacke... | [
"admin@dav1d.de"
] | admin@dav1d.de |
b182d112f6cb1b8565fb48e838a02291e2d64987 | 2bcc421ee345b00cf805c543b37d18b5d019dc04 | /adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/azureiot_central_properties.py | 415f9b7095f77f7c046958466f0ecc7f3a5f28bd | [] | no_license | saewoonam/sc-current-source-titano | 5a1ad46889c1b09c168424901fd71cb4eab5c61b | 1c136aa8b61268d9ac0b5a682b30ece70ab87663 | refs/heads/main | 2023-03-02T22:12:26.685537 | 2021-02-09T03:28:01 | 2021-02-09T03:28:01 | 317,299,900 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,963 | py | import random
import time
import board
import busio
from digitalio import DigitalInOut
import neopixel
from adafruit_esp32spi import adafruit_esp32spi, adafruit_esp32spi_wifimanager
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
from adafruit_ntp import NTP
# Get wifi details and more from a sec... | [
"nams@nist.gov"
] | nams@nist.gov |
c2ea836a58ec6f9d02d3d631bdecf55d3db16ccf | 88307f29f2930213819b2a21ac328ee52e5d8d65 | /tests/benchmark.py | 52a684fb04421ac6481101c185ec87ab22b3704e | [
"BSD-3-Clause"
] | permissive | ChristopherBradley/cogent3 | 7dc6524d66687402d2bd48c07ca68b41133e9f00 | 4b4c0fbc77f50aebd74ecf44a6d1777b2e2c0fbb | refs/heads/master | 2023-02-27T00:58:29.796585 | 2020-11-09T04:13:51 | 2020-11-09T04:13:51 | 219,615,537 | 0 | 0 | BSD-3-Clause | 2023-02-21T20:03:32 | 2019-11-04T23:22:58 | Python | UTF-8 | Python | false | false | 5,641 | py | #!/usr/bin/env python
import sys # ,hotshot
from cogent3 import load_aligned_seqs, load_tree
from cogent3.evolve.substitution_model import (
TimeReversibleCodon,
TimeReversibleDinucleotide,
TimeReversibleNucleotide,
)
from cogent3.maths import optimisers
from cogent3.util import parallel
__author__ = "... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
1ac63a541e9a8dce7c61fe484cbb580d7979038e | 0737f5a9e19cc14692c8bf99dc349ae856a20b0c | /replay_buffer.py | 8f793775a62d5ab3e9a96878a951fc17eebfd190 | [] | no_license | takuseno/unreal | 37fd0c0b7613182f1abb5d55b5d0f8564acf25c2 | 864cfbc1edf56510c69ef3809ae0adc6cb129017 | refs/heads/master | 2020-03-22T19:55:25.246229 | 2018-08-07T09:03:52 | 2018-08-07T09:03:52 | 140,560,691 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,188 | py | from collections import deque
from random import sample, randrange, random
import uuid
class ReplayBuffer:
def __init__(self, capacity=2e3):
self.capacity = capacity
self.ids = []
self.transitions = {}
self.rewarding_states = {}
self.non_rewarding_states = {}
self.e... | [
"takuma.seno@gmail.com"
] | takuma.seno@gmail.com |
ec771792c99b81d60de883ad609af2084995cd10 | a5c4ea16042a8078e360c32636c00e3163ac99a8 | /Pytorch_Tutorial/08_transfer_learning/custompytorch/utils/helpers.py | 29f3ab0c8ddc604babb84d5d48f924c624f60e47 | [] | no_license | lykhahaha/Mine | 3b74571b116f72ee17721038ca4c58796610cedd | 1439e7b161a7cd612b0d6fa4403b4c8c61648060 | refs/heads/master | 2020-07-15T05:16:13.808047 | 2019-06-01T07:30:01 | 2019-06-01T07:30:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,219 | py | import torch
import time
import copy
import matplotlib.pyplot as plt
import numpy as np
def train_model(model, dataloaders, dataset_sizes, criterion, optimizer, scheduler=None, num_epochs=25):
"""
Scheduling the learning rate
Saving the best model
Arguments:
model: nn Modules
dataloaders: {'tra... | [
"ITITIU15033@student.hcmiu.edu.vn"
] | ITITIU15033@student.hcmiu.edu.vn |
65faef840d04bdeb7155de6e7e23e1f6a184626b | 4bf067cd4fa1cee2891c54b02fafcaca28e8227a | /random.py | 5dffcfd8d8ead06c246861f051676c2e77a62e0b | [] | no_license | c1c51/Python | e19dd8e0d90ec5015c87cd9f113c79aea7b25111 | 6dfa8ffa94d92e8741217ae09f265680e4e44951 | refs/heads/master | 2020-03-09T19:06:33.997743 | 2018-04-10T14:49:01 | 2018-04-10T14:49:01 | 128,949,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import Queue
import threading
import urllib2
# called by each thread
def get_url(q, url):
q.put(urllib2.urlopen(url).read())
theurls = ["http://google.com", "http://yahoo.com"]
q = Queue.Queue()
for u in theurls:
t = threading.Thread(target=get_url, args = (q,u))
t.daemon = True
t.start()
s = q.get... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
e06919dd2a9bbd247c1840da35f544f13f1c92bb | 36a7c6c092799d9550233be9c735964768f34f09 | /EVSCapp/permissions.py | e6f4ad1effbded5fa92093c5e13393f9be30bfdf | [] | no_license | AmirIdris/EVSCProject | eea215f8480fdcee54cc2cce0a675621c8c487bb | ed994c240924e6c30626b7e8a8020480c8112c4e | refs/heads/master | 2023-07-28T00:12:56.857669 | 2021-09-07T21:10:58 | 2021-09-07T21:10:58 | 393,363,817 | 0 | 1 | null | 2021-09-07T21:10:58 | 2021-08-06T12:01:30 | CSS | UTF-8 | Python | false | false | 271 | py | from rest_framework import permissions
class IsOwnerOrReadOnly(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
if request.method in permissions.SAFE_METHODS:
return True
return obj.user == request.user | [
"you@example.com"
] | you@example.com |
5e277ac73b8593875d3614ad8691df57cb8aa2fb | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/py2/toontown/minigame/DistributedTagTreasure.pyc.py | 48111c1e609a7eb84bfa86c60461bd082ade4002 | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # 2013.08.22 22:21:41 Pacific Daylight Time
# Embedded file name: toontown.minigame.DistributedTagTreasure
from toontown.safezone import DistributedTreasure
class DistributedTagTreasure(DistributedTreasure.DistributedTreasure):
__module__ = __name__
def __init__(self, cr):
DistributedTreasure.... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
23207e111a4e7e07a5d636cb6326493693f5b3c4 | 532ca0c5361b54970bc435232e2a6d079c49aecd | /03_Conditionals and Control Flow/01_Conditionals and Control Flow/04_How the Tables Have Turned.py | 761dda428d2ddf39b1b6f433d981dd3583040f68 | [] | no_license | haveano/codeacademy-python_v1 | dc5484e8df73b9a15ffce835dde625b6454c8302 | 10e6fb2974e1c47f380bb6a33c50b171ecfbf50f | refs/heads/master | 2021-01-11T16:45:57.337493 | 2017-05-30T10:04:08 | 2017-05-30T10:04:08 | 79,660,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """
How the Tables Have Turned
Comparisons result in either True or False, which are booleans as we learned before in this exercise.
# Make me true!
bool_one = 3 < 5
Let's switch it up: we'll give the boolean, and you'll write the expression, just like the example above.
Instructions
For each boolean value in the edi... | [
"noreply@github.com"
] | haveano.noreply@github.com |
fa24099fb4c61a922ec7e32ecb388a6cac3cd988 | f2889a13368b59d8b82f7def1a31a6277b6518b7 | /309.py | da9a1c3ac6e5917c4c8a202bed12b01b6642673d | [] | no_license | htl1126/leetcode | dacde03de5c9c967e527c4c3b29a4547154e11b3 | c33559dc5e0bf6879bb3462ab65a9446a66d19f6 | refs/heads/master | 2023-09-01T14:57:57.302544 | 2023-08-25T15:50:56 | 2023-08-25T15:50:56 | 29,514,867 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # ref: https://leetcode.com/discuss/71391/easiest-java-solution-with
# -explanations
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) < 2:
return 0
b0 = -prices[0] # max profit ... | [
"b93902098@ntu.edu.tw"
] | b93902098@ntu.edu.tw |
468fdc36ae7001294a1493c1070b5c443b66e893 | bc97d423d19756fbf33affd4ed98d4628d8878b3 | /my_project/itproger/main/urls.py | 49b1548ce7162c1a6ed6511e5d6aa41220dc9528 | [] | no_license | David-Hakobyan1/MY_Django | 40d63232805679bb5416d12a4ebba94fcb097959 | fdcd61a76d131ca47a203bc291212494c3587637 | refs/heads/main | 2023-06-19T15:58:42.315023 | 2021-07-18T09:55:28 | 2021-07-18T09:55:28 | 381,956,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.index,name='index'),
path('create',views.create,name='create'),
path('read',views.read,name='read'),
path('update',views.update,name='update'),
path('delete',views.delete,name='delete'),
]
| [
"my@mail.ru"
] | my@mail.ru |
f17fd9f2d917793ba4512aa37f689ece8ed71944 | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/scaleform/genconsts/quests_season_awards_types.py | 556871ca4a30e5a322e6482ad59791a4ee691bce | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 496 | py | # 2016.08.04 19:52:02 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/genConsts/QUESTS_SEASON_AWARDS_TYPES.py
class QUESTS_SEASON_AWARDS_TYPES(object):
VEHICLE = 1
FEMALE_TANKMAN = 2
COMMENDATION_LISTS = 3
# okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\... | [
"info@webium.sk"
] | info@webium.sk |
53e57c810578fe9bfb63bc0c3c4a5616ac1b4306 | 70d39e4ee19154a62e8c82467ef75b601e584738 | /docker/mac-robber.py | 2503134682dfb5d51eb85125c86ad0210ea31582 | [] | no_license | babywyrm/sysadmin | 6f2724be13ae7e5b9372278856a8c072073beffb | 2a5f3d29c7529bc917d4ff9be03af30ec23948a5 | refs/heads/master | 2023-08-16T03:50:38.717442 | 2023-08-16T03:05:55 | 2023-08-16T03:05:55 | 210,228,940 | 10 | 5 | null | 2023-05-01T23:15:31 | 2019-09-22T23:42:50 | PowerShell | UTF-8 | Python | false | false | 5,827 | py | #!/usr/bin/env python
#
# Author: Jim Clausing
# Date: 2017-09-01
# Version: 1.2.0
#
# Desc: rewrite of the sleithkit mac-robber in Python
# Unlinke the TSK version, this one can actually includes the MD5 & inode number
# though I still return a 0 in the MD5 column for non-regular files, but calculating
# hashes li... | [
"noreply@github.com"
] | babywyrm.noreply@github.com |
d4323a8fa1e1648c6105fb1c105c9320a7657887 | 90d3b9467dcc6763865cad90a04a247cafcf5862 | /shopee/child_app/transport/urls.py | 2623f3b186fcd57a552bb35e8ab754ee8ca7fb7d | [] | no_license | vandat9xhn/django_1 | 0fa51515549eab04c27bdfeaf9e43650fe44dc70 | 6669e172d6b5a2a729dd31ea43d6c08f76b6e19c | refs/heads/master | 2023-06-23T19:46:26.558871 | 2021-07-26T15:11:12 | 2021-07-26T15:11:12 | 375,704,827 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.urls import path
#
from . import views
#
urlpatterns = [
path('transport-l/', views.TransportViewL.as_view()),
]
| [
"vandat9xiloveyou@gmail.com"
] | vandat9xiloveyou@gmail.com |
62e9919f8fe5745cb117876ae51196d4b4bc314f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_029/ch178_2020_08_14_14_38_35_094615.py | bfc04d96c2b6f66c5cb150cd9294fc1f83977d91 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | def junta_nomes(a,b,c):
lis = []
for i in a:
if len(a) != 0:
for d in c:
lis.append(i+''+d)
for e in b:
if len(b) != 0:
for f in c:
lis.append(i+''+f)
return lis | [
"you@example.com"
] | you@example.com |
25cd32fcfa59a1dd6d38c88daf0e48f1bd5f8283 | 32a81b96a631fa5f7cd3e1da79499b36f1cbbf86 | /src/artifice/scraper/config/settings.py | aa602920a6b6d62fb2e9637ebe0dae41b8846510 | [] | no_license | minelminel/celery-rabbitmq-example | f4e696f24d924395d09934a33fba9ea9ca065603 | 4eccabf46aec855cfa4738a06a992f71232d6364 | refs/heads/master | 2020-07-01T11:44:43.656850 | 2019-08-30T04:08:13 | 2019-08-30T04:08:13 | 201,165,312 | 0 | 0 | null | 2019-08-30T04:08:13 | 2019-08-08T02:48:51 | Python | UTF-8 | Python | false | false | 3,758 | py | try:
import configparser
except ImportError:
configparser = None
import os
import logging
log = logging.getLogger(__name__)
loc = os.path.dirname(os.path.abspath(__file__))
class Settings(object):
"""
The settings can be changed by setting up a config file.
For an example of a config fil... | [
"ctrlcmdspace@gmail.com"
] | ctrlcmdspace@gmail.com |
f355b0f96a8d88e8aad867f986f3cfa6975d11e8 | e7af5a3e76e674be0a85628067fa494348d45123 | /Python-for-Finance-Second-Edition-master/Chapter01/c1_04_def_pv_funtion.py | 0b20696756b3ed519e37d740043058e85838ece9 | [
"MIT"
] | permissive | SeyedShobeiri/Work | 8321ead6f11de8297fa18d70a450602f700f26fb | f758e758106fbd53236a7fadae42e4ec6a4e8244 | refs/heads/master | 2022-07-25T02:33:25.852521 | 2020-05-17T16:11:27 | 2020-05-17T16:11:27 | 264,706,380 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # -*- coding: utf-8 -*-
"""
Name : c1_04_def_pv_function.py
Book : Python for Finance (2nd ed.)
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 6/6/2017
email : yany@canisius.edu
paulyxy@hotmail.com
"""
def pv_f(pv,r,n):
return pv/(1+r)**n
#
pv=pv_f(100,0.1,2)... | [
"shobeiri@math.uh.edu"
] | shobeiri@math.uh.edu |
a84c8d31de4dc825e18cbe3145a69c31faa63f3c | 6d6bebce1a3d819c28cf583f3c46c8235ffccfd2 | /WildlifeObservations/observations/migrations/0008_taxonomysubfamily.py | 91c79afbcb1c9ad4a2816de568ceb34033315e61 | [
"MIT"
] | permissive | jen-thomas/wildlife-observations | 7a20366164d467d73c44e8c844cc99fe26716152 | e6a6b6594e60fe080f253481720d80a38a9f7411 | refs/heads/main | 2023-05-25T17:20:15.506403 | 2023-05-16T13:03:05 | 2023-05-16T13:03:05 | 450,234,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | # Generated by Django 3.2.11 on 2022-05-05 08:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('observations', '0007_alter_identification_confidence'),
]
operations = [
migrations.CreateModel(
... | [
"jenny_t152@yahoo.co.uk"
] | jenny_t152@yahoo.co.uk |
c7d8f13bd8fb9ab354250cbb8f69282bb7f5d574 | 8362a53892f45a1a7adcca7da5cd6827bd5c55fd | /tests/test_database.py | 89f622e5642f98b20ec639311a2fc9d55c641d1c | [
"MIT"
] | permissive | accent-starlette/starlette-core | 1a414969ae05ba90c96f184a206c0eb97c1d33fc | 88e94be0cc65e457e32f2586a3c8860c6c08fca9 | refs/heads/master | 2022-01-27T07:57:50.570112 | 2022-01-04T16:39:26 | 2022-01-04T16:39:26 | 185,164,201 | 13 | 7 | MIT | 2021-12-10T12:03:59 | 2019-05-06T09:19:57 | Python | UTF-8 | Python | false | false | 3,037 | py | import pytest
import sqlalchemy as sa
from starlette.exceptions import HTTPException
from starlette_core.database import Base, Session
class User(Base):
name = sa.Column(sa.String(50))
def test_database(db):
# connects ok
db.engine.connect()
# can create tables
db.create_all()
assert "user... | [
"stuart@accentdesign.co.uk"
] | stuart@accentdesign.co.uk |
c21d74a662d5db8b34c6793c5b0def3026ab0cfe | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_MY_ORGS/Web-Dev-Collaborative/blog-research/ciriculumn/week.18-/W18D2_lectures/08-posts/app/routes.py | 91d6b5ace00c8f67a076bc546d9f4e510c7630de | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 809 | py | from flask import render_template, redirect
from app import app
from app.forms.login import LoginForm
@app.route('/')
def index():
return render_template('page.html', title='Welcome')
@app.route('/login', methods=['GET', 'POST'])
def login():
form = LoginForm()
if form.validate_on_submit():
retu... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
a0c82a506c91a3a7c0b678adac1283adedd35094 | 6bd047eb1951601a5a7bab564eb2abba92c6c004 | /prices/api/queries.py | 0fdac2905d72924ea823efd6ca273a290b653fd8 | [] | no_license | volgoweb/DDD_sandbox | 6ab2b43d3fcad8eb2f802bd485e5dbc05eb2e10d | 700c2848d5341ab267e69326bac2487657450d22 | refs/heads/master | 2021-01-01T15:46:13.244679 | 2017-07-11T06:18:36 | 2017-07-11T06:18:36 | 97,695,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from utils.queries import IQuery
class GetProductPricingForOneProduct(IQuery):
def __init__(self, product_id: int):
self.product_id = product_id
@classmethod
def get_query_type_name(cls):
return 'prices.GetProductPricingForOneProduct'
class GetProductPricingForManyProducts(IQuery):
... | [
"volgoweb@bk.ru"
] | volgoweb@bk.ru |
54ab05db85f18373b1cd489a5310e729a167c100 | 08e039046e2b3c526b5fd2169e02d5c5bbe253c5 | /0x04-python-more_data_structures/0-main.py | f37cdb42818fedc7a8af51018ae298fef65412fb | [] | no_license | VinneyJ/alx-higher_level_programming | 22a976a22583334aff1f0c4120fb81117905e35b | 0ea8719ec5f28c76faf06bb5e67c14abb71fa3d0 | refs/heads/main | 2023-07-31T15:44:30.390103 | 2021-10-01T21:27:31 | 2021-10-01T21:27:31 | 361,816,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | #!/usr/bin/python3
square_matrix_simple = __import__('0-square_matrix_simple').square_matrix_simple
matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]
new_matrix = square_matrix_simple(matrix)
print(new_matrix)
print(matrix)
| [
"vincentjayden49@gmail.com"
] | vincentjayden49@gmail.com |
eb439ef5321ace82cb57ceda8a14ba4f5978f5b8 | 52508ce70294ec29f84c9e551d8b92a7b402913d | /anyflow/flow.py | 647b6d25ed535d940110f411ddcc5ba175e061f2 | [
"MIT"
] | permissive | Cologler/anyflow-python | 0f18003a39cb645c24aa5549df4ee39173977fff | cde20b0c74faf18cb7dc503072d4c2f99d5681de | refs/heads/master | 2021-07-30T15:12:19.478682 | 2021-07-29T14:08:22 | 2021-07-29T14:08:22 | 241,824,800 | 0 | 0 | MIT | 2021-07-29T14:08:22 | 2020-02-20T07:53:25 | Python | UTF-8 | Python | false | false | 2,957 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com>
# ----------
#
# ----------
from typing import Callable, Any, List
from abc import ABC, abstractmethod
from .err import Abort
from .ctx import FlowContext
#Next = Callable[[], Any]
class MiddlewareInvoker:
__slots__ = ('_ctx', '... | [
"skyoflw@gmail.com"
] | skyoflw@gmail.com |
bec64a7169611c133f6effb658d194136f903149 | feff273063b4c89bde3aa190b4e49c83ab1e5855 | /memphis/view/layout.py | 6a21cc666494b2107e8bc16e66c706a54a3bb83b | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | mcdonc/memphis | 7d53b8f77f7bab7c20a258a9ab33d1cc663711a2 | daef09507eacb32b235faf070a0146ffb5cf035f | refs/heads/master | 2016-09-05T23:04:01.578991 | 2011-10-11T03:37:43 | 2011-10-11T03:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,147 | py | """ layout implementation """
import sys, logging
from zope import interface
from pyramid.interfaces import IRequest, IRouteRequest
from memphis import config
from memphis.view.base import View
from memphis.view.formatter import format
from memphis.view.interfaces import ILayout
from memphis.view.customize import Laye... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
d16ef364cf6106a88a1b28a9a96bdae89166f80c | 778a3e1e70b0b2782d2a35f8818bbe799e6c7396 | /Seventh_week_exersice/03Sum_prime_non_prime.py | def7d6757eba88c49c90e3f84af9077c2e5e6b72 | [] | no_license | skafev/Python_basics | 0088203207fe3960b26944e0940acaec40a8caaf | 8bfc1a8b0dad3bf829fffbd539cebe3688f75974 | refs/heads/main | 2023-06-10T11:25:27.468914 | 2021-07-01T15:28:12 | 2021-07-01T15:28:12 | 382,078,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | number = input()
not_prime = 0
prime = 0
while number != "stop":
number = int(number)
if number < 0:
print("Number is negative.")
elif number > 3:
if number % 2 == 0 or number % 3 == 0:
not_prime += number
else:
prime += number
else:
prime += num... | [
"s.kafev@gmail.com"
] | s.kafev@gmail.com |
2c8269a6d5c4ddb8c4b445466174f74aecf370f6 | 857b051f99e8a42f94dd5895c7ac735e37867e94 | /hakkimizda/urls.py | 56836439053617eeb3e0ba317c7a1333be1e19df | [
"MIT"
] | permissive | kopuskopecik/projem | a88e4970ef23a4917e590e1a0a19ac7c49c86a73 | 738b0eeb2bf407b4ef54197cce1ce26ea67279c8 | refs/heads/master | 2021-06-22T10:04:44.523681 | 2020-12-25T19:56:10 | 2020-12-25T19:56:10 | 172,302,265 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.urls import path
from django.conf.urls import url
from .views import *
app_name="hakkimizda"
urlpatterns = [
path('hakkimizda/', hakkimizda, name="hak"),
] | [
"kopuskopecik@gmail.com"
] | kopuskopecik@gmail.com |
1d6af3af9fa41162b76ba04790d68e5e149b3219 | 2ca07aecfa6ff25b0baae6dc9a707a284c2d1b6d | /trustzone_images/apps/bsp/build/scripts/genuses.py | 44dde7dfd37d5c023ae14fb6e8d49ccd9fafb72d | [] | no_license | zhilangtaosha/msm8996-wp-1-0_test_device | ef05af263ba7955263ff91eb81d45b2437bc492e | 6af9b44abbc4a367a9aaae26707079974c535f08 | refs/heads/master | 2023-03-19T02:42:09.581740 | 2021-02-21T01:20:19 | 2021-02-21T01:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,954 | py | #===============================================================================
#
# genuses
#
# GENERAL DESCRIPTION
# Generates USES_FLAGS imformation from DATA file generate from build/ms.
#
# Copyright (c) 2009-2010 by Qualcomm Technologies, Incorporated.
# All Rights Reserved.
# QUALCOMM Proprietary/GTDR
#
#---... | [
"lonelyjskj@gmail.com"
] | lonelyjskj@gmail.com |
c3973679874c6bcb06a9d97d54f6965242f7ef53 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_143/388.py | 2c19f330a95780da7bb74471727f3b492214bb28 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | import math
def solve(a, b, k):
count = 0
i = 0
while i < a:
j = 0
while j < b:
if (i & j) < k:
count += 1
j += 1
i += 1
return count
name = "B-small-attempt0"
fi = open(name + ".in", "r")
fout = open(name + ".out", "w")
numTestCases = int(fi.readline())
print "#TestCas... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
bdd0760e8844fd6ba461b3318c1347dc4022acd9 | b090cb9bc30ac595675d8aa253fde95aef2ce5ea | /trunk/test/NightlyRun/test405.py | 4234b88e576ef0f06697b7c02f12c1d1579361dc | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | eyhl/issm | 5ae1500715c258d7988e2ef344c5c1fd15be55f7 | 1013e74c28ed663ebb8c9d398d9be0964d002667 | refs/heads/master | 2022-01-05T14:31:23.235538 | 2019-01-15T13:13:08 | 2019-01-15T13:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | #Test Name: SquareSheetShelfStressMHOPenalties
import numpy as np
from model import *
from socket import gethostname
from triangle import *
from setmask import *
from parameterize import *
from setflowequation import *
from solve import *
md=triangle(model(),'../Exp/Square.exp',180000.)
md=setmask(md,'../Exp/SquareSh... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
147eafbcdb47571b8ec157075995bcb513a53efa | f167dffa2f767a0419aa82bf434852069a8baeb8 | /lib/youtube_dl/extractor/kankan.py | a677ff44712794ef54f53a1afe9c55fbacad91e2 | [
"MIT"
] | permissive | firsttris/plugin.video.sendtokodi | d634490b55149adfdcb62c1af1eb77568b8da3f5 | 1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3 | refs/heads/master | 2023-08-18T10:10:39.544848 | 2023-08-15T17:06:44 | 2023-08-15T17:06:44 | 84,665,460 | 111 | 31 | MIT | 2022-11-11T08:05:21 | 2017-03-11T16:53:06 | Python | UTF-8 | Python | false | false | 1,738 | py | from __future__ import unicode_literals
import re
import hashlib
from .common import InfoExtractor
_md5 = lambda s: hashlib.md5(s.encode('utf-8')).hexdigest()
class KankanIE(InfoExtractor):
_VALID_URL = r'https?://(?:.*?\.)?kankan\.com/.+?/(?P<id>\d+)\.shtml'
_TEST = {
'url': 'http://yinyue.kankan... | [
"noreply@github.com"
] | firsttris.noreply@github.com |
93676b1ccd5b8f20a34473032ab5d4db03956a52 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634947029139456_1/Python/AlonH/2014A1A.py | a02bf27c55c7c31dc651a2d0b8c8393d949d0274 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | def match(now,needed):
now.sort()
needed.sort()
for i in range(len(now)):
if now[i] != needed[i]:
return True
return False
def count(ar,l):
ret = [0]*l
for i in range(l):
for s in ar:
ret[i] += int(s[i])
return(ret)
def compare(n,o,l):
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
48d5dad900ecdf584f2ec639d5b62ce8f06d2c2c | 82074ba616918ede605dec64b038546a7b07bd7d | /empowerb/middleware.py | 85764001431cfbf3cedb9002fb6e1ccf8f38b859 | [] | no_license | chetankhopade/EmpowerRM | b7ab639eafdfa57c054a0cf9da15c3d4b90bbd66 | 8d968592f5e0d160c56f31a4870e79c30240b514 | refs/heads/main | 2023-07-05T03:20:13.820049 | 2021-08-26T11:56:28 | 2021-08-26T11:56:28 | 399,354,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | from _contextvars import ContextVar
from django.utils.deprecation import MiddlewareMixin
from empowerb.settings import DATABASES
db_ctx = ContextVar('var')
class WhichDatabaseIsTOUseMIddleware(MiddlewareMixin):
"""
Middleware to update the context var with the db alias
"""
@staticmethod
def... | [
"noreply@github.com"
] | chetankhopade.noreply@github.com |
628a26377a4ac11054ec002268c2916d3883eccf | 601e6891504cc9da063e3ef9993e7b5f142bbe35 | /examples/wifiStationsAndHosts.py | 8e68f22b85c8a2a65ee1968f5506555a2831560b | [] | no_license | caiqiqi/mininet-wifi | b8a13f83e4fbadea20865faecf6719abf8e68437 | 547cf3c01d85b9bfb38b3e9df3b5c52119b5b5e2 | refs/heads/master | 2021-01-20T16:44:34.270734 | 2016-05-16T12:55:56 | 2016-05-16T12:55:56 | 58,878,807 | 0 | 0 | null | 2016-05-15T19:01:01 | 2016-05-15T19:01:01 | null | UTF-8 | Python | false | false | 1,177 | py | #!/usr/bin/python
"""
This example shows how work with wireless and wired media
"""
from mininet.net import Mininet
from mininet.node import Controller, OVSKernelSwitch
from mininet.cli import CLI
from mininet.log import setLogLevel
from mininet.link import TCLink
def topology():
"Create a network."
net = M... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
4f9cdc759c20a19b123b187ed82e7d01eb37bd48 | 8827574a663cc9d18194eb355dce7ffb676e6d0b | /everest/transit.py | 8958b3c59d794095e0ea42a5548d12f5aa0ef602 | [
"MIT"
] | permissive | mirca/everest | 70a79432f6cd2b604a64fc4c97c7513bbe2a6406 | b96cc5cd1949b81ddc49fb74b90bf5a95c6fca14 | refs/heads/master | 2021-01-13T05:56:00.206244 | 2017-03-17T16:35:49 | 2017-03-17T16:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,317 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
:py:mod:`transit.py` - Transit models
-------------------------------------
These are routines used to generate a transit model, primarily for
transit injection/recovery tests. These are wrappers around
:py:func:`pysyzygy.Transit`, with the added feature that
the transi... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
14679579a6dbc0f503f5b3d8562401165ce94756 | 91deb97afda334c5366e560325995cf6b5407bee | /src/command_modules/azure-cli-billing/azure/cli/command_modules/billing/custom.py | 21965f255ffa9f5644f22068a40961f8ca75b5a3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | viananth/azure-cli | ab117c1b0b676026cbb57567544cd70630efe830 | 4d23492ed03e946cfc11bae23b29acb971fb137d | refs/heads/master | 2021-05-23T05:13:51.414113 | 2017-08-17T16:58:10 | 2017-08-17T16:58:10 | 95,239,804 | 0 | 0 | NOASSERTION | 2019-03-19T18:45:16 | 2017-06-23T17:01:34 | Python | UTF-8 | Python | false | false | 891 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"troy.dai@outlook.com"
] | troy.dai@outlook.com |
1390b2d3b283c49021827414a5f0ca6601dd27e8 | 1cfafec5935522b386d40ab7bb7246f39da89fcc | /temp/20201221_naver_ai_handsonsummit.py | ff8784adba43b2a7a15adeb0447977ce5373c919 | [] | no_license | madfalc0n/my_coding_labs | 0d9e13e2d1579607d5481c6a78baa70a2c7c374a | b38fd988a5e3ebb8d8b66bf5a0b15eb3eaa20578 | refs/heads/master | 2021-07-03T17:33:16.801207 | 2021-06-18T06:24:09 | 2021-06-18T06:24:09 | 241,097,976 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import sys
import requests
client_id = "CID"
client_secret = "CSECRET"
lang = "Kor" # 언어 코드 ( Kor, Jpn, Eng, Chn )
url = "https://naveropenapi.apigw.ntruss.com/recog/v1/stt?lang=" + lang
data = open('filepath', 'rb')
headers = {
"X-NCP-APIGW-API-KEY-ID": client_id,
"X-NCP-APIGW-API-KEY": client_secret,
"Con... | [
"chadool116@naver.com"
] | chadool116@naver.com |
67558e1d4c168ae6ffe706cae7b73d5b96991949 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_1/client-vpn-client-certificate-revocation-list_export.py | 590e1a0b6582eaa6d0a43363fd3ba344c40e4825 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/export-client-vpn-client-certificate-revocat... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
4c6a4945f123306bcdf31d8b8f17939c2b32cc2f | 094304d0aa7cb6949c0f471d1c432dc7db5a4c2a | /VIRSCAN/vir_scan_db.py | 1358ecd8d77cb2b4438e1bd9cfcaacc0392ee70c | [] | no_license | smallmeet/fangzhen | 7f8e232b87841b88268d14133479846e48e33ba1 | d0cbf09eba98c835a4ea013889a8cf0b34263d0d | refs/heads/master | 2020-12-24T22:28:54.972613 | 2016-08-12T09:24:15 | 2016-08-12T09:24:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | from base_db import MysqlClient
from get_conf import GetConf
class VirScanMysqlClient:
def __init__(self, conf):
self.mysql_client = MysqlClient(conf)
def insert_vir_scan(self, args):
self.mysql_client.insert('PRO_VIR_SCAN_INSERT', args)
def insert_apk_black_list(self, args):
sel... | [
"luojianfeng2011@163.com"
] | luojianfeng2011@163.com |
022be4db452f8ecc1c423f41fa77963d1855a30e | 9e21ee282d0a567b42a96f938f61d655eb2d5940 | /chat_room/tests/test_base.py | 1262db10f3b75ee65a9f2fb0e64f06f887ac4d2a | [] | no_license | smolynets/chat-interface | e0ac815639dd993f029f331a545c5c5932785569 | 3b66970c241eb1660b60a612aceffde36223eff4 | refs/heads/master | 2021-06-12T02:19:47.749561 | 2019-07-13T12:42:21 | 2019-07-13T12:42:21 | 191,516,912 | 0 | 0 | null | 2021-06-10T18:21:22 | 2019-06-12T07:06:21 | Python | UTF-8 | Python | false | false | 1,496 | py | """
This test is inherited by tests of other apps.
"""
from django.urls import reverse
from rest_framework.test import APIClient, APITestCase
from rest_framework_simplejwt.settings import api_settings
from ..models import User
class APIRestAuthJWTClient(APIClient):
"""
APIRestAuthJWTClient class.
Login... | [
"smolynets@gmail.com"
] | smolynets@gmail.com |
1547ae20bcab955d0bc53826f0c25ebaf5c0ca77 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2645/60768/316508.py | 65bd1d2918995f2d545307313de4c81f073d0279 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | piles = eval(input())
h = int(input())
max_k = max(piles)
min_k = int(sum(piles) / h)
re = max_k
for k in range(min_k, max_k + 1):
time = 0
bananas = [i for i in piles]
while len(bananas) > 0:
for i in range(len(bananas)):
bananas[i] = bananas[i] - k
time += 1
if ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8a6f357264b2dbc8114efa7cb34e8a02b9be2820 | 63b814265ab49ebc2ed8e62577757991119be83b | /data-quality/kalman-filt.py | d10a0e87d25b724b1f8289d92c13e7a3168ac9bd | [] | no_license | wisecg/mjd-analysis | 7de4e67c34c19215984f528f31f71a8e584e1e91 | ca4f00a767f2dfe6d460b44c700e2b59fe0bb296 | refs/heads/master | 2020-12-07T21:28:34.376478 | 2017-08-28T15:20:17 | 2017-08-28T15:20:17 | 65,919,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | """
The idea is to take plots like "gmax" and "gbase" in data-quality.cc
and apply a Kalman filter to them, to look for "extrema"
http://scipy-cookbook.readthedocs.io/items/KalmanFiltering.html
Intro to Kalman filters:
http://www.cs.unc.edu/~welch/media/pdf/kalman_intro.pdf
Ben says:
everything is “basically linear... | [
"wisecg.neontetra@gmail.com"
] | wisecg.neontetra@gmail.com |
5509f28877444ba0ac97b513a2106dbc9ddd0995 | ea0c0b8d67a42086f840149b3dbe1c0e4f58e56f | /members_area/migrations/0005_auto_20200129_2122.py | 12832e8dc63b3301b343c645b65d640d95c3d93b | [
"MIT"
] | permissive | AzeezBello/raodoh | 78b27e0886f8882144a4def160d9c3f53bcc6af9 | 296bd44069bd750557bf49995374601f5052d695 | refs/heads/master | 2022-05-03T05:07:21.632642 | 2020-02-26T10:16:08 | 2020-02-26T10:16:08 | 235,878,080 | 0 | 0 | MIT | 2022-04-22T23:01:27 | 2020-01-23T20:15:39 | JavaScript | UTF-8 | Python | false | false | 481 | py | # Generated by Django 2.2.9 on 2020-01-29 20:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('members_area', '0004_auto_20200128_2330'),
]
operations = [
migrations.AlterField(
model_name='... | [
"azeez@scholarx.co"
] | azeez@scholarx.co |
656bb960ef1d2fd531df0a667c4d97135b95bcb1 | dd5ee6d1e88527cd22f1b64443320ba8ef751b59 | /rlcard3/envs/mocsar.py | 2b3edd2b9df42da117998cd3dd3b41bf88e15885 | [
"MIT"
] | permissive | sorata2894/rlcard3 | 42a2587e3ab00f3a33c684fb76efbc334a835359 | e9bbd36b789e670f96622a3a2ba8327f0d897561 | refs/heads/master | 2022-11-05T00:08:10.809055 | 2020-06-11T03:28:41 | 2020-06-11T03:28:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | """
Mocsár Environment
File name: envs/gmocsar.py
Author: József Varga
Date created: 3/27/2020
"""
from rlcard3 import models
from rlcard3.envs.env import Env
from rlcard3.games.mocsar.game import MocsarGame as Game
from rlcard3.games.mocsar.utils import action_to_string, \
string_to_action, payof... | [
"31209755+cogitoergoread@users.noreply.github.com"
] | 31209755+cogitoergoread@users.noreply.github.com |
afa233f76cb5afeb5878c1f8371c6ee8b5e88667 | 5ed795f324b1f94ded479a22f60580d9f41a114b | /dashboard/migrations/0007_auto_20190212_1753.py | 231eeaf5940eeed0afb26eda070c777986ca996d | [] | no_license | ashutoshdev/Django-Main-news-wesbite | 907f52a131e136072a585c903c906adb19457765 | 9a934255465d73ab12e16031fb99ad5847b65b55 | refs/heads/master | 2023-08-23T20:27:40.286701 | 2021-10-21T02:03:49 | 2021-10-21T02:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | # Generated by Django 2.0 on 2019-02-12 12:23
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0006_rfcompany'),
]
operations = [
migrations.CreateModel(
name='Dashboard... | [
"looklikeme05@gmail.com"
] | looklikeme05@gmail.com |
369e5de6978cd855314fe286b88ec95c0f367146 | 19bdbe1c4aa00ba9799764681f16e09f65d6ea2b | /np/lib/smtp.py | 0065154141cf437ba3588749e4b816c5fc03783f | [] | no_license | invisibleroads/networkplanner | b4a3c7b3c0c169c3cd6610a6fb77125434dcb1c4 | 7ad8c0f2b4078f6cca681205e1671d060a937c18 | refs/heads/master | 2023-08-11T17:33:44.458438 | 2012-05-31T13:41:04 | 2012-05-31T13:41:04 | 961,674 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | 'Routines for sending messages'
# Import system modules
import smtplib
import email.message
import email.utils
import socket
def sendMessage(fromByValue, toByValue, subject, body, headerByName=None):
'Send a message using SMTP'
# Prepare
message = email.message.Message()
message.add_header('from', ema... | [
"support@invisibleroads.com"
] | support@invisibleroads.com |
3fd599f2dd2b120dfc1fa457dd87c9056ade3f26 | 00a9295409b78a53ce790f7ab44931939f42c0e0 | /FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/sympy/multipledispatch/utils.py | 11cea683ed08448b11c2efecaea1b7e234934cc4 | [
"Apache-2.0"
] | permissive | klei22/Tech-OnBoarding-Class | c21f0762d2d640d5e9cb124659cded5c865b32d4 | 960e962322c37be9117e0523641f8b582a2beceb | refs/heads/master | 2022-11-10T13:17:39.128342 | 2022-10-25T08:59:48 | 2022-10-25T08:59:48 | 172,292,871 | 2 | 3 | Apache-2.0 | 2019-05-19T00:26:32 | 2019-02-24T03:50:35 | C | UTF-8 | Python | false | false | 3,042 | py | def expand_tuples(L):
"""
>>> from sympy.multipledispatch.utils import expand_tuples
>>> expand_tuples([1, (2, 3)])
[(1, 2), (1, 3)]
>>> expand_tuples([1, 2])
[(1, 2)]
"""
if not L:
return [()]
elif not isinstance(L[0], tuple):
rest = expand_tuples(L[1:])
ret... | [
"kaunalei@gmail.com"
] | kaunalei@gmail.com |
e7286393de85a9ea1daeff4f6a590f0d35dd069b | f50f1aa1f8f139d546db3230a1cb1f53043fd9e6 | /hardware/mobile/ifuse/actions.py | 4253ce5b51f00a7f0adaacfac0ba3a76d71890d3 | [] | no_license | pars-linux/corporate2 | 7887961d1552d39bc3b0bef4a60fd3413d9b82bb | 14d1eacfc824fb8d0bff8173e7ac06b36b88d10d | refs/heads/master | 2020-05-26T15:02:12.005654 | 2017-02-27T03:07:14 | 2017-02-27T03:07:14 | 82,476,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2009-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
de... | [
"ozancaglayan@users.noreply.github.com"
] | ozancaglayan@users.noreply.github.com |
2da48d4fe2ab88ad57d4bc2ce4b47d37ade84327 | 00c14f5816c3ef6a9ff5652af89c27c12bcf023c | /example/jspm_0_17/jspm_0_17/urls.py | 9ef86b2113613f0783470d90f157872b78c2522d | [
"MIT",
"ISC"
] | permissive | ilyashupta/django-systemjs | 148fd7de73aeb2cf562a07d3bb392436f3a78010 | f4d26794c06449d4d3ae2a6f7ab0bc550b35b0c7 | refs/heads/master | 2023-04-27T14:41:45.265046 | 2016-09-19T09:15:35 | 2016-09-19T09:15:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """jspm_0_17 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"sergeimaertens@gmail.com"
] | sergeimaertens@gmail.com |
936fe33888460fe111915ebee493e4b636140d10 | b42957e496e5c9447b858d7382caea83ce9ea431 | /packtml/__init__.py | d3f0e325a23686c69f7eec073c983de5f0695885 | [
"MIT"
] | permissive | PacktPublishing/Supervised-Machine-Learning-with-Python | 153b9f5248fd4ca79896a277c7f703cf5899ac07 | 00d6ce2451547a73e6358d85937f8cbf2af762a4 | refs/heads/master | 2023-02-02T21:20:35.889344 | 2023-01-30T08:34:13 | 2023-01-30T08:34:13 | 187,639,872 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
import os
# global namespace:
from packtml import clustering
from packtml import decision_tree
from packtml import metrics
from packtml import neural_net
from packtml import recommendation
from packtml import regression
from packtml import utils
# set the version
packtml_location = os.path.ab... | [
"packt.suwarnar@gmail.com"
] | packt.suwarnar@gmail.com |
286d4837a392a3730412cc78c44d91c56603e5b6 | dd8227454b817ccf2ceb24b3dfd4260d4ded7a72 | /scripts/item/consume_2434546.py | fd4214fd1a7ed1410ab093ba89cb8ce96fcf7213 | [
"MIT"
] | permissive | Snewmy/swordie | 0dd3c17808b064c2cb2bd9576b51daf01ae5d686 | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | refs/heads/master | 2023-06-30T21:14:05.225798 | 2021-07-06T14:32:39 | 2021-07-06T14:32:39 | 389,497,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # Scribbler Damage Skin
success = sm.addDamageSkin(2434546)
if success:
sm.chat("The Scribbler Damage Skin has been added to your account's damage skin collection.")
| [
"vcalheirosdoc@gmail.com"
] | vcalheirosdoc@gmail.com |
0fdb86c8d95ec238f669e4cd793c8b90cee446f0 | b48a1d5733d10c39a112698c2286ae1afb02f36a | /announce/management/commands/migrate_mailchimp_users.py | 7cce1d4f3b7e6e48acb8b65b386b435c2095820c | [
"MIT"
] | permissive | p2pu/learning-circles | ecb317aaa8620cb076ce45c42d055e89e6586516 | ae8de4df48aae0844fb50dca5c62c099b3b2b0a3 | refs/heads/master | 2023-08-19T19:18:09.198077 | 2023-08-10T09:23:58 | 2023-08-10T09:23:58 | 32,735,768 | 11 | 10 | MIT | 2023-08-10T09:30:04 | 2015-03-23T14:05:41 | Python | UTF-8 | Python | false | false | 1,191 | py | from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from announce.mailchimp import archive_members, list_members, batch_subscribe
from studygroups.models import Profile
import requests
import logging
logger = logging.getLogger(__name__)
class Command(BaseCo... | [
"dirkcuys@gmail.com"
] | dirkcuys@gmail.com |
d1660437d7cc1d437db44a397725e49216966700 | eefc47dcb8377239c34134024be8783a9e3b5f44 | /bimdata_api_client/models/raw_system.py | 3d6644047f00fe509b01b9df9dfbe5ddcdf9b50d | [] | no_license | Mike-FR/python-api-client | 4fea5afcd942ebdf6dca174e2d38afaeed71eee4 | 54b2b090cbbf127cf8ac0f17c3492e6d0e1c7f29 | refs/heads/master | 2023-06-29T13:07:30.438434 | 2021-07-28T09:08:54 | 2021-07-28T09:08:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,617 | py | # coding: utf-8
"""
BIMData API
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
The version of the OpenAPI document: v1
Contact: suppor... | [
"infra@bimdata.io"
] | infra@bimdata.io |
92636880ee00dcdaf6082a42f6967c44fa8b6054 | 9bcd8a8de7e34ab52f44070c171e2e12e52e9775 | /setup.py | c7ab57d1d127894b45df406d8c76bdb98355363e | [
"BSD-2-Clause"
] | permissive | miracle2k/localtodo | c419bf5cd8aa5fd6092420577c6155a3d418cd1d | 8598a073d9fe466832b6a952a0b1dc20603d0e7d | refs/heads/master | 2022-04-30T13:36:50.211348 | 2022-03-21T18:45:16 | 2022-03-21T18:45:16 | 5,198,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
setup(
name='localtodo',
url='https://github.com/miracle2k/localtodo',
version='1.0',
license='BSD',
author=u'Michael Elsdörfer',
author_email='michael@elsdoerfer.com',
description=
'.gitignore local todo files, bu... | [
"michael@elsdoerfer.com"
] | michael@elsdoerfer.com |
805535843094f8434fa9cfb5c22c4c9c99ef2185 | 2c2d2405929b026ac4de77d34538cec623dee5eb | /codes/SRN/models/modules/loss.py | 844e09818490d48d1b9b375b12a65032b32c4075 | [] | no_license | greitzmann/DASR | 9d709cf031561897722f1553842af05fca36855e | f85b22ada54344fd0d94ba31ae596427cb9b5c5b | refs/heads/master | 2023-01-01T12:26:11.563140 | 2020-10-15T16:03:26 | 2020-10-15T16:03:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,636 | py | import random
import torch
import torch.nn as nn
import sys
from PerceptualSimilarity.models import util as ps
# Define GAN loss: [vanilla | lsgan | wgan-gp]
class GANLoss(nn.Module):
def __init__(self, gan_type, real_label_val=1.0, fake_label_val=0.0):
super(GANLoss, self).__init__()
self.gan_type... | [
"516488199@qq.com"
] | 516488199@qq.com |
8838064973dcf235bd1744d1dadead87051a80ea | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_widest.py | 8492170c13955906272fe657ccf1e56cec9420c8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py |
from xai.brain.wordbase.adjectives._wide import _WIDE
#calss header
class _WIDEST(_WIDE, ):
def __init__(self,):
_WIDE.__init__(self)
self.name = "WIDEST"
self.specie = 'adjectives'
self.basic = "wide"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0ee0fecb3d4df02cb0dc4970912acd258cfee73d | 549f00e84cf77f08b2d72b3a298174143e23222e | /pytest_echo.py | 025e4f09603e8814d066cc041fb8926ac1650558 | [
"MIT"
] | permissive | hugovk/pytest-echo | 9a94c6a246ae1803dd6b391f56c35a7d0472f209 | 939793448e7d7e80a356aafc4dbb58bbedbe7e2c | refs/heads/master | 2020-08-10T05:26:13.397571 | 2018-04-22T17:12:07 | 2018-04-22T17:12:07 | 214,268,306 | 0 | 0 | MIT | 2019-10-10T19:27:28 | 2019-10-10T19:27:28 | null | UTF-8 | Python | false | false | 5,239 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import fnmatch
import os
from pprint import pformat
import pkg_resources
from pkg_resources import DistributionNotFound
__version__ = '1.6.0'
def get_installed_distributions():
"""
Return a list of installed Distribution objects.
"""
ret... | [
"s.apostolico@gmail.com"
] | s.apostolico@gmail.com |
9c68f21e289ac893f938e83bb2be5f054a2a7561 | 2f6c3e78de825b14cc6d471ba231724d819b7436 | /tasks/ogle.py | 2c1ff53316fd09c5f8108a519f3f81fdfee981f0 | [
"MIT"
] | permissive | astrocatalogs/supernovae | 3f685d447b56c741081acffc6de0c9818149bb47 | 9585d2ae053f15fa91ab5900b5ae962c6a508037 | refs/heads/master | 2023-03-12T12:19:01.300505 | 2023-03-10T16:45:53 | 2023-03-10T16:45:53 | 62,802,442 | 42 | 18 | MIT | 2023-03-14T20:39:37 | 2016-07-07T11:42:13 | Python | UTF-8 | Python | false | false | 6,846 | py | """Import tasks for OGLE.
"""
import os
import re
from astrocats.catalog.utils import is_number, jd_to_mjd, pbar, uniq_cdl
from bs4 import BeautifulSoup, NavigableString, Tag
from decimal import Decimal
from ..supernova import SUPERNOVA
def do_ogle(catalog):
task_str = catalog.get_current_task_str()
basena... | [
"guillochon@gmail.com"
] | guillochon@gmail.com |
ed5aaf4d9c069dfae5c52ce541ca6227e507404e | 358aaf68f3c60ebbbd86b3bc66d4e6c098bcb39e | /fonts/tsvga_et4000_8x16.py | ec50d5db6c710d173aebde5e57c209dc19065ccd | [
"MIT"
] | permissive | ccccmagicboy/st7735_mpy | d2de0046abd81978d5176dace45a40758377af82 | b15f1bde69fbe6e0eb4931c57e71c136d8e7f024 | refs/heads/master | 2022-08-28T23:18:04.353733 | 2020-05-28T04:19:21 | 2020-05-28T04:19:21 | 254,869,035 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,759 | py | """converted from ..\fonts\TSVGA_ET4000_8x16.bin """
WIDTH = 8
HEIGHT = 16
FIRST = 0x20
LAST = 0x7f
_FONT =\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x18\x3c\x3c\x3c\x18\x18\x18\x00\x18\x18\x00\x00\x00\x00'\
b'\x00\x66\x66\x66\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x... | [
"cuiwei_cv@163.com"
] | cuiwei_cv@163.com |
f0d990d45a27fde720efb4dff618a7fd5ef391b2 | 8600ea155f279e5a8dfe5a1926038511f6b6a7ea | /sale_crm/wizard/__init__.py | 7c43908361fc6be916f06247bd16776a8e4c1776 | [] | no_license | MarkNorgate/addons-EAD | c2fff89ab16fce3ba19fbe433ee5863705a6f4e5 | 840f28642b5d328e4b86839c413e5164622295a5 | refs/heads/master | 2020-04-23T22:11:00.164438 | 2015-07-22T12:24:53 | 2015-07-22T12:24:53 | 39,501,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
#... | [
"mark.norgate@affinity-digital.com"
] | mark.norgate@affinity-digital.com |
54e305cc17a0c2232390a83ffbdeb8ed103b393e | 219d7cf7cf00b778ff1a5709406c144fcf2132f3 | /First Steps in Coding - Lab/07. Projects Creation.py | 7ca4becdbaa4bc97c0ff32e779c16f999679df79 | [] | no_license | SilviaKoynova/Softuni-Programming-Basics-Python | e8e175419383815c65c4e110fdb2b752d940e887 | 0dfef0850f2cb8471dfee1af89f137be4e887cb8 | refs/heads/main | 2023-07-13T00:35:09.389302 | 2021-08-27T07:43:45 | 2021-08-27T07:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | name = input()
projects = int(input())
need_hours = projects * 3
print(f"The architect {name} will need {need_hours} hours to complete {projects} project/s.")
| [
"noreply@github.com"
] | SilviaKoynova.noreply@github.com |
736887a4862a68ddb38a06f891def851858936db | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/twisted/test/test_ftp_options.py | ef567bbb49bfce24ee4cb271b1a59b1a8730dd7a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,765 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.tap.ftp}.
"""
from twisted.trial.unittest import TestCase
from twisted.cred import credentials, error
from twisted.tap.ftp import Options
from twisted.python import versions
from twisted.python.filepath import... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
9562bc0b7e2dcc38f7a84b31462b6d5fd5598619 | 3c898b1aec7009110c63504d5a56e31914625d1b | /acrylamid/filters/rstx_youtube.py | 1866872d0d44360221e12addf431c60a545739b3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | MagicSword/acrylamid | e294b151ed6305f37fc5a5fdd4f1f0fb999a22f7 | 6f34bc5fb2175af1103aec7a910ef48a6842de03 | refs/heads/master | 2021-01-16T21:30:58.564719 | 2012-06-22T16:00:50 | 2012-06-22T16:45:38 | 4,817,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | # -*- encoding: utf-8 -*-
#
# Copyright 2012 posativ <info@posativ.org>. All rights reserved.
# License: BSD Style, 2 clauses. see acrylamid/__init__.py
from docutils import nodes
from docutils.parsers.rst import Directive, directives
match = ['youtube', 'yt']
def align(argument):
return directives.choice(argum... | [
"info@posativ.org"
] | info@posativ.org |
b9cea96bd1fe04ff6d961295ea869a78c3e571e4 | dfab6798ece135946aebb08f93f162c37dd51791 | /core/luban/db/models.py | e30723a4165928648d1c38b81f47e476985bd1ca | [] | no_license | yxqd/luban | 405f5f7dcf09015d214079fe7e23d644332be069 | 00f699d15c572c8bf160516d582fa37f84ac2023 | refs/heads/master | 2020-03-20T23:08:45.153471 | 2012-05-18T14:52:43 | 2012-05-18T14:52:43 | 137,831,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.