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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abd55fff1b001ff3becce11b8f04db976569f22e | 1f3194a70bb89affa0281e5463269df7f64fa994 | /hackerrank/maximise-it.py | e5ab8e61d86568a799b6cab5351249a2aad38723 | [] | no_license | deepakchandh/competitive | 58e4143c232c0a343d0747c022548f23990c2fc4 | 1a18e7470b6c2887e49361dd464a1706c371f0be | refs/heads/master | 2020-04-06T18:18:54.928405 | 2018-11-15T10:39:23 | 2018-11-15T10:39:23 | 157,693,702 | 1 | 0 | null | 2018-11-15T10:31:04 | 2018-11-15T10:31:03 | null | UTF-8 | Python | false | false | 218 | py | k, m = map(int, raw_input().split())
import itertools
ls = []
for _ in xrange(k):
ls.append(map(lambda x:x**2, map(int, raw_input().split()[1:])))
print max(map(lambda x:x%m, map(sum, itertools.product(*ls)))) | [
"avi.aryan123@gmail.com"
] | avi.aryan123@gmail.com |
08396122a9b4ac17235649b35b2fd779e3638e3c | d46844ac1c4230579d6c87d800e07fb41bc99592 | /tests/test_test.py | 3e9bc48acf530dcdc29fb6c49a16d8512a2d84b4 | [
"MIT"
] | permissive | calebstewart/pwncat | 14ade3e424fb70ce3e62b8b5c5053959515799e7 | 37f04d4e16ff47c7fd70e95162f9fccd327cca7e | refs/heads/master | 2023-08-14T04:27:04.773361 | 2022-03-21T20:35:00 | 2022-03-21T20:35:00 | 261,925,766 | 2,177 | 267 | MIT | 2023-05-19T04:33:17 | 2020-05-07T02:02:40 | Python | UTF-8 | Python | false | false | 64 | py | #!/usr/bin/env python3
import io
import pytest
import paramiko
| [
"caleb.stewart94@gmail.com"
] | caleb.stewart94@gmail.com |
1d278c8edab4c51c36daaf1d3b3a55ac92845f91 | 48da1cc4ff2148f42a9713920b7e4e8cd5240b2b | /booker/settings.py | fa9bfbc6588524f7b485618a87fc9c2ffb287dd8 | [] | no_license | win777g/booker_backend | 91ff197688d025c4a7286ac70014a5b19a001685 | 593417eef1ccb1779e4eb0eabfe67fab2ed37b33 | refs/heads/master | 2022-06-08T15:30:22.757206 | 2020-01-28T12:35:27 | 2020-01-28T12:35:27 | 236,739,191 | 0 | 0 | null | 2022-05-25T02:44:17 | 2020-01-28T13:16:17 | Python | UTF-8 | Python | false | false | 5,070 | py | """
Django settings for dj_backend project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"win21g@mail.ru"
] | win21g@mail.ru |
ec2d9e087a2156a013066577811e66b731e52bfb | dd6297fc583860c9bf5f47b407e3430cda004dde | /tests/test_darts.py | 6005768f7cc5402241cb0ec3dcd72452951351da | [
"Apache-2.0"
] | permissive | veritynoob/python-darts | 0d32e4b92d91c709dee97dc14066347889e85061 | fbebf1b3fc379afa99944cca50acbc02ba72411f | refs/heads/master | 2020-05-23T08:10:48.165357 | 2014-03-07T10:21:21 | 2014-03-07T14:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
import sys
import os
import unittest
from nose.tools import *
err = sys.stderr
from darts import Darts
class TestDarts(unittest.TestCase):
def setUp(self):
data_path = os.path.join(os.path.dirname(__file__), 'mock_data.darts')
self._ins = Darts(data_path)
def test_... | [
"ikuya@ikuya.net"
] | ikuya@ikuya.net |
157c3a0c40e118adfd794b9feb813995acaf6ae4 | 8e5d44c70978b7c9ac259adc31f6f9156ac936db | /helusers/urls.py | 9f886f236d9467ccc2837ccac5458d9adc260dc9 | [
"BSD-2-Clause"
] | permissive | tommimanbytes/django-helusers | 60a950c5030a63356b7e2c75e74336474ddfd047 | f31d22a59e78a5a119f721d7ae5afa16602028de | refs/heads/master | 2021-03-08T13:22:57.787460 | 2020-01-28T12:21:40 | 2020-01-28T12:21:40 | 246,348,419 | 0 | 0 | BSD-2-Clause | 2020-03-10T16:12:00 | 2020-03-10T16:11:59 | null | UTF-8 | Python | false | false | 563 | py | """URLs module"""
from django.urls import path
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from . import views
app_name = 'helusers'
urlpatterns = [
path('logout/', views.LogoutView.as_view(), name='auth_logout'),
path('logout/complete/', views.LogoutCompleteView.... | [
"juha.yrjola@iki.fi"
] | juha.yrjola@iki.fi |
4e801cd7f9fa6def00c0bec6926f95c343631736 | 584db1be8b6bdedaa56d186692ad72da5ee07164 | /patron/tests/unit/scheduler/filters/test_retry_filters.py | 03b0e77d37fadcfea2b203a179a5741c78eff48b | [
"Apache-2.0"
] | permissive | casbin/openstack-patron | 66006f57725cf1c3d735cd5529d3459fd77384c8 | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | refs/heads/master | 2023-05-31T05:23:37.721768 | 2015-12-31T12:18:17 | 2015-12-31T12:18:17 | 382,054,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"hsluoyz@qq.com"
] | hsluoyz@qq.com |
201462d73fbc31fcfb0a63611fb330dc99024f9a | 5cec1ff43bf38cf31316254dabe3f972d38744ad | /src/hydrat/corpora/langid/acl2011.py | fdbd31fb88a5161451f55b4d3ed1863efe994fce | [] | no_license | eyadsibai/hydrat | 7fb63f3c54f1fca25d04ab7266712c1077ffa2e3 | 5a68c6b8f32bc6bad59c3f002340bf7ef62e868c | refs/heads/master | 2016-09-06T14:16:46.082697 | 2013-08-06T05:14:02 | 2013-08-06T05:14:02 | 33,199,904 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | from hydrat import config
from hydrat.dataset.iso639 import ISO639_1
from hydrat.dataset.text import ByteUBT, SingleDir
from hydrat.dataset.encoded import CodepointUBT, UTF8
from hydrat.dataset.split import CrossValidation
from hydrat.configuration import Configurable, DIR
class Wiki10k(Configurable, ISO639_1, UTF8, C... | [
"saffsd@gmail.com"
] | saffsd@gmail.com |
1622fb92b744f9ae79f9793c73ad171ecdb4785a | c91775afdc25f8897c6839cf8294869f3e928083 | /PythonFiles/snowmass_cfg_BB_14TEV_300_700_Conf4v2_7.py | 8c3099fd6a09ce92a8d9d9a2d2df1cfda68bf4b9 | [] | no_license | Saptaparna/Miscellaneous | 7e6df9cdfd10d4861e2e382b1837dbd4c26fb249 | b954189d85e56a02fe257b5f5cbd779365719c00 | refs/heads/master | 2021-01-23T13:29:30.283308 | 2017-12-20T08:26:37 | 2017-12-20T08:26:37 | 42,525,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,279 | py | import FWCore.ParameterSet.Config as cms
import FWCore.PythonUtilities.LumiList as LumiList
import FWCore.ParameterSet.Types as CfgTypes
#
# Parameters that can be set via command line
# when submitting Condor jobs
#
isMc_settable = True
isSignalMc_settable = False
def FindFile(name):
fname = 'file.tx... | [
"saptaparna@gmail.com"
] | saptaparna@gmail.com |
e0eb80c1116dd85abdd4c4f684c80f82dcb013ec | 53e99ac63c093cf9d6b6061386229a52ae851fef | /_1_PythonBasic/Modules.py | 8e65b767e7cfd787c7ca9b8a70bfc054a4b84f08 | [] | no_license | zouwen198317/TensorflowPY36CPU | d33c1ef3fd0580f498caf512eb5e2db078202c53 | 97d1d815efbef7e531aa6fbd10c8806bef0710e7 | refs/heads/master | 2021-08-31T04:22:19.828203 | 2017-12-20T10:11:05 | 2017-12-20T10:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | import math
class ModulesDemo():
def buildin_Modules(self):
print(math.sqrt(100))
print(math.sqrt(200))
m = ModulesDemo()
m.buildin_Modules() | [
"em3888@gmail.com"
] | em3888@gmail.com |
d5a73abd4459bde7bbd87b1caf8ad7e6a8712137 | 5cba2d1a502ac1b08bcbbb7037639bfcaf6b6076 | /MonitorTaskTest.py | 80dd08eed3977242520a40c96099b3f93594624a | [] | no_license | dglo/dash | c84474d38e01fc14f372539cd04cb1491e3e32fa | 718189be62907a6a8031980fe0c41fa7e06b898d | refs/heads/main | 2023-06-11T11:48:49.591844 | 2021-06-14T09:16:16 | 2021-06-14T09:16:16 | 341,388,631 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,574 | py | #!/usr/bin/env python
"MonitorTask unit tests"
import os
import tempfile
import unittest
import shutil
from DAQClient import BeanTimeoutException
from LiveImports import Prio
from MonitorTask import MonitorTask
from RunOption import RunOption
from DAQMocks import MockComponent, MockIntervalTimer, MockLiveMoni, \
... | [
"dglo@icecube.wisc.edu"
] | dglo@icecube.wisc.edu |
c233bacb97efe39e05892848a99b0eee5d880136 | 7702446393583be7e29e26ca0911c938bb61f79f | /tests/test_objects.py | 2b208055b4d50b376b3c7879d888bceb2bd2b9f3 | [] | no_license | RussellLuo/easyconfig | d554953600d78a0563d5b2f035e561541b41d5f6 | a599ae95750be92547f6b5df15872cd347222f61 | refs/heads/master | 2020-05-19T12:57:22.751638 | 2017-11-02T01:57:36 | 2017-11-02T01:57:36 | 28,290,302 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | # -*- coding: utf-8 -*-
import os
import pytest
from easyconfig import str_object, envvar_object
class TestObjects(object):
def test_valid_str_object(self):
obj = str_object('configs.default_config')
assert obj.DEBUG
assert obj.PORT == 5000
assert obj.SECRET_KEY == '123***456'
... | [
"luopeng.he@gmail.com"
] | luopeng.he@gmail.com |
79672aa971cbf18e2305a8d2bed7dc02d4f57e9c | b6be7bef4c8ffd48c3a1c89fa2ad84bc8d042eb7 | /venv/Lib/site-packages/pydicom/tests/test_filereader.py | 8e6b46dcff2e62cc1507ccff0d84c370077991d4 | [] | no_license | Wushaoyong/tensflowtest | 48e747c1a6cdd7374313013d43cb095a97f3bc34 | f393a945e733fcfe0c63f5dcfffc44c60d2a5862 | refs/heads/master | 2023-01-10T01:47:38.764265 | 2020-11-10T02:26:16 | 2020-11-10T02:26:16 | 305,975,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,976 | py | # Copyright 2008-2018 pydicom authors. See LICENSE file for details.
# -*- coding: utf-8 -*-
"""Unit tests for the pydicom.filereader module."""
import gzip
import io
from io import BytesIO
import os
import shutil
from pathlib import Path
from struct import unpack
import sys
import tempfile
import pytes... | [
"1123893617@qq.com"
] | 1123893617@qq.com |
387482384e4dd046d7add4e9d91323b0feff67a1 | 90d06e9cacd52f2ba07d55dd852cb3cb7171c452 | /leetcode/_380_InsertDeleteGetRandomO1.py | 13512bbfe2e5287bd9d8b1aa137a925219712dc1 | [] | no_license | shahidul2k9/problem-solution | efd91af08e103b552a225bca37660c51c60b98f2 | 0e970ac9c72f2ba13e66c180b208a2ec53886cd1 | refs/heads/master | 2022-10-16T04:04:31.556454 | 2022-09-24T08:09:46 | 2022-09-24T08:09:46 | 19,431,424 | 51 | 92 | null | 2022-09-24T08:09:47 | 2014-05-04T17:13:28 | C++ | UTF-8 | Python | false | false | 1,013 | py | import random
class RandomizedSet:
def __init__(self):
self.index_map = dict()
self.val_seq = []
def insert(self, val: int) -> bool:
index_map = self.index_map
if val in index_map:
return False
else:
index = len(self.val_seq)
index_... | [
"shahidul2k9@gmail.com"
] | shahidul2k9@gmail.com |
f206ccbc8de412dfb0eba0944f6980d61c61eaa9 | 6013dd126854bc1b73af498efb42e98b4c27976e | /backend/no_fuss_move_23321/settings.py | 20f979f1e6dda93cd5057573378aa3e98d30b659 | [] | no_license | crowdbotics-apps/no-fuss-move-23321 | 9245ac0f0d273ec193831595ccc8fb7ded4cca66 | 9022439c4e02969d56b19e65c4bb389e02d2ef5b | refs/heads/master | 2023-01-22T19:46:41.394733 | 2020-12-11T19:30:00 | 2020-12-11T19:30:00 | 320,665,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,026 | py | """
Django settings for no_fuss_move_23321 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c4b8c62f5834dc6196a1cdfc3d83e3eda3d86ded | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/ForescoutEyeInspect/Scripts/ForescoutEyeInspectButtonGetVulnerabilityInfo/ForescoutEyeInspectButtonGetVulnerabilityInfo.py | 6d2dfea341558f8ac93a1816c1bfe95c7672c67c | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 595 | py | import demistomock as demisto
from CommonServerPython import *
def get_cve():
cve_id = demisto.args().get('cve_id')
if not cve_id:
return_error('Missing CVE ID.')
return demisto.executeCommand('forescout-ei-vulnerability-info-get', {'cve_id': cve_id})
def main():
try:
return_results... | [
"noreply@github.com"
] | demisto.noreply@github.com |
556da0869ff035d8d7bacb7fd7b934185e14653b | a55a2d6af33fcb46283bee27a930cbae67cc0d83 | /hparams.py | e68e76ebe0c7e89f09f8e07cc47911b861a89152 | [] | no_license | xcmyz/GST-Tacotron | b5a2eed58def49120d3dc2fd0588ed17c783bf0e | 7ff97fe6b3ca522d42dd32f1089ee829dc801cd4 | refs/heads/master | 2020-04-24T14:33:13.384029 | 2019-02-22T14:04:56 | 2019-02-22T14:04:56 | 172,024,521 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # Preprocess
cleaners = 'english_cleaners'
# Audio:
num_mels = 80
n_mels = 80
num_freq = 1025
sample_rate = 20000
frame_length_ms = 50
frame_shift_ms = 12.5
preemphasis = 0.97
min_level_db = -100
ref_level_db = 20
griffin_lim_iters = 60
power = 1.5
n_fft = 2048
n_iter = 50
# max_db = 100
# ref_db = 20
# Model:
E = 2... | [
"noreply@github.com"
] | xcmyz.noreply@github.com |
85363835deab82e3430cbf858b2eb89c7ee9e4c6 | 5f4e13201d4c5b7edc8dbbda289380682a187bec | /nlpfr/nltk/stem/wordnet.py | e34292f9efaa40eaf268bd03c313c4d2f95de5ba | [] | no_license | intellivoid/CoffeeHousePy | 92f4fb344de757837c3d3da05cb5513e90408039 | 57c453625239f28da88b88ddd0ae5f1ecdd4de3c | refs/heads/master | 2023-02-23T14:32:01.606630 | 2021-01-28T02:57:10 | 2021-01-28T02:57:10 | 324,419,067 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | # Natural Language Toolkit: WordNet stemmer interface
#
# Copyright (C) 2001-2019 NLTK Project
# Author: Steven Bird <stevenbird1@gmail.com>
# Edward Loper <edloper@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
from nltk.corpus.reader.wordnet import NOUN
from nltk.cor... | [
"netkas@intellivoid.info"
] | netkas@intellivoid.info |
cb9151a77cd1ec635a88b99df80f378fbcf242fb | eb9597c78d4bee2a0ebdcf147490eb514cb7a565 | /samples/module_sample/usqlite/test_python/test_python.py | c70fda3f32e239bfd1594dfb9f508081bab05fca | [] | no_license | Bayonetta5/socketpro | fede51bcc6d1e6f91d8060e1e9c4149b6a8c2163 | ddefe87e0572fde6f12930d867c2c10aed8a980e | refs/heads/master | 2020-03-09T15:51:15.000640 | 2018-04-07T18:48:01 | 2018-04-07T18:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,711 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from spa import Pair
from spa.udb import *
from spa.clientside import CSocketPool, CConnectionContext, CSqlite, CUQueue
import datetime
with CSocketPool(CSqlite) as spSqlite:
print('Remote async sqlite server host: ')
cc = CConnectionContext(sys.stdin.r... | [
"support@udaparts.com"
] | support@udaparts.com |
1f502fe59baef7019192d84d80899a3a869ae157 | 0072acbd082e994d7fc51b00ba7ef1470042dac3 | /movies/movie/models.py | f5fa2ed7b40db0347c64788bf3157dccc6eec7be | [] | no_license | jaybenaim/day22-data-modeling | fd8a5e512115f1f235c987a93afadbb610a86ee6 | cdf8e087c17e4b47e2f32fd24e1e14452a0b61f8 | refs/heads/master | 2022-11-04T00:33:59.103810 | 2019-08-01T04:28:27 | 2019-08-01T04:28:27 | 199,929,719 | 0 | 1 | null | 2022-10-20T08:58:40 | 2019-07-31T21:12:04 | Python | UTF-8 | Python | false | false | 701 | py | from django.db import models
class Viewer(models.Model):
name = models.CharField(max_length=255)
films = models.ManyToManyField('Film')
def __str__(self):
return f'{self.name} '
class Film(models.Model):
name_of_film = models.CharField(max_length=255)
# viewers = models.Foreig... | [
"benaimjacob@gmail.com"
] | benaimjacob@gmail.com |
7e64fba06f1c66052bced856711f1e9be047b79e | 0a6d0ea3a60ece86ec477e490605b063b2e8c060 | /calcAverageDurationAs2ndWordInFile.py | 0acddb31ed92ef920406e9a3d975e9e4ebb603b1 | [] | no_license | alclass/bin | bdbe063d629c05e17f64dc27f71211e5881e1f3b | b4c5642c8d5843846d529630f8d93a7103676539 | refs/heads/master | 2023-07-24T11:36:50.009838 | 2023-07-09T20:26:42 | 2023-07-09T20:26:42 | 17,493,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,490 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import glob, sys
DEFAULT_EXTENSION = 'mp4'
def calcAverageDurationAs2ndWordInFile(files):
'''
'''
total_duration = 0; n_counts = 0
for eachFile in files:
try:
word = eachFile.split()[1]
if word.find('h') > -1:
hours, minutes = word.split(... | [
"livrosetc@yahoo.com.br"
] | livrosetc@yahoo.com.br |
c42e3d62813b3124c76db6b93300608478458f9e | f7c07caa1210d2a08e8433cdd854b1232efa88e3 | /Date-And-Time-Modules/Time-Module/accept2dyear.py | 72084e75af7122cc4a8e1b3f4b2ac6c441723a20 | [] | no_license | rchicoli/ispycode-python | c2fbecc28bf32933150986d24f77b7297f50b78e | fa27f2377943ac2e4d983065406578151091e3f5 | refs/heads/master | 2020-03-20T11:34:59.698618 | 2018-06-14T21:14:02 | 2018-06-14T21:14:02 | 137,407,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py |
import time
print(time.accept2dyear)
| [
"rafaelchicoli@hotmail.com"
] | rafaelchicoli@hotmail.com |
4e8647f661d6e79fbed4f1c02d6a128b5a187d7b | cc87a78151e3229ab408f8562fb2ee0c90af9d43 | /hothouse/cli.py | 2d889b2baa4df074a8e517df5d50809000252903 | [
"MIT"
] | permissive | cropsinsilico/hothouse | c6823bbde426d2dfced10e314af1b4a34181f474 | 11bda5941ee84ad024f8b73a4cdbe82b4be16f18 | refs/heads/master | 2023-01-12T08:59:11.871734 | 2021-06-09T17:51:06 | 2021-06-09T17:51:06 | 179,533,155 | 0 | 3 | MIT | 2022-12-26T20:47:17 | 2019-04-04T16:12:12 | Python | UTF-8 | Python | false | false | 401 | py | # -*- coding: utf-8 -*-
"""Console script for hothouse."""
import sys
import click
@click.command()
def main(args=None):
"""Console script for hothouse."""
click.echo("Replace this message by putting your code into " "hothouse.cli.main")
click.echo("See click documentation at http://click.pocoo.org/")
... | [
"matthewturk@gmail.com"
] | matthewturk@gmail.com |
e7a32e42f05f7c64f62178c14d630f5e48ad7c81 | 2a4ad073755ff447926e44b7c2e0b56b5ded37d2 | /NowCoder/56J_撤除链表中的重复节点_A.py | e8d1baf1e93c34bbd24a4c52285a92849ae3f96c | [] | no_license | wcb2213/Learning_notes | 3a9b3fdb7df5c6844a9031db8dd7e9dd858e093c | d481e1754c15c91557027bee872f4d97da3c0fca | refs/heads/master | 2021-07-06T15:54:56.199655 | 2020-09-04T14:05:50 | 2020-09-04T14:05:50 | 174,832,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | #!/usr/bin/env/ python
# -*- coding:utf-8 -*-
# Created by: Vanish
# Created on: 2019/4/2
# 30ms
# 在一个排序的链表中,存在重复的结点,请删除该链表中重复的结点,重复的结点不保留,返回链表头指针。 例如,链表1->2->3->3->4->4->5 处理后为 1->2->5
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# 哈希
def de... | [
"wcb2213@163.com"
] | wcb2213@163.com |
05ec1415c241cba02bf60e5d92821b0af3d152b0 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/battle_royale/scripts/client/battle_royale/gui/prb_control/entities/regular/squad/actions_validator.py | adb24bb413320f6de9fbdcfab72bae70f4f1fdfc | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 2,704 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: battle_royale/scripts/client/battle_royale/gui/prb_control/entities/regular/squad/actions_validator.py
from gui.prb_control.entities.base.actions_validator import ActionsValidatorComposite
from gui.prb_control.entities.base.squad.actions_validator... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
7a4f3c708d4bdec13d5f9cd966a09d72fcc35f87 | 9827086f2a2a21d5b21bed9ee3b0ca888dc1bb50 | /m01_basics/l_08_enums.py | 77804d1a7a61664461be0cb37d0e42babe1beaf9 | [
"MIT"
] | permissive | decolnz/python-52-weeks | d011918e39660b3b96ee5bbe1f9978c6d1c3679c | b604b47983df16a6e931ed241ce0439dd1764c56 | refs/heads/main | 2023-01-22T19:46:44.697916 | 2020-11-16T18:46:54 | 2020-11-16T18:46:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | from random import choice
import string
from tabulate import tabulate
from operator import itemgetter
from enum import Enum
class Vendor(Enum):
cisco = "cisco"
juniper = "juniper"
arista = "arista"
devices = list() # CREATE EMPTY LIST FOR HOLDING DEVICES
# FOR LOOP TO CREATE LARGE NUMBER OF DEVICES
f... | [
"chuck.a.black@gmail.com"
] | chuck.a.black@gmail.com |
1a13ba5ba28bd37616d3053fdcef0493368a562c | 1c594498900dd6f25e0a598b4c89b3e33cec5840 | /iqps/upload/google_connect.py | 22e9bcdd1ea0b105c7b3a968296f7235797b4dcf | [
"MIT"
] | permissive | thealphadollar/iqps | cef42ed8c86e4134e724a5f4967e96a83d672fcd | 187f6b134d82e2dce951b356cb0c7151994ca3ab | refs/heads/master | 2023-07-14T04:41:13.190595 | 2020-06-25T14:51:17 | 2020-06-25T14:51:17 | 277,360,692 | 0 | 0 | MIT | 2020-07-05T18:29:17 | 2020-07-05T18:29:16 | null | UTF-8 | Python | false | false | 3,088 | py | from __future__ import print_function
import pickle
import os.path
from googleapiclient.discovery import build
from googleapiclient.http import MediaFileUpload
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
# Source: Google Drive API Python Quickstart
SCOPES ... | [
"smishra99.iitkgp@gmail.com"
] | smishra99.iitkgp@gmail.com |
1edd9554870d58193a4fb745514bef43e5b402ed | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/model_test.runfiles/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/model_pruning/python/layers/rnn_cells.py | e46f7e908f17af1a8881d3dd6115b587a7c135e5 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/model_pruning/python/layers/rnn_cells.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
56ce6a890dccd4e3bb8a690789eead2575122f23 | e406b247a64ad3981eae234de9cb0a933b5df6ec | /07. Passing Networks/01. Basic Passing Networks/passing_network.py | bad793b8c09dedd49fe9da3a794924452095f8ac | [] | no_license | Slothfulwave612/Football-Analytics-With-Python | 973f333be3ccb42cd04d3506e16f475dc16f27de | 31de88dd7303fa5b781eb2bbb1d3a2c7db5bceb3 | refs/heads/master | 2023-08-15T17:31:46.548650 | 2023-07-24T11:39:17 | 2023-07-24T11:39:17 | 255,636,264 | 30 | 12 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 12 20:31:09 2020
@author: slothfulwave612
Modules Used(4):-
1. numpy -- numerical computing library.
2. matplotlib -- plotting library for the Python.
3. utility_function_io -- Python module for i/o operation.
4. utility_function_viz -- Python module for visualization.
"... | [
"noreply@github.com"
] | Slothfulwave612.noreply@github.com |
28facf418ae9ab812b638f0ed6bd12ef0dce123d | 777b5c266360b29b6d4af916726abd5d364b74a1 | /src/utils/oauth/facebook.py | cade1f947ec4bd4075814e55b1e2dab7e32b98ce | [] | no_license | uryyyyyyy/django-graphql | 44d08afc3e44514270d1d5c183caa9d1c1cf3f88 | f3d6513d2325a8e675e47500cc71d8ef56c01537 | refs/heads/master | 2021-06-10T11:11:45.110271 | 2019-02-28T07:39:54 | 2019-02-28T07:39:54 | 172,325,424 | 0 | 0 | null | 2021-04-20T17:56:57 | 2019-02-24T10:44:31 | Python | UTF-8 | Python | false | false | 907 | py | import os
from typing import Optional
import requests
from requests import Response
OAUTH2_ID = os.environ['OAUTH2_FACEBOOK_ID']
OAUTH2_SECRET = os.environ['OAUTH2_FACEBOOK_SECRET']
OAUTH2_REDIRECT = os.environ['OAUTH2_FACEBOOK_REDIRECT']
def oauth(code: str)-> Optional[dict]:
url = f'https://graph.facebook.com... | [
"koki@anymindgroup.com"
] | koki@anymindgroup.com |
fd3e0dcb98417ef93842c6bd574ee434d02e33c4 | a5fabc6d6341925b587fecb082dc70c0d1b95619 | /Stage4_Linux_dm_Mod.py | 3be18daac9a82eb2f31f2368fb98b5ea7a4446e5 | [] | no_license | illuminous/pythonScripts | fcfef9c0fb9bd3155edcf02b56bbec563ff08b2a | 1bb69a1bb1e10f6041274c027cc0ab06c7a9efed | refs/heads/master | 2022-10-22T09:35:48.088907 | 2022-09-28T22:35:32 | 2022-09-28T22:35:32 | 120,963,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,141 | py | """Stage4.py Creates the input files for fireharm and renames the ascii output files from Stage3.aml. Created by Jason M.\n
Herynk 2010"""
import os
import sys
import shutil
import tempfile
resrange = []
zones =[]
res = []
##############################################################
def chu... | [
"noreply@github.com"
] | illuminous.noreply@github.com |
be35ddd0d45e132bb15e23130777452ff8896226 | 3e24611b7315b5ad588b2128570f1341b9c968e8 | /pacbiolib/pacbio/pythonpkgs/pbreports/bin/ccs_report | 4c5af46e1f2b872922db35a77f270f162a0c83b2 | [
"BSD-2-Clause"
] | permissive | bioCKO/lpp_Script | dc327be88c7d12243e25557f7da68d963917aa90 | 0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2 | refs/heads/master | 2022-02-27T12:35:05.979231 | 2019-08-27T05:56:33 | 2019-08-27T05:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | #! python
# -*- coding: utf-8 -*-
import re
import sys
from pbreports.report.ccs import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"409511038@qq.com"
] | 409511038@qq.com | |
a0fafc33252870bd04f6a5089915d8837494b042 | 553b309379b95ee0fa411e90cabd1cecada21daf | /tests/training/test_parameters.py | aad49b921270c42f334c1fcba797956bc3332387 | [
"BSD-2-Clause"
] | permissive | gitter-badger/delira | 523c2a4f0ab4866c9862086a136c65e2b8622d62 | e79072eb33ba76bb444d93b424a5318232d5fba3 | refs/heads/master | 2020-04-25T23:37:56.562572 | 2019-02-26T12:44:34 | 2019-02-26T12:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | import pytest
from delira.training import Parameters
from delira.utils import LookupConfig
@pytest.mark.parametrize("fixed_model_params,variable_model_params,"
"fixed_training_params,variable_training_params,"
"valid_nested_key,valid_nested_value,"
... | [
"justus.schock@rwth-aachen.de"
] | justus.schock@rwth-aachen.de |
b908d7702d5fa1acd219848580bf4005ee275a80 | 7fae7de3bb2783d51b7ec0ed5400d98ce4a874cb | /FuZhouGOV/FuZhouGOV/middlewares.py | e91f5755a5bd3c39e006e4b05486d4a4116a5af4 | [] | no_license | gaojan/news_spider | b0486d4f628e23a1180ae5c58c645a5310bac427 | 6e6d7333b44e1159aff251c94308f2ada1e09f68 | refs/heads/master | 2022-12-09T12:03:56.250449 | 2020-09-16T07:11:44 | 2020-09-16T07:11:44 | 295,947,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,603 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class FuzhougovSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrap... | [
"gaojian_1010@126.com"
] | gaojian_1010@126.com |
8304d52d475e946ac42da523f39ddf4b264e53cd | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.11.24/7/1569573204.py | 13cb49303c014c62aa005ac69bc3e71d01c49d55 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def divisors(n: int) -> list:
"""Gibt alle Divisoren einer zahl zurück
Arg: n: int > 0
Return: list von allen teilern
leere Liste falls n <= 0
"""
if n <= 0:
return []
else:
re... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
6cc1749926f29e51919453e49fa53f1bc15a3b34 | 2b502aae9bc33bac6c4b28d1e702591f2cbed690 | /terrascript/cobbler/r.py | 7711613b1868ac135b7e9876ca62f7612f9aa84b | [
"Python-2.0",
"BSD-2-Clause"
] | permissive | LeeroyC710/python-terrascript | 4c8fbe032e9b7dd8844d962f888c28f87a26ff77 | b8f3c3549b149c124e3e48e0cea0396332ad1a1d | refs/heads/master | 2020-12-28T03:58:04.502969 | 2020-01-19T21:46:52 | 2020-01-19T21:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # terrascript/cobbler/r.py
import terrascript
class cobbler_distro(terrascript.Resource):
pass
class cobbler_kickstart_file(terrascript.Resource):
pass
class cobbler_profile(terrascript.Resource):
pass
class cobbler_repo(terrascript.Resource):
pass
class cobbler_snippet(terrascript.Resource):
... | [
"markus@juenemann.net"
] | markus@juenemann.net |
3587d1ceb6ec5894fae9423eda952a68b75d5044 | b4477b89c0e43c85a8e91b152a29003a89d0211e | /game_stats.py | f43c631024928ce718c71d13d0abdb3c3023bad7 | [] | no_license | WillMartin32/Project-1-Alien-Invasion | 0b1935e27a7e63075167ac274e66beb9b3bb2681 | 5197a40c5eebf7cdab7d9958b7e05d65ee3663b6 | refs/heads/master | 2023-08-30T22:03:16.511054 | 2021-10-24T00:37:51 | 2021-10-24T00:37:51 | 410,123,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | class GameStats:
"""Track statistics for Alien Invasion."""
def __init__(self, ai_game):
"""Initialize statistics."""
self.settings = ai_game.settings
self.reset_stats()
# Start Alien Invasion in an inactive state.
self.game_active = False
# High score should n... | [
"you@example.com"
] | you@example.com |
429f458c11766686359fa797c199a0e1934200de | 71894f980d1209017837d7d02bc38ffb5dbcb22f | /multi/DIYSmartphone/apps/settings/settings.py | 967fb98c0538c57b96db03efc7e40f24ff09a816 | [
"MIT"
] | permissive | masomel/py-iot-apps | 0f2418f8d9327a068e5db2cdaac487c321476f97 | 6c22ff2f574a37ba40a02625d6ed68d7bc7058a9 | refs/heads/master | 2021-03-22T04:47:59.930338 | 2019-05-16T06:48:32 | 2019-05-16T06:48:32 | 112,631,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | #settings App
#copyright (c) 2015 Tyler Spadgenske
#MIT License
###############################
#To be packaged with stock TYOS
###############################
from subprocess import Popen
import sys
import pygame
class Run():
def __init__(self, fona):
self.fona = fona
self.headset = False
... | [
"msmelara@gmail.com"
] | msmelara@gmail.com |
42b0ae804a485a7e6d1d472f198ae4172cd2e0d8 | 7239d389894613ef132edb1198a4f47cb2b65f92 | /packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_tickfont.py | a0a8796f9165d851332ecb52c973add2c2f666a2 | [
"MIT"
] | permissive | fast3dd13sa/plotly.py | 2169417b72481ff2937b5a9ce90d426cd1cccd80 | e778c6b5e6ae9665d7a5e2ddb666f43806df3959 | refs/heads/master | 2022-04-26T01:11:46.345181 | 2020-04-27T19:49:56 | 2020-04-27T19:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,413 | py | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickfont(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.scene.xaxis"
_path_str = "layout.scene.xaxis.tickfont"
_valid_props = {"color", ... | [
"noreply@github.com"
] | fast3dd13sa.noreply@github.com |
d912ddef2663022a84130f7aa123400981936d79 | 1cab02a729ec729ea6bc10d50337d95efa032d4b | /production/cloud_catalog_combiner.py | 642782a9ad034bc9c55e9a8c5491348f66fdabcd | [] | no_license | tomr-stargazer/dendrogal | 21a01abf518c3317e86d9dec26d87647ab4dd611 | 9cd287f16b53257fb0df00c3ca7732709a12ee25 | refs/heads/master | 2021-01-23T05:39:17.462258 | 2016-02-09T22:01:20 | 2016-02-09T22:01:20 | 16,552,327 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,353 | py | """ This script combines the four quadrants. """
from __future__ import division
import numpy as np
import astropy
from dendrogal.production.cloud_extractor_q1 import export_firstquad_catalog
from dendrogal.production.cloud_extractor_q2 import export_secondquad_catalog
from dendrogal.production.cloud_extractor_q3 im... | [
"t.rice90@gmail.com"
] | t.rice90@gmail.com |
076d0245323dfa1dad33730e713091e92700ca2a | 7b73392da56a3b50337ff31863a48a1336ddf85b | /Problems/Fahrenheit/task.py | 99853e15c29635480e02dd4a23115e8f2340f182 | [] | no_license | MaciejAZak/Chatty_Bot | 417f413bca8785ae3ad1dd797e8556b85f07983b | fdb4080cebcd7d5585b0f6378adacf023004d7da | refs/heads/master | 2022-11-15T13:10:16.612980 | 2020-07-06T16:40:25 | 2020-07-06T16:40:25 | 277,184,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | def fahrenheit_to_celsius(f):
return round((f - 32) * (5 / 9), 3) | [
"maciej.a.zak@gmail.com"
] | maciej.a.zak@gmail.com |
a669aae80ce81db10f67b0a18af9b9f2aae71c7c | 7134e45563b2045837296cb5c4f1974a025e4f2b | /.history/dices_throw_20200311233054.py | 5e54f81580878e0bf8757aa4c5e2a992cce563d7 | [] | no_license | Nordenbox/Nordenbox_Python_Fundmental | dca175c471ac2c64453cc4bcf291dd0773be4add | 9c79fd5d0dada580072b523d5aa1d72f996e3a22 | refs/heads/master | 2022-01-21T06:37:15.084437 | 2022-01-06T13:55:30 | 2022-01-06T13:55:30 | 240,154,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | """n 个骰子都扔出某一面的概率计算"""
import random
class ThrowDices:
def __init__(self, dices_numbers, face_want, throw_times):
self.dices_numbers = dices_numbers
self.face_want = face_want
self.throw_times = throw_times
def get_probabilities(self):
list_calculate = self.create_dices_thro... | [
"nordenbox@gmail.com"
] | nordenbox@gmail.com |
f8a87828e500d77821f9c8ce31080c6413b22225 | b28d13b2e785398f1a8074e0034080539009c837 | /django-rest-doc/snippets/views.py | f3fd32d0a2886ad4eedfc9fcc007937511625611 | [] | no_license | sdugaro/django | c58f1c290a1cadf90d723083c1bceefbbac99073 | 1704f1796cb3f25cac260c6120becd70e9f1c33f | refs/heads/main | 2023-02-06T22:06:41.872202 | 2020-12-27T09:04:12 | 2020-12-27T09:04:12 | 311,162,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | from rest_framework import generics
from rest_framework import permissions
from rest_framework import viewsets
from rest_framework import permissions
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.response import Re... | [
"sdugaro@yahoo.com"
] | sdugaro@yahoo.com |
b766e18d258b7d090406b2c976ae0eb267fbddda | 3b4c4ed90545d848bc6fd536a36a8ccea065ed33 | /backend/home/admin/home_page.py | 19fff037cc67ec64caf463d0d920fbf3da7ea943 | [] | no_license | garpixcms/example-corp-templates | 43e2478687e3aa6d4b30985f6cb4e2566254bcdd | 56e0897dfc3d26853b2117cad22074e32e565af9 | refs/heads/master | 2023-07-19T00:17:26.397663 | 2021-09-18T19:10:40 | 2021-09-18T19:10:40 | 407,945,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from django.contrib import admin
from garpix_page.admin import BasePageAdmin
from ..models.home_page import HomePage
from .carousel_item import CarouselItemInline
@admin.register(HomePage)
class HomePageAdmin(BasePageAdmin):
inlines = (CarouselItemInline,)
| [
"crusat@yandex.ru"
] | crusat@yandex.ru |
78b42b50b19fdd6163dfd6bd1656f92ea6f85802 | b588a14e13972495a1d2575b8df9e902e7c51200 | /devel/mpi_example.py | 3de463537ecdac3b154884ea97746b9ed96ebcab | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | faisalrahman36/TreeCorr | a12f1d333ff48a1fad6a3ba1b8aeb453e58322ac | 0cd4b62af01bac0c61ad28d222ac12a1a2f20a8b | refs/heads/master | 2022-11-22T07:21:00.184293 | 2020-07-23T18:19:03 | 2020-07-23T18:19:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,519 | py | # Copyright (c) 2003-2019 by Mike Jarvis
#
# TreeCorr is free software: redistribution and use in source and binary forms,
# with or without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of condi... | [
"michael@jarvis.net"
] | michael@jarvis.net |
50250c4996d256760a59ad157fd528f12325bcd7 | 19d47d47c9614dddcf2f8d744d883a90ade0ce82 | /pynsxt/swagger_client/models/lb_snat_translation.py | 55afbc1decee3f8c6fa2737cf58f6a9315d8a193 | [] | no_license | darshanhuang1/pynsxt-1 | 9ed7c0da9b3a64e837a26cbbd8b228e811cee823 | fb1091dff1af7f8b8f01aec715682dea60765eb8 | refs/heads/master | 2020-05-25T14:51:09.932853 | 2018-05-16T12:43:48 | 2018-05-16T12:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,382 | py | # coding: utf-8
"""
NSX API
VMware NSX REST API # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class LbSnatTranslation(object):
"""NOTE: This class is auto generated by the s... | [
"tcraft@pivotal.io"
] | tcraft@pivotal.io |
d1003e312f68da8ca9e65ebc3e28108892f9de3b | 667cec9312ac63e329b0249bf57b2c4f4246b896 | /django_lair/urls.py | d9ce71a6079b9c6802c368637d329991f9f3f62c | [
"MIT"
] | permissive | narfman0/django_lair | 3cb09e3c4156476a3a181a595c0734b6d42440f7 | f731f4048463d6b0e2cf37e67ac1a3fa8062a5b1 | refs/heads/master | 2023-01-11T18:43:53.108839 | 2016-12-05T05:25:51 | 2016-12-05T05:25:51 | 75,147,732 | 1 | 0 | MIT | 2022-12-26T20:26:31 | 2016-11-30T03:32:06 | Python | UTF-8 | Python | false | false | 655 | py | # -*- coding: utf-8 -*-
from django.conf.urls import url
from django.views.decorators.csrf import csrf_exempt
from . import views
urlpatterns = [
url(
regex="^datum/$",
view=views.DatumListView.as_view(),
name='datum_list',
),
url(
regex="^datum/create/$",
view=csrf... | [
"narfman0@gmail.com"
] | narfman0@gmail.com |
a40f971d91c9c8f7a33407864a4035996e808564 | 3f80628d7fc96db14bd3e46f67a264d172d78bed | /project_name/settings_prod.py | 5aeda66c4d9a89a313cba8509ef692f6d2220b74 | [] | no_license | jeremyjbowers/django-project-template | a33de39fe83ee909d3ea907407d62a43b0dd6132 | 3631b6b8760b4fe629f0069784d3f84ae2c54d6a | refs/heads/master | 2021-01-15T10:06:17.070154 | 2013-12-10T02:01:28 | 2013-12-10T02:01:28 | 15,066,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | DEBUG = False
DEVELOPMENT, PRODUCTION = False, True
DEBUG_TOOLBAR = False
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '5433',
}
}
CACHES = {
'default': {
... | [
"ben.welsh@gmail.com"
] | ben.welsh@gmail.com |
a6e52410f067ff6aace3d01123a0b6ce17cb947d | 313203cd01705e08bc8967246bfeacb7fa5cd6c9 | /unittest_DOC/pdfs/python_assign/pro_1_3.py | 5962f1a9f591518e307756d1f380a68ab3048a12 | [] | no_license | Nitesh101/Nitesh_old_backup | 17d9c8e8f9694c0ef4d995de7cbb694080523b22 | a0b0263e204f2f46c51e6f20990024396eb0ccb7 | refs/heads/master | 2020-03-19T20:51:51.587343 | 2018-09-21T09:42:11 | 2018-09-21T09:42:11 | 136,919,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | val1=input("enter a binary number")
print "in octal",oct(val1)
print "in decimal",int(val1)
print "in hexa",hex(val1)
| [
"m.veeranitesh@gmail.com"
] | m.veeranitesh@gmail.com |
c7c17f1a1331a54d890e1aa3c688e33f09f0395f | 3775102a3f59bc8aac9b8121ba2aef87409724ee | /Medium/email_validation.py | a2d415d1ce133906ac158b4b47155fd08aa7e3b1 | [] | no_license | csikosdiana/CodeEval | a446ec6673e9f97439662bfccbd7454e5740d509 | 15cdd9ca454939e93c77d5ed5076595ecc7e4301 | refs/heads/master | 2016-08-11T14:49:27.565799 | 2016-03-22T17:48:20 | 2016-03-22T17:48:20 | 46,176,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | data = ['foo@bar.com', 'this is not an email id', 'admin#codeeval.com', 'good123@bad.com', 'A@b@c@example.com', 'b@d.net', 'a"b(c)d,e:f;g<h>i[j\k]l@example.com',
'"very.unusual.@.unusual.com"@example.com', 'Abc.example.com']
import string
#print string.ascii_lowercase
#print string.ascii_uppercase
#import sys
#tes... | [
"csikosdiana@gmail.com"
] | csikosdiana@gmail.com |
6b05463668a33fe1f943e09e558af61cf216efe7 | 52f4426d2776871cc7f119de258249f674064f78 | /baekjoon/bfs/3197.py | e95e691708be4642280c20ba66324c1f967e3be8 | [] | no_license | namhyun-gu/algorithm | 8ad98d336366351e715465643dcdd9f04eeb0ad2 | d99c44f9825576c16aaca731888e0c32f2ae6e96 | refs/heads/master | 2023-06-06T02:28:16.514422 | 2021-07-02T10:34:03 | 2021-07-02T10:34:03 | 288,646,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | # region Input redirection
import io
import sys
example = """
8 17
...XXXXXX..XX.XXX
....XXXXXXXXX.XXX
...XXXXXXXXXXXX..
..XXXXX.LXXXXXX..
.XXXXXX..XXXXXX..
XXXXXXX...XXXX...
..XXXXX...XXX....
....XXXXX.XXXL...
"""
sys.stdin = io.StringIO(example.strip())
# endregion
#
# ⛔ DO NOT COPY ABOVE CONTENTS
#
import sys
from ... | [
"mnhan0403@gmail.com"
] | mnhan0403@gmail.com |
231bfe1aaabd30c02e2d6c1e78fb52b42bc134dd | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_models_py3.py | 6885a414369f98602eaf79d5a5540efa6b794ae2 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 123,727 | py | # coding=utf-8
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
08c411d4c50b99bfb273e6f1fc5b5aae83b99172 | d0ad071c259151bf8cce28d5a36c65ee53960b8d | /Session8E.py | 57b68ed71ed0801054f8bfdf3e64ea8cf7073cd4 | [] | no_license | ishantk/GW2020P1 | 705f44ddd634a408690db6a3ecfccb0a6801da8e | 682c57e930b38d6f597861e23d0ba5a3b409715a | refs/heads/master | 2022-11-23T18:13:14.453946 | 2020-07-31T03:13:40 | 2020-07-31T03:13:40 | 272,337,327 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # Conversions
numbers1 = (10, 20, 30, 40, 50, 20, 10)
print(numbers1, type(numbers1), id(numbers1))
print()
# Converting Tuple into list: Creating a new list out of tuple at new memory location
numbers2 = list(numbers1)
print(numbers2, type(numbers2), id(numbers2))
print()
numbers3 = set(numbers2)
print(numbers3, t... | [
"er.ishant@gmail.com"
] | er.ishant@gmail.com |
cf1726855d28ac553fe153b686222b540c094de9 | 81539aba88c22cf75bd2e14f5e0e92f2bf54e962 | /DarkMatterMap2017/TTbarDMJets_Inclusive_scalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Inclusive_scalar_LO_Mchi-1_Mphi-300_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Inclusive_scalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_230000_5_cff.py | 7f6d6a2692cd48e5000ede737776c6f4c7f1fadf | [] | no_license | nistefan/RandomizedParametersSeparator | ad35b48b95e9745814c0bf9d8d8b6eb8aa479177 | 66a0e291b59113c6b5301768f1c10e36cf23d3c3 | refs/heads/master | 2021-01-03T00:41:17.415005 | 2020-02-19T13:30:54 | 2020-02-19T13:30:54 | 239,838,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,184 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:1639', '1:2426', '1:9709', '1:49004', '1:22216', '1:33003', '1... | [
"Nicole.Stefanov@cern.ch"
] | Nicole.Stefanov@cern.ch |
e4850e41d1bbf8e67a5984a07863c2a1f41ebb3a | df789505c99974c0ba45adc57e52fc7865ff2a28 | /面向对象/类的公有属性&私有属性.py | 4eb77736d2ed78f62971df23ee866940e46a806d | [] | no_license | zhiwenwei/python | 6fc231e47a9fbb555efa287ac121546e07b70f06 | 76d267e68f762ee9d7706e1800f160929544a0a3 | refs/heads/master | 2021-01-20T04:21:44.825752 | 2018-12-19T06:20:10 | 2018-12-19T06:20:10 | 89,676,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #-*- coding:utf-8 -*-
#Author:Kevin
'''
在类里面定义的属性叫做公有属性
'''
class Dog(object):
kind = "哈士奇" #类的公有属性
def __init__(self,name):
self.N = name
self.__heart = 'normal'
def sayhi(self):
#self.__heart = 'Die'
print('i am a dog,my name is ',self.N,self.__heart)
# def shiyan(self... | [
"ddzhiwenwei@163.com"
] | ddzhiwenwei@163.com |
dc4cfaf631cc0c2788c085ed481f39c32c2e3ff1 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/28/usersdata/133/8585/submittedfiles/serie1.py | 5633ea4ecf4bf2e4534779b5e71da2bd577544a1 | [] | 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 | 262 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n=input('Quantidade de termos:')
while ( n!=a):
n=input('Quantidade de termos:')
S=0
for i in range (1, n+1, 1):
S = S + (math.pow(-1, i+1))/ i
print(' %.5f' %S) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
82484e521db18fd2670726ff82cde13c8262b5bb | 954663b85752f2578c85bc146c123078addd42a5 | /oscar/apps/basket/migrations/0002_auto_20140729_1113.py | 06c793abab5cdea0b6269a7d31ca359248eee5ad | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marcoaacoliveira/labweb | d7ca4542315480fb801053d6052fe4d800180916 | 99be44ce4f09a753ee5d6202e19919e2b1eb7192 | refs/heads/master | 2021-05-28T00:02:06.672881 | 2014-08-05T21:03:03 | 2014-08-05T21:03:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,813 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('catalogue', '0001_initial'),
('voucher', '0001_initial'),
('basket', '0001_initial'),
('partner', '0001_initial'),
... | [
"m@maikhoepfel.de"
] | m@maikhoepfel.de |
08bc2079536aa28e36e66aec2537d13ac3473ab5 | ea9fd0ecd72aab531791e3a513e6c2dc4101667d | /fly_plot_lib/animate.py | fdea6c4db7844617d5fb0be4cd1620f4f43afdc1 | [] | no_license | alexlib/FlyPlotLib | 88cd635fef91bf437260e22550147f5c6b53ebf1 | ce3a2b1ec8d8b7abba902dae565aa90729f28077 | refs/heads/master | 2021-01-18T19:29:17.191039 | 2014-05-15T18:19:47 | 2014-05-15T18:19:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,348 | py | import os
import fly_plot_lib.plot as fpl
import types
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import numpyimgproc as nim
import numpy as np
import copy
def get_image_file_list(directory):
cmd = 'ls ' + directory
ls = os.popen(cmd).read()
all_filelis... | [
"florisvb@gmail.com"
] | florisvb@gmail.com |
47d11fd5c17b0c2cfe8a940cd224d8cc10045b97 | 387be4647a519caa396c4c16c78a6f69cc0999a4 | /tests/plugins/test_tags.py | 90d45cea34c8adcb6030995031d1c33a55cd23b4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | fedj/biggraphite | dba6aef439ea375aafaac7097734a9659aed5388 | 723cd0da70f4bd03c144b3c4ea4a78ef131810df | refs/heads/master | 2020-03-22T07:45:13.135235 | 2018-07-25T08:01:31 | 2018-07-25T08:01:31 | 139,722,687 | 0 | 0 | Apache-2.0 | 2018-07-04T13:00:35 | 2018-07-04T13:00:35 | null | UTF-8 | Python | false | false | 1,574 | py | #!/usr/bin/env python
# Copyright 2017 Criteo
#
# 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 agree... | [
"c.chary@criteo.com"
] | c.chary@criteo.com |
f3a4b28c98c1b1f793c86a89883d877934da3bc3 | 103ef307c8485355aef679c2b0e1010c10b7320b | /solutions/0417-Pacific-Atlantic-Water-Flow/0417.py | 45956d408c7a6162cca55e7f895367872c763720 | [
"MIT"
] | permissive | leetcode-notebook/wonz | 649d63551851d8a75470852945814cca678d4be1 | 9ffd2ce9b5f3a544ee958f5a0673215afd176c2b | refs/heads/master | 2021-05-19T00:03:10.261045 | 2020-04-12T14:41:47 | 2020-04-12T14:41:47 | 251,487,131 | 0 | 0 | MIT | 2020-04-12T14:41:48 | 2020-03-31T03:06:16 | null | UTF-8 | Python | false | false | 1,424 | py | from typing import List
class Solution:
def pacificAtlantic(self, matrix: List[List[int]]) -> List[List[int]]:
if not matrix or not matrix[0]:
return []
m, n = len(matrix), len(matrix[0])
p_visited = [[False] * n for x in range(m)] # Pacific
a_visited = [[False... | [
"wangzhou5130@gmail.com"
] | wangzhou5130@gmail.com |
ebd96819dbbb3ad1ee0c8c177ad14fc9ee15c4e5 | 53b47cbfea75afd22f37a2a9c8af4573165a0515 | /Week1/Week1Day4/sample-code/csv/csv_read.py | be9b816378084cfbb698c95cd5293db2eeb346f2 | [] | no_license | bmolina-nyc/ByteAcademyWork | d757ed04033e23a4ec7aa8d09283f65b4cebcb17 | b7a6790c2905afc9532b348149b730b7ea71de44 | refs/heads/master | 2022-12-06T19:17:02.164451 | 2019-03-11T15:31:10 | 2019-03-11T15:31:10 | 169,432,884 | 0 | 1 | null | 2022-11-18T15:08:12 | 2019-02-06T16:00:41 | Python | UTF-8 | Python | false | false | 399 | py | import csv
"""
with open('airtravel.csv', 'r') as file_object:
reader = csv.reader(file_object)
for row in reader:
print(row)
"""
with open('hurricanes.csv', 'r') as file_object:
reader = csv.DictReader(file_object)
for row in reader:
print(row['Month'])
for key, value in row.it... | [
"bruce.molina.81@gmail.com"
] | bruce.molina.81@gmail.com |
5640cbde52084afe3dcf19c971092709b4a1f0c2 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/services/services/ad_group_ad_service/client.py | ce59d180c544e46f611f9a013222c33998f15621 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,515 | 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
7d4a37cfc0fcc706b7c492ae8ce19212e7ae6b61 | 9a34f2730057492a1b3dfaae8f174019c0b60d8f | /conenv/bin/python-config | 63fce41407f64ab216219ee56127ab73a874a126 | [] | no_license | BARarch/New-Special-Project | d42494ea75308c160512263f1ef97b52ced9fdd1 | 57f516aefc91806ad9617103ca7332aea07a0490 | refs/heads/master | 2021-09-01T17:43:36.403091 | 2017-12-28T03:58:23 | 2017-12-28T03:58:23 | 115,583,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,382 | #!/Users/anthonyquivers/Desktop/Scripts/New-Special-Project/conenv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.app... | [
"anthonyquivers@gmail.com"
] | anthonyquivers@gmail.com | |
2a4783e83fdc86de93aa487df415745d946501ee | 28de276365d2ebabca4e891f3cc94a0c41f327e7 | /prepare_mpii.py | 4c22def7b5e5c30a7249e2b43228aad886133a95 | [] | no_license | pesser/gingermen | 305bc39527bee251e4b7c1661c7db13e62cb21ca | f49100fc0d11dffc58297148d355353fd033c354 | refs/heads/master | 2021-01-21T21:15:17.942588 | 2017-06-19T16:48:18 | 2017-06-19T16:48:18 | 94,798,760 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,267 | py | """Extract all human joint annotations from MPII and rectangular bounding
boxes of the corresponding image.
Patrick.Esser@gmx.net"""
import os
from tqdm import tqdm
import logging
import argparse
import sys
import urllib.request
import pickle
from zipfile import ZipFile
import tarfile
import numpy as np
import scipy.i... | [
"Patrick.Esser@gmx.net"
] | Patrick.Esser@gmx.net |
c86d45e58fed16be3cabbb5a71d138a77e3db976 | 69329efb6a668e3e11fe3d1104e076c635be63f1 | /sage/model_g_symbolic_integrator.py | fc15921a4963b53cd7868da99fb707356e47a600 | [
"MIT"
] | permissive | frostburn/tf2-model-g | 8354853a760fa60fd9cbebdf75cd0ecb0f40aa42 | ea90d84754265b47af383b17e347e4f76bddf10c | refs/heads/master | 2021-07-10T14:50:23.233075 | 2020-05-02T17:32:08 | 2020-05-02T17:32:08 | 239,732,547 | 0 | 3 | MIT | 2021-03-25T23:41:20 | 2020-02-11T10:15:48 | Python | UTF-8 | Python | false | false | 1,602 | py | from sage.all import *
G, X, Y, A, B, k2, k_2, k5 = var("G, X, Y, A, B, k2, k_2, k5")
G0 = A*(k5 + k_2)/(k2*k5)
X0 = A/k5
Y0 = B*k5/A
g = G + G0
x = X + X0
y = Y + Y0
gx_flow = k_2*x - k2*g
xy_flow = x*x*y - B*x
v_G = A + gx_flow
v_X = -gx_flow + xy_flow - k5 * x
v_Y = -xy_flow
t = var("t")
coefs_a = var(",".join(... | [
"lumi.pakkanen@gmail.com"
] | lumi.pakkanen@gmail.com |
461492da713d11f0820cfa38a68a4c1272591fb3 | b5fabc6c6de064690f8d4ee423001cf9365a3d9f | /flash/pointcloud/segmentation/open3d_ml/app.py | e9fbfd4c975b99b7eff4ee7347ef9cebb853b49d | [
"Apache-2.0"
] | permissive | dmarx/lightning-flash | 021dfd76bde6e30309f14feb5853020b0babe90d | 4cda031c1f9c8d8754fd36b5720d2a5a7d866765 | refs/heads/master | 2023-09-06T06:24:29.856354 | 2021-11-24T23:38:14 | 2021-11-24T23:38:14 | 422,352,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | dmarx.noreply@github.com |
bbc6ca99f40557885574f31d97132d1f809b6cad | 2bc83e48bfeab7a164bf5406f7c19c08a3b86782 | /src/step_2/search_with_tag_name_and_other_attribute.py | b64fc57c68ec5c0a0c85b35fdbd4b3b67114b23f | [
"MIT"
] | permissive | Rezwanul-Haque/web_scraping_with_bs4_selenium | a5683e6acab2ce9cd73dbf39f66a8a767c3b4873 | c445200aa2f63a73f1e413151d5de9c671b74443 | refs/heads/master | 2020-04-26T08:11:32.053055 | 2019-03-28T05:03:21 | 2019-03-28T05:03:21 | 173,415,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | from bs4 import BeautifulSoup
html_doc = """
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>The Dormouse's story</title>
</head>
<body>
<p class="title">
<b>The Dormouse's story</b>
</p>
<p class="story">Once upon a time t... | [
"rezwanul.cse@gmail.com"
] | rezwanul.cse@gmail.com |
dd2406b65e3b1a18b062bfb1b7a2892ae86324d2 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part004950.py | 05d936b5ea96b6a706d95d20168c983f2765c6f6 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
6271b235d95319d9ce49d00c4d0d361e640f8dba | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20191201/get_bastion_shareable_link.py | 08e9fbc511ce20444a5a465041764355e9f0164c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,881 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
cc8d1da40b1bd5ed0b6ca2cffc6b84f94ace159c | 8c658165889758b346038a308c863bc93a26d0da | /old_xlvin/gnn_executor/sparse_models.py | f0068b2788357709f3acafb2165840a12bb0f6da | [] | no_license | andreeadeac22/logml_xlvin | 4fd3279b38e19e2a7451ce123491b469b2203013 | 880e78059e43c1f4e3cac9497a9e73f2543e1896 | refs/heads/main | 2023-06-20T06:26:16.635690 | 2021-07-15T10:33:46 | 2021-07-15T10:33:46 | 385,325,958 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,513 | py | import torch
import torch.nn as nn
from torch_scatter import scatter_max, scatter_sum
from collections import OrderedDict
class SparseMessagePassing(nn.Module):
def __init__(self,
node_features,
edge_features,
hidden_dim,
message_function=None,
... | [
"andreeadeac22@gmail.com"
] | andreeadeac22@gmail.com |
a1f17c242e8eb47405eb4d4d4b496c641aa3dd71 | 0e8758b50a74cdbb5d97d988f2075112e07d4f00 | /src/zojax/cache/ram.py | 2215b5bfdb3632b382d213dbeb63fcd7a98328ba | [
"ZPL-2.1"
] | permissive | Zojax/zojax.cache | 513d7dc749603f3583acca4b994d80ea58ec6c25 | bd22dfef23a4da21ca9a1079fa32fd374a96a75e | refs/heads/master | 2020-04-06T04:31:32.346337 | 2014-02-05T10:26:44 | 2014-02-05T10:26:44 | 2,035,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
a180b6bf17edad37528b294c84184562b8d6bd48 | 000c243b4c30bd089867f73ca1bcfede1c3ef801 | /catkin_ws/build_isolated/fake_localization/atomic_configure/_setup_util.py | 81b1edb7c113e848eb445d30c5d048e1dcb576e4 | [] | no_license | dangkhoa1210/SLAM-AND-NAVIGATION-FOR-MOBILE-ROBOT-OUTDOOR-INDOOR- | b4d9bf2757d839d9766d512c2272731300320925 | 7273ea9e966353440d3993dcba112bc0a2262b98 | refs/heads/master | 2023-07-15T14:07:17.123812 | 2021-09-02T10:12:30 | 2021-09-02T10:12:30 | 402,361,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,724 | py | #!/usr/bin/python2
# -*- coding: utf-8 -*-
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistri... | [
"dangkhoaphamdang1210@gmail.com"
] | dangkhoaphamdang1210@gmail.com |
7870ca97acd70fe051a39ca5bbd5b94b3141d3cd | b5ef3b9da130f604f111bd469128b73e78d6ba9d | /bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/AccountingTransactionModule_getPaySheetMovementMirrorSectionItemList.py | d45aca40fb53d879887519ab6da346b91bd519c6 | [] | no_license | soediro/erp5 | 154bb2057c4cd12c14018c1ab2a09a78b2d2386a | 3d1a8811007a363b7a43df4b295b5e0965c2d125 | refs/heads/master | 2021-01-11T00:31:05.445267 | 2016-10-05T09:28:05 | 2016-10-07T02:59:00 | 70,526,968 | 1 | 0 | null | 2016-10-10T20:40:41 | 2016-10-10T20:40:40 | null | UTF-8 | Python | false | false | 775 | py | item_list = [('', '')]
portal = context.getPortalObject()
getobject = portal.portal_catalog.getobject
for x in portal.portal_simulation.getInventoryList(
portal_type=('Pay Sheet Cell',
'Pay Sheet Line'),
group_by_res... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
148a21faccd7c7c7aef62e51e326d413be656fc9 | b4eb7a3efff554ad76daeaf440721ab4011217af | /train_cifar.py | 0a69b749f25389f892e57b0fd6664af6b1b60e10 | [
"MIT"
] | permissive | Swall0w/dual-path-networks | 8c0b0012901735c565aa02007fd1c3fcb55a974d | dfd935b16a2fe7aa414ad280846a6cd2fd0fda12 | refs/heads/master | 2021-05-13T21:39:49.099834 | 2018-02-03T05:58:55 | 2018-02-03T05:58:55 | 116,468,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | from __future__ import print_function
import argparse
import chainer
import chainer.links as L
from chainer import training
from chainer.training import extensions
from chainer.datasets import get_cifar10
from chainer.datasets import get_cifar100
import models.VGG
import models.dpn
def main():
parser = argpars... | [
"technext.jpn@gmail.com"
] | technext.jpn@gmail.com |
6908a5eb239a6916514e4e5a69ee1b36c604ebba | 8dc64db8a0d7ddb8778c8eae2dac9075b9a90e2b | /env/Lib/site-packages/flask_simple_geoip.py | bf15adea0d557037690ccb3fe517dd69d69abb9b | [
"MIT"
] | permissive | theXtroyer1221/Cloud-buffer | c3992d1b543a1f11fde180f6f7d988d28b8f9684 | 37eabdd78c15172ea980b59d1aff65d8628cb845 | refs/heads/master | 2022-11-22T22:37:10.453923 | 2022-02-25T01:15:57 | 2022-02-25T01:15:57 | 240,901,269 | 1 | 1 | MIT | 2022-09-04T14:48:02 | 2020-02-16T14:00:32 | HTML | UTF-8 | Python | false | false | 2,198 | py | from os import environ
from simple_geoip import GeoIP
from flask import request
CONFIG_KEY = "GEOIPIFY_API_KEY"
import ipaddress
class SimpleGeoIP(object):
def __init__(self, app=None):
self.app = app
if app is not None:
self.init_app(app)
def init_app(self, app):
api_ke... | [
"jaddou2005@gmail.com"
] | jaddou2005@gmail.com |
a67d9defbdf633e3736721a0224c3c393d244d2a | dca0bd2e04dda3801d395c2a6ab2f9d95be79551 | /Python/SmallProject/improving_the_index.py | 00576b45bef129d99882d00405807d6d6ce25985 | [] | no_license | A-khateeb/Full-Stack-Development-Path | ab8c86abea2f983fb8e0046a65b99772416c754c | 5a5eaa198367cc95a6b5638e9740f4ad564dec23 | refs/heads/master | 2021-06-01T23:52:04.965494 | 2020-05-01T22:59:20 | 2020-05-01T22:59:20 | 89,286,943 | 2 | 0 | null | 2017-12-22T22:21:52 | 2017-04-24T21:04:07 | Shell | UTF-8 | Python | false | false | 3,096 | py | # The current index includes a url in the list of urls
# for a keyword multiple times if the keyword appears
# on that page more than once.
# It might be better to only include the same url
# once in the url list for a keyword, even if it appears
# many times.
# Modify add_to_index so that a given url is only
# inclu... | [
"khateebafeef@gmail.com"
] | khateebafeef@gmail.com |
0ab070d4a5102f5f8f2fdb478f8adf2b0e466c0b | 577f03954ec69ed82eaea32c62c8eba9ba6a01c1 | /py/testdir_multi_jvm/test_parse_rand_enum_compress.py | c00a19b68aa989f705e11bc29514805ca2950165 | [
"Apache-2.0"
] | permissive | ledell/h2o | 21032d784a1a4bb3fe8b67c9299f49c25da8146e | 34e271760b70fe6f384e106d84f18c7f0adb8210 | refs/heads/master | 2020-02-26T13:53:01.395087 | 2014-12-29T04:14:29 | 2014-12-29T04:14:29 | 24,823,632 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,850 | py | import unittest, random, sys, time, codecs
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_import as h2i
DEBUG = False
UTF8 = True
UTF8_MULTIBYTE = True
DO_WITH_INT = False
ENUMS_NUM = 20000
ENUMLIST = None
REPORT_LAST_ENUM_INDICES = False
DISABLE_ALL_NA = False
CAUSE_RANDOM_NA = True
CREATE_RESPO... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
c394a9cbdf35c8a5e98933cb392930c904b2e737 | 1446ba991034652370c9d64df08caa817735e1f6 | /office365/graph/teams/channel.py | fb5034e80178479d9b640e5bafa997aa01a376e3 | [
"MIT"
] | permissive | kakaruna/Office365-REST-Python-Client | 3ab949bc8d48a604e534c902883af62fd089a87d | 9f2f564972b988f1f41a3080c99684b4f6ce2164 | refs/heads/master | 2022-09-26T15:32:40.326036 | 2020-06-02T13:24:04 | 2020-06-02T13:24:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from office365.runtime.client_object import ClientObject
class Channel(ClientObject):
"""Teams are made up of channels, which are the conversations you have with your teammates"""
@property
def webUrl(self):
"""A hyperlink that will navigate to the channel in Microsoft Teams. This is the URL that... | [
"vvgrem@gmail.com"
] | vvgrem@gmail.com |
0de52008434f22cd1e333b2eb912ca49397e2ea1 | 5e2284bff015e6b03e4ea346572b29aaaf79c7c2 | /tests/correct_programs/aoc2020/test_day_8_handheld_halting.py | 7a0b9706e46bcedf4a4b8a1b0b45bbe6e810e889 | [
"MIT"
] | permissive | LaurenDebruyn/aocdbc | bbfd7d832f9761ba5b8fb527151157742b2e4890 | b857e8deff87373039636c12a170c0086b19f04c | refs/heads/main | 2023-06-11T23:02:09.825705 | 2021-07-05T09:26:23 | 2021-07-05T09:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import textwrap
import unittest
import icontract_hypothesis
from correct_programs import common
from correct_programs.aoc2020 import day_8_handheld_halting
class TestWithIcontractHypothesis(unittest.TestCase):
def test_functions(self) -> None:
for func in [
day_8_handheld_halting.parse,
... | [
"noreply@github.com"
] | LaurenDebruyn.noreply@github.com |
101e90cf679f5063e1980a9f9e9de772d5dc3146 | f915fd79447086ac70eac7de2aa7f12e1225b246 | /trimesh/interfaces/scad.py | f90038034166d7b2391819c575b994a47c8a9473 | [
"MIT"
] | permissive | drancom/trimesh | 55036fc37b20eebdd5c1bc5b0a1e47f81090cbcb | 9568557e00b501d242eb4de79f52c9a5e42a55af | refs/heads/master | 2021-01-18T02:25:46.446407 | 2016-03-20T19:54:58 | 2016-03-20T19:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | import numpy as np
from .generic import MeshScript
from distutils.spawn import find_executable
def interface_scad(meshes, script):
'''
A way to interface with openSCAD which is itself an interface
to the CGAL CSG bindings.
CGAL is very stable if difficult to install/use, so this function provides... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
331a5cef6090eb593ac8ec2b91fc7963b4abc6ab | 40f3a05d15269914ca2a0adccb66a9938c4e68fb | /examples/feasible_example.py | dadf6fa17e36835f94fc22ec5c4aa2fe142ce49e | [] | no_license | slivingston/magnumSTL | 1cc15123d17f86a96359eb9d9822850765e52217 | acb505874ddad2a2518669a163aeeff6d85ea63f | refs/heads/master | 2021-07-19T06:39:12.929399 | 2017-10-28T02:24:18 | 2017-10-28T02:24:18 | 108,613,125 | 3 | 0 | null | 2017-10-28T02:21:15 | 2017-10-28T02:21:15 | null | UTF-8 | Python | false | false | 900 | py | import stl
from sympy import Symbol
from magnum import game as G
from magnum import io
import numpy as np
## Setup the Model
model = G.Model(
dt=0.01,
H=2,
vars=G.Vars(
state=(Symbol("x"),),
input=(Symbol("u"),),
env=()
),
t=0,
dyn=G.Dynamics(
A=np.array([[0]... | [
"mvc@linux.com"
] | mvc@linux.com |
61b774c0fc27cb3364a70fc915e6c1269ebb8ec8 | 5e20a397bef40163792a185d392cbd6794fca648 | /common/models.py | 8dc24f6a2bdc0383f2048310bae469e5e5554a3a | [] | no_license | uralbash/django-hyango | aba92d2e0d558b439229d67dced980e5f19e0280 | 301ec384774e9ab585831a0df8847fac8c9a18cc | refs/heads/master | 2020-12-30T10:50:15.154925 | 2014-02-02T15:01:33 | 2014-02-02T15:01:33 | 16,456,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | # -*- coding: utf-8 -*-
from django.db import models
from mptt.models import TreeManager
class VisibleTreeManager(TreeManager):
"""
Менеджер моделей с наследованием от менеджера MPTT
"""
def get_query_set(self):
return super(VisibleTreeManager, self).get_query_set()\
.filter(visib... | [
"root@uralbash.ru"
] | root@uralbash.ru |
e66541a799c3600f25c6e3da839fb7744ba2058a | 7a8345e0a3b84614f9c8f31bb249f7e211cbd549 | /PycharmProjects/untitled/class/new.py | 83a8afd95ccd3a5278a4e7daa13f687ca849b118 | [] | no_license | oumingwang/ubuntupythoncode | 5ac5baf16acecec3cd518094a49f9766dc6a823b | 48dd76f848efedf13ba049c5d4ef9402d3285675 | refs/heads/master | 2020-07-04T03:42:16.080197 | 2016-11-19T15:21:49 | 2016-11-19T15:21:49 | 74,214,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | class MyClass(object):
def __new__(cls, *args, **kwargs):
print '__new__ called'
return object.__new__(cls)
def __init__(self):
print '__init__ called '
self.a = 1
instance = MyClass()
print instance.a
class MyOtherClass(MyClass):
def __init__(self):
pr... | [
"474978390@qq.com"
] | 474978390@qq.com |
b89ee8ae67353f7aba0cc5263abbd8c3a1ea7b6b | 49185bd5cf7e2f5190ce22b5189a09fe1ab6bb0f | /Proper/proper/examples/talbot_correct_demo.py | c4cf7d80eb8839cfe27c4007790db5db7e006ed6 | [
"MIT"
] | permissive | RupertDodkins/MEDIS | c3f55d8adb6a8c4120593ba6552c9dfe3784d4e2 | bdb1f00fb93506da2a1f251bc6780e70e97a16c5 | refs/heads/master | 2021-07-05T20:06:44.162517 | 2019-09-05T22:16:12 | 2019-09-05T22:16:12 | 160,850,558 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py | # Copyright 2016, 2017 California Institute of Technology
# Users must agree to abide by the restrictions listed in the
# file "LegalStuff.txt" in the PROPER library directory.
#
# PROPER developed at Jet Propulsion Laboratory/California Inst. Technology
# Original IDL version by John Krist
# Python transla... | [
"rupertdodkins@gmail.com"
] | rupertdodkins@gmail.com |
b1d7f66d5f56705e13cc4e005bef0389f0354b73 | 7f4fae8e0a9e29fc3abee784a2d7d0beb8252bd5 | /wulifang/_util/_assert_isinstance.py | c9453ea2fc556fa8c84e22a3203df7402c3e6723 | [] | no_license | WuLiFang/Nuke | a303646e927c9745f2eaf8dad4e5e1ccc09a30e7 | 49df48ded0985771147b1a40707b5454291eab19 | refs/heads/master | 2023-07-21T13:36:27.423572 | 2023-07-17T10:34:04 | 2023-07-17T10:34:04 | 100,696,180 | 16 | 5 | null | 2020-03-08T11:50:16 | 2017-08-18T09:28:26 | Python | UTF-8 | Python | false | false | 626 | py | # -*- coding=UTF-8 -*-
# pyright: ignore
from __future__ import absolute_import, division, print_function, unicode_literals
def assert_isinstance(object, class_or_tuple):
"""raise CastError when object is not isinstance of given class.
Args:
object: object to test
class_or_tuple: second arg ... | [
"NateScarlet@Gmail.com"
] | NateScarlet@Gmail.com |
85a8e5e85119ea08d515d31ed1ac81b6e56deaf2 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-960.py | 4ae2e1c16ba8627da2d8652cf7fa5c02b451c1c9 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,337 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
69c935a05e1c18dc5da6afcea69b5e0e22e168f4 | b92d3221a9301db2d53a4b085f3224cef52964b8 | /showmethesnps/test.py | a1a4a9e9bef300ca9a8bde308b37983c34e0dbea | [] | no_license | ypchan/misc-genomics-tools | 472ad4a7b01dc0aef5f6f18935a8e5ddbb8abf56 | 7b1e1b24dae88dc3c81386898a35f91b1fa03d34 | refs/heads/master | 2020-04-24T15:36:51.647274 | 2015-11-23T12:09:42 | 2015-11-23T12:09:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | import subprocess
import vcf
import random
import sys
from reportlab.platypus import BaseDocTemplate, SimpleDocTemplate, Paragraph, Spacer, Preformatted, Frame, PageTemplate, KeepTogether
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.rl_config import defaultPageSize
from reportlab.lib.pagesizes i... | [
"n.j.loman@bham.ac.uk"
] | n.j.loman@bham.ac.uk |
fe1de5211cea63949bb807de5ad40eaad40e2b47 | 7983657a020df84754276d8da9ea8a2c0b7fea6b | /Method_Inheritance_Example2.py | a9fa6f3ef8546289743076fd59fa5ee3e325185b | [] | no_license | gsudarshan1990/PythonClassesExample | fd65d72a68b44f3db2a64c73a0b5d6a17bd46676 | 56f155e2200cd0147d5c0767e8a63f891c7d4183 | refs/heads/master | 2022-11-08T00:23:00.077377 | 2020-06-29T08:37:02 | 2020-06-29T08:37:02 | 273,926,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | class Teacher:
def __init__(self,name,age,code):
self.name = name
self.age = age
self.code = code
def welcome_students(self):
print("Welcome students")
class PhysicsTeacher(Teacher):
def welcome(self):
Teacher.welcome_students(self)
print('This is physics cl... | [
"sudarshan2009@live.in"
] | sudarshan2009@live.in |
8f5296e6acb0a9b2c619b54ddecb8c2906c39f1d | 698cdadbcfd878f6a607337dd37ad7bf974f9709 | /sigpy/mri/precond_test.py | 0b182b661a17dd41f010e30ac41ccce8cccd40a6 | [
"BSD-3-Clause"
] | permissive | jtamir/sigpy | 654916486babc45fc769bf8be98da410a2ea46df | cd64f3f30819a1f36e3b7f7811b17815a97a2e08 | refs/heads/master | 2020-03-30T00:30:28.881622 | 2018-10-29T05:12:11 | 2018-10-29T05:12:11 | 150,527,263 | 0 | 0 | BSD-3-Clause | 2018-09-27T04:08:06 | 2018-09-27T04:08:05 | null | UTF-8 | Python | false | false | 5,287 | py | import unittest
import numpy as np
import sigpy as sp
import numpy.testing as npt
from sigpy.mri import linop, precond
if __name__ == '__main__':
unittest.main()
class TestPrecond(unittest.TestCase):
def test_kspace_precond_cart(self):
nc = 4
n = 10
shape = (nc, n)
mps = sp.... | [
"frankong@berkeley.edu"
] | frankong@berkeley.edu |
ee2e612b46243311c27550523c0fc7de8bee7c10 | 597b5658208f34987fc05584e7fa9c20867e08d2 | /data_/wsgi.py | ddfeba1fdda7bc73c31a8f076dc197e93461f9d4 | [] | no_license | OmiGitProjects/django_class_based_view_1 | 40170112ffdefe5a3ef4676d9062583bdc0c3072 | 2ac6d1c3cdf974841235a3deea33c0eb16a97df5 | refs/heads/master | 2022-12-21T21:12:59.760694 | 2020-09-28T07:12:01 | 2020-09-28T07:12:01 | 299,220,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for data_ project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"onkarnardekar2407@gmail.com"
] | onkarnardekar2407@gmail.com |
98cd99a96f2908d7120ef87419595277cc8cc979 | 3bdafea71f3412bb9116d9dbc8e78a14a6117702 | /python/hamming/hamming.py | 4277c03b087bc8c8acd15fe5733d9d8f8bec95b7 | [] | no_license | michaelrbock/exercism | 4b8490ae1851f1550c9118658eb62ff7e7ff59d5 | 505f944b696395041101f20a819ecb6ae063e9de | refs/heads/master | 2021-06-25T05:24:41.015749 | 2020-12-20T02:48:40 | 2020-12-20T02:48:40 | 147,027,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | def distance(strand_a, strand_b):
if len(strand_a) != len(strand_b):
raise ValueError('Strands must be the same length.')
# Idea:
# Go thru strings, comparing char at each index & adding to count of diffs.
# O(n)
hamming = 0
for i in range(len(strand_a)):
if strand_a[i] != strand_b[i]:
h... | [
"mykel.bock@gmail.com"
] | mykel.bock@gmail.com |
f6478091d2b51a48f58e324d92f8bbfd8e2a27ea | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210715183852.py | 197955a68be39a713fa29e9de362f93a1713412f | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,407 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
a38d4bdb7f3be934383753a3cb9e8ad5bb5c511c | 75374c8dce2d1ea64b91307b84f4676bf3294f91 | /venv/bin/dash-generate-components | 7769e63f10e22f61d4731d72a5d2bd0df010f83e | [] | no_license | emmaloutaylor/Dissertation-Predictive-Model-Django | 6f8425f99bda7dea93716d76aee3f826efa6002e | cd94a4bc3268ace2a4d4a918c91690f437a45078 | refs/heads/master | 2023-08-08T00:25:11.481090 | 2019-04-03T20:39:34 | 2019-04-03T22:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | #!/Users/Emma/Desktop/GoLiftWeightliftingClub/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from dash.development.component_generator import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"emmataylor223@gmail.com"
] | emmataylor223@gmail.com | |
4906e5dc912425b12badd64c3784e45676adee61 | 3e30e334d759a3606be1dce6dca1154568808d68 | /xlsxwriter/test/utility/test_xl_range.py | 65cd873dcadf64b88b9afdb73d16e52db2466fab | [
"BSD-2-Clause-Views"
] | permissive | cimarronm/XlsxWriter | 59668816c4faf5b2e5fc7b96a4ab98d5797891b7 | b440055bebfcc08339bc3e43cc2ce9819a142004 | refs/heads/master | 2021-01-18T10:07:21.729676 | 2014-08-12T23:17:43 | 2014-08-12T23:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,109 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...utility import xl_range
from ...utility import xl_range_abs
class TestUtility(unittest.TestCase):
"""
Test xl_ran... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
5813565bd0e51f5432aad74d968342ced3098a3f | 26e4bea46942b9afa5a00b9cde9a84f2cc58e3c9 | /wikidocs.net/dscriptor.py | ab2dac7cd991edf939b8978e72461e8927e8420f | [] | no_license | MeetLuck/works | 46da692138cb9741a913d84eff6822f107510dc7 | ab61175bb7e2ed5c5113bf150e0541ae18eb04c4 | refs/heads/master | 2020-04-12T05:40:25.143075 | 2017-08-21T17:01:06 | 2017-08-21T17:01:06 | 62,373,576 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | class Meter(object):
'''Descriptor for a meter.'''
def __init__(self, value=0.0):
self.value = float(value)
def __get__(self, instance, owner):
return self.value
def __set__(self, instance, value):
self.value = float(value)
class Foot(object):
'''Descriptor for a foot.'''
... | [
"withpig1994@hanmail.net"
] | withpig1994@hanmail.net |
50fadb9983f241b8f7abe275c8b3d961f71ec44e | d23a1e18aaa379e636bfef6df5544330ae246fdd | /tconfig_nmm.py | bbea716ace3a7dd325b6df60122a3f2229e04800 | [
"MIT"
] | permissive | richteague/csalt | 2d8999e630a54c3723ac16b0148a7d96b6e6404a | c44fa7a691cc8057abe9ab7a458fe69334cb5393 | refs/heads/main | 2023-07-01T14:44:17.805761 | 2021-08-11T20:17:22 | 2021-08-11T20:17:22 | 395,091,765 | 0 | 0 | MIT | 2021-08-11T19:07:23 | 2021-08-11T19:07:22 | null | UTF-8 | Python | false | false | 1,102 | py | """
This is the main control file, used to generate synthetic data or to model
real (or synthetic) datasets.
"""
import numpy as np
# naming
template_dir = 'obs_templates/'
simobs_dir = '/pool/asha0/casa-release-5.7.2-4.el7/data/alma/simmos/'
# spectral settings
dfreq0 = 122.0703125 * 1e3 # native channe... | [
"sandrews@cfa.harvard.edu"
] | sandrews@cfa.harvard.edu |
ef290bb1ea9c1591c883c5c84e577ab5318b4357 | 82aace1431e0af949b1294d979a16f8dc18f48c2 | /Python-Web-Framework-Softuni/templates_advanced/templates_advanced/settings.py | f303fd8078b08cb6e6f835ebc1dcb329ba65decc | [
"MIT"
] | permissive | borisboychev/SoftUni | 6778450417f889f8e89c709897b9e26c7129dbf6 | 22062312f08e29a1d85377a6d41ef74966d37e99 | refs/heads/master | 2023-03-27T13:11:17.378197 | 2021-03-26T09:14:25 | 2021-03-26T09:14:25 | 295,463,442 | 1 | 0 | null | 2020-10-12T12:54:13 | 2020-09-14T15:46:12 | Python | UTF-8 | Python | false | false | 3,406 | py | """
Django settings for templates_advanced project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
i... | [
"borisboychev007@Gmail.com"
] | borisboychev007@Gmail.com |
5db57f8a71168cc469ecc6b15fef5c0140e1a12c | dc6115d100c1f784f6a352580b2b28c46dedb66e | /models/psmc/make_psmc_from_twodof.py | 4632dd0ba30ba6bb2f9d5434ae2b719144e5520d | [
"BSD-3-Clause"
] | permissive | sot/xija | f0efbfec774fb661fb62956148e49003725e720d | 5430f1c4f182dda9f715b4c514f67d9f0501db90 | refs/heads/master | 2023-08-16T18:09:33.669660 | 2023-08-13T14:58:51 | 2023-08-13T14:58:51 | 1,733,443 | 7 | 3 | BSD-3-Clause | 2023-08-13T14:58:53 | 2011-05-11T14:10:52 | Python | UTF-8 | Python | false | false | 2,471 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import xija
import numpy as np
import asciitable
from Chandra.Time import DateTime
from Ska.Matplotlib import plot_cxctime
pars = dict(acis150 = 28.029,
acis50 = 54.192,
acis90 = 26.975,
c1 = 114.609,
... | [
"taldcroft@gmail.com"
] | taldcroft@gmail.com |
539d2377aa8278873892049835a4ee0836416dbf | 593caafc362112c4769fb40be8b6dffc3685a53c | /noladata/neighborhoodgroups/load.py | 709e7f090b411ca4f74c3a9baa0a9b7a7fe6fd3d | [] | no_license | 596acres/noladata | 095b69e9124258c44835c439257fd46593883b28 | 5ba607eb85b63db3b7eb1054601feeb2b0a4cd8c | refs/heads/master | 2021-01-22T14:01:55.099289 | 2015-09-05T20:43:41 | 2015-09-05T20:43:41 | 13,478,710 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | import os
import re
from fastkml import kml
import lxml
from django.contrib.gis import geos
from ..load import get_processed_data_file
from .models import NeighborhoodGroup
def _clean_description(description):
"""Try to wipe HTML from the given description."""
description = description.replace(' ', ' ... | [
"ebrelsford@gmail.com"
] | ebrelsford@gmail.com |
4287f92f32335249b79d13573e221e1d3464cbd7 | 57fa7d6820ca63d14f6568adb9185b8a8ea47589 | /reviseClassView/reviseApp/migrations/0002_auto_20200417_1627.py | 039da033464041a081c9407a1d5c3716a5b45488 | [] | no_license | kunjabijukchhe/Web-Development | 0dd0a5f415adb863f96c1552d90b6b7a282b6945 | e9bd5c5cc4b0f12f2f1714986c612494be9ab8ea | refs/heads/master | 2020-09-23T04:43:39.118376 | 2020-07-21T08:21:30 | 2020-07-21T08:21:30 | 225,405,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Generated by Django 3.0.5 on 2020-04-17 16:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reviseApp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='student',
... | [
"bijukchhekunja@gamil.com"
] | bijukchhekunja@gamil.com |
fa84fa2c26d7ffbe7fe287437c29f822bb29f124 | 3db261fac5a9e46eeda05240b8341048f0d96e11 | /scripts/haven | 0eaa7937014197722d2dfa5c4261383fb30349c6 | [
"Apache-2.0"
] | permissive | logichen/haven-ai | 684fac2415ba894ce20abbc906a940fefe68f868 | a12142c6711b818871fa7b4845c28013d6973718 | refs/heads/master | 2023-03-03T12:08:42.507761 | 2021-02-17T00:39:12 | 2021-02-17T00:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,645 | #!/usr/bin/env python
import haven_cli, sys, argparse, os
from haven import haven_utils as hu
from haven_jobs import toolkit_manager as ho
def form(string):
try:
if '.' in string:
return float(string)
else:
return int(string)
except ValueError:
return string
# print(sys.argv)
if __n... | [
"issam.laradji@gmail.com"
] | issam.laradji@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.