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
9f3aba0a3fae8aebb7bce9c64a27e7c4c956ea66
480d67d9a3d0dfacc3cf8103450dae1669a52d9e
/setup.py
42aa82870668e6346f68ebd84546f18e48abbd35
[]
no_license
alenzhao/probabilistic2020
3045261e8855b959e50357edd7533ec4af5b5294
f748fad88e50e5229eb765ac59cf731a734e22e2
refs/heads/master
2021-01-12T17:58:40.989527
2016-10-12T19:46:52
2016-10-12T19:46:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,029
py
#from distutils.core import setup from setuptools import setup from distutils.extension import Extension import sys # fix problems with pythons terrible import system import os file_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(file_dir, 'prob2020/cython')) SRC_DIR = 'prob2020' if '-...
[ "collintokheim@gmail.com" ]
collintokheim@gmail.com
99dc3ac93eb4286545895911c78ca1aa95a714b8
b7f8c050ca4ef10b1319afccb276e44cf18a2010
/setup.py
1507a4b936694833ed750ec7d982e98b8d7d4447
[ "Apache-2.0" ]
permissive
dyna-dot/pyglottolog
22496a2109cc2a775a67e78d8331883a0cfdac33
0f24f24a46d1f510c975337e4c0d8c23b357c8bd
refs/heads/master
2020-08-14T20:59:10.473487
2019-09-18T10:15:34
2019-09-18T10:15:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,002
py
from setuptools import setup, find_packages setup( name='pyglottolog', version='2.2.2.dev0', author='Robert Forkel', author_email='forkel@shh.mpg.de', description='python package for glottolog data curation', long_description=open('README.md').read(), long_description_content_type='text/ma...
[ "xrotwang@googlemail.com" ]
xrotwang@googlemail.com
8ad774489dd1562b14923368a5c82d5750bedd7f
9a2fd5e27d3f811cb18763ed388c2d56ae9907b6
/模块/模块位置.py
d578991757412884c3b1d2f838aa6ddc40aa2701
[]
no_license
wzc-ob/PycharmProjects
5297ce60bade883495e5dbdb614131d31c47682e
09f5ad6004dbdc83d456cabd78b769fde13d5357
refs/heads/master
2020-05-05T07:12:38.789400
2019-04-06T10:06:08
2019-04-06T10:06:08
179,817,189
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
# import sys # print(sys.path) # sys.path.append('D:\\PycharmProjects\\模块')#添加Apath为模块查找路径 import sys sys.path.append('D:\\PycharmProjects\\模块') import module_test module_test.m_t_pr() print('使用module_test模块中的变量:',module_test.name)
[ "43775612+wzc-ob@users.noreply.github.com" ]
43775612+wzc-ob@users.noreply.github.com
19b090d3d81b3707480c416cd85aa5daae56416a
a77fcccb2e46f06842daab98f1057209fe506b18
/BackJoonOnline/[BOJ]1543_문서검색.py
1db73e8e2654d5f19a821041568e58ef2a692622
[]
no_license
gan-ta/Algorithm
0c55344a6eb8038c9247485a50bc6324e4ef4c3e
80313278e6e8461891519fd556a65998939bc564
refs/heads/master
2023-05-27T17:03:28.236320
2021-06-14T18:48:35
2021-06-14T18:48:35
257,796,909
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
def calc_dp(n): max_value = 0 for i in range(0, n - len(sub_str) + 1): if max_value < dp[i]: max_value = dp[i] if full_str[n:].startswith(sub_str): dp[n] = max_value + 1 else: dp[n] = max_value if __name__ == '__main__': full_str = input() sub_str = input(...
[ "gilmat@naver.com" ]
gilmat@naver.com
f1874cffe8589d7d7cb20dd323029128249aa73e
71c247dc9bc9fe8c16daec09f337010043ca2943
/questions/migrations/0002_petmodel.py
7b116ee386fe280497d4e5214568220213cb4710
[]
no_license
elcolie/muy
c001c64499c7ecf4a18fd4da5c7263f880a4be2f
7e8fcc83c9d875806f18c2a57f1d8b6351e6be04
refs/heads/master
2020-07-06T03:10:09.449152
2019-12-06T12:24:04
2019-12-06T12:24:04
125,982,634
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
# Generated by Django 2.2.4 on 2019-10-16 07:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('questions', '0001_initial'), ] operations = [ migrations.CreateModel( name='PetModel', fields=[ ('id...
[ "sarit@elcolie.com" ]
sarit@elcolie.com
18839609dbc881470c5684a1cfaa7e08aa130f9f
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/ads/googleads/v5/googleads-py/google/ads/googleads/v5/common/types/text_label.py
0c14a9e62aed19713a0e6374abd7c8229def98dd
[ "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
1,724
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
bd39e9509d27e59130f875225feec6bf5ec17ecc
d190750d6cb34e9d86ae96724cf4b56a2f57a74a
/tests/r/test_thurstone.py
e349ecc070dc0a55dfa91d013b7380c34c3f5900
[ "Apache-2.0" ]
permissive
ROAD2018/observations
a119f61a48213d791de0620804adb8d21c2ad9fb
2c8b1ac31025938cb17762e540f2f592e302d5de
refs/heads/master
2021-09-24T04:28:02.725245
2018-09-16T23:06:30
2018-09-16T23:06:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.thurstone import thurstone def test_thurstone(): """Test module thurstone.py by downloading thurstone.csv and testing shape of extracted d...
[ "dustinviettran@gmail.com" ]
dustinviettran@gmail.com
f4014bf9c030093fdd9e44efc7935f2677b3b1ca
1796043fc26c958b8fc45d9c058e382473c4f3af
/Fabio02_A/f2_a_q22_duracao_jogo.py
dbb6ae9b4c8f2bf3916f579e31f17f48cda61bfd
[]
no_license
Lucakurotaki/ifpi-ads-algoritmos2020
a69adec27dbb10aceab1bc7038a0b56a760f99d1
34d5fedd5825a85404cf9340e42be618981679c1
refs/heads/master
2022-03-22T04:44:14.211359
2022-02-19T18:48:36
2022-02-19T18:48:36
246,585,463
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
def main(): h_inicio = int(input("Digite a hora do início do jogo: ")) m_inicio = int(input("Digite o minuto do início do jogo: ")) h_fim = int(input("Digite a hora do fim do jogo: ")) m_fim = int(input("Digite o minuto do fim do jogo: ")) print(duracao(h_inicio,m_inicio,h_fim,m_fim)) def ...
[ "noreply@github.com" ]
Lucakurotaki.noreply@github.com
20ddfbe36286b792f45620f1976827510cbe3b1c
74549d7c57b4746ac2a9c275aa12bfc577b0e8af
/prob9.py
a921e7c7ee4566f8d4b41372890da77be1ee213e
[]
no_license
abidkhan484/hackerrank_solution
af9dbf6ec1ead920dc18df233f40db0c867720b4
b0a98e4bdfa71a4671999f16ab313cc5c76a1b7a
refs/heads/master
2022-05-02T11:13:29.447127
2022-04-13T03:02:59
2022-04-13T03:02:59
99,207,401
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
def facto(x): if(x<=0): return 1 else: result=1 result = x * facto(x-1) return result user_input = int(input().strip()) print(facto(user_input))
[ "abidkhan484@gmail.com" ]
abidkhan484@gmail.com
1c4a50aa0a877c28978f7261fdd1fcd169ddfdb8
b913242e405a7e8860501df6fd8c41513a32e820
/custom_test.py
599db660a03cf659a909a8601364125523ca3403
[ "MIT" ]
permissive
qiuwei/nicegui
55d34507e3a5dc4e1e0565c5559f81610e5df4ca
aa0c781a80b8e05d8ada0a4cddd670a7ae13fcda
refs/heads/main
2023-09-04T18:29:48.801099
2021-11-25T13:26:36
2021-11-25T13:26:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
#!/usr/bin/env python3 from nicegui import ui with ui.card(): example = ui.custom_example(on_change=lambda number: label.set_text(f'Custom value: {number}')) ui.button('Add 100', on_click=lambda: example.add(100)) label = ui.label() ui.joystick(on_move=lambda e: print("move", e.data.vector), color='blue', size=...
[ "falko@zauberzeug.com" ]
falko@zauberzeug.com
6bf9e79c5fe871e199d6a500d86789841ddc85db
1d717c797e93b451f7da7c810a0fb4075b1050d5
/src/optimizer/adamw.py
11c4536636c11dfc4bdcbd94a8f3a606d9e9e307
[]
no_license
jessie0624/nlp-task
32338b08051a3ea192db2bf74c9c969bdff1f6ad
aaeeed86341356d9fd061664f6f7bccf2ac353d0
refs/heads/master
2023-01-24T12:06:13.323646
2020-12-10T08:38:23
2020-12-10T08:38:23
292,151,135
0
0
null
null
null
null
UTF-8
Python
false
false
4,386
py
#!/usr/bin/env python # encoding: utf-8 ''' @author: zessay @license: (C) Copyright Sogou. @contact: zessay@sogou-inc.com @file: adamw.py @time: 2019/12/4 17:49 @description: AdamW优化器函数 ''' import torch import math from torch.optim.optimizer import Optimizer class AdamW(Optimizer): """ Implements Adam algorithm wi...
[ "jessie_lijie@126.com" ]
jessie_lijie@126.com
4515b2a2c837a6c1b1154219c1123b96f284b6fc
0216ac17591c6b3d68cb454371ecd3a5564c7af4
/project_2/coupled-cluster/tests/test_matrix_elements.py
2851e2bb3321dbe085273adae5bdd776e8250ba0
[]
no_license
Schoyen/FYS4411
3746a155b4026dbf04009cb4e8960a23201351fe
abb580c3c8bb41a71657f559c27bc6e21e04bf17
refs/heads/master
2021-05-11T06:34:02.909787
2019-06-27T12:49:00
2019-06-27T12:49:00
117,991,933
1
0
null
2018-03-06T20:22:03
2018-01-18T14:16:08
Jupyter Notebook
UTF-8
Python
false
false
1,300
py
import pytest import sparse from coupled_cluster.matrix_elements.index_map import ( get_indices_nm, generate_index_map ) from coupled_cluster.matrix_elements.generate_matrices import ( get_coulomb_elements, get_antisymmetrized_elements, get_one_body_elements_spin ) def test_two_body_generation...
[ "oyvindschoyen@gmail.com" ]
oyvindschoyen@gmail.com
35cef8b4c3957b43e069b2a8df2b8e7caefbb133
e747bac825ed5807f72654030e108b8c8f96b902
/mysite/.history/blog/views_20200716005453.py
df0879463678c569afeeac8f8bd0ce8858bd4344
[]
no_license
AyatSoft/Tech_blog
4415ab7dfb04bc53bddaf16fd4772e8554680ae8
4728c44e0685c3b97038db5e0232e12f35446e23
refs/heads/master
2022-11-15T23:01:52.310968
2020-07-16T08:52:51
2020-07-16T08:52:51
280,103,472
0
0
null
null
null
null
UTF-8
Python
false
false
4,194
py
from .models import Post from django.shortcuts import render, HttpResponsePermanentRedirect from django.contrib.auth.mixins import LoginRequiredMixin from .forms import PostForm, CommentForm, MyRegistrationForm from django.views.generic import TemplateView, ListView, DetailView, CreateView, UpdateView, DeleteView from ...
[ "tanviredu2018@gmail.com" ]
tanviredu2018@gmail.com
b9ff9e359c42c6f56fe741cd5dca07ef4ea2980f
7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a
/.history/DEBER_20210904233156.py
f759b7aca2a0174716d1d345f4abf0c57a897202
[ "MIT" ]
permissive
Alopezm5/PROYECTO-PARTE-1
a1dce04009b24852c1c60e69bdf602ad3af0574b
bd7a8594edf08d41c6ca544cf6bac01ea4fcb684
refs/heads/main
2023-07-25T11:22:17.994770
2021-09-07T03:27:34
2021-09-07T03:27:34
403,670,226
0
0
null
null
null
null
UTF-8
Python
false
false
5,628
py
import os class Empresa(): def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""): self.nombre=nom self.ruc=ruc self.direccion=dire self.telefono=tele self.ciudad=ciud self.tipoEmpresa=tipEmpr def datosEmpresa(self):#3 self.nombre=input("Ingres...
[ "85761855+Alopezm5@users.noreply.github.com" ]
85761855+Alopezm5@users.noreply.github.com
d301a9b536d8c15fbe982044f5825fcb03af8bef
045cb1a5638c3575296f83471758dc09a8065725
/addons/account/tests/test_bank_statement_reconciliation.py
dbc8598d569ec2a6d0d936c8488e90da9fc8d820
[]
no_license
marionumza/saas
7236842b0db98d1a0d0c3c88df32d268509629cb
148dd95d991a348ebbaff9396759a7dd1fe6e101
refs/heads/main
2023-03-27T14:08:57.121601
2021-03-20T07:59:08
2021-03-20T07:59:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,056
py
from harpiya.addons.account.tests.account_test_classes import AccountingTestCase from harpiya.tests import tagged @tagged('post_install', '-at_install') class TestBankStatementReconciliation(AccountingTestCase): def setUp(self): super(TestBankStatementReconciliation, self).setUp() self.bs_model =...
[ "yasir@harpiya.com" ]
yasir@harpiya.com
640112112dfc01efccf5c8bd286908af5a23e0ef
1cb0cc435061b6a0156b37813343ae46b1f7346e
/1_learn_step/try_second/normal-Adamax-128.py
bec42472cced5d42858f0b3fb5265b09bacb02eb
[]
no_license
youthliuxi/keras
6370a9de11e152d8ba96e68e9ff02337203b7e66
60a367442f74313d0bd9af01f76068d56e23bec0
refs/heads/master
2020-04-30T19:54:16.628943
2019-08-21T09:47:13
2019-08-21T09:47:13
177,051,874
0
0
null
null
null
null
UTF-8
Python
false
false
1,664
py
# -*- coding:utf-8 -*- from keras import backend as K K.set_image_dim_ordering('th') import numpy as np np.random.seed(123) from keras.layers import * from keras.models import Sequential from keras.utils import np_utils from keras.datasets import mnist # (X_train, y_train), (X_test, y_test) = mnist.load_data() path = "...
[ "lx_einstein@sina.com" ]
lx_einstein@sina.com
e660605572d83e89f80cee2e458890e18cd8664f
3c8701e04900389adb40a46daedb5205d479016c
/liaoxuefeng/05-面像对象编程/02-访问限制.py
fbe708c3a95ee8d4a9d9763f74054445db652382
[]
no_license
huboa/xuexi
681300653b834eaf506f49987dcca83df48e8db7
91287721f188b5e24fbb4ccd63b60a80ed7b9426
refs/heads/master
2020-07-29T16:39:12.770272
2018-09-02T05:39:45
2018-09-02T05:39:45
73,660,825
1
0
null
null
null
null
UTF-8
Python
false
false
868
py
class Student(object): def __init__(self, name, score): self.__name = name ###name 加上横线就变成了private 私有变量,只有内部可以访问,外部不能访问 self.__score = score def print_score(self): print('%s: %s' % (self.__name, self.__score)) def get_name(self): ###提供了新的方法供外部读取 return self.__...
[ "wxcr11@gmail.com" ]
wxcr11@gmail.com
a9207f2677a6c9f2a7e3870aea79ca983eafc2a6
c22e1fe34211a62dd453946c226db06aab620368
/mms/urls.py
626838f8a01c482ca8afa51792694e9c72897a23
[]
no_license
Mehedi-Bin-Hafiz/Hostel-management-
a45402fe591bb44e44a5a140c9aa8b0aa9fa5592
01cc0c0cb64c9cce444da8e1d4b664fa97cbf8de
refs/heads/master
2022-03-04T02:16:56.893873
2019-10-05T11:58:49
2019-10-05T11:58:49
212,954,634
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
"""mms URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
[ "mehedibinhafiz@gmail.com" ]
mehedibinhafiz@gmail.com
652ee2326545c6f21803481114ec18c1a4f0726f
7bb4954f798d295055607e1563269c2aeb10aca9
/src/sample/tensorflow/list2/list2_1.py
ff895de22b34888156f367d15f226029f900a3e0
[ "MIT" ]
permissive
mryyomutga/PDIII
081aca58eb4159e3543e4e59cf1d8a4b8f84dbd1
2dc14e741349845bfe528c1dd06c434cf4414941
refs/heads/master
2020-03-08T17:56:51.845215
2019-02-15T01:16:53
2019-02-15T01:16:53
128,282,342
1
0
null
2018-12-22T15:11:29
2018-04-06T01:09:33
Python
UTF-8
Python
false
false
369
py
import tensorflow as tf # constantは定数定義のAPI # 単一の数字のテンソル t1 = tf.constant(1, name="Rank0") # 配列のテンソル t2 = tf.constant([1, 2], name="Rank1") # 多次元配列のテンソル t3 = tf.constant([[1, 2], [3, 4]], name="Rank2") with tf.Session() as sess: print(sess.run(t1)) print(sess.run(t2)) print(sess.run(t3))
[ "mryyomutga@gmail.com" ]
mryyomutga@gmail.com
e2128c22737b078fb1161b9444fac63737b41c3a
072077377f8c3181923ba84dc7b11e0a6d5afc2b
/vendors/okta/models/log_user_agent.py
c62996bcde78021e701321b423c904014c303a36
[]
no_license
rafaelfoster/sophoscentral_okta_integration
c2a3ac472df6f2ac03770689f3c5213794f1e48e
d6170b700164ece51a831c27aee55bd498b94001
refs/heads/master
2023-02-15T11:30:40.195653
2021-01-07T21:32:35
2021-01-07T21:32:35
325,614,550
0
0
null
null
null
null
UTF-8
Python
false
false
1,657
py
# flake8: noqa """ Copyright 2020 - Present Okta, Inc. 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 agr...
[ "rafaelgfoster@gmail.com" ]
rafaelgfoster@gmail.com
8e495ea7490a463b054e66a65292e96eb033f824
074acb4439a97b76ea300b2c07d6a2457b04849f
/zombie/compat.py
4cfeccdfa331e0ab2937545e840daf0fd2c336fe
[ "MIT" ]
permissive
graffic/python-zombie
6d79ffb643034c27e84c18b697849d45eb901a06
7bfea60b3946d6b20dcc4f70896ffcfd4c55ac1f
refs/heads/master
2021-01-20T21:57:11.314505
2013-08-04T15:12:01
2013-08-04T15:12:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
import sys # True if we are running on Python 3. PY3 = sys.version_info[0] == 3 if PY3: # pragma: nocover from io import BytesIO as StringIO from urllib.parse import urlparse else: # pragma: nocover from urlparse import urlparse # noqa from cStringIO import StringIO # noqa
[ "lists@ryanpetrello.com" ]
lists@ryanpetrello.com
445a0485ed0661d1bcc771ce4a5393dd09284f34
ef1f62cf4e53f856bf763ac0dee73f054518530d
/Week_08/231.Power_of_Two.py
3f3ec4663f705a473f8c713c5b03eefb4fc9e285
[]
no_license
ZHHJemotion/algorithm008-class01
3338af3619d8e1754a62af6a852f517b47298d95
5bb7d2b74110df0b5788b94c69582552d711563a
refs/heads/master
2022-11-12T09:26:24.941738
2020-06-30T15:29:20
2020-06-30T15:29:20
255,102,230
0
0
null
2020-04-12T14:39:17
2020-04-12T14:39:17
null
UTF-8
Python
false
false
564
py
# Given an integer, write a function to determine if it is a power of two. # # Example 1: # # # Input: 1 # Output: true # Explanation: 20 = 1 # # # Example 2: # # # Input: 16 # Output: true # Explanation: 24 = 16 # # Example 3: # # # Input: 218 # Output: false # Related Topics Math Bit Manipulation # leetcode sub...
[ "zhhjemotion@hotmail.com" ]
zhhjemotion@hotmail.com
f9d5fd9ac3b57c62d986603e4fc8602020d3b07a
77f07d6f08a3c401f528a4aa1fa8308e12598f44
/urls.py
18ac98ada7b430af52f4637aac387395a81b56aa
[]
no_license
sgammon/AppEngine-Toolkit-Skeleton
7de4b9184d501865e1aae35a7c8f7b2a398b859a
df7a97333fcea8915c038de67c6836e7756a3961
refs/heads/master
2016-09-11T06:59:11.412514
2012-01-03T06:01:05
2012-01-03T06:01:05
2,559,656
0
2
null
null
null
null
UTF-8
Python
false
false
949
py
# -*- coding: utf-8 -*- """ urls ~~~~ URL definitions. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from config import config from webapp2 import import_string def get_rules(): """Returns a list of URL rules for the application. The list can be defi...
[ "sgammon@bluestatedigital.com" ]
sgammon@bluestatedigital.com
20eb4f23b767b4473d56ae05a400d01d40f44b95
8e352bddc79e22604cdc23bf2e33d3d36dd30502
/linux_rest_api/filesystem/modes.py
ce03c36aced81c91a7b74f35753ef53c03f2fb36
[]
no_license
kissgyorgy/linux-rest-api
330950ba7e23932dd2cf3a1b026f83f587773110
3f46031f88e75c0a317f96cdb123fe5980877bcb
refs/heads/master
2023-02-16T12:47:54.960902
2018-09-20T05:05:14
2020-09-23T11:56:33
143,931,513
7
2
null
2023-02-02T11:47:12
2018-08-07T22:06:32
Python
UTF-8
Python
false
false
391
py
import stat def octal_mode(st_mode: int) -> str: return oct(stat.S_IMODE(st_mode))[2:] def symbolic_mode(st_mode: int) -> str: lm = long_mode(st_mode) user = lm[0:3].replace("-", "") group = lm[3:6].replace("-", "") other = lm[6:].replace("-", "") return f"u={user},g={group},o={other}" def...
[ "kissgyorgy@me.com" ]
kissgyorgy@me.com
5753358a6c496e08c5026fc69e200f9fea67ff63
06f7ffdae684ac3cc258c45c3daabce98243f64f
/vsts/vsts/git/v4_1/models/git_commit_changes.py
9d82a62347a190cdf6e2bb739ac857cde0364cd7
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
kenkuo/azure-devops-python-api
7dbfb35f1c9637c9db10207824dd535c4d6861e8
9ac38a97a06ee9e0ee56530de170154f6ed39c98
refs/heads/master
2020-04-03T17:47:29.526104
2018-10-25T17:46:09
2018-10-25T17:46:09
155,459,045
0
0
MIT
2018-10-30T21:32:43
2018-10-30T21:32:42
null
UTF-8
Python
false
false
1,142
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "tedchamb@microsoft.com" ]
tedchamb@microsoft.com
acb8c308b81cccc7646965c8b7c9207a7d2d4b91
7a7a094f77a178aba06fae2176919f926119c356
/data_structures_and_algorithms/adjacency_matrix.py
651829845865a5c336bc7f66a83ea2dd84abd223
[]
no_license
vlad-bezden/data_structures_and_algorithms
9fd0c67a16ff1893d830ae68f43cabb75f5d6a99
3ba9b904ed5955de24053cb5941a7c5a71600106
refs/heads/master
2021-07-03T02:12:37.207767
2020-09-12T12:58:13
2020-09-12T12:58:13
165,452,037
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
""" Converts graph presented as dict to matrix {'A': ['B', 'C'], 'B': ['A', 'C', 'E'], 'C': ['A', 'B', 'E', 'F'], 'E': ['B', 'C'], 'F': ['C']} [[0, 1, 1, 0, 0], [1, 0, 1, 1, 0], [1, 1, 0, 1, 1], [0, 1, 1, 0, 0], [0, 0, 1, 0, 0]] """ from pprint import pprint from typing import Dict, List Row = List[int] Mat...
[ "vlad.bezden@gmail.com" ]
vlad.bezden@gmail.com
19bab16feffcbe12224818535825db475ac0c04c
12a8cc08189cbaf84f4a3fd3a54595097a03ef3c
/app/main/forms.py
3a10472078aa8b8e9aab50947a6c0a1c07018340
[]
no_license
kepha-okari/watchlist-2
723acc9a616f10b1caab4c245763856b5c055c54
0cadf9f905d8788dc0999d4addd506d03949d33c
refs/heads/master
2022-03-27T21:34:43.102901
2017-12-16T08:58:45
2017-12-16T08:58:45
114,447,275
0
1
null
2020-01-28T18:48:26
2017-12-16T08:57:20
Python
UTF-8
Python
false
false
387
py
from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, SubmitField from wtforms.validators import Required class ReviewForm(FlaskForm): """Class to contain forms instances and methods""" title = StringField('Review title', validators=[Required()]) review = TextAreaField('Movie rev...
[ "kephaokari@gmail.com" ]
kephaokari@gmail.com
b94406750358432b3d6cb7ea425f4f5ff477df4d
45b64f620e474ac6d6b2c04fbad2730f67a62b8e
/Varsity-Final-Project-by-Django-master/.history/project/quiz/admin_20210424134332.py
ed0af28881c12976366a229f411022f9ab0e15c5
[]
no_license
ashimmitra/Final-Project
99de00b691960e25b1ad05c2c680015a439277e0
a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003
refs/heads/master
2023-04-11T06:12:35.123255
2021-04-26T15:41:52
2021-04-26T15:41:52
361,796,607
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
from django.contrib import admin from quiz.models import Quiz from quiz.models import ICT from quiz.models import Ban from quiz.models import Math from quiz.models import Science from quiz.models import GK class QuizAdmin(admin.ModelAdmin): list_display = ('question',) class ICTAdmin(admin.ModelAdmin): list_disp...
[ "34328617+ashimmitra@users.noreply.github.com" ]
34328617+ashimmitra@users.noreply.github.com
0ef419920e487fcf0cd41aee9cd790d9ebac5369
9073e836f6f66110af04110b0d0117ab224fede4
/eg_26.py
ef0f7c0bf58fe077236400e5018daf4a69b8d24b
[]
no_license
striveman1379/python100_examples
ec860d65aeff62b7e31b30798e7ca38db1297eec
c701b4444469a03efac3436f2a65199615f9e3cb
refs/heads/master
2020-04-18T00:57:15.114970
2018-11-06T09:39:01
2018-11-06T09:39:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
# -*- coding:utf-8 -*- # 利用递归方法求5! def num(n): result = 0 if n == 0: result = 1 else: result = n * num(n-1) return result print('5!= %d' % num(5))
[ "you@example.com" ]
you@example.com
61aca2f7a8eb22d3acbc9d35bbd3bcf742e3de7f
1b60c5833acfb2669b1b51dc2a3616b6017986b6
/question_answering/utils/utils.py
48dbbe97f9cd7fb282bcfbc7fdfbe2e354cea37a
[]
no_license
akoshel/QuestionAnswering
1a61a53c1b3fadde6ae6361a5d628b57625da39b
c33ac39945947df880f0d390fddfd0e0daf9dda8
refs/heads/main
2023-07-27T19:12:29.988477
2021-09-14T10:28:54
2021-09-14T10:28:54
385,997,390
0
0
null
null
null
null
UTF-8
Python
false
false
1,707
py
from loguru import logger import torch import torch.nn as nn from torch.utils.data import DataLoader def train_epoch(model: nn.Module, iterator: DataLoader, criterion, optimizer, device, writer): model.train() epoch_loss = 0 logger.info("train epoch started") for i, batch in enumerate(iterator): ...
[ "johndoe@example.com" ]
johndoe@example.com
a57086090d53b07ccbeee482c97989fabc0d8994
3523676133fe91bd69d87b60757af041cc8b603b
/offset/time.py
3705ffc2cf60ca09f6874880f35622a4fa76db9a
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
cautonwong/offset
247377c0756970b7f6fef37fc4d37c192510abc7
b8561635a4cb44a9f47d086163f4d0b58bb8fd74
refs/heads/master
2021-01-15T22:25:07.504578
2014-08-10T18:59:58
2014-08-10T18:59:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,407
py
# -*- coding: utf-8 - # # This file is part of offset. See the NOTICE for more information. from .core.util import nanotime, from_nanotime from .core import timer from .core.chan import makechan, select NANOSECOND = 1 MICROSECOND = 1000 * NANOSECOND MILLISECOND = 1000 * MICROSECOND SECOND = 1000 * MILLISECOND MINUTE...
[ "bchesneau@gmail.com" ]
bchesneau@gmail.com
f82d6a6bf94f54d656ce7cc54a735785cc4eb61f
305b5459c319688a7a7184c959fc335d464a0e0c
/test_project/test_app/tests/crawler_tests.py
1f9c29c6a6217e4e666c3c85ba5567b605e0efa2
[]
no_license
ericholscher/django-crawler
7595052a3a374c62c3fa6063e091aba4ab5ddb11
716f75a5a23b1befa28bbf2da41df4335eb0bf5c
refs/heads/master
2021-01-01T16:13:29.020267
2015-06-29T17:53:42
2015-06-29T17:53:42
902,366
18
11
null
2015-06-29T17:54:12
2010-09-10T21:27:11
Python
UTF-8
Python
false
false
2,643
py
""" This file is to test testmaker. It will run over the polls app and with the crawler and with test maker outputting things. Hopefully this will provide a sane way to test testmaker. """ from django.test.testcases import TestCase from crawler.base import Crawler import logging import os class CrawlerTests(TestCase):...
[ "eric@ericholscher.com" ]
eric@ericholscher.com
83557ba6614ffd8a233757c86d0f87a2b54d2e95
4eddf6a34715752dc652571b1ab274f51ceb5da0
/Bayes Classification/.history/Bayes_main_20210428125730.py
e07e1b20e37d7581a86711c9e9dc3c7244e9fcf3
[]
no_license
Suelt/Hust-SE-introduction-to-ML
649aba0e5b41363ceac03330ef02982982a0615d
a66785c3085da573f5748d13608eabf02e616321
refs/heads/master
2023-05-27T13:13:41.058545
2021-06-10T05:44:02
2021-06-10T05:44:02
375,582,438
1
0
null
null
null
null
UTF-8
Python
false
false
953
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn import model_selection credit = pd.read_csv("C:\\pyproject\\Bayes Classification\\transformed.csv") y = credit['credit_risk'] X = credit.loc[:,'status':'foreign_worker'] X_train, X_test, y_train, y_test = model_selection.train_test_sp...
[ "2552925383@qq.com" ]
2552925383@qq.com
93b28ca4463dc909e11f966c914b21a0d0b546f4
9a63e1b1f026dcde05d7ee1a00b836a6c34e5d43
/tests/appointment/test_metrics.py
08b1eda65fe4eb9f43f5f6c33de4203767d1c277
[ "BSD-3-Clause" ]
permissive
databill86/poli-sci-kit
201770634c05463fe4ef00b20a47de95d276b6cd
a3f308ccd914cf18105de89218e23fe95a0b1de7
refs/heads/main
2023-06-26T17:12:51.939600
2021-07-29T15:03:05
2021-07-29T15:03:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,831
py
"""Appointment metric tests""" from poli_sci_kit.appointment import metrics def test_ideal_share(share, total_shares, seats): assert ( round( metrics.ideal_share( share=share, total_shares=total_shares, total_alloc=seats ), 4, ) == 6.922...
[ "andrew.t.mcallister@gmail.com" ]
andrew.t.mcallister@gmail.com
ebf1aff1bbdf5a219a46dbeed92232bba9a0fad0
b57b0a14df5c6841f04cccb7b02ad04afbca18f8
/azure_iot_edge/tests/test_check.py
2b89dda24289d6d675f0c94de7469395f4b1e350
[ "AFL-3.0", "BSD-3-Clause-Modification", "LGPL-3.0-only", "Unlicense", "LGPL-2.1-only", "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause" ]
permissive
zeroc0d3/integrations-core
d9c99803c049668b7f9f9c796d338e343d3d46ee
634d567f3c38d32aabb3f4c16b50bcfa8a4ae0fb
refs/heads/master
2021-09-28T18:37:00.650406
2021-09-13T11:59:45
2021-09-13T11:59:45
199,758,958
0
0
BSD-3-Clause
2019-07-31T02:01:25
2019-07-31T02:01:24
null
UTF-8
Python
false
false
3,884
py
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import copy import pytest import requests from datadog_checks.azure_iot_edge import AzureIoTEdgeCheck from datadog_checks.base.stubs.aggregator import AggregatorStub from datadog_checks.base.stubs.datado...
[ "noreply@github.com" ]
zeroc0d3.noreply@github.com
64c9f98a0759a0df0b44851c167e3a1d53498e0c
885a722e3e5814ae4942ac5e8cf8d0091e734b4c
/BAEKJOON/11000~/11655_ROT13_python/CodingTest.py
ba92d5f2015a4ebedf5f1c18c4985c26f96f09ed
[]
no_license
ledpear/algorithm
52f3ea25842eee20b3bbd48e51825b9df4942e03
4922c6fe5ca0b98a90dee218b756006e7ba05d82
refs/heads/master
2023-06-09T17:47:45.674244
2023-06-03T13:47:11
2023-06-03T13:47:11
133,370,193
0
0
null
null
null
null
UTF-8
Python
false
false
559
py
from string import ascii_uppercase from string import ascii_lowercase def ROT13(c): list_upper = list(ascii_uppercase) list_lower = list(ascii_lowercase) if c in list_upper : i = list_upper.index(c) + 13 if i >= 26: i -= 26 return list_upper[i] if c in list_lower :...
[ "tjsrb75@gmail.com" ]
tjsrb75@gmail.com
1f713eff37f69e1eb1b584fea35ebe8ac07f8c25
184ba93339a2af7d375bf0e4c9b787ec2a0c3c34
/hack/picoctf.org/General Skills/PW Crack 4/level4.py
526e2d62ae8d52e77fa7241cf5d4e59494727f96
[]
no_license
pchaos/others
4436dc3ab134d5ed7868df22d4098c93078aae1f
ff1d7229b075a1bb10dbbae8fc5b2bfe8ea43987
refs/heads/master
2023-07-14T19:33:36.238932
2023-06-21T09:09:04
2023-06-21T09:09:04
107,945,559
7
2
null
null
null
null
UTF-8
Python
false
false
2,476
py
import hashlib ### THIS FUNCTION WILL NOT HELP YOU FIND THE FLAG --LT ######################## def str_xor(secret, key): # extend key to secret length new_key = key i = 0 while len(new_key) < len(secret): new_key = new_key + key[i] i = (i + 1) % len(key) return "".join( [ ...
[ "drifthua@gmail.com" ]
drifthua@gmail.com
0b7cd367e8fb6f11318b27a150bd97bc031d5441
2b15168bc67ee935446f51c46045f73346369c5a
/model/resnet50.py
1a54e0fc47e9fea59fb465a498f7c2c608b9c85f
[]
no_license
jason9075/tf2_arcface
6c37500c9c14170ea6731f6a0d79a19f088c32d3
6fabcdf9c3c9a12603456476fc8052de2830684d
refs/heads/master
2023-04-30T11:42:52.845549
2021-04-01T06:59:39
2021-04-01T06:59:39
311,858,885
0
0
null
null
null
null
UTF-8
Python
false
false
3,769
py
import tensorflow as tf def create_resnet50(input_node, embedding_size, layers=None, is_train=False): expansion = 1 net = tf.keras.layers.ZeroPadding2D(padding=1, name='first_padding')(input_node) net = tf.keras.layers.Conv2D(64, 3, stride...
[ "jason9075@gmail.com" ]
jason9075@gmail.com
9c86f4be2dd731af2ce6d5d7908eeaa50af4d197
ef1bf421aca35681574c03014e0c2b92da1e7dca
/test/test_modes/test_filewatcher.py
c9bb04ff63acd71e5503e30f6f2dda651615edff
[ "MIT" ]
permissive
pyQode/pyqode.core
74e67f038455ea8cde2bbc5bd628652c35aff6eb
0ffabebe4f0397d53429024f6f44db3fe97b0828
refs/heads/master
2020-04-12T06:36:33.483459
2020-01-18T14:16:08
2020-01-18T14:16:08
7,739,074
24
25
MIT
2020-01-18T14:16:10
2013-01-21T19:46:41
Python
UTF-8
Python
false
false
2,194
py
import os import pytest from pyqode.qt import QtCore from pyqode.qt import QtWidgets from pyqode.qt.QtTest import QTest import datetime from pyqode.core import modes from test.helpers import editor_open, preserve_settings file_path = os.path.join( os.getcwd(), 'test', 'test_modes', 'file_to_watch.txt') def setu...
[ "colin.duquesnoy@gmail.com" ]
colin.duquesnoy@gmail.com
a433723d25e214eee3dab87dbdbb2c3b88ba3cb4
79799898b833178f0af59d00e6b8d96d44d129d4
/backend/crm/apps/finances/models/transaction.py
0a9f9f458bdbdff8b559a40703e33f4c404c808f
[]
no_license
edzen12/min_crm
924edeede9250bc3fabfb45a3f0e01a3768f11b3
4b979b347b67a2507d3c26c91852b300cdd20975
refs/heads/master
2023-08-20T13:25:39.914325
2021-10-12T08:38:28
2021-10-12T08:38:28
416,251,371
0
0
null
null
null
null
UTF-8
Python
false
false
3,424
py
import datetime from django.contrib.auth import get_user_model from django.db import models from django.db.models import Q from django.utils import timezone from apps.branches.models import Branch from apps.courses.models import Course from apps.finances import choices from apps.finances.models.expense_tags import Ex...
[ "oichiev.edzen@gmail.com" ]
oichiev.edzen@gmail.com
b74670afae7e3e55ac606a2102310e4ab4eb2d37
37b3b5d71b121a667522604483254c237cb08d99
/Read-Search-Ask/Python/数据结构与算法/1-概念/3-列表和字典.py
59ff7056262039628143422e62b16ae1a670b2e6
[]
no_license
chanwanxiang/isMe
949a4b2c10f6c908e7fa529918445e9449aba259
9586c7a4d5045bd371bbe15991f42e7be68697c3
refs/heads/master
2023-07-28T16:34:12.035814
2021-09-10T04:00:10
2021-09-10T04:00:10
118,423,493
0
0
null
null
null
null
UTF-8
Python
false
false
3,375
py
# python内置类型性能分析 # timeit模块 # 可以用来测试一小段Python代码执行速度 # class timeit.Timer(stmt='pass',setup='pass',timer=<timer function>) # Timer是测试小段代码执行速度的类 # stmt参数是要测试的代码语句(statment) # setup参数是运行代码是需要的设置 # timer参数是一个定时器函数,和平台有关 # timeit.Timer.timeit(number=1000) # Timer类中测试语句执行速度的对象方法,number参数是测试代码时的测试次数...
[ "595366700@qq.com" ]
595366700@qq.com
2eeaf4e5a95badaf713fea9e6985db5ab31f02aa
0c1ec32d0f08872ef3ca54830e33a2fdbe585f78
/DeepForest/h5_generator.py
f78c6a5f120f7f8d40208fbc1c43f1c08a05bf0c
[]
no_license
jtpils/DeepForest
fa35bfab1e6bec13d843841aabd84f8fbc1af8bf
932a84d604c941a084efdc0f729ae7868baf0309
refs/heads/master
2020-05-31T21:28:14.461505
2019-05-20T17:03:17
2019-05-20T17:03:17
190,498,747
1
0
null
2019-06-06T02:14:42
2019-06-06T02:14:41
null
UTF-8
Python
false
false
7,350
py
""" On the fly generator. Crop out portions of a large image, and pass boxes and annotations. This follows the csv_generator template. Satifies the format in generator.py """ import pandas as pd import h5py from keras_retinanet.preprocessing.generator import Generator from keras_retinanet.utils.image import read_image...
[ "benweinstein2010@gmail.com" ]
benweinstein2010@gmail.com
27e534559619c7b1c3f7751def4cd7a078bbfea9
8567438779e6af0754620a25d379c348e4cd5a5d
/chrome/android/java/DEPS
8c434f90f8f274fea473dac3ed786c8c960e3387
[ "BSD-3-Clause" ]
permissive
thngkaiyuan/chromium
c389ac4b50ccba28ee077cbf6115c41b547955ae
dab56a4a71f87f64ecc0044e97b4a8f247787a68
refs/heads/master
2022-11-10T02:50:29.326119
2017-04-08T12:28:57
2017-04-08T12:28:57
84,073,924
0
1
BSD-3-Clause
2022-10-25T19:47:15
2017-03-06T13:04:15
null
UTF-8
Python
false
false
997
include_rules = [ "+components/autofill/android/java/src/org/chromium/components/autofill", "+components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler", "+components/bookmarks/common/android/java/src/org/chromium/components/bookmarks", "+components/dom_distiller/co...
[ "hedonist.ky@gmail.com" ]
hedonist.ky@gmail.com
75d852a9b0694fc982f022a5ed972bc5949ed8eb
3a29caaf19333f0623a8a6a26fbcf8ea14b9212f
/powerapp/core/apps.py
1500ed69d40b50a8603db7edb3e197d6c905651c
[]
no_license
WisdomWolf/powerapp
1f695e315fde0937ded0bd4194755bbc6ad6e1a1
b287e5b3c51f649580ae81a21aa68c350049b73b
refs/heads/master
2021-01-21T06:18:48.504225
2015-06-08T18:18:44
2015-06-08T18:18:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,564
py
# -*- coding: utf-8 -*- import re import datetime from collections import namedtuple from importlib import import_module from logging import getLogger from django import apps from django.conf import settings from django.conf.urls import url, include from django.utils.six import with_metaclass from powerapp.core.app_s...
[ "roman.imankulov@gmail.com" ]
roman.imankulov@gmail.com
30447e0dd7ecb10608749d5b46d4e1e7bd9019cc
f4335b5f682041a10f507401912a106fea7ad435
/scripts/retriever/build_db.py
1804c2b64fb8b07f4c1123b004f2ac55feed659a
[ "MIT" ]
permissive
Shuailong/RLQA
27c4779518233f96b77a7d5af999c2f1e085a0b0
014c340aea9d27494e65e8329da61ebccd65db61
refs/heads/master
2021-04-12T09:57:41.235391
2018-11-17T13:14:56
2018-11-17T13:14:56
126,332,609
5
2
null
null
null
null
UTF-8
Python
false
false
4,604
py
#!/usr/bin/env python # encoding: utf-8 # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # Adapt from facebookresearch/DrQA by Shuailong on Mar 22 2018. """A script to read in and store documents in a sqlite database.""" import argparse import sqlite3 import json import os import logging import impor...
[ "liangshuailong@gmail.com" ]
liangshuailong@gmail.com
8af6f695bb0775773af909b521f2f19323fcd8da
f847abc060c56cbb14be69fbf1ed671caeda23e8
/1-daemon.py
90bfc2b6a242c008ba14fbd83dd48a7a86f0213a
[ "MIT" ]
permissive
ko9ma7/smartstore-automate
b4ade5b6c3ce2ea3f0345287a82ccbb006b25d82
3a222a4e81c08658e1c9be156d2814a1df0c71d7
refs/heads/master
2021-04-15T02:09:59.390417
2019-11-19T09:01:40
2019-11-19T09:01:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,128
py
import argparse import logging import os import signal import sys import time class SmartStore: def __init__(self, log_file=None): logging.basicConfig(level=logging.INFO, format='%(message)s') self.logger = logging.getLogger('SmartStore') self.log_file = log_file if log_file: ...
[ "pincoins@gmail.com" ]
pincoins@gmail.com
7551c8ef2c19ceebb70042c614d045fa4fee0b7b
c91c5e6e33303bc57edceb955f184a5a43e3c030
/policy_repository/policy_repository/settings.py
3cb225113af4538daabbf5165385c3faed2a2095
[]
no_license
rahuezo/policy_repository
dd429bc8b2c6641d9812e5c5e87f913380c1d7e9
6fdcdee2992e9980c1c023b59cec8f2ab6f9adc9
refs/heads/master
2020-03-29T02:14:12.244711
2017-08-08T23:52:14
2017-08-08T23:52:14
94,568,527
0
0
null
null
null
null
UTF-8
Python
false
false
3,413
py
""" Django settings for policy_repository project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ ...
[ "rahuezo@ucdavis.edu" ]
rahuezo@ucdavis.edu
78937c75818ffbb9a0e5c7b4d5689c7b0401e83c
4af454bced0f99e4ed8269d71e97284f0ef13afb
/gameserver/packets/from_server/base.py
0c23afaf92d63ce56115425cb793fea9553609e4
[]
no_license
L2jBrasil/L2py
c46db78238b4caf272a2399f4e4910fc256b3cca
d1c2e7bddb54d222f9a3d04262c09ad70329a226
refs/heads/master
2022-11-19T01:39:02.019777
2020-07-24T20:07:15
2020-07-24T20:07:15
292,115,581
1
1
null
2020-09-01T21:53:54
2020-09-01T21:53:54
null
UTF-8
Python
false
false
385
py
from common.packet import add_length, Packet from gameserver.crypt.xor import xor_encrypt_game class GameServerPacket(Packet): @add_length @xor_encrypt_game # @add_padding() def encode(self, client): return self.body @classmethod def parse(cls, data, client): pass @class...
[ "yurzs@icloud.com" ]
yurzs@icloud.com
33acf2dbdce1cad3789c71937820056da49397a9
2279440aae28b1934c78797421948d1ee2a50422
/scraping/labs/lab8/tripadvisor/tripadvisor/spiders/comments.py
3eb7ddb0eb422ff455a1dbe08a730d189de5c91c
[]
no_license
yeladlouni/m2i
a024e3f740977ae27675d11d4d4d5dacecf59705
d245ffd76f5b4f2a7f8d37821b89dedbfcd81b69
refs/heads/master
2023-02-12T07:00:12.712614
2021-01-07T13:52:08
2021-01-07T13:52:08
308,609,873
1
1
null
null
null
null
UTF-8
Python
false
false
205
py
import scrapy class CommentsSpider(scrapy.Spider): name = 'comments' allowed_domains = ['tripadvisor.fr'] start_urls = ['http://tripadvisor.fr/'] def parse(self, response): pass
[ "=" ]
=
d2a906e840c696628c03915e80ab6534e291d253
a3eb732ead7e1d10a85a88e42dc639eb16a40265
/instagram_api/response/model/comment_translations.py
bbf2090de07a7f8e908de3c4cdb81372d7bf77c0
[ "MIT" ]
permissive
carsam2021/instagram_api
7654c0f485c22935cf478016e46e65acbeda9344
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
refs/heads/master
2023-03-16T14:06:27.515432
2020-10-17T04:39:19
2020-10-17T04:39:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
from ..mapper import PropertyMapper, ApiInterfaceBase from ..mapper.types import Timestamp, AnyType __all__ = ['CommentTranslations', 'CommentTranslationsInterface'] class CommentTranslationsInterface(ApiInterfaceBase): id: int translation: AnyType class CommentTranslations(PropertyMapper, CommentTranslati...
[ "root@proscript.ru" ]
root@proscript.ru
6fb35da6b38e5e8a685ad2692319d35dd249394e
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/atomic/NCName/Schema+Instance/NISTXML-SV-IV-atomic-NCName-enumeration-5-4.py
9e5ef92703e0c0d18b9c5344a4ce6a336bbc0dbb
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
568
py
from output.models.nist_data.atomic.ncname.schema_instance.nistschema_sv_iv_atomic_ncname_enumeration_5_xsd.nistschema_sv_iv_atomic_ncname_enumeration_5 import NistschemaSvIvAtomicNcnameEnumeration5 from output.models.nist_data.atomic.ncname.schema_instance.nistschema_sv_iv_atomic_ncname_enumeration_5_xsd.nistschema_sv...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
a7f074b9ed6884b55e0d38eb262a82430585a1cd
9ba68903665929f72d78409bdf9b8ff3733a6746
/scientific_expedition/task19_yaml_simple_dict_v2.py
4ef84703380890bb71ec4dcb6fdd4993de042f6a
[]
no_license
DorogAD/checkio
eed8ae9865dda45d2cb0a4201d51fb45e91aec8a
5a151f861746dbd2e838dea40a30c20dbdeaa399
refs/heads/main
2023-02-27T21:11:50.638125
2021-02-07T11:04:04
2021-02-07T11:04:04
315,864,698
0
0
null
null
null
null
UTF-8
Python
false
false
2,028
py
""" Have you ever heard of such markup language as YAML? It’s a friendly data serialization format. In fact it’s so friendly that both people and programs can read it quite well. You can play around with the standard by following this link. YAML is a text, and you need to convert it into an object. But I’m not asking ...
[ "sa_do@tut.by" ]
sa_do@tut.by
9ff9b342d2e32f0f5814c37a460c480096cf8637
2a54a1d9996778362421299a936bb0dadaace958
/units/adms/mysite/video/models/__init__.py
ef77e1a3c15686119e05351b1c721d4a259ea750
[]
no_license
icprog/zktime_wlm
6d0719b5210c4d3196b5958bccbb7e606785ece3
449c487ce4664dde734f8007a974ed883801d106
refs/heads/master
2021-03-21T10:20:54.157131
2018-11-24T04:10:42
2018-11-24T04:10:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from models import VideoPreviewPage, VideoLinkagePage verbose_name = _(u"视频") _menu_index = 5 def app_options(): from base.options import SYSPARAM, PERSONAL return ( #参数名称, 参数默认值,参数显示名称,解释 ('video_default_page', 'vide...
[ "657984027@qq.com" ]
657984027@qq.com
b0b371a2160af839a1375cb22c786957b9801837
6ab217b675b0d33dec9d8985efc2de314e3a7a28
/menus/models/menu/models.py
a34c7d7e3baa63430deb2a70792201dff695a8c7
[]
no_license
nujkram/dream_cream_pastries
3547928af859ebbb93f8d6ff64d02796d8c61a0c
c6a764f4f2c16191661ee6747dc0daa896eae5ec
refs/heads/master
2023-06-20T20:20:21.001373
2021-07-29T00:55:49
2021-07-29T00:55:49
375,721,861
0
0
null
null
null
null
UTF-8
Python
false
false
3,630
py
""" Dream Cream Pastries Project Menu 0.0.1 Menu models Menu Author: Mark """ import uuid as uuid from django.urls import reverse from django_extensions.db.fields import AutoSlugField from django.db.models import CharField from django.db.models import DateTimeField from django_extensions.db.fields import AutoSlugFiel...
[ "markjungersaniva@gmail.com" ]
markjungersaniva@gmail.com
4acd8ea6336e7bf02139a24dd366e5ebe87c3059
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03126/s809270834.py
61cb5d08d9d531977246b15447ef2eccf036d8fd
[]
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
211
py
N, M = map(int, input().split()) L = [] for i in range(N): L.append(list(map(int, input().split()))) S = [0]*M for j in range (N): for k in range(1, L[j][0]+1): S[L[j][k]-1] += 1 print(S.count(N))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
c3c871f5185f3314548f9bbb499779353b18d90e
90cea58e80309d2dff88f73f3a43ed5f943ff97d
/PalindromeMinInsertions_v1.py
004cc7d2f2f6edadef6d3f7965a8554044d71501
[]
no_license
SaiSujithReddy/CodePython
0b65c82b0e71dba2bbd4c1aefec4e6cd6fd42341
4c05b7909092009afffa4536fd284060d20e462d
refs/heads/master
2022-02-24T09:21:15.284745
2019-10-07T23:36:17
2019-10-07T23:36:17
106,611,251
0
0
null
null
null
null
UTF-8
Python
false
false
1,401
py
#http://isharemylearning.blogspot.com/2012/08/minimum-number-of-insertions-in-string.html ''' This problem can be two steps step 1:- find longest common subsequence step 2:- total string - common sub sequence = no of insertions ''' #Things learnt # creating a matrix and initializing with zeores import math def find_...
[ "sai.marapareddy@gmail.com" ]
sai.marapareddy@gmail.com
41f535ff6ce551b3a9e0a46df9f6165c674a3c77
28e62867cd8d067f86e1aced1f0bf877abf33e68
/naive_bayes/sohu_news_topic_classification_using_naive_bayes.py
dca4bf7f516a62c0a9224af2a2a8cf14f85d668a
[]
no_license
xiongfeihtp/scikit_learn
ffd462913deb8abc958311dbd0c13fe755468e51
e97bbbd26ff47325cc0791ce241e9f1844feba9e
refs/heads/master
2021-05-15T03:52:54.175922
2018-02-02T14:11:06
2018-02-02T14:11:06
119,989,736
0
0
null
null
null
null
UTF-8
Python
false
false
6,560
py
#! /usr/bin/env python #coding=utf-8 # Authors: Hanxiaoyang <hanxiaoyang.ml@gmail.com> # simple naive bayes classifier to classify sohu news topic # data can be downloaded in http://www.sogou.com/labs/dl/cs.html # 代码功能:简易朴素贝叶斯分类器,用于对搜狐新闻主题分类,数据可在http://www.sogou.com/labs/dl/cs.html下载(精简版) # 详细说明参见博客http://blog.csdn.n...
[ "386344277@qq.com" ]
386344277@qq.com
11b0b57780fc2bb8391dfd861237d5444e9240ea
d05a59feee839a4af352b7ed2fd6cf10a288a3cb
/xlsxwriter/test/comparison/test_chart_display_units04.py
fc0490c067530d89aca6ff3e32dc9bee73d48d33
[ "BSD-2-Clause-Views" ]
permissive
elessarelfstone/XlsxWriter
0d958afd593643f990373bd4d8a32bafc0966534
bb7b7881c7a93c89d6eaac25f12dda08d58d3046
refs/heads/master
2020-09-24T06:17:20.840848
2019-11-24T23:43:01
2019-11-24T23:43:01
225,685,272
1
0
NOASSERTION
2019-12-03T18:09:06
2019-12-03T18:09:05
null
UTF-8
Python
false
false
1,160
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
2987363abf0a175a6d50f3ddbd9757b36709b381
bec8f235b1392542560166dd02c2f0d88c949a24
/autobahn/autobahn/wamp/uri.py
dacbea3980fd0a55929f7c1838274d21ccae7b8a
[ "Apache-2.0" ]
permissive
gourneau/AutobahnPython
f740f69b9ecbc305a97a5412ba3bb136a4bdec69
5193e799179c2bfc3b3f8dda86ccba69646c7ee3
refs/heads/master
2021-01-15T22:02:32.459491
2014-07-02T13:34:57
2014-07-02T13:34:57
21,437,288
1
0
null
null
null
null
UTF-8
Python
false
false
5,339
py
############################################################################### ## ## Copyright (C) 2013-2014 Tavendo GmbH ## ## 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 ## ## h...
[ "tobias.oberstein@tavendo.de" ]
tobias.oberstein@tavendo.de
ba00017e1750e5d0c550591117dc58935839be12
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/buildtools/third_party/libc++/trunk/test/libcxx/test/format.py
19c9fc742a497f950919188035ea06e067ed5417
[ "BSD-3-Clause", "MIT", "NCSA" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
Python
false
false
7,344
py
import errno import os import time import lit.Test # pylint: disable=import-error import lit.TestRunner # pylint: disable=import-error import lit.util # pylint: disable=import-error from libcxx.test.executor import LocalExecutor as LocalExecutor import libcxx.util class LibcxxTestFormat(object): ...
[ "enrico.weigelt@gr13.net" ]
enrico.weigelt@gr13.net
c320a6011e9be62d78fc5e08b3e9fbb8943f2cab
b1efb356e55df6a5f1243d803d51b8e9bb6e6938
/nextgisweb/resmeta/__init__.py
e121253161e1db9ff2d05f3c3b4cccaaf10b7ef7
[]
no_license
neroks/nextgisweb
6fa6621824db05e51316bf993125f79773c97932
59ed0e9637a3df0e2388160d9871b435beeaa466
refs/heads/2
2021-01-15T15:05:02.615869
2015-10-05T10:39:34
2015-10-05T10:39:34
43,687,459
0
0
null
2015-10-05T13:58:10
2015-10-05T13:58:10
null
UTF-8
Python
false
false
425
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from ..component import Component, require from .util import COMP_ID from .model import Base @Component.registry.register class ResourceMetadataComponent(Component): identity = COMP_ID metadata = Base.metadata @require('resource') def ...
[ "me@dezhin.net" ]
me@dezhin.net
44edd73cb45272446b82301c8236ea055efbeea5
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/ghostnet_quant/src/config.py
c5428ae53bc66a09547fb9cba9eba55da4895044
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
1,599
py
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
[ "chenhaozhe1@huawei.com" ]
chenhaozhe1@huawei.com
c3db3977e70bcce001aa8e9e81b214149ce62687
f8104b29a8d0dbeb407060e494a206ca69335aeb
/tools/datasets/voc/voc_statistic.py
d3c9079646b9535e532a50f45ced63ee3ca400ec
[]
no_license
Sebastixian/wwtool
c19f665f96e8b942e94af47db590f5bb28072f06
2f462a3d028b766234d62a3ef706a0f08f10680a
refs/heads/master
2023-06-01T04:21:22.066639
2021-06-25T07:40:13
2021-06-25T07:40:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,508
py
import wwtool coco_small_class = { 1: 'airplane', 2: 'bridge', 3: 'storage-tank', 4: 'ship', 5: 'swimming-pool', 6: 'vehicle', 7: 'person', 8: 'wind-...
[ "jwwangchn@outlook.com" ]
jwwangchn@outlook.com
aaf2b699724a92ae1623e014c4f605c3897e122f
5afb3dff6e99d9bf18208c83afb7a7d65f26bbd7
/licode/st214.py
ccc8e64a5658d6d4189c7d1262b890e6fefb9db5
[]
no_license
yanfriend/python-practice
4b565e58db9cdc7596f9135a8f7b9bae4be18de3
236a74c0d1d84f730fa5d10146cc201a4c49567d
refs/heads/master
2018-12-09T00:34:13.747045
2018-12-03T04:53:17
2018-12-03T04:53:17
62,094,023
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
""" Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by performing this transformation. For example: Given "aacecaaa", return "a aacecaaa". Given "abcd", return "dcb abcd". """ class Solution(object): def sh...
[ "ybai@pinterest.com" ]
ybai@pinterest.com
165978e3b27287415483b3ffd702ec1802c32d0c
28691ec55ebce9ec7045d12ea9675932ce12d671
/py2rhino-project/branches/sandbox2/py2rhino/_make/data/parser_out/mesh/add_mesh.py
a3505018edc9af7061b1bf528d128f8c7977162c
[]
no_license
ianclarksmith/design-automation
1e71315193effc0c18b4a8b41300bda6f41a3f09
e27cc028fe582395f4a62f06697137867bb0fc33
refs/heads/master
2020-04-22T22:28:39.385395
2009-10-26T02:48:37
2009-10-26T02:48:37
37,266,915
0
0
null
null
null
null
UTF-8
Python
false
false
3,649
py
add_mesh = { "input_folder_name": "Mesh_Methods", "input_file_name": "AddMesh", "output_package_name": "mesh", "output_module_name": "add_mesh", "doc_html": """ Adds a mesh object to the document. """, "syntax_html": { 0: ("arrVertices", "arrFaceVertices", "arrVe...
[ "patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb" ]
patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb
18b97799ee7cf38b86f53f0b5afee75638cfc52f
ac2142d192bde034ae3c6d7e07045c39d9a34aa3
/面试题/字典按value排序.py
b3ea5016619987b3864c95af55647a3b65e58e5e
[]
no_license
budaLi/-500-
ee33a93a6c7f7d36e30a29dd1e12634034712d12
69c42389717f003198f652035bfc922eac8a6fef
refs/heads/master
2022-11-20T08:42:24.255264
2020-07-22T07:41:52
2020-07-22T07:41:52
281,352,944
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
# @Time : 2020/7/22 15:14 # @Author : Libuda # @FileName: 字典按value排序.py # @Software: PyCharm d = {'a': 24, 'g': 52, 'i': 12, 'k': 33} def sort(dict): # 会将字典变为元祖的形式 print(dict.items()) # revers代表是否逆序 dict = sorted(dict.items(),key=lambda x:x[1],reverse=True) return dict if __name__ == '__main...
[ "1364826576@qq.com" ]
1364826576@qq.com
ee03770234e0e1877af6b6d638fd9b1c0e787c32
e3a7622a4d2e16b1683c183568341b39c0de88b4
/PycharmProjects/PythonCodes/07-爬虫/01-urllib库基础用法/10-贴吧.py
360f5374537cd289b22d10d8cba9973508583f52
[]
no_license
TriggerDark/StudyCodes
937a8f6988cb475d275ff429cd32df823e457296
6f2f339d47dbae10d55d6b6da1d7e107f7dec85f
refs/heads/master
2022-02-09T13:52:10.895963
2019-03-30T13:38:55
2019-03-30T13:38:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,569
py
from urllib import parse from urllib.request import Request, urlopen def loadPage(url, filename): """ 作用:根据url发送请求,获取服务器响应文件 url: 需要爬取的url地址 filename: 处理的文件名 """ ua_headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3...
[ "2413044193@qq.com" ]
2413044193@qq.com
5b65f2b9d93b31d704c150d79dd67ce87b6c23f7
47366be5cbee9d7e086291c20f97f10ab2bf74fe
/code/journal_gemello_all_homes_leave_one_out_cluster.py
ebdf022a4357b68316c0ca6f4ab5b8ca31c44d8f
[]
no_license
nipunbatra/journal
3d44eed05c95970606649d17402da54fc0a415ff
94a8b88589e8f60e6f0314f8c5a374f22336b3e9
refs/heads/master
2021-01-09T20:40:45.844121
2016-07-27T15:16:29
2016-07-27T15:16:29
62,874,718
0
0
null
null
null
null
UTF-8
Python
false
false
7,837
py
""" This code generates the prediction for a region when we use homes containing all data """ # NEED TO RUN ON CLUSTER import sys CLUSTER = True if CLUSTER: sys.path.insert(0, '/if6/nb2cz/anaconda/lib/python2.7/site-packages') import numpy as np import pandas as pd import pickle from collections import Ordered...
[ "nipunb@iiitd.ac.in" ]
nipunb@iiitd.ac.in
2c70798e16ac553da37c52d63676ab39931ffc65
ee6acbd5fcd0fcd16230e96a4a539de41a02c97e
/operators/prometheus/python/pulumi_pulumi_kubernetes_crds_operators_prometheus/monitoring/v1/__init__.py
c08014ce868b9d012e89a5e5a10d7f8c359ea029
[ "Apache-2.0" ]
permissive
isabella232/pulumi-kubernetes-crds
777e78137aaf6525a44b61a02dccf91bf0d87a14
372c4c0182f6b899af82d6edaad521aa14f22150
refs/heads/master
2023-03-15T04:29:16.039753
2020-12-30T19:35:54
2020-12-30T19:35:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .Alertmanager import * from .PodMonitor import * from .Prometheus import * from .PrometheusRule import * from .Servi...
[ "albertzhong0@gmail.com" ]
albertzhong0@gmail.com
520ff5a148a237cbc9d139f883a89e8e8f2cc1e3
d53d639db5a7a71a904d811dc271e19f294baa9d
/Travel/travelsapp/migrations/0023_auto_20200621_1809.py
aa56e73621cff30fb92bfc4e61f6ae612c8b6535
[]
no_license
sdrsnadkry/django
e8a0f6d91094ae27ef3d5aef0c0f667b0b917ce7
83126dec62da6a715fab8654852f46fdeedc30f2
refs/heads/master
2022-11-27T04:38:25.891650
2020-08-07T07:46:42
2020-08-07T07:46:42
285,762,500
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
# Generated by Django 3.0.7 on 2020-06-21 12:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('travelsapp', '0022_bookings'), ] operations = [ migrations.AlterField( model_name='bookings', name='date', ...
[ "sdadkry95@gmail.com" ]
sdadkry95@gmail.com
5977f8f99167e8f39b9114736637b2fe01fddf7f
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_bailed.py
781bd6fa9e0ab38271aa62f4d74a985f9d2158ed
[ "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
216
py
#calss header class _BAILED(): def __init__(self,): self.name = "BAILED" self.definitions = bail self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['bail']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
00865f4edca156b1bb9f7af208f6e517657f0266
b2fb13181e5fe114c5b128f30b3946024347321d
/Day12/Day12.py
7198292796be9bd1b8f45bd64509cd79c1d6188d
[]
no_license
darsovit/AdventOfCode2017
43aefaefcad866fde38ad960106d20ab1d8d28bf
8db815ea2ea618e25dd5946988d88c34563f0ace
refs/heads/master
2021-09-01T08:21:41.369752
2017-12-26T01:12:46
2017-12-26T01:17:42
113,674,181
0
0
null
null
null
null
UTF-8
Python
false
false
1,456
py
#!python def parse_line( line, state ): first=line.split(' <-> ') state['connections'][int(first[0])]=list(map(lambda x: int(x), first[1].split(', '))) print(state['connections'][int(first[0])]) def build_group( state, base ): state['indirect'][base]=set( [ base ] ) startlen=0 endlen=1 new_ent...
[ "darsovit@gmail.com" ]
darsovit@gmail.com
fb0c35c791681a9e193d1bfbbc7378ee78426409
182c651a9b00b9b4d80e6d51ae574cb793958cd6
/quick/tutorials/extending/chapter3-bindings/chapter3-bindings.py
aa415cc1f6041c84a4719a593559bf809dbe9dc5
[]
no_license
eudu/pyqt-examples
c61a7108e1fbfcf2cd918a0f99e9a5a90a3f305c
8e533b7b3c5e9bbe0617ef1ecb9b169dd216c181
refs/heads/master
2020-03-16T01:23:19.573347
2018-05-06T20:20:57
2018-05-06T20:20:57
132,438,940
1
0
null
null
null
null
UTF-8
Python
false
false
3,702
py
#!/usr/bin/python3 ############################################################################# ## ## Copyright (C) 2018 Riverbank Computing Limited. ## Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ## ## This file is part of the examples of PyQt. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file und...
[ "dukalow@gmail.com" ]
dukalow@gmail.com
d16aa6923b579e95b3a303185a0f8ef9a768ae8a
261eba086816dbb3db4836c9b1e5869ccf0f8bae
/牛顿迭代法求解非线性方程/main.py
aa97a1a66a5a9ba51a601b6eb2e5e2b6e71c7523
[]
no_license
budaLi/jianzi
e316bdfb25587d14d38f1bea98772bce5ac69198
bca098de0f06ae1c78afc3203dfb0eea6a412dee
refs/heads/master
2023-05-02T19:33:25.752799
2021-05-25T08:03:24
2021-05-25T08:03:24
271,513,687
1
0
null
null
null
null
UTF-8
Python
false
false
1,483
py
# coding=utf-8 # Copyright (c) 2020 ichinae.com, Inc. All Rights Reserved """ Module Summary Here. Authors: lijinjun1351@ichinae.com """ from numpy import * import numpy as np def Fun(x,num): #方程组在这里,两个变量分别是x的两个分量,num是未知数个数,这里是2,f是2个方程组 i = num f = np.zeros((i),dtype=float) f[0] = x...
[ "1364826576@qq.com" ]
1364826576@qq.com
2fdbf5995d22d446b67b4557c6fa3d84c77f7861
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-AVFoundation/PyObjCTest/test_avmusicevents.py
c80ab744d2f180dcafae94f772ee789b8b375805
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
4,577
py
import AVFoundation from PyObjCTools.TestSupport import TestCase, min_os_level class TestAVMusicEvents(TestCase): def test_constants(self): self.assertIsEnumType(AVFoundation.AVMIDIControlChangeMessageType) self.assertEqual(AVFoundation.AVMIDIControlChangeMessageTypeBankSelect, 0) self.as...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
b5ed87c30787e2e63e8deee43faf70ddc16b3e07
944401a6292baa2d23b9738898e0b0cb199d0795
/color_quantization/median-cut/img_quality_assessment(IQA)/ssim/lab_cs/lab_ssim.py
7d495b83f9e669fec5604bdd7a7b921d4422055b
[]
no_license
sunnyweilai/Finding-Theme-Color-Palettes
cc84c93ce58abdd1802431c41bd59181d7a4f75b
4c38b112f5c40b43d6ec126e415b609c7fdc1f39
refs/heads/master
2022-12-21T09:41:31.187411
2019-04-30T14:50:17
2019-04-30T14:50:17
184,273,925
1
0
null
2022-12-07T03:46:55
2019-04-30T14:09:52
Python
UTF-8
Python
false
false
1,355
py
""" image quality assessment (IQA) of the quantized images and the original image in L*a*b* color space ----- method: SSIM ----- version 1.0 (skimage library) ----- http://scikit-image.org/docs/dev/auto_examples/transform/plot_ssim.html """ import numpy as np import csv from PIL import Image import skimage from skim...
[ "wnn2260@gmail.com" ]
wnn2260@gmail.com
a285c1fb0cced66886bb31bfdeadbcf093397cb3
64a80df5e23b195eaba7b15ce207743e2018b16c
/Downloads/adafruit-circuitpython-bundle-py-20201107/lib/adafruit_ble_adafruit/tone_service.py
9b2c3972b4b73af73af5cfe20532239dce11384f
[]
no_license
aferlazzo/messageBoard
8fb69aad3cd7816d4ed80da92eac8aa2e25572f5
f9dd4dcc8663c9c658ec76b2060780e0da87533d
refs/heads/main
2023-01-27T20:02:52.628508
2020-12-07T00:37:17
2020-12-07T00:37:17
318,548,075
0
0
null
null
null
null
UTF-8
Python
false
false
3,538
py
# The MIT License (MIT) # # Copyright (c) 2020 Dan Halbert for Adafruit Industries LLC # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitatio...
[ "aferlazzo@gmail.com" ]
aferlazzo@gmail.com
0cbb3fd6548df0a2c7dbfccdbd9d8f5aa52fcbf4
74eee5bdaae10b2cfbd936e3c10cc9c91b9220e0
/Chapter 10 - Binary Trees/10.5_sum_of_binary_paths.py
b2597339593a8a6654df8b23d61e02bd1bb35045
[]
no_license
kishan/Elements-of-Porgramming-Interviews-Python-Solutions
abc02af36102e059f7213610ce948a000879e9ec
32fe89b4927da8e026ff27a6b9894f639a8a2de9
refs/heads/master
2020-12-25T06:52:42.729405
2016-08-26T16:08:40
2016-08-26T16:08:40
62,021,172
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
""" Consider a binary tree in which each node contains a binary digit Design an alogirthm to compute the sum of the binary numbers represented by the root-to-leaf paths """ def sum_to_root(node, partial_sum=0): if node is None: return 0 partial_sum = partial_sum*2 + node.data if (node.left is None) and (node.r...
[ "kspatel2018@gmail.com" ]
kspatel2018@gmail.com
af588fafe20c072ff22dc603dd5b083235819834
9f835d53232e954805b7ed1d93889e409209b36b
/2920.py
3fe5d6d26574cdf3a6e64e3a56708f6a5b2b8766
[]
no_license
dmswl0311/Baekjoon
7c8a862fceff086b3d7740eef23b80164e1d5aeb
22040aff6b64d5081e86d91b0d118d1a718a4316
refs/heads/master
2023-04-29T13:48:51.448245
2021-05-26T14:35:32
2021-05-26T14:35:32
323,482,711
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
num_list = list(map(int, input().split())) ori_list = [1, 2, 3, 4, 5, 6, 7, 8] if num_list == ori_list: print("ascending") elif num_list == sorted(ori_list, reverse=True): print("descending") else: print("mixed")
[ "dmswl_0311@naver.com" ]
dmswl_0311@naver.com
a1a3d80bb3ff411b6a757c8662ed29b06d159dea
4236d1c3b153847f888402af5dd218fe4004fddc
/events/models.py
1fc1f12110011a0687ae2dbd3c8b8e0663e5ceef
[]
no_license
zurcx/zurczevents
6feaae655dcc7bac08a9366e72e65da0ecace69d
5134841e0afca3bc1f88e1d27980a58f91f5d984
refs/heads/master
2020-05-31T04:40:55.735346
2013-08-02T18:07:22
2013-08-02T18:07:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,341
py
#encoding: utf-8 from django.contrib.auth.models import User from django.db import models from django.core.urlresolvers import reverse class Event(models.Model): TYPE_CHOICES = ( (1, u'Workshop'), (2, u'Dojo'), (3, u'Palestra'), ) name = models.CharField(verbose_nam...
[ "luizfabiodacruz@gmail.com" ]
luizfabiodacruz@gmail.com
935f188168e56f7d9e289270aa76cbc5f4770897
08db28fa3836c36433aa105883a762396d4883c6
/combine/opencv.py
eb63b33de40c9e1e7a9507722be5ef552d7aa6ad
[]
no_license
xieyipeng/FaceRecognition
1127aaff0dd121319a8652abcfe8a59a7beaaf43
dede5b181d6b70b87ccf00052df8056a912eff0f
refs/heads/master
2022-09-19T07:02:33.624410
2020-06-02T03:03:58
2020-06-02T03:03:58
246,464,586
2
0
null
null
null
null
UTF-8
Python
false
false
2,281
py
# -*- coding: utf-8 -*- import sys from PyQt5 import QtWidgets, QtCore, QtGui from PyQt5.QtGui import * from PyQt5.QtWidgets import * from test_mtcnn_wider import face_detect import cv2 import numpy as np from test_vgg_ck import emotion class picture(QWidget): def __init__(self): super(picture, self).__in...
[ "3239202719@qq.com" ]
3239202719@qq.com
56b182e8d53ba51c9edcdf868deccdbc7b7f37a1
eb9ed8351d2e0bb4655c5970e91280767703f1a9
/user_app/admin.py
8556d66f35b7faaaf72c4fe7c99710b43de13661
[ "Apache-2.0" ]
permissive
lmyfzx/Django-Mall
b8c03a7d2ddd56cde7f44b2f9bc8c08a486febab
13cb59130d15e782f78bc5148409bef0f1c516e0
refs/heads/master
2023-01-23T10:17:46.477968
2020-11-21T12:44:02
2020-11-21T12:44:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,980
py
# # from django.contrib import admin # from user_app.model.seller_models import Shoppers, Store # # # # # Register your models here. # # # @admin.register(Store) # class StoreAdmin(admin.ModelAdmin): # list_display = ('store_name', 'shopper_name', 'shop_grade', 'start_time', 'province', 'attention') # # readonl...
[ "syz247179876@126.com" ]
syz247179876@126.com
60712320e294e2dfe3916fa779900d93f683284e
53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61
/.history/EMR/zhzd_add_20190618133428.py
2ed7c6ff4cf5a493ab9a2255b061e4b7b4995775
[]
no_license
cyc19950621/python
4add54894dc81187211aa8d45e5115903b69a182
d184b83e73334a37d413306d3694e14a19580cb0
refs/heads/master
2020-04-11T20:39:34.641303
2019-07-02T12:54:49
2019-07-02T12:54:49
162,078,640
0
0
null
null
null
null
UTF-8
Python
false
false
4,244
py
import time import math import os import sys import os, os.path,shutil import codecs import EMRdef import re import pandas as pd emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHRzhzd5')#txt目录提取 emrtxt2s = EMRdef.txttq(u'D:\DeepLearning ER\EHRsex') ryzd = [] for emrtxt in emrtxts: f = open(emrtxt,'r',errors="ignore")...
[ "1044801968@qq.com" ]
1044801968@qq.com
de3c80a29cae8376ab53c57e9b03610ba50b9701
fdafd2ef8a26a3e9ee6a4016ec6272516d64168f
/zeta_python/completed/2161.py
15de788098d2c3241e90ba87cd8ff4e261a537c9
[]
no_license
yenru0/CodeObjecct
322d669d9e70b7202e5e527cda27da0b1e8f273d
b9d5260b973d7435c089c49bc8867be5d2be4d85
refs/heads/master
2021-06-28T06:13:57.978205
2021-03-13T00:47:53
2021-03-13T00:47:53
221,762,665
1
0
null
null
null
null
UTF-8
Python
false
false
409
py
from collections import deque def solve(N): queue = deque(range(1, N + 1)) cnt = 1 ret = [] while len(queue) != 1: if cnt % 2 == 0: queue.append(queue.popleft()) else: ret.append(queue.popleft()) cnt += 1 cnt %= 2 ret.append(queue[0]) re...
[ "yenru0604@gmail.com" ]
yenru0604@gmail.com
797e0c3022cbfa099c71ee491210295c6c2e5f00
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/YnsBcniRG9k77SSvA_10.py
16e0a01c189baa0333bd56f0825414d0eee0fe66
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
""" Imagine a school that kids attend for 6 years. In each year, there are five groups started, marked with the letters _a, b, c, d, e_. For the first year, the groups are _1a, 1b, 1c, 1d, 1e_ and for the last year, the groups are _6a, 6b, 6c, 6d, 6e_. Write a function that returns the groups in the school by year ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
bfc4c70e5c4e5c20ff937ed96aa580ee5ad5d6f9
1c3ce4f21ce62ecfe5f0cfe1281ad912645b39bf
/genename2lrgref.py
89174d67bb82b9aff523d8371876e93dfe7727e1
[]
no_license
tz2614/softwarecarpentryworkshop
6694d8d02ebbc71c74786e6ab477bdac716cdccf
c54301c7cc4ea890275f2a159322a4e5f0e39560
refs/heads/master
2021-08-08T03:19:18.534877
2017-11-09T12:44:08
2017-11-09T12:44:08
109,675,548
0
0
null
null
null
null
UTF-8
Python
false
false
2,795
py
def genename2LRGref(gene): #open and read LRGref list text file f = open(lrgtext, "r") #create a list of genenames, and a list of LRGrefs genenames = [] LRGref_list = [] # iterate over the lines in the file for line in f: # split the line into a list of column values if line s...
[ "tony_zheng35@hotmail.com" ]
tony_zheng35@hotmail.com
c1b06abef4ce43d403bca1d6da1c63f136747d47
2b6715706ca85570e23188d7ffcb716e8e204f1b
/00Python代码/03Pentest_通过搜索引擎搜索关键字/enginesearchV2.0.py
af27d72c3cea7ef56fee73b6fcba746af7592aaf
[]
no_license
thinks520/CodeRecord
3c2e9e11082ec305dc3352a2b4a034795f2b2182
a9d32b9761de7a21030765a9f4ad41df94b88c63
refs/heads/master
2020-03-23T14:27:39.166999
2018-07-19T14:12:25
2018-07-19T14:12:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,073
py
#!/usr/bin/python #coding:utf-8 import requests from lxml import etree input=open('fangong.txt','r') output1=open('result-10086.txt','w+') for param in input: baseurl='http://www.baidu.com/s?wd=inurl:10086.cn intext:"'+param+'"&rsv_spt=1&rsv_iqid=0xfbe8f0570001a8a4&issp=1&f=8&rsv_bp=0&rsv_idx=2&ie=utf-8&tn=baiduho...
[ "ljressrg@gmail.com" ]
ljressrg@gmail.com
87e16b4002f252ff4e14773750a8d2a08e3f95b5
17ca5bae91148b5e155e18e6d758f77ab402046d
/M_BH_relation/read_MBH_form.py
569af31bc6704cb0978eb63f565b592b46f0f811
[]
no_license
dartoon/QSO_decomposition
5b645c298825091c072778addfaab5d3fb0b5916
a514b9a0ad6ba45dc9c3f83abf569688b9cf3a15
refs/heads/master
2021-12-22T19:15:53.937019
2021-12-16T02:07:18
2021-12-16T02:07:18
123,425,150
0
0
null
null
null
null
UTF-8
Python
false
false
4,249
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Oct 26 09:34:27 2018 @author: Dartoon """ import numpy as np import astropy.io.fits as pyfits import matplotlib.pyplot as plt f = open("fmos_MBH_table","r") with f as g: lines = g.readlines() porp_list = lines[0].replace('#','').split(' ') samples...
[ "dingxuheng@mail.bnu.edu.cn" ]
dingxuheng@mail.bnu.edu.cn
187862d60f6dd31623819405c6071193862cdcef
08ab565444e52429c3ece47ee0bc014b0a04e08a
/backend/feedback/api/serializers.py
bdf744970ff552452828d7676fd6eabfa1b62c91
[]
no_license
ScrollPage/Hackatom
70bb2246df3c0cd7da51dbab941d3303a831f887
5bbeb5bf4936502f5d6d8e8b400f912583ab9d4e
refs/heads/main
2023-03-20T05:06:07.505978
2021-03-15T16:58:42
2021-03-15T16:58:42
336,541,653
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
from rest_framework import serializers from feedback.models import Rating class RatingSerializer(serializers.ModelSerializer): '''Сериализация лайка''' class Meta: model = Rating fields = ['star', 'initiative'] def create(self, validated_data): rating, _ = Rating.objects.update_o...
[ "54814200+reqww@users.noreply.github.com" ]
54814200+reqww@users.noreply.github.com
7500c1826864a576d104db5f293a7f1ef125c122
31e90bec77ca264efd0867df1a8fceaa68e2749e
/chat/consumers.py
f141219d1ca17b646cdb312a39ab2b88e33646d5
[]
no_license
safwanvk/ZabChat
c4621d45132b195bcd625647e04757e874730c98
fb542062a1bd32e66d026e5cd0924ba166a50aec
refs/heads/master
2022-11-19T20:32:23.201765
2020-07-17T15:22:01
2020-07-17T15:22:01
280,459,485
0
0
null
null
null
null
UTF-8
Python
false
false
1,270
py
import json from channels.generic.websocket import AsyncWebsocketConsumer class ChatConsumer(AsyncWebsocketConsumer): async def connect(self): self.room_name = self.scope['url_route']['kwargs']['room_name'] self.room_group_name = 'chat_%s' % self.room_name # Join room group await...
[ "safwanvalakundil@gmail.com" ]
safwanvalakundil@gmail.com
882c42cdf5dd921eca2da25a39ae8e01e16541c7
7df0845fdfb8597e2ed45b87a28fa61be9b63db7
/0x0F-python-object_relational_mapping/14-model_city_fetch_by_state.py
b1f69f3fe68067a294fac544fef07864c61df95c
[]
no_license
yawzyag/holbertonschool-higher_level_programming
0663903ea947b26e42b70892cd8ba8b1d6ef4af6
81036be0d13f22175f103f81fcddbf88308413c2
refs/heads/master
2020-05-18T02:06:39.595953
2019-09-26T21:59:14
2019-09-26T21:59:14
184,106,513
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
#!/usr/bin/python3 """Start link class to table in database """ import sys from model_state import Base, State from model_city import City from sqlalchemy import desc, asc from sqlalchemy import (create_engine) from sqlalchemy.orm import sessionmaker if __name__ == "__main__": engine = create_engine( 'mysq...
[ "yesid.yag@gmail.com" ]
yesid.yag@gmail.com
6f55109e0fb795a6e582f8b960aa89fa57ad4294
61ef327bd1d5ff6db7595221db6823c947dab42b
/FlatData/ScenarioCharacterEmotionExcelTable.py
2d37dc38d982bf713f5b0563564912d8e67edd9b
[]
no_license
Aikenfell/Blue-Archive---Asset-Downloader
88e419686a80b20b57a10a3033c23c80f86d6bf9
92f93ffbdb81a47cef58c61ec82092234eae8eec
refs/heads/main
2023-09-06T03:56:50.998141
2021-11-19T12:41:58
2021-11-19T12:41:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,709
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FlatData import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class ScenarioCharacterEmotionExcelTable(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): n =...
[ "rkolbe96@gmail.com" ]
rkolbe96@gmail.com
9b7254d8e461320bcfbb1dcb7d9fe00fccd73a73
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/54/usersdata/75/24223/submittedfiles/av1_p2_civil.py
24b2b449ae48b2fda2bd494854cfe8e0fa7b3cee
[]
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
823
py
# -*- coding: utf-8 -*- from __future__ import division def abs(x): if x<0: x=x*(-1) return x else: return x def maior(lista): maior=lista[0] for i in range (0,len(lista),1): if lista[i]>maior: maior=lista[i] return maior ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
d484f72f6efc4eb7626c7aacb752aea1c75a0017
76e931912629c37beedf7c9b112b53e7de5babd7
/3-mouth04/总/project/day06/ddblog/topic/models.py
167616ddd78fc3b638a7041c6b35f892c7c7bbd1
[ "Apache-2.0" ]
permissive
gary-gggggg/gary
c59ac21d8e065f296ff986d11a0e4cbf186a1bc4
d8ba30ea4bc2b662a2d6a87d247f813e5680d63e
refs/heads/main
2023-02-23T06:54:34.500683
2021-02-01T10:17:02
2021-02-01T10:17:02
334,905,744
4
0
null
null
null
null
UTF-8
Python
false
false
687
py
from django.db import models # Create your models here. from user.models import UserProfile class Topic(models.Model): title = models.CharField('文章标题', max_length=50) category = models.CharField('文章分类', max_length=20) # public private limit = models.CharField('文章权限', max_length=20) introduce = mo...
[ "673248932@qq.com" ]
673248932@qq.com
191612a710061c4420bd155af34bf77bd96caf71
43aece1d354d6cfbacb22f30eae1d7ff1de83b09
/moka/tests.py
149ecb173d749b1edea6f1a87601cadd5598576a
[ "MIT" ]
permissive
harpiya/moka
230342914b897fd373890e90497ca52acc8f7a96
220c4501dc37cc8db8213f2275a071d7b5bc3f69
refs/heads/master
2020-04-17T09:43:00.771430
2019-01-20T18:52:51
2019-01-20T18:52:51
166,470,197
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
# @Author: Saadettin Yasir AKEL <developer> # @Date: 2019-01-20T17:55:20+03:00 # @Email: yasir@harpiya.com # @Project: Harpiya Kurumsal Yönetim Sistemi # @Filename: tests.py # @Last modified by: developer # @Last modified time: 2019-01-20T18:33:16+03:00 # @License: MIT License. See license.txt # @Copyright: Harpiy...
[ "yasir@harpiya.com" ]
yasir@harpiya.com
4b9bd5ab17684670b1321f414c01d15bf2d024c0
95363198c3af43c3cc74ef8131d556e566c75f7a
/diffusion_utils/utils/paths.py
acdad56e8e51202469e6d1b71805a9cb81a86b6c
[]
no_license
shinypond/multinomial_diffusion
59fde847fd0afea3c4668d9481ea9e4e646be787
66f17340e4cd200059bff228cf98a597bf084c26
refs/heads/main
2023-08-03T15:23:47.578895
2021-09-11T12:10:15
2021-09-11T12:10:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
import os import sys def add_parent_path(level=1): script_path = os.path.realpath(sys.argv[0]) parent_dir = os.path.dirname(script_path) for _ in range(level): parent_dir = os.path.dirname(parent_dir) sys.path.insert(0, parent_dir) def add_parent_paths(levels=[1,2]): for level in leve...
[ "e.hoogeboom@gmail.com" ]
e.hoogeboom@gmail.com
ba423c85f30eb13f5611de3d74f83b05a0a19409
7ef5bb39938e669b5571a097f01d96ee53458ad6
/clone_graph/solution2.py
ef2aa47e3dce48a03fd9dbd320701e39f4c2005d
[ "BSD-2-Clause" ]
permissive
mahimadubey/leetcode-python
61cd135515b26644197b4736a92a53bb1a5870a6
38acc65fa4315f86acb62874ca488620c5d77e17
refs/heads/master
2020-08-29T09:27:45.232412
2019-10-28T08:06:52
2019-10-28T08:06:52
217,993,547
0
0
BSD-2-Clause
2019-10-28T07:55:38
2019-10-28T07:55:38
null
UTF-8
Python
false
false
1,272
py
""" Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. """ # Definition for a undirected graph node # class UndirectedGraphNode(object): # def __init__(self, x): # self.label = x # self.neighbors = [] class Solution(object): def cloneGraph(self, nod...
[ "shichao.an@nyu.edu" ]
shichao.an@nyu.edu
d022f4d82a5a6e613b95c709b5771d693fb92b4c
9b02c05a71be741d8c33b59890a1fc9af51b3ba8
/items_Log_to_Board.py
bb1b6b0ffa75920cf510403be43682fd93da452e
[]
no_license
craymaru/ultima-online-razor-enhanced-scripts
a524cfcfcf5ae0c780528a4cc95005a4817655f5
2190b6424480d035c1ea8adda97a956f66e1609d
refs/heads/master
2022-12-10T09:21:43.664742
2022-11-27T15:17:11
2022-11-27T15:17:11
240,029,926
1
1
null
null
null
null
UTF-8
Python
false
false
1,211
py
Misc.SendMessage("AXE?", 53) axe_serial = Target.PromptTarget() log_id = 0x1BDD board_id = 0x1BD7 log_colors = { 0x0000: "Log", 0x07da: "Ork", 0x04a7: "Ash", 0x04a8: "Yew", 0x04a9: "Heartwood", 0x04aa: "Bloodwood", 0x047f: "Frostwood" } # DEFINES def PutItemToBank(item_id, amount): ite...
[ "craymaru@gmail.com" ]
craymaru@gmail.com
6f8e46a58facc95761a795ca1509a66b63b362aa
7d43ba52d958537905cfdde46cc194a97c45dc56
/PL/Python/library/operating_system/standart_library/os.py
41f4e75f18ffc7a0d2aa74c2dc8d78be54553b8e
[]
no_license
Koshmatova/workbook
3e4d1f698a01f2be65c1abc83ee251ebc8a6bbcd
902695e8e660689a1730c23790dbdc51737085c9
refs/heads/master
2023-05-01T02:30:46.868027
2021-05-10T03:49:08
2021-05-10T03:49:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,187
py
os #по сути запускает nt на win и posix На других ос #СОДЕРЖИТ дескрипторные файлы .name:'posix'|'nt'|'mac'|'os2'|'ce'|'java' #имя ос .environ:dict #mutable словарь v окружения #obj сопоставления(proxy?) с dict v пользовательской среды #позволяет добавлять/удалять v окружения ...
[ "mkone112@gmail.com" ]
mkone112@gmail.com
216375b04dadfc2f8857cb1a6300c1c69a16f350
c61a28aba19f7cdf9a5127e8a782bf115c265e70
/env/bin/csscapture
84fbd44daf929a1a716e351d19990cf1389614cf
[]
no_license
sharmilaviji/RecruitPRO-NEW
fa72c8fc00f469a41798b1047c11dcc470fbc495
dcfaedebe56b45acd6ddcab7e24c939b853a2c8c
refs/heads/master
2021-05-26T12:14:12.611154
2020-04-27T04:40:50
2020-04-27T04:40:50
254,125,640
1
0
null
null
null
null
UTF-8
Python
false
false
253
#!/home/sharmila/frappe-bench/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from cssutils.scripts.csscapture import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "sharmiviji1997@gmail.com" ]
sharmiviji1997@gmail.com