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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6391130278ed09907a185d37a2ede1bfc26c3913 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/starshield/apis/UpdateDNSRecordRequest.py | de7e32ddc1192ca35bbda1c91cc42bf49bd29aca | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 2,423 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"jdcloud-api@jd.com"
] | jdcloud-api@jd.com |
266d6a9834c7faf71707fdf7b56a95ccdb7c6810 | e40ecfc9628c2de1787cc0eceabf2543c553a22f | /app/oc_website/asgi.py | 86ccd8642afdf211b62ed5828d7a623595e6dc3f | [] | no_license | old-castle-fansubs/website | 27975ba7c603d44b3c6b8cb9c5d78cda0793057c | d2ecf45fbedf2ea873d3a3a3629c77af7a740429 | refs/heads/master | 2023-02-17T01:01:12.540371 | 2022-12-16T12:54:40 | 2022-12-16T13:59:57 | 163,497,607 | 0 | 0 | null | 2023-02-15T19:35:32 | 2018-12-29T09:27:18 | Python | UTF-8 | Python | false | false | 171 | py | import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "oc_website.settings")
application = get_asgi_application()
| [
"rr-@sakuya.pl"
] | rr-@sakuya.pl |
b7a54a2174861f8a7aa170cdba84c29b6b28f092 | 7de884c760b8740d01358c8ab3316738ab9dedeb | /diffie/file_helper.py | 3f9924476d11441d7270e9774cc701eec408961a | [
"MIT"
] | permissive | beepscore/diffie | 9224e8bda58cd97b1f1cc644d5bb81a42a864c34 | 5ed56ce2d9a70b1c3c783539b93c3d6252050340 | refs/heads/master | 2020-05-21T23:58:15.605754 | 2018-08-21T21:15:40 | 2018-08-21T21:15:40 | 63,999,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | #!/usr/bin/env python3
import os
from diffie import expression_helper
from typing import List
""" Utility methods for working with files and directories
http://stackoverflow.com/questions/954504/how-to-get-files-in-a-directory-including-all-subdirectories
https://ssscripting.wordpress.com/2009/03/03/python-recursiv... | [
"support@beepscore.com"
] | support@beepscore.com |
e574d1dc20a14f2e165bad8c4efd79f252b0fe4e | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_c_softmax_with_cross_entropy_op.py | 44ce71285af33c06aec84d4bb2b78bcedba1cd0d | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 1,166 | py | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
542d2acb9ce1e44236c6c6c9a3f35f2619d1f157 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/manuellab/__init__.py | 4e992642559f57145532e44a8d39ace924fcc375 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,683 | py | #Manuel Bastioni Lab - Copyright (C) 2016 Manuel Bastioni
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#This prog... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f5b9a7d71add8f9501613cd152f16fc0fdaa4008 | 859b0749c25370dc413e2a6424bda94bd7d685b2 | /googlePlus/googlePlus.py | e176a033381e21752879788745fedd0bb29be48e | [] | no_license | cash2one/yxw19870806 | 3449b41ff510853c1a93aef73c85ca27d8bec6d0 | b16e60ae29f86893a8868adce13611951a78a07e | refs/heads/master | 2021-01-13T14:37:46.933314 | 2016-12-17T12:13:02 | 2016-12-17T12:13:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,765 | py | # -*- coding:UTF-8 -*-
"""
Google Plus图片爬虫
https://plus.google.com/
@author: hikaru
email: hikaru870806@hotmail.com
如有问题或建议请联系
"""
from common import log, robot, tool
import os
import re
import threading
import time
import traceback
ACCOUNTS = []
GET_IMAGE_URL_COUNT = 100 # 单次获取最新的N张照片,G+ 限制最多1000张
TOTAL_IMAGE_COUNT... | [
"hikaru870806@hotmail.com"
] | hikaru870806@hotmail.com |
62a5eb6ee62f064ce6700e2b96e91be3e0ad505a | 49cd80e8d64815045134ab1b84a1c792c557e8cd | /chacoled/colormap_app.py | f3c766db2d09ef22dc62bc29b4d6d4288ba426db | [] | no_license | WarrenWeckesser/chacoled | e95ab118e61d58a680f483f0d52154023f9c2191 | dbf3f70745e9bc59347304e1b3dabe8a0138545b | refs/heads/master | 2021-01-23T20:55:06.626495 | 2012-11-08T20:45:38 | 2012-11-08T20:45:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,481 | py | """
An application for creating and editing colormaps.
Warren Weckesser
Enthought, Inc.
December, 2009
"""
from __future__ import with_statement
from math import sqrt
import types
from os.path import basename
from traits.api import (HasTraits, Instance, Float, Property, Str, Dict,
List, Bool, Int, HTML, on... | [
"warren.weckesser@gmail.com"
] | warren.weckesser@gmail.com |
804725421c2eba644327b73f5383b40bd8f8b7d2 | b7fef422c53b5d1422a1a5d940c3bc0ad64f221e | /dev/sherpa/stats/sherpa_stats_compute_via_model.py | 7b16a2c1de1271e15c1a1c6888a8d3a5c7ab94c2 | [
"BSD-3-Clause"
] | permissive | fjhzwl/gammapy | 267507ab394cb5cb424d93179be5236554c76312 | 757acb4070d8455efa3b2a10e58e318d7d1ce9b9 | refs/heads/master | 2020-08-15T04:06:12.228498 | 2019-10-15T08:55:53 | 2019-10-15T08:55:53 | 215,277,409 | 3 | 0 | null | 2019-10-15T11:04:55 | 2019-10-15T11:04:54 | null | UTF-8 | Python | false | false | 966 | py | import numpy as np
from sherpa.ui import *
# TODO: It would be better to use a table model
# and not integrate over bins to simplify this!
# Set a few parameters
numbins = 2
data_value = np.arange(numbins) # 10
model_value = 5 # np.arange(numbins) #11
staterror_value = 10
# Note: We have a DataSpace1DInt data spac... | [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
a353412e36eb364598333f6c518512917d8c1617 | 0c2583011200a5bed73315fde7ef30678075fce7 | /pyarchinit_documentazione_preview_mainapp.py | b8d5f2fa86e9cad8be5da46117d37547b86223bb | [] | no_license | enzococca/pyarchinit_3 | 3d3b5784a3b2e4b753581f28064748043f8c47fe | 00626ba5c24d447fc54c267071f0584a2962182c | refs/heads/master | 2020-03-09T16:59:21.853411 | 2018-03-12T14:49:51 | 2018-03-12T14:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,448 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
/***************************************************************************
pyArchInit Plugin - A QGIS plugin to manage archaeological dataset
stored in Postgres
-------------------
begin : ... | [
"serena.sensini@gmail.com"
] | serena.sensini@gmail.com |
8b7ca96cc59549612a24e69092c9ad35fd86497b | 2b7efe276d1dfdc70a4b5cd59ae863b7b7a1bd58 | /euler76.py | be6df6ea9f6a7d660eb76af8c928574a6addd364 | [] | no_license | mckkcm001/euler | 550bbd126e8d9bb5bc7cb854147399060f865cfc | 8cf1db345b05867d47921b01e8c7e4c2df4ee98d | refs/heads/master | 2021-01-01T17:43:28.799946 | 2017-11-07T02:17:34 | 2017-11-07T02:17:34 | 18,375,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | import time
start = time.clock()
def dig2(n):
s = []
for i in range(n-1,0,-1):
s.append([i,n-i])
return s
def dign(n):
s=[]
t = dig2(n)
for i in t:
if i[0] >= i[1]:
s.append(i)
if i[1] > 1:
... | [
"noreply@github.com"
] | mckkcm001.noreply@github.com |
ba651a6d4f25e071586623cc3399e005ac22273b | f107a452ce4536320a00b8cd559bfb597c8edd76 | /tests/Test_BlockIvp.py | 49ca2ea649c8923fa59e09c80682edbf3efb70d4 | [
"MIT"
] | permissive | I201821180/CompartmentalSystems | d0954010fd063fb6588cab9beca4c424b5401965 | 8d0424268631f763b8b199f041472a2bfa0d3fb0 | refs/heads/master | 2020-05-21T21:40:36.389804 | 2019-04-26T18:11:31 | 2019-04-26T18:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | from testinfrastructure.InDirTest import InDirTest
from testinfrastructure.helpers import pe
import numpy as np
from CompartmentalSystems.BlockIvp import BlockIvp
class TestBlockIvp(InDirTest):
def test_build_rhs(self):
b_s=BlockIvp.build_rhs(
time_str='t'
,X_blocks=[('X1',5),('X2... | [
"markus.mueller.1.g@googlemail.com"
] | markus.mueller.1.g@googlemail.com |
c2490ca24d49a85600e6692d297c25cdecaf25b8 | ba528182850504609d2a2782531938b1d110cfc3 | /dj12pmfolder/instituteproject/instituteapp/models.py | 1bcf7af9c81ab8c687dedc70d2a1a8b50552aa5e | [] | no_license | naveenkumar2505/djangopro | 176518053437381aea29f71807031fd0c01eb62f | 8bd5fb5be0f09f107d7fc6f84e5f49960bc90caa | refs/heads/master | 2020-05-24T10:06:41.311452 | 2019-05-17T13:47:58 | 2019-05-17T13:47:58 | 187,220,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | from django.db import models
from multiselectfield import MultiSelectField
class RegistrationData(models.Model):
First_Name=models.CharField(max_length=50)
Last_Name=models.CharField(max_length=50)
User_Name=models.CharField(max_length=50)
Password1=models.CharField(max_length=50)
Password2=models.C... | [
"naveentechhie@gmail.com"
] | naveentechhie@gmail.com |
25e08db8a09a995af30b51e6df71a8abfe1318ac | ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7 | /tests2/tests/wedge400/test_kernel_module_presence.py | 23942af8bff7b19cff70a0da74a31cc96348391d | [] | no_license | facebook/openbmc | bef10604ced226288600f55248b7f1be9945aea4 | 32777c66a8410d767eae15baabf71c61a0bef13c | refs/heads/helium | 2023-08-17T03:13:54.729494 | 2023-08-16T23:24:18 | 2023-08-16T23:24:18 | 31,917,712 | 684 | 331 | null | 2023-07-25T21:19:08 | 2015-03-09T19:18:35 | C | UTF-8 | Python | false | false | 1,172 | py | #!/usr/bin/env python3
#
# Copyright 2019-present Facebook. All Rights Reserved.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7e1335a03c6568a906d8528e80f10ea863cc41ae | 55dc6e337e634acb852c570274a1d0358b7300a5 | /veriloggen/thread/operator.py | 221a18e5fe866e25d30ab6f7fa6766052381533b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fifoteam/veriloggen | 97ad45671f053c85f495b08a030f735fd9822146 | 23cb7251c0f126d40d249982cad33ef37902afef | refs/heads/master | 2020-05-27T00:28:37.575411 | 2017-02-20T01:47:00 | 2017-02-20T01:47:00 | 82,518,602 | 2 | 0 | null | 2017-02-20T05:02:37 | 2017-02-20T05:02:37 | null | UTF-8 | Python | false | false | 1,004 | py | from __future__ import absolute_import
from __future__ import print_function
import sys
import os
import ast
import veriloggen.core.vtypes as vtypes
operators = {
ast.Add: vtypes.Plus,
ast.Sub: vtypes.Minus,
ast.Mult: vtypes.Times,
ast.Div: vtypes.Divide,
ast.Mod: vtypes.Mod,
ast.Pow: vtypes.... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
159792ab940d20fce386022ee5e56be0ec12d0c0 | 5a164c856ef5af364999eec01def4daef05cdc39 | /knowledgelab/__init__.py | 7ae003fd645579d56191cadb21daca7c46c17264 | [
"Apache-2.0"
] | permissive | timkpaine/knowledgelab | b77a11f476cac626cf98288738276e57c54c2f8a | 03fafbdfe0357b9d069cef34de37bba096faaa9e | refs/heads/master | 2023-07-19T17:53:39.001384 | 2023-07-18T22:23:46 | 2023-07-18T22:23:46 | 107,341,993 | 47 | 10 | Apache-2.0 | 2023-09-04T12:49:53 | 2017-10-18T01:10:58 | Python | UTF-8 | Python | false | false | 103 | py | def _jupyter_server_extension_paths():
return [{
"module": "knowledgelab.extension"
}]
| [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
d1cdbcc5142fc841897de2cc666fbf43725a6d1b | f534b180b9e7e242dd8ac5bf80faa470b439f36b | /Django/Django_up/class_10/example/admin.py | c7af09823087a7669e4c832ee66a4fbed4f1971d | [] | no_license | jiangxiao-l/work_arrangement | 88a6900e515797d1d12ec54ba22d8b64822ba7e9 | cf4a9ec440307415f61869fd86c2993998c6b321 | refs/heads/main | 2023-06-11T07:56:07.624623 | 2021-07-08T07:27:03 | 2021-07-08T07:27:03 | 381,880,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | from django.contrib import admin
from .models import Poem
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
class MyUserAdmin(UserAdmin):
# 显示在管理页面的字段
list_display = ('email', 'first_name', 'last_name', 'is_staff')
# 定制过滤器
list_filter = ('is_staff',)
# 可查询字... | [
"370835062@qq.com"
] | 370835062@qq.com |
5c8abee3725d5cfed7dd1b72c480a5fb7bbbf070 | e5c3b3a044e826425dd0f783d5e38e5bfeb82626 | /diplomacy_research/models/training/supervised/standalone.py | 0efba4d1d311d67460048eb9e44aba8603ebaf57 | [
"MIT"
] | permissive | JACKHAHA363/research | 04f67f98dcd238092941725d531517ae2a4ab47f | e752f02f34936bbae904815708904cabda554b57 | refs/heads/master | 2020-09-14T23:42:32.337085 | 2019-11-22T03:36:35 | 2019-11-22T03:36:35 | 223,296,172 | 0 | 0 | null | 2019-11-22T01:15:52 | 2019-11-22T01:15:51 | null | UTF-8 | Python | false | false | 13,083 | py | # ==============================================================================
# Copyright 2019 - Philip Paquette
#
# NOTICE: 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 rest... | [
"pcpaquette@gmail.com"
] | pcpaquette@gmail.com |
a9d29b8918deb4ed5fead3730918cdaf68d56439 | 121f82d04c299a6f6fcd3b469794ae076b74a3f6 | /gram/migrations/0002_auto_20200403_1447.py | f800bf54b65bebefb17274497e98c01caaf558f2 | [
"MIT"
] | permissive | monicaoyugi/User-profile | ba68b3f6a5a631e4235f70b351b86eb8e9061d45 | 941180648a72c3761c8df8a56c9498934808d735 | refs/heads/master | 2023-08-13T18:04:18.997913 | 2020-05-22T13:08:07 | 2020-05-22T13:08:07 | 266,112,023 | 0 | 0 | MIT | 2021-09-22T19:03:36 | 2020-05-22T13:02:44 | Python | UTF-8 | Python | false | false | 1,057 | py | # Generated by Django 3.0.4 on 2020-04-03 11:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('gram', '0001_initial'),
... | [
"monicaoyugi@gmail.com"
] | monicaoyugi@gmail.com |
77e60e06c34a13bf1ac491083b85e63488e5286f | 47ff744da519c525cccfad1d8cead74f7e2cd209 | /uge3/.history/mypackage/demo_20200214140514.py | 2a7772646f85a423bb0281dd1c042979b389d521 | [] | no_license | Leafmight/Python | f6098395a7a13dd6afe6eb312a3eb1f3dbe78b84 | d987f22477c77f3f21305eb922ae6855be483255 | refs/heads/master | 2020-12-21T14:21:06.802341 | 2020-05-22T10:21:37 | 2020-05-22T10:21:37 | 236,457,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | from mypackage.classes.course import Course
from mypackage.classes.data_sheet import DataSheet
from mypackage.classes.student import Student
import sys
import random
import platform
import csv
print('__file__:{}\n__name__:{}\n__package__:{}\n'.format(__file__,__name__,str(__package__)))
lst_teachers = ["Elon Musk", "S... | [
"jacobfolke@hotmail.com"
] | jacobfolke@hotmail.com |
5fbbde1c08e4c29e13591c6768965ca7b2e2e4c5 | d806dd4a6791382813d2136283a602207fb4b43c | /sirius/blueprints/api/local_service/risar/events.py | 9d60006a732f84e0a94e735720cf1f45aad46a86 | [] | no_license | MarsStirner/sirius | 5bbf2a03dafb7248db481e13aff63ff989fabbc2 | 8839460726cca080ca8549bacd3a498e519c8f96 | refs/heads/master | 2021-03-24T12:09:14.673193 | 2017-06-06T16:28:53 | 2017-06-06T16:28:53 | 96,042,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #! coding:utf-8
"""
@author: BARS Group
@date: 22.11.2016
"""
from hitsl_utils.enum import Enum
class RisarEvents(Enum):
CREATE_CARD = 'create_card'
MAKE_APPOINTMENT = 'make_appointment'
SAVE_CHECKUP = 'save_checkup'
CLOSE_CHECKUP = 'close_checkup'
ENTER_MIS_EMPLOYEE = 'enter_mis_employee'
... | [
"paschenko@bars-open.ru"
] | paschenko@bars-open.ru |
c1c01d551067d19c7a7d46f01a3eb1cafb07b8d7 | 8c33c84f35d59cdbe478984e2aea460771e3c89a | /python/EightTeV/NMSSM_WorkingPoint_mH1_20_mH2_125p3_MSUSY_1000_8TeV_pythia6_cff.py | e62d3a8e1dcc2b3d1cf6394195a3049bc74e1610 | [] | no_license | covarell/genproductions | 20041a34e36180373156f207d05612043b8f9a2a | b13f307ed0570e882635f89c30ad3155b4657634 | refs/heads/master | 2023-06-27T07:10:01.845090 | 2014-11-11T16:37:25 | 2014-11-11T16:41:42 | 11,481,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | import FWCore.ParameterSet.Config as cms
source = cms.Source("EmptySource")
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0),
pythiaPylistVerbosit... | [
"clemens.lange@cern.ch"
] | clemens.lange@cern.ch |
12d4dede4baa7d91794ac2927b2fb5a7e73a3528 | c49065a53d16f54b814a8a1849f2d0bdce1159b4 | /tomatex/urls.py | 698f9ddcdf378ca88a47dde0620a3412308a986e | [] | no_license | gilsondev/tomatex | 3efb6319eb43149db52fd7131612aac8151859fd | a0b44afe11585d75777f322833f62f94d9b5ceba | refs/heads/main | 2023-02-24T01:58:27.221748 | 2021-01-27T23:49:25 | 2021-01-27T23:49:25 | 326,840,134 | 3 | 0 | null | 2021-01-27T23:27:44 | 2021-01-05T00:15:51 | Python | UTF-8 | Python | false | false | 175 | py | from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path("admin/", admin.site.urls),
path("api/", include("tomatex.core.urls")),
]
| [
"me@gilsondev.in"
] | me@gilsondev.in |
f7f397f34e4a3068b84ff909afa55609ee2c0704 | 0c9c9d08afccbf4734e94bf76f84a537f76bf937 | /TCS_DCA_Practice/Question10.py | 38339b06a0935f52175176e22279d304f64b3c62 | [] | no_license | Pyk017/TCS_Xplore_Proctered_Assesments | 3154d6d415722a4283b2edcc78433122c2bb2096 | 0a5ffa790727bffaa43e5abed012173aa9d07c50 | refs/heads/master | 2023-03-24T16:23:17.239068 | 2021-03-18T16:20:16 | 2021-03-18T16:20:16 | 338,511,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Create the following series:
# Take the input integers, and give back the value present at that position.
# The series is: 0 0 2 1 4 3 6 5 8 7 10 9 ...
def findingNumber(num):
if num == 1 or num == 2:
return 0
return num - 1 if num & 1 else num - 3
num = int(input())
for i in range(1, num + 1):
print(findin... | [
"prakharkumar506978@gmail.com"
] | prakharkumar506978@gmail.com |
9cca062a91b393541057f22ab427e4a8729ea184 | 71515a5fe6adb2c970b09d9546fe96c5431c9152 | /SET 3/sort.py | 54cb6b5aba38412c09f858cbb378dda14fd20d60 | [] | no_license | PrashantRaghav8920/GUVI_PROGRAM | 9ff6e2cfcbf25cc80a6c65383fce1beb4a282c8d | a721e61c58b41879d0fa74ae026a3726586b9550 | refs/heads/master | 2022-02-04T18:30:44.563536 | 2019-02-22T19:03:09 | 2019-02-22T19:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | n=int(input())
l=list(map(int,input().split()))
for i in sorted(l):
print(i,end=" ")
| [
"noreply@github.com"
] | PrashantRaghav8920.noreply@github.com |
6b51c7e1f61e256701d391537430869ed8b91a1a | 05ba1957e63510fd8f4f9a3430ec6875d9ecb1cd | /.history/fh/b_20200817021022.py | 92ae47ac7da74268f9b9c37eaddce5493509a0ca | [] | no_license | cod-lab/try | 906b55dd76e77dbb052603f0a1c03ab433e2d4d1 | 3bc7e4ca482459a65b37dda12f24c0e3c71e88b6 | refs/heads/master | 2021-11-02T15:18:24.058888 | 2020-10-07T07:21:15 | 2020-10-07T07:21:15 | 245,672,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | import requests as r
import pprint as p
url1 = "https://api.github.com/users/cod-lab/repos?sort=created"
pyload = {'sort': 'created'}
r = r.get('https://api.github.com/users/cod-lab/repos',params=pyload)
print(type(r))
p.pprint(r.json) | [
"arihant806@gmail.com"
] | arihant806@gmail.com |
5e163980e793e2baeebfbe76f3992f786d90b186 | 28ae42f6a83fd7c56b2bf51e59250a31e68917ca | /tracpro/profiles/tests/test_models.py | 288408be1750261a7c21acb58208f359894518aa | [
"BSD-3-Clause"
] | permissive | rapidpro/tracpro | 0c68443d208cb60cbb3b2077977786f7e81ce742 | a68a782a7ff9bb0ccee85368132d8847c280fea3 | refs/heads/develop | 2021-01-19T10:29:48.381533 | 2018-03-13T12:17:11 | 2018-03-13T12:17:11 | 29,589,268 | 5 | 10 | BSD-3-Clause | 2018-02-23T14:43:12 | 2015-01-21T12:51:24 | Python | UTF-8 | Python | false | false | 2,022 | py | from __future__ import absolute_import, unicode_literals
from django.contrib.auth.models import User
from tracpro.test.cases import TracProDataTest
class UserPatchTest(TracProDataTest):
def test_create_user(self):
user = User.create(self.unicef, "Mo Polls", "mo@trac.com", "Qwerty123", False,
... | [
"rebecca@caktusgroup.com"
] | rebecca@caktusgroup.com |
6be63ab97d10e70fa5ed698559a99b1dc2dadd7e | 5dfb9ca5e0c8cb4cb7a7a92d6f6a34b34a841869 | /LeetCodeSolutions/python/645_Set_Mismatch.py | d422d26724bb4fcd3c605a43800460009a8bdacd | [
"MIT"
] | permissive | ChuanleiGuo/AlgorithmsPlayground | 2f71d29e697a656562e3d2a2de783d964dc6a325 | 90b6287b742c8bfd3797540c408d679be2821a40 | refs/heads/master | 2021-01-11T18:30:43.218959 | 2018-11-19T02:20:31 | 2018-11-19T02:20:31 | 79,550,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | class Solution:
def findErrorNums(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
record = [0] * (len(nums) + 1)
for num in nums:
record[num] += 1
dup, miss = 0, 0
for idx, val in enumerate(record):
if val ... | [
"chuanleiguo@gmail.com"
] | chuanleiguo@gmail.com |
975ff31fbf362c9ee98259d5271f1607d075f525 | 633944f913050debf0764c2a29cf3e88f912670e | /v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/encodings/hp_roman8.py | 142f1b4cced2b5ed27c8df3b68ab5bae83099704 | [
"BSD-3-Clause",
"bzip2-1.0.6",
"SunPro",
"Apache-2.0"
] | permissive | bopopescu/V8-lgtm | 0474c2ff39baf754f556ef57619ceae93e7320fd | da307e2f7abfca5fa0e860a809de6cd07fd1b72b | refs/heads/master | 2022-02-16T19:10:54.008520 | 2019-09-25T07:51:13 | 2019-09-25T07:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | ../../../../.cipd/pkgs/2/_current/lib/python3.8/encodings/hp_roman8.py | [
"jundong.xjd@antfin.com"
] | jundong.xjd@antfin.com |
7e8bedd97c24228c401c800e43e8f49208913c3b | b1403c5a0f8dcf5eec881367f3928c6faf047b1d | /PRINCIPIANTE/1101-1150/1101.py | f3acb073af8c324e8d86e38acfd4586aaab19b1a | [] | no_license | apesquero/URI | ba56f9d597e0e781bf85dc14eeeedf9bc206fbc4 | 8c45813d99eb903405ebe1a0e2c6618e87025641 | refs/heads/master | 2021-06-19T23:56:51.798180 | 2021-01-01T18:43:20 | 2021-01-01T18:43:20 | 138,192,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # -*- coding: utf-8 -*-
lista = []
while True:
valores = [int(x) for x in input().split(" ")]
valores.sort()
if valores[0] <= 0:
break
lista.append(valores)
for valores in lista:
suma = 0
for valor in range(valores[0], valores[1]+1):
suma += valor
print("%d" % valor, e... | [
"apesquero@gmail.com"
] | apesquero@gmail.com |
ccf9cf739ac2c935660a2f905be4dcc041ca3562 | 4aa3e91f50443894de3d2d5339df7cbcb2c88bfd | /t_08ALFARO.CAJO/CAJO/comparacion/ejercicio9.py | 059514818ec80800b59fc4e727b3bea995801dc3 | [] | no_license | Piero942/T08_Alfaro.Cajo | d7164ab2c22116037739b32680cd82eafef0cfa1 | 8e1d05459d15093d0a8ecc46c7caf7e225b53e5f | refs/heads/master | 2020-10-02T07:43:03.482372 | 2019-12-13T02:01:09 | 2019-12-13T02:01:09 | 227,733,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | # 2 3 4 5
# 012345678901234567890123456789012345678901234
msg="Los grandes pensamientos aparecieron al andar"
print( "PENSAMIENTOS" == "pesamientos" )
| [
"palfaro@unprg.edu.pe"
] | palfaro@unprg.edu.pe |
e0c351f97fc094d6aea36fe918a157af109d08d3 | 9947d1e328a3262a35a61385dc537c3dc557ab7d | /pythonnet/day4_PM/day4/unix_recv.py | e2fad5b47f564e9d23ab6974c0114bd07cdea500 | [] | no_license | nuass/lzh | d0a7c74a3295523d1fe15eeaa73997fc04469f06 | 3cb1cf1e448b88ade226d113a7da4eab7bbb5c09 | refs/heads/master | 2021-02-06T06:10:32.772831 | 2019-06-10T08:54:49 | 2019-06-10T08:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from socket import *
import os
#确定套接字文件
sock_file = './sock'
#判断文件是否存在,存在就删除
if os.path.exists(sock_file):
os.remove(sock_file)
#创建本地套接字
sockfd = socket(AF_UNIX,SOCK_STREAM)
#绑定套接字文件
sockfd.bind(sock_file)
#监听,连接
sockfd.listen(3)
while True:
c,addr = sockfd.accept()
while True:
data = c.recv(1... | [
"1581627402@qq.com"
] | 1581627402@qq.com |
adf0c2881e8287d2852d080c8bbb81b2f4d52c57 | 171732d87b39c290ba808d9d2d56060d4478184a | /run_cookiecutter_example.py | b991e83ea3cb79ea69f957e8bc4c3ca6dcd267d4 | [
"BSD-3-Clause"
] | permissive | NSLS-II/scientific-python-cookiecutter | 37e35de99bc5218a1126e14e70be7a206b431c12 | 499b91b3a53ad268817cef990be3bd7a7fdba7e5 | refs/heads/main | 2023-07-20T13:29:08.759999 | 2023-07-14T20:33:04 | 2023-07-14T20:33:04 | 139,060,179 | 113 | 33 | BSD-3-Clause | 2023-07-14T20:33:06 | 2018-06-28T19:28:19 | Python | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python3
import pexpect
p = pexpect.spawn('cookiecutter .')
p.expect('full_name .*')
p.sendline('Brookhaven National Lab')
p.expect('email .*')
p.sendline('dallan@bnl.gov')
p.expect('github_username .*')
p.sendline('danielballan')
p.expect('project_name .*')
p.sendline('Example')
p.expect('package_d... | [
"daniel.b.allan@gmail.com"
] | daniel.b.allan@gmail.com |
4082ff562d0f6f627345cbd66d05b6ff207c11c6 | 55c24645dd63a1c41037dcfb9fb45bc7bcdea4be | /venv/lib/python3.7/site-packages/_pytest/assertion/rewrite.py | 647afee477e9ba57c9c84fb00befa2f23f03a97c | [] | no_license | abdullah-nawaz/flask-boilerplate | 7c42801a21ee3e6a647cc8a7d92e0285f8e86cad | 01bc7fe1140e8ec613de4a38546a07ddfbdbd254 | refs/heads/master | 2022-12-02T05:06:08.297759 | 2020-06-24T21:36:32 | 2020-06-24T21:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,649 | py | """Rewrite assertion AST to produce nice error messages"""
import ast
import errno
import functools
import importlib.abc
import importlib.machinery
import importlib.util
import io
import itertools
import marshal
import os
import struct
import sys
import tokenize
import types
from typing import Dict
from typing import L... | [
"muhammadabdullah@wanclouds.net"
] | muhammadabdullah@wanclouds.net |
8535168ca5e6dbf6993246c5504e67ccbf188ff4 | 3f327d2654b85b922909925b9f475315d78f4652 | /Backend/lib/python3.6/site-packages/twilio/rest/sync/v1/service/sync_map/sync_map_item.py | 67ace485ce319b648cc9c2aff012c7e399f793b5 | [
"MIT"
] | permissive | brianwang1217/SelfImprovementWebApp | 8db45914027537aee9614f9d218c93cc08dc90f8 | 7892fc4ee5434307b74b14257b29a5f05a0a0dd7 | refs/heads/master | 2022-12-13T15:01:08.595735 | 2018-06-23T04:46:06 | 2018-06-23T04:46:06 | 137,548,289 | 1 | 1 | MIT | 2022-05-25T01:28:29 | 2018-06-16T02:48:52 | Python | UTF-8 | Python | false | false | 17,298 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import serialize
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import ... | [
"talk2shreyas@gmail.com"
] | talk2shreyas@gmail.com |
156c5c9e243a92acd2bd007749f519adb4a2f842 | 6ac625c72c0cab012977afe22fc8756438e29d0a | /t/paginatort.py | 6c24eebe7c822f870457f431bb1037346918e77b | [
"Apache-2.0"
] | permissive | longzhiwen888/Zephyr | 68fb8910fdc14f2105688cd7824281294757ab8d | 0b4a08aa6c3d090f072d51fc946227891487c549 | refs/heads/master | 2021-01-22T00:52:03.429907 | 2016-09-08T07:58:31 | 2016-09-08T07:58:31 | 67,679,033 | 0 | 0 | null | 2016-09-08T07:23:24 | 2016-09-08T07:23:23 | null | UTF-8 | Python | false | false | 1,565 | py | from zephyr.lib.paginator import Paginator
import unittest
class PaginatorTest(unittest.TestCase):
def setUp(self):
result = [_ for _ in range(1, 10)]
self.p = Paginator(result, 100, 10, 5, '/test')
def test_next_link(self):
self.assertEqual(str(self.p.next_link('next')), '<a href="/... | [
"lyanghwy@gmail.com"
] | lyanghwy@gmail.com |
1dab013843abb603ab9e79b422a3242078190da3 | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Binary Search/random_pick_with_weight.py | afcf82da4a39d8a23af64e02ce48dc98e8f910e0 | [] | no_license | harvi7/Leetcode-Problems-Python | d3a5e8898aceb11abc4cae12e1da50061c1d352c | 73adc00f6853e821592c68f5dddf0a823cce5d87 | refs/heads/master | 2023-05-11T09:03:03.181590 | 2023-04-29T22:03:41 | 2023-04-29T22:03:41 | 222,657,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | class Solution:
def __init__(self, w: List[int]):
self.prefix_sums = []
prefix_sum = 0
for weight in w:
prefix_sum += weight
self.prefix_sums.append(prefix_sum)
def pickIndex(self) -> int:
target = self.prefix_sums[-1] * random.random()
low, high... | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
b7e1d9c7f1c5e46dc66f4d0824211768cac1b0bb | 2da6133f3cd5c5fc19355292d60253b8c0dbcd49 | /.history/antz/urls_20200404011753.py | 1eecd60e27f111ada7b241dcc69c8239d8520e70 | [] | no_license | mirfarzam/python-advance-jadi-maktabkhooneh | b24f5c03ab88e3b12c166a439b925af92f50de49 | d9bcecae73fd992f1290c6fd76761683bb512825 | refs/heads/master | 2021-05-25T21:33:37.782734 | 2020-04-07T22:39:28 | 2020-04-07T22:39:28 | 253,927,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | from django.ur | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
7b16f6916445632f780de5106c5889490d18e26f | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/a9927ad6e5ba4f89bd5c3f0737821679.py | 17d8802058401427a2fc5e3fa6d862b31b367e4d | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 603 | py | def is_shout(something):
#Remove numbers and symbols
words = [filter(lambda c: c.isalpha(), word) for word in something.split(' ')]
#Remove empty strings
words = filter(lambda w: w != '', words)
#Is only made up of symbols
if len(words) == 0:
return False
for word in words:
if not word.isupper():
retu... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
eee71be8c7f8c23cd11742a81b8c6b7f439ef3ec | 6c5c6871fc5c37247b4059c956f3ac9d7cdeb714 | /.venv/lib/python3.7/site-packages/pip/_internal/vcs/versioncontrol.py | abd29b5e0b242cdb393958c7cc414f6ee946de5e | [] | no_license | masa48326/homework_c | 6596f91849b86ab4655712e4dddf2805231d5df3 | 86c9b83476ee5b18c5edef473f483a4336428d3c | refs/heads/master | 2020-09-05T16:12:09.051967 | 2019-11-07T04:39:47 | 2019-11-07T04:39:47 | 220,152,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,426 | py | """Handles all VCS (version control) support"""
# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
from __future__ import absolute_import
import errno
import logging
import os
import shutil
import sys
from pip._internal.exceptions import BadCommand
from pip._i... | [
"masayuki.shibata.0831@gmail.com"
] | masayuki.shibata.0831@gmail.com |
10c3a220bda52d3546f65939981c082bfbe5aa43 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/automation/azure-mgmt-automation/azure/mgmt/automation/operations/_module_operations.py | 2631b41442654ac235c014b7eee8034587477568 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"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 | 32,998 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
02954e5cfb06694ad8d02e4ad958b9a6e43bf83d | 1c2ed80f77782ebee5b90480dbfc74a2d145d53f | /python-base/src/ml/logistic/logistic.py | 410e2e8517c29c4692aa123414dae4a12a46b3f8 | [] | no_license | icesx/IPython | 970dfe7260906d85706b7117044510b5929e9098 | 452c63e17c6f05cb0540974f7c01c1e73f9836fe | refs/heads/master | 2021-07-05T02:30:29.956369 | 2021-02-02T07:09:58 | 2021-02-02T07:09:58 | 220,771,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | import pandas as pd
# read the data in
df = pd.read_csv("http://www.ats.ucla.edu/stat/data/binary.csv")
# take a look at the dataset
print(df.head()
# admit gre gpa rank
# 0 0 380 3.61 3
# 1 1 660 3.67 3
# 2 1 800 4.00 1
# 3 1 640 3.19 4
# 4 0 520 2.93 4
... | [
"icesxrun@gmail.com"
] | icesxrun@gmail.com |
ca94d04ecd683936434dcadeb47fcfb6f8bd7315 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/propter.py | 4f2e9358c053dd6deae1bdddb2179407f3e9495b | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 142 | py | ii = [('KembFFF.py', 1), ('LeakWTI3.py', 1), ('FitzRNS3.py', 5), ('WilkJMC2.py', 1), ('WestJIT.py', 1), ('BellCHM.py', 1), ('AinsWRR2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
430c35cfb261bc93916c9e2e700aecb2523ad68c | d5464985c22c0ea937929d18d1599f4d369ffbf0 | /pressgang/actions/install/steps/apache.py | fd2a2eb747f68516e06454754f799c3922eed4cc | [
"BSD-2-Clause"
] | permissive | cilcoberlin/pressgang | f67e3182ea88a53ea4b10ab051a1c1f367a523bf | 24e354769841dd6962f38cef3bd45f8297b040c6 | refs/heads/master | 2021-01-01T18:12:50.346476 | 2012-07-17T16:47:18 | 2012-07-17T16:47:18 | 2,030,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 704 | py |
from django.utils.translation import ugettext_lazy as _
from pressgang.actions.install.steps import InstallationStep
from pressgang.actions.install.exceptions import InstallationError
class Step(InstallationStep):
name = _("Apache configuration")
def execute(self, blog, installer):
"""Configures Apache to be a... | [
"justin.locsei@oberlin.edu"
] | justin.locsei@oberlin.edu |
54a866dabe7f8a63e3149fbd0e99170bef66c708 | 1362bc36e86f8216d405b547f5f45874ac332b1e | /Google/graphValidTree.py | 0846e5af731fa9c70fa798ce991466d5f522246b | [] | no_license | zhuolikevin/Algorithm-Practices-Python | ed5ca06758e35d910ffbea011b414b3c57fd6c7a | 1df8d93a8ecb8627899aadddb5dd5c5d0b144cdf | refs/heads/master | 2021-01-22T01:04:31.536327 | 2016-01-15T13:31:07 | 2016-01-15T13:31:07 | 32,602,632 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | class UnionFind:
def __init__(self, n):
self.count = n
self.parent = {}
for i in range(n):
self.parent[i] = i
def find(self, x):
parent = self.parent[i]
while parent != self.parent[parent]:
parent = self.parent[parent]
return parent
... | [
"lizhuogo@gmail.com"
] | lizhuogo@gmail.com |
8b35aa0392dbadafd8f28e26cf1525488205eb12 | 65157acc8b12064bde1ed971cf146a66c992948c | /python/ch16/tracks/tracks.py | 7a0df87adc7337fb3c9a32b74a4a7b16e0cc6bea | [] | no_license | didw/lecture | b198878cef6d90da3e148bc610f3c094441ac8c3 | 1cad26211b2e0cfa9ac57a8b98adca0246a225c7 | refs/heads/master | 2021-01-21T04:41:03.892476 | 2016-06-28T11:00:49 | 2016-06-28T11:00:49 | 48,176,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,706 | py | import xml.etree.ElementTree as ET
import sqlite3
conn = sqlite3.connect('trackdb.sqlite')
cur = conn.cursor()
# Make some fresh tables using executescript()
cur.executescript('''
DROP TABLE IF EXISTS Artist;
DROP TABLE IF EXISTS Genre;
DROP TABLE IF EXISTS Album;
DROP TABLE IF EXISTS Track;
CREATE TABLE Artist (
... | [
"yangjy0113@gmail.com"
] | yangjy0113@gmail.com |
cd2c9e95bcd67ca68e8e463f37d4a2fddf2347cc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_076/ch88_2020_05_12_11_18_30_500573.py | 6c0a68ed01d229a1ba8b53d24a179eeed5dd88fc | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | class Retangulo:
def __init__ (self,p1,p2):
self.p1 = p1
self.p2 = p2
def calcula_perimetro (self):
P = 2*(self.p1.x-self.p2.x+self.p1.y-self.p2.y)
def calcula_area (self):
A = abs(self.p1.x-self.p2.x) * abs(self.p1.x-self.p2.x) | [
"you@example.com"
] | you@example.com |
3d6caac36a8dab2899fcd12a79cafb71579da5cd | 23514a0e2baf6da053690dd511f1eef75a573e6b | /log-mining/com/haodou/log-mining/log/TimeUtil.py | 931e2c7a91c8b23f003d4d3f9873ef7a71de1a40 | [] | no_license | rainly/scripts-1 | b5f31880a1a917df23e4c110bb7661685851eff5 | 3ef01a58162b94fb36cdd38581c899d8a118eda0 | refs/heads/master | 2020-07-12T01:41:31.491344 | 2019-08-27T08:50:10 | 2019-08-27T08:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | import sys
import time
import datetime
def days(begin,end):
bt=time.strptime(begin,"%Y-%m-%d")
et=time.strptime(end,"%Y-%m-%d")
bit = int(time.mktime(bt))
eit = int(time.mktime(et))
ds=[]
while bit <= eit:
begin = time.strftime("%Y-%m-%d",bt)
ds.append(begin)
bdt = datetime.datetime.fromtimestamp(bit)
b... | [
"zhaoweiguo@vxiaoke360.com"
] | zhaoweiguo@vxiaoke360.com |
2012480f3f68a691b008f12728086f265a81e5a5 | 26713de213d80a77e486bbc5ec09f490ce5d84df | /src/ra_apply_schema_changes.py | 7b9cb62e68f0dcff9963f0b552eab8de7cba5648 | [
"MIT"
] | permissive | lbracken/hello-world | 39dd1a014c3903a80395ca28b31b0ba7f92843af | 4b258212382be9483b80ba8d4d8eafefc3dea26e | refs/heads/master | 2020-12-03T10:24:59.223655 | 2014-03-30T05:24:55 | 2014-03-30T05:24:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,091 | py | import sys, uuid
from datetime import datetime, date, timedelta
sys.path.append("/flowstacks/public-cloud-src")
from logger.logger import Logger
from modules.base_api.fs_web_tier_base_work_item import FSWebTierBaseWorkItem
from connectors.redis.redis_pickle_application import RedisPickl... | [
"jay.p.h.johnson@gmail.com"
] | jay.p.h.johnson@gmail.com |
a4116096697ad5ebdc56681c2d8feca7f83e40d6 | 58b87ea29a95a5ceeaae4c2d7db1b16502ed158f | /Numerical Analysis/newtonsMethod.py | e3f77024ab65a6ebb6210828a9ee930abd4423fb | [] | no_license | meyerpa/Python | b609e8c036b478b20cd17a4cc47b71c129c968f8 | 3797f9be3341e69d5e9eccfc1b4e7f52fdd9c666 | refs/heads/master | 2021-01-01T03:58:40.183829 | 2018-03-14T14:24:57 | 2018-03-14T14:24:57 | 56,526,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | """
Description: Newton's method
"""
__author__ = "Paige Meyer"
__date__ = "09/12/2016"
def f(x):
return ((12*1000)/x)*(1-(1+(x/12))**-360) - 135000
def fPrime(x):
return (-(12000)/x**2)*(1-(1+(x/12))**-360) + ((12000)/x)*(1+30*(1+(x/12))**-361)
def newton(p0, tol):
p = p0 - f(p0) / fPrime(p0)... | [
"meyerpa@mnstate.edu"
] | meyerpa@mnstate.edu |
a6f31cca7530e85d598a9468a0c8e2611e55fc44 | b57d337ddbe946c113b2228a0c167db787fd69a1 | /scr/py00190hextor priest.py | 8394d421de2fa05fe41ab358ba274f4166f58773 | [] | no_license | aademchenko/ToEE | ebf6432a75538ae95803b61c6624e65b5cdc53a1 | dcfd5d2de48b9d9031021d9e04819b309d71c59e | refs/heads/master | 2020-04-06T13:56:27.443772 | 2018-11-14T09:35:57 | 2018-11-14T09:35:57 | 157,520,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | from utilities import *
from combat_standard_routines import *
from toee import *
def san_dialog( attachee, triggerer ):
if ((attachee.leader_get() == OBJ_HANDLE_NULL) and (not(attachee.critter_flags_get() & OCF_COMBAT_MODE_ACTIVE))):
triggerer.begin_dialog(attachee,1)
return SKIP_DEFAULT
return RUN_DEFAULT
d... | [
"demchenko.recruitment@gmail.com"
] | demchenko.recruitment@gmail.com |
4c9b1dbb6b0b9420cb130d9ff05e80132be2c16c | 4e41d7c31163eda370d7392dd93a50835f658d03 | /live.py | f081b3a657ff272e4864168b3cf37702233e8024 | [] | no_license | webclinic017/Cryptic | eba34c5575618ca7e951a16b9ac311f04ae92737 | d87097017b29c24e31ec759639517df395f8b446 | refs/heads/master | 2023-03-17T09:31:10.817418 | 2019-06-10T18:31:57 | 2019-06-10T18:31:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,496 | py | ended = False
try:
from binance.websockets import BinanceSocketManager
from binance.client import Client
import json
from collections import deque
import pandas as pd
import argparse
from pprint import pprint
# import toml
import datetime
import signal
parser = argparse.Argu... | [
"reddy.nithinpg@live.com"
] | reddy.nithinpg@live.com |
17d5037a4c90b323cec3d76ef948c93ffa6053ab | 3daae8bdcc94142cd22fdb3d25580960e84e59b8 | /moose_nerp/cells/d2patch/param_model_defaults.py | ecfbcdeebd201be9ef409df7bf9d9b30179736d1 | [] | no_license | neurord/moose_nerp | a2cc543fe0e02fc5bd473a1b991d599211b36398 | 74bc20685c6e68cbc7a786271c55a6387f437965 | refs/heads/master | 2022-10-11T15:22:14.251028 | 2022-08-24T21:25:31 | 2022-08-24T21:25:31 | 27,131,330 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | #calcium: include or exclude calcium concentration dynamics, single tau
#synYN:No point adding synapses unless they receive inputs
#plasYN:include or exclude plasticity based on calcium
plasYN = False
desenYN = False
ghkYN = False #note that if ghkYN=0, make sure that ghKluge = 1
spineYN = False
synYN = False
calYN = ... | [
"avrama@gmu.edu"
] | avrama@gmu.edu |
739dcc67920c0c8ec757de4e0da288e1aa9b82d0 | f62fd455e593a7ad203a5c268e23129473d968b6 | /senlin-3.0.1/senlin/drivers/openstack/heat_v1.py | 70db2d557c63cc61ec50ac341cef3a366a0d21cc | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 2,733 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
f34ad691ea28b248daf447a2b6f0d4034b1cd7db | 7f9de0e7e60ba59ef0f36f94f163bdb4060de48a | /timetracker/gui/dashboard.py | 5d636fbefd96d2fe4ae03f45a55862621caa0200 | [] | no_license | RupertDodkins/timetracker | f20830148c192869fceef6f7b83a7762368ed8e0 | 2f01042e16fc57e7ab39312062fa2f9de5719b3d | refs/heads/master | 2020-12-10T14:19:26.020631 | 2020-04-26T22:02:45 | 2020-04-26T22:02:45 | 233,617,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,434 | py | """ GUI functionality """
# todo intengrate with rescue time. https://github.com/markwk/qs_ledger/blob/master/rescuetime/rescuetime_downloader.ipynb
# todo quantify impact
import os
import numpy as np
from datetime import datetime
from PyQt5.QtWidgets import QMainWindow, QShortcut
from PyQt5.uic import loadUi
from PyQ... | [
"rupertdodkins@gmail.com"
] | rupertdodkins@gmail.com |
9cb47367804d72e09d7007cd04d89699d0f3810c | 1a55ed9ece22a158360d6aee981eefb7581d41ac | /string_tools/matching_columns.py | ab6d82358288e80f465d9cd0145e9463da5d940f | [] | no_license | charantej224/python_practice_workspace | 394714eb1bacb611bb2a2cf949478a08bd3612e3 | 49f1dea2efe8e8a53fc6671149d98c468de5d306 | refs/heads/master | 2021-06-23T06:20:49.971381 | 2021-03-24T02:49:16 | 2021-03-24T02:49:16 | 210,954,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | with open('actuals.txt', 'r') as f:
actuals = f.readlines()
f.close()
with open('references.txt', 'r') as f:
lookup = f.readlines()
f.close()
for i in len(len(actuals)):
actuals[i] = actuals[i].lower().strip('\n')
for i in len(len(lookup)):
lookup[i] = lookup[i].lower().strip('\n')
match_lis... | [
"charantej.career@gmail.com"
] | charantej.career@gmail.com |
476fdfd3dd61973eabb86bf9369879956e4580c1 | 0c70dcec22a090e70b1f20613ea6e0a64fd9a037 | /GPS卫星位置的计算/venv/Lib/site-packages/pandas/tests/reshape/test_pivot.py | 43500b7808ac8f22852957cee0b9728ffaf826e4 | [
"MIT"
] | permissive | payiz-asj/Gis | 82c1096d830878f62c7a0d5dfb6630d4e4744764 | 3d315fed93e2ab850b836ddfd7a67f5618969d10 | refs/heads/main | 2023-06-27T15:25:17.301154 | 2021-08-03T10:02:58 | 2021-08-03T10:02:58 | 392,269,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 72,294 | py | from datetime import date, datetime, timedelta
from itertools import product
import numpy as np
import pytest
import pandas as pd
from pandas import (
Categorical,
DataFrame,
Grouper,
Index,
MultiIndex,
Series,
concat,
date_range,
)
import pandas._testing as tm
from p... | [
"1778029840@qq.com"
] | 1778029840@qq.com |
7d6cfb13d73f7a492d609419d54c0a9ec09c17d6 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-6126.py | 5b1da9c323b544eec6c39c22248ad06dd2bcc821 | [] | 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 | 23,288 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
6933eddfde6fee08362b62cef98e5eb62c720550 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/vespasian.py | d2724ac1be3861ea4096716ec6151fa9d3eb9a8a | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 277 | py | ii = [('GellWPT.py', 2), ('GellWPT2.py', 2), ('WilkJMC2.py', 1), ('CarlTFR.py', 1), ('RoscTTI3.py', 1), ('WestJIT2.py', 1), ('GodwWLN.py', 7), ('MereHHB3.py', 1), ('MereHHB.py', 1), ('WilkJMC.py', 2), ('MartHRW.py', 1), ('RoscTTI.py', 7), ('JacoWHI.py', 6), ('HogaGMM2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
ca3f6e0ff23408a050afd286d248bc7596eb2c2c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02582/s877353914.py | 03181cd624bc15d28b40c77529e57d35fe5e2c18 | [] | 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 | 335 | py | def main():
# 文字列の入力
sr = input()
rc_cnt = 0
rc_ans = 0
for s in sr:
if (s == 'S'):
rc_cnt = 0
elif (s == 'R'):
rc_cnt = rc_cnt + 1
if (rc_cnt > rc_ans):
rc_ans = rc_cnt
print(rc_ans)
if __name__ == '__main__':
main... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2084dfbd2a2ffdf7cf71d0b3261fdc80158f3727 | 5d5cd9b198cd6c88c6101ebca3de61f10b1ab482 | /tests/operators/test_tee_map.py | 7ea8887afa27ebe307e09a00ed2e6b8342078b77 | [
"MIT"
] | permissive | bnounours/rxsci | 3cd4c2769f514f1266a74b2326f9a390ff9c93c1 | 323f99fe32c289039091c2af4955e27606a58992 | refs/heads/master | 2023-07-03T19:12:44.773638 | 2021-08-06T15:08:18 | 2021-08-06T15:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,301 | py | import rx
import rx.operators as ops
import rxsci as rs
def test_tee_map():
source = [1, 2, 3, 4]
actual_result = []
expected_result = [
(2, 1),
(4, 2),
(6, 3),
(8, 4),
]
rx.from_(source).pipe(
rs.ops.tee_map(
lambda d: d.pipe(
o... | [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
a6d69a8389a2ef5988a4a5ffcdf8e01883af6628 | 744becaf62ee0cc47e23f997a9e175de5cbeaca3 | /app/app/settings.py | b71ed6d207dd4ff8e88a48f1ac24964bdff26deb | [] | no_license | Akhtyrtsev/test_task | e9d80e315a4dab64ce3b20af99788a91ed69b03a | f4a02f2cf5c21e46f4844e66876b5d83587ceacd | refs/heads/main | 2023-03-30T04:27:43.838691 | 2021-03-31T13:44:04 | 2021-03-31T13:44:04 | 353,306,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,072 | py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib imp... | [
"akhtyrtsev@gmail.com"
] | akhtyrtsev@gmail.com |
47e50a8aae51e870224d176d12777539c9424501 | 56c3cefe1da4731175ee73d90ca2629d79bfe696 | /egs/pku_rmrb/data_process.py | 0a1d3e698bcade1e55487b7000c2a8e98cd49a44 | [] | no_license | wbengine/TRF-NN-Tensorflow | 022a187c80c80293553958c17a267c7eaf81213f | e225829c36043293d092cf8ed620d6dce0abc8f0 | refs/heads/master | 2022-04-16T10:20:46.999159 | 2020-03-05T04:56:20 | 2020-03-05T04:56:20 | 114,067,559 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,647 | py | import os
import json
import codecs
from base import *
pku_rmrb_path = '//166.111.64.114/workspace2/spmiData/pku_rmrb'
output_path = 'data'
sentence_max_len = 100
sentence_min_len = 1
sentence_end_tokens = [',', '。', ':', ';', '?', '!',
',', '.', ':', ';', '?', '!']
sentence_fol... | [
"wb.th08@gmail.com"
] | wb.th08@gmail.com |
8b03b4220ef048830433548fdecc035c47dcaa75 | d02075c009445764af3753b9b72b416398b5e3ac | /src/pyensae/remote/remote_connection.py | bc5548894dd35a7462f761a39016a16cedac6f28 | [] | no_license | ped4747/pyensae | b2b320199784683bae1fe703569a81f1edb646cf | 0df400cb24df50f7c2a36490b3f882dd83598a08 | refs/heads/master | 2021-01-14T10:44:26.339888 | 2014-11-07T14:04:59 | 2014-11-07T14:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,861 | py | """
@file
@brief A class to help connect with a remote machine and send command line.
"""
import time, socket
class ASSHClient():
"""
A simple class to access to remote machine through SSH.
It requires modules
`paramiko <http://www.paramiko.org/>`_,
`pycrypto <https://pypi.python.org/pypi/pycrypt... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
f4020caa78d33ab5fd48715e973307404f6a45cf | 56cd86b5438db288a2b602166071b079ffc5c22f | /backend/api_struct_2_db_table.py | 335d2d43d898d2f301d1aad7898ff04d533a1aca | [
"MIT"
] | permissive | mmmaaaggg/QABAT | d789921151533fd0c9fd4b89dc5eee2137b67e80 | d6f20d926de047af6857e466cf28084d0ba69993 | refs/heads/master | 2022-07-13T10:10:28.985442 | 2021-01-27T07:05:46 | 2021-01-27T07:05:46 | 139,661,275 | 4 | 1 | MIT | 2022-06-21T22:03:11 | 2018-07-04T02:58:18 | Python | UTF-8 | Python | false | false | 3,091 | py | # -*- coding: utf-8 -*-
"""
将API struct 相关对象镜像为数据库表
由于表示自动建立的,因此,默认不添加主键
所有表的主键需要手动建立
Created on 2017/7/9
@author: MG
"""
from sqlalchemy import create_engine, MetaData, Column, String, Date, Time, SmallInteger
from sqlalchemy.dialects.mysql import DOUBLE, INTEGER, TINYINT, SMALLINT
from sqlalchemy.engine import Engine... | [
"mmmaaaggg@163.com"
] | mmmaaaggg@163.com |
f0c8167a9a0627d2fd655cb6e42db554a092ff79 | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/.install/.backup/lib/surface/compute/instance_templates/create_with_container.py | 7c3c0d039865717578b5397b7652d3cdd667b15f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 14,632 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
e80deca048e4e98690bee4c63afc4cb9ced49143 | 3dfb4ee39555b30e6e0c6fcdbef371864e69f694 | /google-cloud-sdk/.install/.backup/lib/surface/compute/networks/subnets/list.py | c64b7a7bcf2269ea5d7e1d66402d04330799d470 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | MD-Anderson-Bioinformatics/NG-CHM_Galaxy | 41d1566d5e60416e13e023182ca4351304381a51 | dcf4886d4ec06b13282143ef795c5f0ff20ffee3 | refs/heads/master | 2021-06-02T21:04:12.194964 | 2021-04-29T14:45:32 | 2021-04-29T14:45:32 | 130,249,632 | 0 | 1 | null | 2020-07-24T18:35:21 | 2018-04-19T17:25:33 | Python | UTF-8 | Python | false | false | 1,651 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"rbrown@insilico.us.com"
] | rbrown@insilico.us.com |
91c44bb83874e5c52875e896e8d70b7b539aec1a | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /ACL_PyTorch/contrib/audio/rawnet2/RawNet2_preprocess.py | a0e421fb775828d7a58efc6a9d9100e3e3b06471 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,025 | py | # Copyright 2021 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 ... | [
"noreply@gitee.com"
] | noreply@gitee.com |
ced4609cc5b917fc7f3a4b098d15ee3c28058c38 | e927d439ad7aa912ed3072e15428396f8ee41932 | /cc19_cnn_fusion.py | 5bc5f580a9d55e43f5fccd7e779bd55399eb34d0 | [] | no_license | fuqianggu/hand_gestures_cc19 | 1b03a4c2691bff53f07be799fe24c66e129663b9 | 5f4990e099bebfe994014e6030245b8b15ad2b64 | refs/heads/master | 2022-01-30T20:57:27.669359 | 2019-07-08T15:05:11 | 2019-07-08T15:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,282 | py | # -*- coding: utf-8 -*-
"""dnn_fusion.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Mt1Y8RVnkaYYGxZQlB42vDlCL4R0o_J5
"""
# install PyDrive
!pip install -U -q PyDrive
# imports
from __future__ import print_function
import os
import keras
impor... | [
"enea.ceolini@gmail.com"
] | enea.ceolini@gmail.com |
569b6c2553f84796bc1cf79d2e8b6a770d2c7372 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /media/gpu/vaapi/DEPS | c9f1ca2e2268255cb1b5f421dd078a58501e2f20 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 216 | include_rules = [
"+chromeos/components/cdm_factory_daemon",
"+third_party/libva_protected_content/va_protected_content.h",
]
specific_include_rules = {
".*_unittest\.cc": [
"+third_party/libwebp",
],
}
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
0282e8d5eea96a90ae05cd0745ab345e8057878e | 79bbc2bf3a12c463bf497a68163d4a15a9290a3f | /src/programmers/Desktop cleanup.py | b2a6d78b6f325a154d1cb4dc76b98a58936fa4af | [] | no_license | melodist/CodingPractice | f5cf614f3be07211d0afe02141b7f6848abeaa12 | 96f56c8b4779a8616e6c9b7ad570010e85c89b68 | refs/heads/master | 2023-09-01T08:02:43.090395 | 2023-08-27T13:33:53 | 2023-08-27T13:33:53 | 238,710,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | """
https://school.programmers.co.kr/learn/courses/30/lessons/161990
"""
#1. My Solution
def solution(wallpaper):
lux = luy = float('inf')
rdx = rdy = 0
for i, row in enumerate(wallpaper):
for j, p in enumerate(row):
if p == '#':
lux = min(j, lux)
luy = mi... | [
"noreply@github.com"
] | melodist.noreply@github.com |
d5e2bd10acabaa98f3237490afe56d0ecdf9acef | 338dbd8788b019ab88f3c525cddc792dae45036b | /lib/python3.6/site-packages/statsmodels/tsa/innovations/tests/test_arma_innovations.py | 509074bba3ea0082e3e3debca840977b0425023e | [] | permissive | KshitizSharmaV/Quant_Platform_Python | 9b8b8557f13a0dde2a17de0e3352de6fa9b67ce3 | d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39 | refs/heads/master | 2022-12-10T11:37:19.212916 | 2019-07-09T20:05:39 | 2019-07-09T20:05:39 | 196,073,658 | 1 | 2 | BSD-3-Clause | 2022-11-27T18:30:16 | 2019-07-09T19:48:26 | Python | UTF-8 | Python | false | false | 1,877 | py | """
Tests for ARMA innovations algorithm wrapper
"""
from __future__ import division, absolute_import, print_function
import numpy as np
import pytest
from numpy.testing import assert_allclose
from statsmodels.tsa.innovations import arma_innovations
from statsmodels.tsa.statespace.sarimax import SARIMAX
@pytest.mar... | [
"kshitizsharmav@gmail.com"
] | kshitizsharmav@gmail.com |
baa305adc0774406bda30bca5be77042e078dddd | 82170ecf3333cfffb3e18c9dcbfbee955107aacd | /new-joy-board/bmp280-sensor-board/scripts/zip-manufacturing-files.sh | f9e9053c2fc2416ad915f7bdf272ddedaaaf75f2 | [
"MIT"
] | permissive | deets/new-joy-tracker | db22625a731b68f95ff4e691d418f2ccadf42f12 | 1c8ac1ab14e2bec4b9980dbb3913b41e18603c4b | refs/heads/master | 2021-07-09T17:52:16.355232 | 2019-02-08T16:36:46 | 2019-02-08T16:37:10 | 145,215,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | sh | #!/usr/bin/env python3
# -*- mode: python -*-
import os
import sys
import zipfile
import glob
import pathlib
BASE = (pathlib.Path(__file__).parent / "..").absolute()
NAME = BASE.parent.parent.name
GLOBS = "*.gbr", "*.drl"
def main():
os.chdir(BASE)
zip_file_name = "{}.zip".format(NAME)
print(zip_file_nam... | [
"deets@web.de"
] | deets@web.de |
96a8b784eb4f1a5c6c892eb273ee39149b3a9fb7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02846/s916160857.py | d420faf7093f31a629cc377d86f3164e12002221 | [] | 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 | 466 | py | T1, T2=(int(i) for i in input().split())
A1, A2=(int(i) for i in input().split())
B1, B2=(int(i) for i in input().split())
if T1*A1+T2*A2==T1*B1+T2*B2:
print("infinity")
elif ((A1>B1) & (T1*A1+T2*A2-(T1*B1+T2*B2)>0)) or ((A1<B1) & (T1*A1+T2*A2-(T1*B1+T2*B2)<0)):
print(0)
else:
d=abs(T1*A1+T2*A2-(T1*B1+T2*B... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0b12b06d3cad6ece3092221e0f37f26cae44cfbf | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-903.py | e3a55344a7d8949e4c265d290df2e3afad4b3f56 | [] | 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 | 31,750 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
d5a0ff2466aa991a2f8fd8f03eb20467be7a2b53 | 33f09117b8447ee971e2c534c31abd4a799a2237 | /desktop/libs/hadoop/src/hadoop/yarn/mapreduce_api.py | c0d6033dbdc3c16d045e209d7503c4b5dd4f4d97 | [
"Apache-2.0"
] | permissive | jack19861225/hue-1 | 18eedce48053f23bf5fa2295f4c57f0ac6bdbe2a | 28ecd0c751844f0e4e080c440ca912fa7cded1d4 | refs/heads/master | 2020-11-30T23:29:45.678749 | 2013-04-11T00:24:55 | 2013-04-11T00:26:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,219 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"romain@cloudera.com"
] | romain@cloudera.com |
8aa1f13061da5cdb3221d321050fdacd441cac50 | 98c99e6e63caa288884213d9fc4ff2b4543ce352 | /theta-0.24.1/theta/modeling/seqlabel/trainer.py | 88cf80f0d3b66102ccf60b586404be9afbda11d7 | [] | no_license | kelvincjr/myRepo | 7f618db9e467457afa08526be45785e0d9f14d08 | 24e5e6f367160685ec93978e27588d357f802af0 | refs/heads/master | 2022-12-11T07:20:35.123738 | 2021-09-01T11:19:55 | 2021-09-01T11:19:55 | 146,979,104 | 12 | 1 | null | 2022-12-08T07:39:40 | 2018-09-01T07:48:59 | Python | UTF-8 | Python | false | false | 20,745 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#%% ------------------------------------------------------------
import os, sys
import re, json, pickle
import numpy as np
import pandas as pd
import warnings
warnings.filterwarnings('ignore')
#%matplotlib inline
# sns.set(style='white', context='notebook', palette='deep'... | [
"deco_2004@163.com"
] | deco_2004@163.com |
16a20446a87ab79869e8b615e44a848d14a1f2d8 | 147e366b5886d6d858d4090da303fcdb10d32957 | /code/zato-admin/src/zato/admin/web/views/definition/jms_wmq.py | a5703e8e06586b7cc14da5d9f7790f7e116c8470 | [] | no_license | brtsz/zato | 67e572e9d00f9f7f186085987e6427ff6ca5246c | 91ecd949b714ca902472ce34cbbd9c93c4f4b309 | refs/heads/master | 2021-01-15T17:56:15.387190 | 2012-01-29T18:19:39 | 2012-01-29T18:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,989 | py | # -*- coding: utf-8 -*-
"""
Copyright (C) 2011 Dariusz Suchojad <dsuch at gefira.pl>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later ve... | [
"dsuch-github@gefira.pl"
] | dsuch-github@gefira.pl |
5e0aba35b23a9afe27fd1a6879ef3ac82a4a947f | e31f1f0c7e2ee0c9cf3a8bc7bc4a36e5e7f54442 | /app/lib/webassets/filter/coffeescript.py | 5d988bad07957848c474482e6a892649dbd5ef2d | [] | no_license | nimnull/gaejstable | affe41046d331deba49cd7a5924b85ac0d06af5f | e1dcde7986bdce5c295981ec8d74deef91713a54 | refs/heads/master | 2016-09-06T12:18:48.469438 | 2012-02-13T16:37:27 | 2012-02-13T16:37:27 | 3,582,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | import os, subprocess
from webassets.filter import Filter
from webassets.exceptions import FilterError
__all__ = ('CoffeeScriptFilter',)
class CoffeeScriptFilter(Filter):
"""Converts `CoffeeScript <http://jashkenas.github.com/coffee-script/>`_
to real JavaScript.
If you want to combine it with other J... | [
"nimnull@gmail.com"
] | nimnull@gmail.com |
c5b69bcebe781c0c9c9a2fd287844f88def8a7f0 | 329581f12d816a79a9b1bf90c8e0e038697f4e92 | /monitor_zabbix/space_api_monitor/follow_user_feed.py | 99426d50e02e9c9c707fb0a901d7c4cf67b9d90f | [] | no_license | syfad/code | 343dcb510dded4e9dfb4335e2bb1ae80a5b51db7 | b7b5cb90025ba6947222e4987c74f3efe5ffb248 | refs/heads/master | 2021-06-04T13:52:33.746402 | 2020-07-28T04:11:37 | 2020-07-28T04:11:37 | 51,892,476 | 2 | 0 | null | 2017-09-18T11:00:18 | 2016-02-17T03:46:03 | Python | UTF-8 | Python | false | false | 1,004 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# auth:sunyunfeng(sunyfad@gmail.com)
# 关注的人feed
import urllib
import urllib2
import sys
import json
import api_login
uid = api_login.uid()
token = api_login.token()
values = {
"client_info": {
"app": "jiyuspace",
"app_version": "1.30",
"version": "1.0",
"type": "unkn... | [
"sunyfad@gmail.com"
] | sunyfad@gmail.com |
10e42765bfa7fed6eaf83b603ea3a51c0df650ce | dc67e70a303f265ee6cb4c1a2d61fe811053fb3d | /beginner/047/D.py | 97b13f40b281927da5bfcefa666113c0ef0a19a8 | [] | no_license | cry999/AtCoder | d39ce22d49dfce805cb7bab9d1ff0dd21825823a | 879d0e43e3fac0aadc4d772dc57374ae72571fe6 | refs/heads/master | 2020-04-23T13:55:00.018156 | 2019-12-11T05:23:03 | 2019-12-11T05:23:03 | 171,214,066 | 0 | 0 | null | 2019-05-13T15:17:02 | 2019-02-18T04:24:01 | Python | UTF-8 | Python | false | false | 1,473 | py | def an_invisible_hand(N: int, T: int, A: list) -> int:
max_profit = 0
max_profit_pair_num = 0
min_price = A[0]
for price in A[1:]:
# 今まで訪れた街の中で最安値で買えるところで買えるだけ
# 買って今いる街で全て売ると仮定して利益を算出
profit = price - min_price
if max_profit < profit:
# 利益の最大値を更新できるなら更新する。
... | [
"when.the.cry999@gmail.com"
] | when.the.cry999@gmail.com |
53df3b4bbf30d721dd20d8f31bfa8602220a82ed | 05ba1957e63510fd8f4f9a3430ec6875d9ecb1cd | /.history/fh/c_20200817042814.py | e893cc3c07d8f1d83890b41ceed73e40ce3f877e | [] | no_license | cod-lab/try | 906b55dd76e77dbb052603f0a1c03ab433e2d4d1 | 3bc7e4ca482459a65b37dda12f24c0e3c71e88b6 | refs/heads/master | 2021-11-02T15:18:24.058888 | 2020-10-07T07:21:15 | 2020-10-07T07:21:15 | 245,672,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | import fileinput as fi
import requests as r
import pprint as p
import sys as s
def read_file():
with open('a.md','r') as f:
for i, line in enumerate(f):
if 37<i<43:
temp[i] = line
def write_file():
for line in fi.FileInput('a.md',inplace=1):
for i in temp:
... | [
"arihant806@gmail.com"
] | arihant806@gmail.com |
3ff36b257d7120453c6d6846b6d7cbd5d31cae15 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/policyinsights/v20190701/list_remediation_deployments_at_management_group.py | 7f6e7095409103f0e21286e670576955212de2f8 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 3,499 | 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
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
4bf4e20078b0028f3f2acd9e8d807a6f560dc216 | 0e7514552dfc05b63738228e99d0b5333b8e9d41 | /tests/security_token/transfer/investor_counts.py | 9d7efec93cc3cb98d46296e4ed0e39576c8c5a4d | [
"Apache-2.0"
] | permissive | Jlevjean/SFT-Protocol | cd6161c2087f5ed1000a533df18c2209d043c280 | bbfaf94df448bf9e653ae2f7d8a1edbf9d693a46 | refs/heads/master | 2020-05-17T23:20:52.137990 | 2019-04-28T21:38:21 | 2019-04-28T21:38:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | #!/usr/bin/python3
from brownie import *
from scripts.deployment import main
def setup():
config['test']['always_transact'] = False
main(SecurityToken)
global token, issuer
token = SecurityToken[0]
issuer = IssuingEntity[0]
token.mint(issuer, 1000000, {'from': a[0]})
def issuer_to_investor(... | [
"ben.hauser@hyperlink.technology"
] | ben.hauser@hyperlink.technology |
37d1ee4c9cb7c354b01051ebb8a7036d9b467ef1 | 89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7 | /SoftUniBootcamPrep/EXAM_01_11_2020/New folder/exam/app/admin.py | 222eabb621000c81a4d462c3ba312ad6e0457260 | [] | no_license | KoliosterNikolayIliev/Softuni_education | 68d7ded9564861f2bbf1bef0dab9ba4a788aa8dd | 18f1572d81ad9eb7edd04300deb8c81bde05d76b | refs/heads/master | 2023-07-18T09:29:36.139360 | 2021-08-27T15:04:38 | 2021-08-27T15:04:38 | 291,744,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.contrib import admin
from app.models import Recipe
admin.site.register(Recipe)
| [
"65191727+KoliosterNikolayIliev@users.noreply.github.com"
] | 65191727+KoliosterNikolayIliev@users.noreply.github.com |
03e674fec63d9c4fc0e6576841eb8bd73868f201 | 1eddc123709611cf2ddccb0b7d48b722b2a09a5d | /plugins/modules/fmgr_spamfilter_profile_yahoomail.py | 0bbec2a84f05e6c3d59c20da32c04ddea169624e | [] | no_license | fortinet-ansible-dev/ansible-galaxy-fortimanager-collection | bfb2014a72007358b491bb1d27c0fa3191ec62a8 | 63b65abce410ed4d6b76e3dd1dcf7a4341cc173d | refs/heads/main | 2023-07-09T04:33:38.304263 | 2023-06-21T21:11:57 | 2023-06-21T21:11:57 | 242,629,431 | 10 | 18 | null | 2022-12-16T15:57:16 | 2020-02-24T02:28:03 | Python | UTF-8 | Python | false | false | 11,624 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2023 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | [
"hq-devops-admin@fortinet.com"
] | hq-devops-admin@fortinet.com |
c93e0ab58a4a7c5ffbd365d836db8bd64f07859d | 584db1be8b6bdedaa56d186692ad72da5ee07164 | /patron/tests/unit/network/test_rpcapi.py | fd98a55b0c9d84f9777fe540cc9879e2a4c86955 | [
"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 | 11,961 | py | # Copyright 2013 Red Hat, 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 agre... | [
"hsluoyz@qq.com"
] | hsluoyz@qq.com |
fa41e31fdfe2ad236c88e91930e2f5b64d595668 | 5a764478de28f157f2bb8f29cc45f53bd72565ed | /imgur_api.py | d09d86f83a5e17e041bbf3be94d4697b0c8ed5a8 | [
"MIT"
] | permissive | JakeRoggenbuck/ImgurApi | e924286a020aaa52551659e04ecc2c0948ec0f64 | c40274b87f5f8a6254361084a51ab07c3f7f921d | refs/heads/master | 2023-08-08T08:11:49.843019 | 2023-07-23T19:27:18 | 2023-07-23T19:27:18 | 299,751,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,385 | py | import base64
import fire
import json
from pymongo import MongoClient
import requests
import yaml
class Database:
def __init__(self, db_name: str, location: str = "localhost", port: int = 27017):
"""Set default location and port"""
self.db_name = db_name
self.location = location
se... | [
"jakeroggenbuck2@gmail.com"
] | jakeroggenbuck2@gmail.com |
7a0de7b280bb2b20576e047128e0fd6d6458e49c | e7af5a3e76e674be0a85628067fa494348d45123 | /Python-for-Finance-Second-Edition-master/Chapter13/c13_03_print_moodyAAAyield.py | df95f026d25ab0f08b477c3d77ad8c8a27964230 | [
"MIT"
] | permissive | SeyedShobeiri/Work | 8321ead6f11de8297fa18d70a450602f700f26fb | f758e758106fbd53236a7fadae42e4ec6a4e8244 | refs/heads/master | 2022-07-25T02:33:25.852521 | 2020-05-17T16:11:27 | 2020-05-17T16:11:27 | 264,706,380 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | """
Name : c13_03_print_moodyAAAyield.py
Book : Python for Finance
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 2/27/2017
email : yany@canisius.edu
paulyxy@hotmail.com
"""
import pandas as pd
x=pd.read_pickle("c:/temp/moodyAAAyield.p")
print(x.head())
print(x.t... | [
"shobeiri@math.uh.edu"
] | shobeiri@math.uh.edu |
ff9d858320c6731e30bcd1dc4785b75067279475 | 7c12b6487874b3db564e5c900be55fd9e050f765 | /hilder_friends/xiaozijia_core/register.py | 7000964660872aa6c3ebd0a77acef251cb0db6a5 | [] | no_license | pjkui/githubproject | 9f1ea63bb12903d8a72e0ecb4aa6c8c02a7a45f8 | 808cb78fc3887f35bf838d77d62308fce9e6aa5d | refs/heads/master | 2022-10-06T00:11:34.493886 | 2019-10-07T13:09:18 | 2019-10-07T13:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | from xiaozijia_core.y666yun import GetPhone
import requests
import re
from lib.mongo import Mongo
import datetime
import random
proxy = "http://%(account)s:%(password)s@%(host)s:%(port)s" % {
"host": "http-proxy-sg2.dobel.cn",
"port": "9180",
"account": 'FANGJIAHTT1',
"password": "HGhyd7BF",
}
proxies ... | [
"1735429225@qq.com"
] | 1735429225@qq.com |
47f38477f9c971935db96f40671247d473c600ff | b342ee1cb11dccc608aea374c2311b94dc54e79e | /askcode/app/securitygroup/sec_mixin.py | 8b40878b05f228dda72b4f7399b7c368a63462b4 | [] | no_license | mcnigno/askcode | d7c614d23437e66c5beacb2a7f38aa6764ecc872 | f74a886817cf4973ada7e44be94141c0f154465c | refs/heads/master | 2020-04-14T12:02:02.013367 | 2019-01-28T07:14:08 | 2019-01-28T07:14:08 | 163,828,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,222 | py | import datetime
import logging
from sqlalchemy import Column, Integer, ForeignKey, DateTime, String, Sequence, UniqueConstraint, Table
from sqlalchemy.orm import relationship
import sqlalchemy.types as types
from sqlalchemy.ext.declarative import declared_attr
from flask_appbuilder.models.sqla.filters import FilterSta... | [
"mcnigno@gmail.com"
] | mcnigno@gmail.com |
11d92be718debde723243b89fb319db27449edbd | 1edb2455db66707fdfc0867b8c1efee231018105 | /programs/sa.py | c14c781b3a2fa3fc828db9d0b4cb5833477880d9 | [
"MIT"
] | permissive | QuantumBFS/JuliaChallenge | dc6d9c5f0076ed701035fdeb5e6f97d4bb2dee72 | 32cb905569b52466d85c1d879128c22ebaa32662 | refs/heads/master | 2022-10-09T15:50:40.280473 | 2022-09-20T14:51:20 | 2022-09-20T14:51:20 | 149,432,916 | 22 | 4 | MIT | 2019-07-09T10:29:21 | 2018-09-19T10:23:34 | Jupyter Notebook | UTF-8 | Python | false | false | 3,178 | py | '''simulate annealing'''
from numpy import *
from abc import ABCMeta, abstractmethod
from collections import namedtuple
import pdb,time,copy
__all__=['SAP','anneal','anneal_singlerun','sap']
class SAP(object, metaclass=ABCMeta):
'''
Simulated Annealing Problem.
'''
@abstractmethod
def get_cost(s... | [
"cacate0129@gmail.com"
] | cacate0129@gmail.com |
7e8651752abf6ded7731dcf8072f01ef136ad1dd | de01cb554c2292b0fbb79b4d5413a2f6414ea472 | /algorithms/Medium/932.beautiful-array.py | c157ef6e80abf937ce91b6a9069e837bda2a105d | [] | no_license | h4hany/yeet-the-leet | 98292017eadd3dde98a079aafcd7648aa98701b4 | 563d779467ef5a7cc85cbe954eeaf3c1f5463313 | refs/heads/master | 2022-12-10T08:35:39.830260 | 2020-09-02T23:12:15 | 2020-09-02T23:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | #
# @lc app=leetcode id=932 lang=python3
#
# [932] Beautiful Array
#
# https://leetcode.com/problems/beautiful-array/description/
#
# algorithms
# Medium (58.56%)
# Total Accepted: 11.9K
# Total Submissions: 20.4K
# Testcase Example: '4'
#
# For some fixed N, an array A is beautiful if it is a permutation of the
# ... | [
"kevin.wkmiao@gmail.com"
] | kevin.wkmiao@gmail.com |
5567d9ddb8ff4ec1fa7be96fcf598d92f9b026ef | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/leg_price.py | d53fca197bf2e84dbc51631372ef36c2c3e8a47d | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 1,386 | py | from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.leg_detail import LegDetail
__NAMESPACE__ = "http://www.travelport.com/schema/air_v52_0"
@dataclass
class LegPrice:
"""
Information about the journey Leg Price.
Parameters
----------
leg_detail
... | [
"chris@komposta.net"
] | chris@komposta.net |
c8b34b710c601db25eb7c93ce7410d5a96f3e154 | 90d9610ab5a878966868858b1b261cb6be5f6f97 | /test/examples_test/advec_diff_test.py | fba7bbb4ea1d60b8e553d274281187d5c8212990 | [] | no_license | torbjoernk/pfasst_py | fd4c68cd63592feca8c811b9d994c66a470b541c | 9309734a41a17ff0e617a242d1c8ebfd75a89698 | refs/heads/master | 2021-01-10T01:55:54.256722 | 2015-11-04T13:07:22 | 2015-11-04T13:07:22 | 45,114,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | # coding=utf-8
"""
.. moduleauthor:: Torbjörn Klatt <t.klatt@fz-juelich.de>
"""
import unittest
from pfasst_py.examples.advec_diff.advec_diff import AdvecDiffExecutable, AdvecDiffParamsMixin
from pfasst_py.runner.executable import Executable
from pfasst_py.runner.parameters.params_mixin import ParamsMixin
from pfasst_... | [
"t.klatt@fz-juelich.de"
] | t.klatt@fz-juelich.de |
a7771827fc17734e9eb1840096c11f7a373f07fc | 9db62269224ba5913eb9adfdf2e648dda4ed31c3 | /cnocr/data_utils/captcha_generator.py | 5d495280b7c2166357a5db4a3aa24202e7530dae | [
"NCSA",
"Zlib",
"Intel",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-2-Clause-Views",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | Jinnrry/cnocr | acb72509a8825c98ba2fc8dfc4d15f847cb50d8a | e685db43622916b127728e0a714fef81036b8caa | refs/heads/master | 2020-05-05T04:02:44.694466 | 2019-04-05T14:18:43 | 2019-04-05T14:18:43 | 179,695,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,548 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"breezedeus@163.com"
] | breezedeus@163.com |
fa929a95036c066bf3d097acfab61a4fe4e1b328 | 8dcff57e0e3ab38bfbf3a5004fba98e2e0bc1b7f | /biosteam/evaluation/_variable.py | ca0ab2ca823d64e34eb3b85d08c8c49a2b8688ff | [
"MIT",
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sarangbhagwat/biosteam | f73dd88429c8e20109d3caed6afb088e62438116 | fc2d227d3fce9d5f4ccb873a6d41edb535347412 | refs/heads/master | 2020-12-07T06:23:34.772565 | 2020-08-19T21:20:37 | 2020-08-19T21:20:37 | 289,720,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | # -*- coding: utf-8 -*-
# BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules
# Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com>
#
# This module is under the UIUC open-source license. See
# github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt
# for license details.
"""... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
2d2f08b4e480c5895ee4c5c5c964f2d1944cf71c | 7ce076dd764fe4b5c7881734f157bc6f77a99ead | /airflow/api_connexion/schemas/connection_schema.py | 7c4e49f8bd100c258a9289eb1706644e3e876e18 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | kaxil/airflow | db31c98e23f2e0d869d857484e56a7c58acef231 | 42f1da179db00491610946a0b089dd82269adc74 | refs/heads/master | 2023-04-28T04:46:38.478352 | 2020-09-28T20:51:16 | 2020-09-28T20:51:16 | 112,322,392 | 1 | 1 | Apache-2.0 | 2020-08-27T20:15:22 | 2017-11-28T10:42:19 | Python | UTF-8 | Python | false | false | 2,053 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | kaxil.noreply@github.com |
61d4a8dee66d9784c1338686a6c731a0ab1e537f | a4d250ce393012dc251cb955096cb8f284c57439 | /app/business/team.py | 9828620d384efecf5a1d32464c10676f695dcd19 | [] | no_license | daxingyou/test-2 | b02af312784d06a46e29acd42e756e92afee6ed9 | a16c872ba781855a8c891eff41e8e651cd565ebf | refs/heads/master | 2023-03-16T04:21:23.704482 | 2018-09-28T00:51:23 | 2018-09-28T00:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,101 | py | #coding:utf8
"""
Created on 2015-09-16
@Author: jiangtaoran(jiangtaoran@ice-time.cn)
@Brief : 军队 相关业务逻辑
"""
from utils import logger
from utils import utils
from datalib.data_loader import data_loader
from app.data.team import TeamInfo
from app.data.hero import HeroInfo
from app.data.battlescore import BattleScoreInfo... | [
"luhongwei1@ice-time.cn"
] | luhongwei1@ice-time.cn |
4b8fa149ee827daab5931dd8fe7aed42aab2ebe0 | 87471eb9d8d0341b08f1ac4c568dbb63b91398c1 | /micropython-esp32/ports/esp32/modules/_boot.py | c37245cfedd974172010999b4bcf3c4e65ee32bc | [
"MIT"
] | permissive | FFtust/micropython_update | 33aa5a3a52dbd9385cec8d2f9e75dabac4b6a8e4 | 70f690c3325a2b2531cc27ce2c3f10ff51fc13a1 | refs/heads/master | 2021-05-08T21:24:56.027327 | 2018-01-31T05:48:38 | 2018-01-31T05:48:38 | 119,640,652 | 0 | 3 | null | 2020-03-06T22:34:31 | 2018-01-31T05:43:45 | C | UTF-8 | Python | false | false | 1,221 | py | import gc
import uos
from flashbdev import bdev
# Begin makeblock 20171109 by fftust
neurons_file_name = 'neurons_engine_lib.bin'
def neurons_file_check():
uos.chdir('/flash/lib')
lib_file_list = uos.listdir()
if not neurons_file_name in lib_file_list:
print("neurons lib not exist, write one")
... | [
"1143943623@qq.com"
] | 1143943623@qq.com |
61b4fbcd96d5de2b343ad8195fe0fc6f7c6e163e | bc441bb06b8948288f110af63feda4e798f30225 | /flowable_service_sdk/model/monitor/alert_rule_pb2.pyi | 285e1025a1dc2aebb6afc6c037ce3d17301068d1 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,106 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from flowable_service_sdk.model.monitor.alert_conditions_pb2 import (
AlertConditions as flowable_service_sdk___model___monitor___alert_conditions_pb2___AlertConditions,
)
from flowable_service_sdk.model.monitor.alert_dims_pb2 import (
Aler... | [
"service@easyops.cn"
] | service@easyops.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.