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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f0a063fccdee4aa267bf5845d0e61fd8937e5dec | 9939b85be73ccf12ce54a99ca2623df0a7cb1c0e | /script/services/test_service.py | 5ebc0e3f7ecba409d474c19b1b641c1d3d3aeaad | [] | no_license | DamonHao/play_rpc | 20e627588bcbd2324e06c755aad17b661ccbb55e | 4d6a7f56daf64c262b2c1bbc41c742c98ed70507 | refs/heads/master | 2021-01-17T12:49:29.078673 | 2016-07-24T14:32:57 | 2016-07-24T14:32:57 | 56,332,640 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'damonhao'
from net.rpc import Rpc, RpcService
import helloworld_pb2
from tornado import gen
class GreeterServerImp(RpcService, helloworld_pb2.GreeterServer):
@Rpc
def SayHello(self, request, controller):
name = request.name
response = helloworld_pb2... | [
"haolinknight@gmail.com"
] | haolinknight@gmail.com |
c16bfc3754c0d993f7ea05096a0fb4d8c7535034 | 769082e2f15325a7c2f35d69b84101d4e8a8c2d6 | /animals/dogs/poodle.py | dc0f09557590bf4b81573314ab4257fd8902f917 | [] | no_license | uchicago-python/animals | f27fd7e6f083cf8cb52d9b060495a625c23d54e4 | 484dea6e5e520da9f33b89201b8943e5b42428c6 | refs/heads/master | 2021-07-19T00:42:02.240402 | 2017-10-25T19:19:55 | 2017-10-25T19:19:55 | 108,026,240 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | from .dog import Dog
class Poodle(Dog):
pass
| [
"paul.k.romano@gmail.com"
] | paul.k.romano@gmail.com |
fdd8f8f33a79b5bfa31273d30284cfb73c6fe462 | c3e4d0776f447d4a19ad83de03f99a296735c10d | /functions/common.py | 07d50dca8a36480b6555901c5133b1e400596670 | [] | no_license | lgarzio/comt-tools | f6696729972d31aa08571cbab5e0e1edf559f253 | 64bab3582b85a4223b19109accb319c5c3dda8e5 | refs/heads/master | 2023-03-27T19:18:14.533114 | 2021-04-02T00:48:01 | 2021-04-02T00:48:01 | 281,463,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,195 | py | #! /usr/bin/env python
"""
Author: Lori Garzio on 1/7/2021
Last modified: 1/11/2021
"""
import numpy as np
import xarray as xr
import matplotlib.pyplot as plt
def crmse(data1, data2):
res = np.sqrt(np.nansum((((data1 - data1.mean()) - (data2 - data2.mean())) ** 2) / (len(data2) - 1)))
return res
def model... | [
"lgarzio@marine.rutgers.edu"
] | lgarzio@marine.rutgers.edu |
5d4ca0eae830eb2fbe4e0c10adec1e7866039d0a | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/sX0.py | 75acb479bc40b70da9657535139802cd384c533a | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
c976a18af2c1cc362d5ca5353f14209d7875700c | fb4e41a40d82427e3948549653cdf0405e6dba2b | /app/users/forms.py | ddcb6d5837e708e964e3d591bf4d3e0490b633e5 | [] | no_license | Axeh99/Axeh99s-Website | 5afeef75943722a7c3e67554da57daeb01c70f7a | 7704fbaae7aa26bb1c208fbc18bb6679ea9e3215 | refs/heads/master | 2022-12-10T21:37:16.296575 | 2020-09-01T16:12:27 | 2020-09-01T16:12:27 | 283,016,745 | 1 | 0 | null | 2021-03-04T20:03:07 | 2020-07-27T21:07:14 | HTML | UTF-8 | Python | false | false | 3,270 | py | from flask_login import current_user
from flask_wtf import FlaskForm
from flask_wtf.file import FileAllowed, FileField
from wtforms import BooleanField, PasswordField, StringField, SubmitField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
from app.models import User
class Regis... | [
"sralloza@gmail.com"
] | sralloza@gmail.com |
dacfdaf9030c56eb07009b5772861c87328a0a77 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/choroplethmapbox/_legendwidth.py | a6f64e2644088124d6f4ee652ae625027ebfb49b | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 471 | py | import _plotly_utils.basevalidators
class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="legendwidth", parent_name="choroplethmapbox", **kwargs
):
super(LegendwidthValidator, self).__init__(
plotly_name=plotly_name,
... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
d2859ee77fcf00e01ff9b13eddd74ca2f24f54bb | 7305127e14995404d6ca5653b50c43370b6af815 | /bookwyrm/tests/connectors/test_connector_manager.py | 783b5a276794a736879cd0113a7b48e0ddd6d884 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | nornagon/bookwyrm | 2cdda17b1fffd09c932cf09bfdc48021f24fbfb6 | 53e34cf7de47e988386c80933b59326667f7aa4b | refs/heads/main | 2023-02-10T04:24:24.528971 | 2021-01-07T00:05:46 | 2021-01-07T00:05:46 | 327,500,772 | 2 | 0 | NOASSERTION | 2021-01-07T04:16:36 | 2021-01-07T04:16:35 | null | UTF-8 | Python | false | false | 3,367 | py | ''' interface between the app and various connectors '''
from django.test import TestCase
from bookwyrm import models
from bookwyrm.connectors import connector_manager
from bookwyrm.connectors.bookwyrm_connector \
import Connector as BookWyrmConnector
from bookwyrm.connectors.self_connector \
import Connector ... | [
"mousereeve@riseup.net"
] | mousereeve@riseup.net |
45bb2e509a3e4e747aa70796fa78e5e7109a30ed | f8580d2c963b6a3c34e918e0743d0a503a9584bd | /unittests/test_bookctrl.py | 08fd3c07aa642e21c4630757783045c79b1c7f13 | [] | no_license | pypy/wxpython-cffi | f59c3faeed26e6a26d0c87f4f659f93e5366af28 | 877b7e6c1b5880517456f1960db370e4bb7f5c90 | refs/heads/master | 2023-07-08T21:13:22.765786 | 2016-12-02T22:10:45 | 2016-12-02T22:10:45 | 397,124,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import imp_unittest, unittest
import wtc
import wx
#---------------------------------------------------------------------------
class panel_Tests(wtc.WidgetTestCase):
def test_bookctrl1(self):
wx.BK_DEFAULT
wx.BK_TOP
wx.BK_BOTTOM
wx.BK_LEFT
wx.BK_RIGHT
wx... | [
"wayedt@gmail.com"
] | wayedt@gmail.com |
35bbfb0d781266cda6ed5b4175311bced3d3980c | a2e11ec88ef3c83b9f07129e76a3681a676d164f | /lofodemo/testapp/admin.py | cebb9353182751d425c627f94633f5f9cceae046 | [] | no_license | qwertypool/lofo | dadd7cd5b149a3a200b7111d803b1d0195d76642 | 3bc7bd125e7ea5a67f51dd6dd654e38a5f218055 | refs/heads/master | 2022-05-18T09:31:11.456634 | 2020-04-18T14:47:44 | 2020-04-18T14:47:44 | 256,773,858 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from django.contrib import admin
from testapp.models import Lost,Found
# Register your models here.
class LostAdmin(admin.ModelAdmin):
list_display = ('name','uid','card')
class FoundAdmin(admin.ModelAdmin):
list_display = ('name','uid','card')
admin.site.register(Lost, LostAdmin)
admin.site.register(Found, ... | [
"deepapandey364@gmail.com"
] | deepapandey364@gmail.com |
3c4a45c81e846475586085b9fbf4705fff827a06 | 786de89be635eb21295070a6a3452f3a7fe6712c | /CorAna/tags/V00-00-10/src/GUIData.py | 0abf769b58c296b9f97536aa7a6cf2e3c6a30f94 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,388 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module GUIData...
#
#------------------------------------------------------------------------
"""GUI sets the data file"""
#------------------------------
# Module's version from CV... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
15c554639c28a7ba5fbe7bab64a396077ce18c26 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /components/services/patch/DEPS | ea7209ad8651bca58507d66d4dbfaea8cacc36c7 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 177 | include_rules = [
"+components/update_client",
"+courgette",
"+mojo", # By definition.
"+services/service_manager/public", # Every service talks to Service Manager.
]
| [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com | |
ad5a7d8f0777822964301c06281df61a484704d2 | d8ac2bae2e4b8261555b3490473e954194df402e | /pyLOPE/utils.py | e78c709ff0e411887ac942254d78f9a85fd52d59 | [
"MIT"
] | permissive | kylecomtw/pyLOPE | a1b4668d77ffeb35e45d6c469b732ba6efedd052 | 72d18c4185170aaa95b708deda1a94b01b6a7fea | refs/heads/master | 2020-03-27T03:12:01.333306 | 2018-07-03T06:39:56 | 2018-07-03T06:39:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from textwrap import dedent
def README():
msg = """
pyLOPE is a paedological package developed in NTU.
Its purpose is to conveniently show principles in programming,
or computers in general. In the same vein, it is also expected
to provide useful functions to be incorporated in
... | [
"seantyh@gmail.com"
] | seantyh@gmail.com |
d3837046fdfc10e95cef1f0a757173b8d2431ce6 | 15afc6a3270d9b42cc84a788853ce46456be01f2 | /section_i/chapter_05/exercise_05_02.py | 8a14217c1c3806569c3f189d5a92f28ae3377a3d | [] | no_license | xieqing0428/python_helloworld | 161c90564638dc49e3a82a00607a762b36a39212 | e08f63616aabe609ff1ac53b8e0ab32eaf2a472b | refs/heads/master | 2020-04-16T11:01:37.918248 | 2019-02-14T07:19:09 | 2019-02-14T07:19:09 | 165,521,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # -*- coding:utf-8 -*-
"""
@author: Alessa0
@file: exercise_05_02.py
@time: 2019-01-15 17:23
5-2 更多的条件测试:
你并非只能创建10个测试。
如果你想尝试做更多的比较,可再编写一些测试,并将它们加入到conditional_tests.py中。
对于下面列出的各种测试,至少编写一个结果为True和False的测试。
检查两个字符串相等和不等。
使用函数lower()的测试。
检查两个数字相等、不等、大于、小于、大于等于和小于等于。
使用关键字and和or的测试。
测试特定的值是否包含在列表中。
测试特定的值是否未包含在列表中
... | [
"849565690@qq.com"
] | 849565690@qq.com |
f0531a5b7bb0ce674daa1b8815b3d5173f5c795c | 45f6a4dfc837998565d4e4e4cde258a27fdbd424 | /learn_tu_you/wx_superboss/trunk/hall37-newfish/src/newfish/entity/skill/skill_release_m.py | c0e2447b9cf734dfe9912ed95099991f8636398f | [] | no_license | isoundy000/learn_python | c220966c42187335c5342269cafc6811ac04bab3 | fa1591863985a418fd361eb6dac36d1301bc1231 | refs/heads/master | 2022-12-29T10:27:37.857107 | 2020-10-16T03:52:44 | 2020-10-16T03:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,834 | py | # -*- coding=utf-8 -*-
"""
Created by lichen on 2020/7/13.
技能在渔场中释放(千炮模式)
"""
import time
import random
import math
import json
import freetime.util.log as ftlog
from poker.entity.biz import bireport
from poker.entity.dao import gamedata, daobase
from newfish.entity import config, util, weakdata
from newfish.entity.c... | [
"1737785826@qq.com"
] | 1737785826@qq.com |
4a91777e756ff26ed8a6768dab2f89edcd93a01a | 16dcbf88ae9514109151fe5ff447b2b653ddf48b | /2015/010-Connect4/board.py | 8a622aaa700a17cd97135725613f292db6c984ec | [] | no_license | ChristerNilsson/Lab | efa55ef5e79dff84b232dfcf94473eacdb263175 | b1f730f45ec6e901bd14c1e4196aa5e0f591ecd2 | refs/heads/master | 2023-07-06T04:35:09.458936 | 2023-06-24T21:40:54 | 2023-06-24T21:40:54 | 48,474,249 | 8 | 8 | null | 2022-12-10T07:03:31 | 2015-12-23T06:51:11 | JavaScript | UTF-8 | Python | false | false | 6,664 | py | # -*- coding: utf-8 -*-
import random
M = 6 # antal rader
N = 7 # antal kolumner
DOT = '.'
def ass(a, b):
if a != b:
print("Assert failed")
print(a)
print(b)
assert a == b
class Board(object):
def __init__(self, moves=''):
self.clear()
for digit in moves:... | [
"janchrister.nilsson@gmail.com"
] | janchrister.nilsson@gmail.com |
14762e03ba4375e4a7a12f783205610ca53d0a49 | 23bdcb74f9c4d98ff790d140bea56fbb0fd7bbbd | /app/env/Lib/site-packages/jinja2/__init__.py | d9d23fce879abd728ce02386395347416e09cf05 | [
"MIT"
] | permissive | OswaldoCaleone/transporte_uniescolar | 85c680c062fa14d0bc90afa60f7434b059fdf245 | 1ef10869358457a6a9d0f04df891ce4eb0905887 | refs/heads/main | 2023-08-30T18:37:11.496451 | 2021-11-12T13:35:45 | 2021-11-12T13:35:45 | 429,673,776 | 1 | 0 | MIT | 2021-11-19T04:53:24 | 2021-11-19T04:53:24 | null | UTF-8 | Python | false | false | 2,205 | py | """Jinja is a template engine written in pure Python. It provides a
non-XML syntax that supports inline expressions and an optional
sandboxed environment.
"""
from .bccache import BytecodeCache as BytecodeCache
from .bccache import FileSystemBytecodeCache as FileSystemBytecodeCache
from .bccache import MemcachedBytecod... | [
"92728746+alexpls2021@users.noreply.github.com"
] | 92728746+alexpls2021@users.noreply.github.com |
2411b56b76550ec84b6248f365a334f123daf9f3 | ee81c67068a7b172a786a2ec9cd3b29af6f49d47 | /home/migrations/0002_load_initial_data.py | a07cdf08948800727724c947399dee4ff1173fac | [] | no_license | crowdbotics-apps/inlife-claims-15343 | 66d9e03436c77a954490364547f769ddd39da68e | b9863e02fc86ed4a70574a48cc8dbd0edf66ea49 | refs/heads/master | 2022-02-17T12:07:16.389646 | 2020-04-02T19:16:12 | 2020-04-02T19:16:12 | 252,545,178 | 0 | 0 | null | 2022-02-10T23:37:24 | 2020-04-02T19:15:53 | Python | UTF-8 | Python | false | false | 1,306 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "InLife Claims"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
365a219f58f0701e693fcf63389716ff4d887ac5 | 84341d15f4b8d13b09c7dabe2b7286705ee86b7b | /bert_model/__init__.py | 6b305948380c8e19044b61d60a983eba577495f8 | [] | no_license | UMP-Healthcare-AI/Self-Training-MRC | 7a0ef0c52f0064cfc32a2bedb433608ed10328a7 | 0601158085bb11e454aee1ebaa987f5aa741ab3f | refs/heads/master | 2022-12-01T17:46:28.463777 | 2020-08-14T01:56:25 | 2020-08-14T01:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,970 | py | from bert_model.bert_cls_hierarchical import BertQAYesnoCLSHierarchical
from bert_model.bert_for_race import BertRACEPool, BertRACEHierarchical, BertRACEHierarchicalTwoView, \
BertRACEHierarchicalMultiple, BertRACEHierarchicalTwoViewMultiple, BertRACEHierarchicalTopK, BertRACEHierarchicalTwoViewTopK
from bert_model... | [
"jiaofangkai@hotmail.com"
] | jiaofangkai@hotmail.com |
dd53e77afa5ecd0b18a0c76a53b26103cfb669f2 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/QueryNotifyRequest.py | e47d3518e8b5d6f55e913ecb7d46817cfe28fe23 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,138 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
13077474309df84e2996cde7e7957a6f2b87b801 | 811e648c7ff5fdbf0734e1610a671540ab9fc766 | /clean_meta.py | 2e342fe1479bded620d2f5fba19a68d2117b7a0f | [] | no_license | Priyesh2000/ipynb2txt | 08a2e28395e9cdfb0ea0ae4c64c92bd45b4cf6aa | a29793a3bfe3c637b3ef52d474f9601a11a43f1f | refs/heads/master | 2022-10-09T20:01:01.478673 | 2020-06-09T16:29:07 | 2020-06-09T16:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | import json
def read_ipynb(locfile):
"""
reads an ipynb file and returns a string
"""
f = open(locfile)
ipynb_str = f.read()
f.close()
return ipynb_str
def clean_meta_json(locfile):
"""
converts an ipynb to json. returns cell meta.
Parameters:
-> locfile: location of... | [
"pranjaldatta99@gmail.com"
] | pranjaldatta99@gmail.com |
01424d90e23622c7c2c7c093cb5653edb2295e06 | 5df5d4e887abd093579f92fc36399e3574cad071 | /client_transaction/views.py | 2c7240dc3e86b2ffcacc623c4cd368dabd3c3956 | [] | no_license | rushil02/Vidzert | 136cb3022d5135d3a06737be474f1842108cadf4 | c8698f7db1a89fff26a76d606272f438ebfc7d4e | refs/heads/master | 2021-01-10T04:33:01.470080 | 2016-03-22T19:21:26 | 2016-03-22T19:21:26 | 54,511,366 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | from django.core.exceptions import SuspiciousOperation
from django.shortcuts import render
from admin_custom.models import ErrorLog
from survey.models import Survey, SurveyState
from video.models import Video, VideoState
# Create your views here.
def success_video(request, video_uuid):
video = Video.objects.get_... | [
"rushil0195@gmail.com"
] | rushil0195@gmail.com |
1c140a256042159f57c345355cdda3246f07dcff | 8082431bf8e49f3ced45e7da46e43c741a17dd26 | /torchblocks/trainer/classifier_trainer.py | 782edfd09395b604f91fcffba4813f43641ba947 | [
"MIT"
] | permissive | Ares2013/TorchBlocks | 3624e01696a23c020dc8759ae6f5230f0af04e16 | a105f4742bcea36ba96a4f4487508c7ebe3ee7c4 | refs/heads/master | 2022-11-05T07:59:31.714135 | 2020-06-21T15:11:13 | 2020-06-21T15:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | import torch
from .base import TrainerBase
from ..callback import ProgressBar
from ..utils.tensor import tensor_to_cpu
class TextClassifierTrainer(TrainerBase):
def __init__(self, args, metrics, logger, batch_input_keys, collate_fn=None):
super().__init__(args=args,
metri... | [
"1436496575@qq.com"
] | 1436496575@qq.com |
e735fb31334fff49f37362048c8733f0720fa8b6 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /part/case/man/point/thing_or_company/company.py | fec5ebc218266f9793e781a4c1482899a442ef82 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#! /usr/bin/env python
def use_long_world(str_arg):
different_person(str_arg)
print('bad_number')
def different_person(str_arg):
print(str_arg)
if __name__ == '__main__':
use_long_world('old_fact')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
e0b310ae4b6f5be9253ff71c4e244f162b2afd2c | f636e71f45170e6cf197bcfc14a50af45fd828ed | /Lesson 12/examples/example2.py | c48513e1b9fab9a5243ca525c8fcdf2c8d93ca72 | [] | no_license | mcgokable/Cources | 872640c62fdb82f19ec7f5d20700fed85c4a3447 | 960ef7d4e72af0ec29c9a78220b44873f2ef2d35 | refs/heads/master | 2022-04-06T23:35:30.477455 | 2019-11-29T13:22:40 | 2019-12-05T07:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from threading import Thread
from time import time
def factorial(n):
res = 1
for i in range(1, n + 1):
res *= i
return res
if __name__ == '__main__':
t1 = time()
factorial(100000)
t2 = time()
print('Single factorial: ', t2 - t1)
thread1 = Thread(target=factorial, args=(100... | [
"19941510metalhead@gmail.com"
] | 19941510metalhead@gmail.com |
4c52fbc8242d8155c5cb2d440368e8493430c03b | 904632bef612036dcf5538587636f7ad2e15e0bb | /language_programs/pubsub/publisher/main.py | 361c108e3dd0701b1207df57d462d0b1beb9a940 | [] | no_license | NirmalVatsyayan/python-revision | 1678d92dd281f6a6d183680b352ec3b6b235d8d3 | 0296d1dfb2b31f62e8b8c8c0cb09a8e3f7a6bbc9 | refs/heads/master | 2021-01-13T03:57:20.472019 | 2018-01-19T10:13:02 | 2018-01-19T10:13:02 | 78,177,053 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from publisher import Publisher
if __name__ == '__main__':
pub = Publisher(channel='foo')
for i in range(1000):
pub.send("sending %s "%i)
pub.close() | [
"nirmal.vatsyayan1990@gmail.com"
] | nirmal.vatsyayan1990@gmail.com |
9821d47e076df5149bd1057311c5f53d587e4075 | 2d4380518d9c591b6b6c09ea51e28a34381fc80c | /CIM16/__init__.py | f335524a4c90c63f1f0d22e8b8f6abb002bb33ee | [
"MIT"
] | permissive | fran-jo/PyCIM | 355e36ae14d1b64b01e752c5acd5395bf88cd949 | de942633d966bdf2bd76d680ecb20517fc873281 | refs/heads/master | 2021-01-20T03:00:41.186556 | 2017-09-19T14:15:33 | 2017-09-19T14:15:33 | 89,480,767 | 0 | 1 | null | 2017-04-26T12:57:44 | 2017-04-26T12:57:44 | null | UTF-8 | Python | false | false | 36,144 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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 limitation the
# rights to use, copy, modify, merge, publish... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
34c8cbad16bab87a05fc54ba98bcb791bf823750 | 792588db469538c1f93efd2c26f0819d6e96aff5 | /comma-delimited-handlers/handlers_new/italy2.py | f2f187d52d1811fe9f7d03a12d0d0004646b565e | [] | no_license | fillingthemoon/go-cart-misc | 855696a3895ba5754a11ed0407069b6e35ee27e0 | 714513acfe2f5ad08442603443213c97f6bdae22 | refs/heads/main | 2023-08-21T23:08:48.686377 | 2021-10-05T11:08:42 | 2021-10-05T11:08:42 | 373,039,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | import settings
import handlers.base_handler
import csv
class CartogramHandler(handlers.base_handler.BaseCartogramHandler):
def get_name(self):
return "Italy"
def get_gen_file(self):
return "{}/ita2_processedmap.json".format(settings.CARTOGRAM_DATA_DIR)
def validate_values(self, valu... | [
"phil.hsy@outlook.com"
] | phil.hsy@outlook.com |
988903fd4b59b2eebfcfa9a492dad343ad058f3b | 9eaa17f50df49e5c6d204a7a7ece52f94c10b30b | /tests/models/torch/test_v_functions.py | f9dfd4b0a5c9487bf09b2b4a005790f5d3fe16d1 | [
"MIT"
] | permissive | mchetouani/d3rlpy | 08d452ea2c8735b679a02474a3ae512caf91250a | 53ccf604298568b3a8322bb6f38bc33c0ac04ca2 | refs/heads/master | 2023-02-03T15:19:23.620608 | 2020-11-29T02:25:34 | 2020-11-29T02:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | import pytest
import torch
import torch.nn.functional as F
from d3rlpy.encoders import DefaultEncoderFactory
from d3rlpy.models.torch.v_functions import create_value_function
from d3rlpy.models.torch.v_functions import ValueFunction
from .model_test import check_parameter_updates, DummyEncoder
@pytest.mark.parametri... | [
"takuma.seno@gmail.com"
] | takuma.seno@gmail.com |
0c67cf895e0ba0b6e572a1ab8ec3e16b78100647 | 9c517c0d320c1c250cf53ae223a72e147f25caef | /model_movie_data/MoviesCreateTable.py | a4f34a71c0772160cf2b4b981f6c99ac68e729d0 | [] | no_license | yennanliu/DynamoDBHelloWorld | dc74b9da289e45e2a8ce99a175f9ead21ce2a0e8 | 9a00ef7a0355b69c17c55584cd4a5e4da5dc28c8 | refs/heads/master | 2021-07-02T10:24:11.016595 | 2021-05-01T15:59:41 | 2021-05-01T15:59:41 | 230,418,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This file is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# This f... | [
"f339339@gmail.com"
] | f339339@gmail.com |
df416e8611c56bf4dd2db23222015758641edd71 | f090c3e0faa70cf0ef7c4be99cb894630bce2842 | /scripts_201410/PulseSequences/subsequences/BlueHeating.py | ed1f64363565c9442f4b36b44cf2c63a10085ef5 | [] | no_license | HaeffnerLab/resonator | 157d1dc455209da9b7de077157bda53b4883c8b7 | 7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71 | refs/heads/master | 2021-01-09T20:48:03.587634 | 2016-09-22T18:40:17 | 2016-09-22T18:40:17 | 6,715,345 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | from resonator.scripts.PulseSequences.PulseSequence import PulseSequence
from resonator.scripts.PulseSequences.subsequences.DopplerCooling import doppler_cooling
class global_blue_heating(PulseSequence):
def configuration(self):
config = [
'global_blue_heating_frequency_397',
... | [
"soenkeamoeller@gmail.com"
] | soenkeamoeller@gmail.com |
9a8a166811f4b01b152cb6552cca56afe3ef908d | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/1437855905/PySide/QtGui/QDoubleSpinBox.py | 3563e071b7bed3008a62cfbfc736ad5242c21e21 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | # encoding: utf-8
# module PySide.QtGui
# from /opt/python3/current/lib/python3.4/site-packages/PySide/QtGui.so
# by generator 1.136
# no doc
# imports
import PySide.QtCore as __PySide_QtCore
import Shiboken as __Shiboken
from .QAbstractSpinBox import QAbstractSpinBox
class QDoubleSpinBox(QAbstractSpinBox):
# n... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
a283c9810085ce39593ad6da9261ba325e0b9fe8 | 306afd5282d9c24d58297478a1728a006c29e57e | /lintcode/lintcode_0192_Wildcard_Matching.py | 2a8fa310243ac4df9962bbef4c02061b3f5ba54e | [] | no_license | ytatus94/Leetcode | d2c1fe3995c7a065139f772569485dc6184295a9 | 01ee75be4ec9bbb080f170cb747f3fc443eb4d55 | refs/heads/master | 2023-06-08T17:32:34.439601 | 2023-05-29T04:33:19 | 2023-05-29T04:33:19 | 171,921,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,289 | py | # 雙序列型 DP, 可行性 DP
# 轉移方程
# f[i][j] = f[i-1][j-1] 如果 B[j-1]=? 或是 A[i-1]=B[j-1] 時
# f[i][j] = f[i-1][j] 當 B[j-1]=* 且不用來匹配 or f[i][j-1] 當 B[j-1]=* 且有用來匹配
# f[i][j] = A 的前 i 個字元能不能和 B 的前 j 個字元匹配
# 初始條件
# f[0][0] = True 空字串和空的 wildcard 匹配
# f[i>0][0] = False 非空的字串和空的 wildcard 不匹配
# f[0][j>0] 可以匹配,用 f[i][j-1]
# T... | [
"noreply@github.com"
] | ytatus94.noreply@github.com |
fac94968b2f75e8b0bae0d3acf19cd901e8d47a1 | 2d9a17e2b896d2f6a90913a4ba02d41f0ede5dd0 | /_gk_chsi/_gk_chsi_3.py | e311d7e88481754d025f34601909ff3e26e1e80e | [] | no_license | wolfwhoami/xxxxx | 1cf2ed2c8ed78048d87cccf2953ca86c0871a783 | 670787ec71127bc05c1645cc3d8ef7c3a91fe84b | refs/heads/master | 2020-03-30T00:44:55.864817 | 2016-12-16T01:45:03 | 2016-12-16T01:45:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,219 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
import HTMLParser
import copy
import logging
import os
import random
import re
import threading
import time
import uuid
from court.cspider import ATOSSessionCourtSpider
from court.save import LinkSaver
from court.util import Captcha, save_file, remove_file
from spider import... | [
"jianghao@ipin.com"
] | jianghao@ipin.com |
08867a76fe4c0e790fb41df8e4ca86367b7289af | 4476502e4fed662b9d761c83e352c4aed3f2a1c2 | /GIT_NOTE/05_Tensoflow/chap04_Classification/exams/exam02_softmax_classifier.py | 04adc8dce10dfd775d1f7762ec04ee28ea3f60e0 | [] | no_license | yeon4032/STUDY | 7772ef57ed7f1d5ccc13e0a679dbfab9589982f3 | d7ccfa509c68960f7b196705b172e267678ef593 | refs/heads/main | 2023-07-31T18:34:52.573979 | 2021-09-16T07:45:57 | 2021-09-16T07:45:57 | 407,009,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | '''
문) bmi.csv 데이터셋을 이용하여 다음과 같이 softmax classifier 모델을 생성하시오.
조건1> bmi.csv 데이터셋
-> x변수 : height, weight 칼럼
-> y변수 : label(3개 범주) 칼럼
조건2> 딥러닝 최적화 알고리즘 : Adam
조건3> learning rage : 0.001 or 0.005 선택(분류정확도 높은것)
조건4> 반복학습, step 단위로 loss : <출력결과> 참고
조건5> 분류정확도 출력
조건6> 예측치와 정답 15개 출력... | [
"yeon4031@naver.com"
] | yeon4031@naver.com |
e3c3daaa61bdb6a560cb65505d3eb91887c92399 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/13b122d1a057433eb102a868090d4af9.py | 228a5c009187dbfab7c83ad13d74e5384b3f0faf | [] | 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 | 189 | py | def is_leap_year(year):
if year % 4 == 0:
if year % 100 == 0 and year % 400 == 0:
return True
elif year % 100 != 0:
return True
return False
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
e9c097292c4ee2c6565c9f82d8cdb6aa6a04fee9 | 47eb3e5a0175183a5c04c3864a46b28cd7991ac4 | /make_images.py | 1c98b29ba5ad6b9f5b954b1633aaaaa938775c02 | [] | no_license | drschwenk/pdfextraction | 6b7542dabd701c91e94def8b5dc5c71832c37bb3 | be5c8af3ccc2bbcec98a1867ef7b3009a245a762 | refs/heads/master | 2021-01-16T23:56:00.476715 | 2016-11-14T02:40:10 | 2016-11-14T02:40:10 | 58,407,985 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import pdfextraction.ocr_pipeline
import pickle
with open('breakdowns.pkl', 'r') as f:
book_breakdowns = pickle.load(f)
with open('pdfs/page_ranges.csv') as f:
ranges = f.readlines()
range_lookup = {line.split(' ')[0]:[int(num) for num in line.strip().split(' ')[1:]] for line in ranges}
for book in book_brea... | [
"schwgit2@gmail.com"
] | schwgit2@gmail.com |
47b5f1bfc6a6d2ad0e303aa4acaee2b2adaffca6 | 4f0ceccea62d3c909af88a7e3f5e1d063ed94b2e | /24_swapPairs.py | 30702c281188662480132234a281d1604e923207 | [] | no_license | 0as1s/leetcode | d19c2ec4f96666a03227871b9b21b26adcd6b3b4 | c82d375f8d9d4feeaba243eb5c990c1ba3ec73d2 | refs/heads/master | 2021-05-09T21:30:35.378394 | 2021-02-01T15:37:37 | 2021-02-01T15:37:37 | 118,729,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def swapPairs(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if not head or head.next is None:
... | [
"still_crazy@qq.com"
] | still_crazy@qq.com |
1670f305787284ba8af1139062c589adf7aa4d28 | 56522d084c13138aa47b582615f3d2a4cb56e5e9 | /updatecustom.py | 850b1847d65ec64efc5209c531bcbf68e06df012 | [] | no_license | webgravel/userd-ssh | d684d42bdc09ae5daeb30aa9e4cce3f9c84a4301 | a47d5a4e8cc923bb59d4ec93130325bf52903b9b | refs/heads/master | 2016-09-10T01:33:09.914035 | 2013-09-08T21:27:18 | 2013-09-08T21:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/usr/bin/env python2.7
# Updates mapping used by SSH server.
import sys
sys.path.append('/gravel/pkg/gravel-common')
sys.path.append('/gravel/pkg/gravel-userd')
import users
import ssh_info
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('uid', type=int)
args = parser.parse_args()
user = u... | [
"michal@zielinscy.org.pl"
] | michal@zielinscy.org.pl |
11b98ee74eb3babc9afb21b4245deed9b9ca1eee | 03f6ad21c4332b9b26dfb11ed04e63bdb9236b3c | /benchmarks/benchmark_or_.py | e404a32dbdad697927ec5bbf6cb33d97609f9c3a | [
"Apache-2.0"
] | permissive | m1griffin/arrayfunc | ddf9ea9c8fa363f79babd788c8d0428ede8dfc60 | c04561c5d565ae8d3ee776783bfb34b242deca93 | refs/heads/master | 2023-08-05T00:09:27.530893 | 2023-07-19T12:46:37 | 2023-07-19T12:46:37 | 40,577,669 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,822 | py | #!/usr/bin/env python3
##############################################################################
# Project: arrayfunc
# Module: benchmark_or_.py
# Purpose: Benchmark tests for 'arrayfunc' functions.
# Language: Python 3.5
# Date: 20-Dec-2018.
# Ver: 07-Sep-2021.
#
#####################################... | [
"m12.griffin@gmail.com"
] | m12.griffin@gmail.com |
2d55f4d11899bd2a70dc149fc268df57c0bf2be1 | 26fb30283cca3beee7aca5c683819afd94063a13 | /story/views.py | bdde7ff5a5c5f864f0db594108f586ab4174d626 | [] | no_license | zhoomartq/HackerNewsClone | c919da32b66122e40c5e59e09764d6bef1ddd16b | c2c418da7bf8be1211c84a1e840dc8fcb0c07b1a | refs/heads/main | 2023-06-27T16:38:07.245941 | 2021-07-14T12:24:32 | 2021-07-14T12:24:32 | 385,863,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | import datetime
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from .forms import StoryForm, CommentForm
from .models import Story, Vote, Comment
def frontpage(request):
date_from = datetime.datetime.now() - datetime.timedelta(days=1)
... | [
"zhomart.osmonaliev@gmail.com"
] | zhomart.osmonaliev@gmail.com |
8df5c2090539b9dda3eebe0f37ad495dad107836 | 0755a5f8d821b2b02b7f087d26e1433156075f04 | /SW_Expert_Academy/역량테스트대비문제/SW문제풀이_IM/같은모양찾기simple.py | a1b75ac59236743bd019a24887634dcdbaba5d6e | [] | no_license | kimevanjunseok/Algorithm | 35fdfdd5a0c5c8ad1029429aba8d6c2320088993 | ea0883964e43779e569a1a2c8a879a246083ef0e | refs/heads/master | 2020-08-17T22:50:13.096789 | 2020-01-07T14:28:56 | 2020-01-07T14:28:56 | 215,720,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | M = int(input())
arr_M = [list(map(int, list(input()))) for _ in range(M)]
P = int(input())
arr_P = [list(map(int, list(input()))) for _ in range(P)]
result = 0
for i in range(M-P+1):
save = []
for j in range(M-P+1):
save = [arr_M[i+k][j:j+P] for k in range(P)]
if arr_P == save:
r... | [
"jnunseok@gmail.com"
] | jnunseok@gmail.com |
51510cc0426f03b05baa5d56f5cf738c82b90978 | 3de3dae722829727edfdd6cc3b67443a69043475 | /edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/smartinit/GlobalWave.py | 227bdad048edae8350a0acc2eb08726a47e3bfdb | [
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] | permissive | Unidata/awips2 | 9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb | d76c9f96e6bb06f7239c563203f226e6a6fffeef | refs/heads/unidata_18.2.1 | 2023-08-18T13:00:15.110785 | 2023-08-09T06:06:06 | 2023-08-09T06:06:06 | 19,332,079 | 161 | 75 | NOASSERTION | 2023-09-13T19:06:40 | 2014-05-01T00:59:04 | Java | UTF-8 | Python | false | false | 1,500 | py | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to ... | [
"mjames@unidata.ucar.edu"
] | mjames@unidata.ucar.edu |
edc1a8a3b052aac55a4f1b8d754bab26d7b82d64 | 2f8556a9047a8586d92d56720c70655c9d61a81d | /0001-激活码/activation_code.py | 7feaabdb579a9394fc28c5dfe4e11d0a5b82e486 | [] | no_license | HuuBaa/show-me-the-code | 99d39313c2cc19df9fa8b262ef669f1ce4aeeee2 | 179b7aef87d75cfc96ea8cc803c3ae3ab25e476c | refs/heads/master | 2021-01-25T05:10:47.289250 | 2017-07-28T05:05:05 | 2017-07-28T05:05:05 | 93,522,918 | 0 | 0 | null | 2017-06-06T13:40:54 | 2017-06-06T13:40:54 | null | UTF-8 | Python | false | false | 820 | py | #目标:200个16个大小写英文、数字组成的激活码
#类似xxxx-xxxx-xxxx-xxxx
import random,string
CHRLIST=string.ascii_letters+string.digits
#test repeat
#CHRLIST='1234'
def single_code(lens):
code=''
for x in range(lens):
i=random.randint(0,CHRLIST.__len__()-1)
code+=CHRLIST[i]
return '-'.join(code[i:i+4] for i in... | [
"742790905@qq.com"
] | 742790905@qq.com |
483b6ecbe6e6c6703ca322dfc962ba5d96dcb552 | 395f974e62eafed74572efebcd91d62966e61639 | /examples/microjson/mutants/AOR_BinOp_mutant_1486201130.py | 485ca298b625f5f0619b0a9a113ae9f0aa82dd07 | [
"Apache-2.0"
] | permissive | agroce/tstl | ad386d027f0f5ff750eab19a722a4b119ed39211 | 8d43ef7fa49534868e6cdf1697863748260405c7 | refs/heads/master | 2023-08-08T19:14:52.020314 | 2023-07-26T17:51:36 | 2023-07-26T17:51:36 | 32,408,285 | 106 | 33 | NOASSERTION | 2021-01-26T19:05:17 | 2015-03-17T17:14:04 | Python | UTF-8 | Python | false | false | 8,312 | py | import math
import StringIO
import types
__pychecker__ = 'no-returnvalues'
WS = set([' ', '\t', '\r', '\n', '\x08', '\x0c'])
DIGITS = set([str(i) for i in range(0, 10)])
NUMSTART = DIGITS.union(['.', '-', '+'])
NUMCHARS = NUMSTART.union(['e', 'E'])
ESC_MAP = {'n': '\n', 't': '\t', 'r': '\r', 'b': '\x08', 'f': '\x0c'}
R... | [
"agroce@gmail.com"
] | agroce@gmail.com |
348b6037f5c0589e3deefd1362bb0c4fc067743c | a64d7e2814c296db3157f841f17ea73169d54405 | /company/migrations/0001_initial.py | 50e072d2da0f6e77a318354d8779a7de73e4b442 | [] | no_license | andrewseft/amjumfb | ad8ea0dc091355437cbf0984983550fe149300a5 | 6c027f47e320b7ad9c7e27d635335c9b260216a7 | refs/heads/master | 2023-05-04T23:19:07.942766 | 2021-05-25T15:39:16 | 2021-05-25T15:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | # Generated by Django 3.0.2 on 2020-05-17 17:05
import accounts.models
import cloudinary.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '0001_initial'),
]
operations = [
... | [
"mathegeniuse@gmail.com"
] | mathegeniuse@gmail.com |
4cf95d795bdb8ff4a1fc0295f52808053bbecf85 | e1124042f9ff1c3990cb62db53eb0fd90b8ad68c | /Image/05/Rebert.py | 76da44e6bff08367632157939b978abc818bf2ad | [] | no_license | Li-Crazy/-Image-Processing- | 583bcf17a628d6c5ecbc6177168699332cce89aa | 3eba05b1dbf5c534cd5807607552a207a7dc598e | refs/heads/master | 2020-08-02T18:15:56.170098 | 2019-09-28T07:29:51 | 2019-09-28T07:29:51 | 211,461,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | # Author image
# !/usr/bin/python
# -*- coding:utf-8
# opencv read image is BGR channel,and matplot read is RGB
import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
path ="C:/Users/19845/Desktop/xibao.jpg"
img = cv.imread(path,0)
(H,W) =img.shape
files = [img]
def Robert(H,W,img):
imgR = np.... | [
"52807717+Li-Crazy@users.noreply.github.com"
] | 52807717+Li-Crazy@users.noreply.github.com |
357b2e973a55a3241b86d008c6076b3d081c47e3 | 8e79de4b73998dd0ee1dae4881784a2b12410615 | /Bite_1/test_summing.py | 3368cc0ec9d283be3e0ca7033970140538235b84 | [
"MIT"
] | permissive | alehpineda/bitesofpy | e6eb7c9413cf407a12643efece01bef5457e5dcb | bfd319a606cd0b7b9bfb85a3e8942872a2d43c48 | refs/heads/master | 2021-07-15T19:59:35.061049 | 2020-09-25T17:49:32 | 2020-09-25T17:49:32 | 209,878,791 | 0 | 0 | MIT | 2020-09-06T00:11:45 | 2019-09-20T20:49:51 | Python | UTF-8 | Python | false | false | 389 | py | import inspect
from summing import sum_numbers
def test_sum_numbers_default_args():
assert sum_numbers() == 5050
assert sum_numbers(numbers=None) == 5050
def test_sum_numbers_various_inputs():
assert sum_numbers(range(1, 11)) == 55
assert sum_numbers([1, 2, 3]) == 6
assert sum_numbers((1, 2, 3)... | [
"ale.hpineda@gmail.com"
] | ale.hpineda@gmail.com |
b4011a8d1219ae5f01be55f5321a81e383c13777 | f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb | /weapp/webapp/modules/mall/pageobject/edit_product_page.py | b57933f3bae4bb2bda495974eef86421cb9c6104 | [] | no_license | chengdg/weizoom | 97740c121724fae582b10cdbe0ce227a1f065ece | 8b2f7befe92841bcc35e0e60cac5958ef3f3af54 | refs/heads/master | 2021-01-22T20:29:30.297059 | 2017-03-30T08:39:25 | 2017-03-30T08:39:25 | 85,268,003 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 10,609 | py | # -*- coding: utf-8 -*-
from datetime import datetime
import time
from django.db import models
from django.contrib.auth.models import Group, User
from django.db.models import signals
from test.pageobject.page_frame import PageFrame
from test.pageobject.image_view import ImageView
from test.helper import W... | [
"jiangzhe@weizoom.com"
] | jiangzhe@weizoom.com |
0a5681134f02bd8a6340091a6bb03330b27c74e3 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/animation_auto_breakdown/__init__.py | b0e1262e8792d558447df1e28eea76c103eaaa29 | [] | 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 | 7,061 | py |
bl_info = {
"name": "Auto Breakdown",
"author": "N(Natukikazemizo)",
"version": (0, 0),
"blender": (2, 79, 0),
"location": "Dope Sheet > Key / NLA Editor > Edit",
"description": "Automatic Breakdown & related functions",
"warning": "",
"support": "TESTING",
"wiki_url": "",
"trac... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
647aa924adba04398cad9c050d4bd7dffe4a02f2 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/CSS/juejin_1843.py | 0672db5d06d8fffec107885637169683051d4ab4 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,085 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6844903540268204046", "article_info": {"article_id": "6844903540268204046", "user_id": "307518984431629", "category_id": "6809637767543259144", "tag_ids": [6809640478850416654, 6809640394175971342, 6809640407484334093, 6809640398105870343], "visible_level": 0... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
69cc6db887403eaa460357350762c009a89aeba2 | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/v1_0/identitydirmgt_v1_0/azext_identitydirmgt_v1_0/vendored_sdks/identitydirmgt/aio/operations_async/__init__.py | ae017214b97f0196e8526af958a16d4120aa2ab6 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
aed5b0de5e97ac6fba1b095e9405ecbfaccdb8cd | 76133934b1dd287273a9bfa0c801d10d08a21b21 | /contrib/testgen/gen_base58_test_vectors.py | 49f33b99d143031cf342d5fd6866ba97e298361d | [
"MIT"
] | permissive | kenfmcoin/kenfmcoin | d8783b34fcb3ae01067e8d1b33e3a73e3b82b1f9 | 1fa48487593233f2066757dc54f48b2349e2d9db | refs/heads/master | 2020-03-10T17:53:31.569229 | 2018-04-14T12:28:55 | 2018-04-14T12:28:55 | 129,511,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,496 | py | #!/usr/bin/env python
# Copyright (c) 2012-2016 The KenFMcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Generate valid and invalid base58 address and private key test vectors.
Usage:
gen_base58_test_... | [
"37983255+spineinhalb@users.noreply.github.com"
] | 37983255+spineinhalb@users.noreply.github.com |
edbbfcabc14ea180f22675602b7a607cdf733c2c | 76a725c7fa676288c7ec1464015a6de285308217 | /pint/facets/context/__init__.py | 61685a217cd1ca562a2ddabdc4bee8d75a8e8a66 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | fernandezc/pint | 458c46b300e751b32e19786972c42e749fe60c50 | 37a61ede6fbd628c7dc160eb36278cf41c96484c | refs/heads/master | 2022-06-18T01:05:31.811358 | 2022-05-29T14:50:54 | 2022-05-29T14:50:54 | 168,887,523 | 0 | 0 | NOASSERTION | 2019-02-02T22:58:06 | 2019-02-02T22:58:05 | null | UTF-8 | Python | false | false | 481 | py | """
pint.facets.context
~~~~~~~~~~~~~~~~~~~
Adds pint the capability to contexts: predefined conversions
between incompatible dimensions.
:copyright: 2022 by Pint Authors, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
from .... | [
"hernan.grecco@gmail.com"
] | hernan.grecco@gmail.com |
1340fa0784aab990fcace157aca410260e5bd178 | 7bcb0b7f721c8fa31da7574f13ed0056127715b3 | /src/apps/cubes/models/utilities/log.py | 7c41f2b2d45d59f7289094617162ac9fef3394e1 | [] | no_license | simonchapman1986/ripe | 09eb9452ea16730c105c452eefb6a6791c1b4a69 | c129da2249b5f75015f528e4056e9a2957b7d884 | refs/heads/master | 2022-07-22T05:15:38.485619 | 2016-01-15T12:53:43 | 2016-01-15T12:53:43 | 49,718,671 | 1 | 0 | null | 2022-07-07T22:50:50 | 2016-01-15T12:53:09 | Python | UTF-8 | Python | false | false | 478 | py | from django.db import models
class Log(models.Model):
"""
Log
logs registered aggregates for a period and a cube/fact
"""
cube = models.CharField(max_length=255)
date = models.DateField(default=None)
time_taken = models.CharField(max_length=10, null=True, blank=True)
created = models... | [
"simon-ch@moving-picture.com"
] | simon-ch@moving-picture.com |
9d67482c8188a07a8766f3e354837d94874f45a9 | 64bf21e9b4ca104557d05dc90a70e9fc3c3544a4 | /tests/journal.ext/warning_properties.py | 8bd9998608544b485e6f53e6aab1e11f976dc88b | [
"BSD-3-Clause"
] | permissive | pyre/pyre | e6341a96a532dac03f5710a046c3ebbb79c26395 | d741c44ffb3e9e1f726bf492202ac8738bb4aa1c | refs/heads/main | 2023-08-08T15:20:30.721308 | 2023-07-20T07:51:29 | 2023-07-20T07:51:29 | 59,451,598 | 27 | 13 | BSD-3-Clause | 2023-07-02T07:14:50 | 2016-05-23T04:17:24 | Python | UTF-8 | Python | false | false | 1,844 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
# (c) 1998-2023 all rights reserved
def test():
"""
Verify access to the channel properties
"""
# access
from journal import libjournal
# make a warning channel
channel = libjournal.War... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
f782493ce0dbc1d089e5549139168c59740941ad | ccc984eb6c1ea6eb47169f820552b7fcbf1ff825 | /examples/code_viewer.py | 690001b32122f23d246858785ebf97d80f22f36f | [
"MIT"
] | permissive | terror/textual | 259d5172a2c6595ae68807659ae6fe005a01610b | ff4333d51affe5849caab6d21370cc5ac336c57b | refs/heads/main | 2023-07-09T22:01:54.792366 | 2021-08-06T12:07:04 | 2021-08-06T12:07:04 | 393,398,796 | 1 | 0 | MIT | 2021-08-06T14:17:30 | 2021-08-06T14:17:29 | null | UTF-8 | Python | false | false | 2,348 | py | import os
import sys
from rich.console import RenderableType
from rich.syntax import Syntax
from rich.traceback import Traceback
from textual import events
from textual.app import App
from textual.widgets import Header, Footer, FileClick, ScrollView, DirectoryTree
class MyApp(App):
"""An example of a very simpl... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
0d81cf88707f945d7786b00a4825193a307aed76 | aa2e1e8923b54d801b8ff61ea84bc7f0b2bddd05 | /leetcode_python/Recursion/sum-of-left-leaves.py | c8c3410fe1d36e5193fb21f56d262e9a4311d478 | [] | no_license | bkdbansal/CS_basics | 66d44a1624c3ee8080bdd5ef90769cde79b15822 | 5517891f5bdcb44a1872798c1dd9ee26ec20f0a0 | refs/heads/master | 2020-12-30T09:09:14.391228 | 2020-02-06T09:56:23 | 2020-02-06T09:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | # V0 : DEV
# V1
# http://bookshadow.com/weblog/2016/09/25/leetcode-sum-of-left-leaves/
class Solution(object):
def sumOfLeftLeaves(self, root):
"""
:type root: TreeNode
:rtype: int
"""
ans = 0
if root:
l, r = root.left, root.right
if l and ... | [
"f339339@gmail.com"
] | f339339@gmail.com |
6c75fc2890d6cdfb98978df836591ad89288803a | 210ecd63113ce90c5f09bc2b09db3e80ff98117a | /AbletonLive9_RemoteScripts/O2/config.py | 87bc06928a6ae1f35408c719a9e7139d59cf0530 | [] | no_license | ajasver/MidiScripts | 86a765b8568657633305541c46ccc1fd1ea34501 | f727a2e63c95a9c5e980a0738deb0049363ba536 | refs/heads/master | 2021-01-13T02:03:55.078132 | 2015-07-16T18:27:30 | 2015-07-16T18:27:30 | 38,516,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/O2/config.py
from consts import *
TRANSPORT_CONTROLS = {'STOP': GENERIC_STOP,
'PLAY': GENERIC_PLAY,
'REC': GENERIC_REC,
'LOOP': GENERIC_LOOP,
'RWD': GENERIC_RWD,
'FFWD': GENERIC_FFWD}
DEVICE_CONTROLS = (GENERIC_EN... | [
"admin@scoopler.com"
] | admin@scoopler.com |
5e3b3e67ca2e8e3e7c929a29efc0d033e0c11a05 | 00c9f793943f89fb32e6543db8cc412c38b4ebee | /apps/users/migrations/0005_banner_index.py | a87e14d1c533829c2cff5808369dffaaf666b2c6 | [] | no_license | ewsq/Mxonline | 2e071d846f1285cd782de6110de5825f6d26a6c5 | 62613e0d12b11d9698500c3a2afbdaea59d9cda3 | refs/heads/master | 2022-02-14T15:44:08.063974 | 2018-09-30T07:00:21 | 2018-09-30T07:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-08-15 16:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_auto_20180814_1700'),
]
operations = [
migrations.AddField(
... | [
"1508414512@qq.com"
] | 1508414512@qq.com |
6c951da9a9434e2ad93bf3a1f69f699d957008da | b32026b37c94f1963cc05c20748b1a24299186c1 | /blog/urls.py | 559f7782c93de2ce86ffcfa8d69b4cce4ed5d877 | [] | no_license | nonZero/django-simple-example | a5621594bc3ab40d053cfd7ffaddaa1629ab7792 | 6022f3873c5c91d8d45640360e3584f1720c940a | refs/heads/master | 2016-09-05T11:01:17.941571 | 2014-02-17T15:48:56 | 2014-02-17T15:48:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.conf.urls import patterns, include, url
from blog import views
urlpatterns = patterns('',
url(r'^$', views.list_posts),
url(r'^(\d+)/$', views.show_post, name="post"),
)
| [
"udioron@gmail.com"
] | udioron@gmail.com |
ca2e5f2be6376606c3ef95f8d137c707a543ddcf | 2f590fc0566816c26c9893000c3079bc974cc298 | /basis/exception/自定义异常.py | 994f7da03d318882bd0ee999815d54ed840d627b | [] | no_license | renyi1314/Source-code | 760ead67d948781d6859412d9f66a8c87f4dc094 | 2acc68486fb8be6d42bb043633d3e2297744d4c7 | refs/heads/master | 2021-04-12T09:55:37.983379 | 2019-11-09T03:18:08 | 2019-11-09T03:18:08 | 126,342,536 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | class ConfigurationFileError(Exception):
def __str__(self):
return "配置文件错误!!!"
try:
print("hello,world")
raise ConfigurationFileError()
except ConfigurationFileError:
print("我捕捉到了错误")
| [
"541421397@qq.com"
] | 541421397@qq.com |
1979d7e8e2fd4de434df9eed0afeb8f1ccaac613 | fbb18a8901b6844dc94205dce73a0879cece6cc9 | /qa_common/util.py | 2621c07f4481179f989300d85d8ad55174c924f5 | [] | no_license | NGTS/zlp-qa | 28c6ed69245e289e0d50340cc388a178bc5d4690 | 4a1c69d5e73b823ac7958d69ed7e5eacd119bfb4 | refs/heads/master | 2020-04-14T21:56:00.324900 | 2015-10-21T10:53:47 | 2015-10-21T10:54:50 | 22,339,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | class NullPool(object):
def __init__(self, *args, **kwargs):
pass
def map(self, fn, args):
return map(fn, args)
| [
"s.r.walker101@googlemail.com"
] | s.r.walker101@googlemail.com |
a30bc3cecf8888dfb0dd850a1611b363938e3f2d | a93cf8f695c1d1d97b8d0b9ccec6932c5e499ff8 | /Python/seungjun/14500.py | 343c648616725fb96754cd3b85efd7c6562d8a34 | [] | no_license | tmdwns1101/AlgorithmStudy | 0abc108a7a73895934da2633998c7a90137d49ea | e8ca069e202f40e074b7311626fe8da8af057589 | refs/heads/master | 2021-07-22T11:32:30.817108 | 2020-05-20T16:28:27 | 2020-05-20T16:28:27 | 165,377,838 | 0 | 1 | null | 2020-02-07T07:56:16 | 2019-01-12T11:02:59 | C++ | UTF-8 | Python | false | false | 1,773 | py | import sys
dx = [0,0,-1,1]
dy = [-1,1,0,0]
def dfs(board, i,j, count, N,M,visited):
if count == 4:
return board[i][j]
else:
sumV = 0
for k in range(4):
nx = j + dx[k]
ny = i + dy[k]
if nx >= 0 and nx < M and ny >= 0 and ny <... | [
"tmdwns1101@naver.com"
] | tmdwns1101@naver.com |
560f95dab6487e47fe31296a10f97163796ca56d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03838/s880268837.py | 969a8e31600f0b6b762d604c289ff95f527f8087 | [] | 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 | 319 | py | x, y = map(int, input().split())
ans = int(1e11)
# B(0) --> A --> B(0)
if x <= y:
ans = min(ans, y - x)
# B(1) --> A --> B(0)
if -x <= y:
ans = min(ans, y + x + 1)
# B(0) --> A --> B(1)
if x <= -y:
ans = min(ans, -y - x + 1)
# B(1) --> A --> B(1)
if -x <= -y:
ans = min(ans, -y + x + 2)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
08ffc493b6e630615400c910d167a3a27fe9c359 | c16ae4cc883210418b7e55a3a63bdb5e072ad420 | /jet_bridge/exceptions/permission_denied.py | 52b85147f9834c13b97e9e444aaf33b7fa307231 | [
"MIT"
] | permissive | BradyBromley/jet-bridge | c8f6562ede8904c5be2476a8591f8e697e8fe3b4 | 06be16d3bbfdf56a943057dfa48340693c6ed5bb | refs/heads/master | 2020-08-28T04:02:51.793221 | 2019-10-25T17:24:38 | 2019-10-25T17:24:38 | 217,582,142 | 0 | 0 | MIT | 2019-10-25T17:20:32 | 2019-10-25T17:20:32 | null | UTF-8 | Python | false | false | 253 | py | from jet_bridge import status
from jet_bridge.exceptions.api import APIException
class PermissionDenied(APIException):
default_detail = 'Permission denied'
default_code = 'permission_denied'
default_status_code = status.HTTP_403_FORBIDDEN
| [
"f1nal@cgaming.org"
] | f1nal@cgaming.org |
cafc6d81f224752007e3c1641578a8ad99baa606 | 35c4c0ae37c78124732bc8056f9b9940cc80779b | /Data/Arrays/Left Rotation of the array by 1/Left Rotation of the array by 1.py | 9d41e38b04391db5b3a331587456142ceb355b67 | [] | no_license | bhusalashish/DSA-1 | 8189c6fe27a7905eaa3ea0a404a38164245c8b6e | 573b737483193c30753e7afc5d564396318d45ff | refs/heads/master | 2023-02-09T21:44:16.691700 | 2020-12-25T06:19:58 | 2020-12-25T06:19:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | '''
#### Name: Left Rotation of the array by 1
Link: [link]()
''' | [
"nishan.paudel1914@gmail.com"
] | nishan.paudel1914@gmail.com |
ff634df94697b5ff691a26852465f843b3da06cb | 34a4b63ac88d871e3a24d08859fad3736c1cd3d4 | /mainApp/apps.py | a44565cb7651cc0ddd582c55f8bc1291377ee4b0 | [
"MIT"
] | permissive | wasisi/website | f1f6dd9811fe2941a0103b5c38898b0eeb024aa7 | bea467c9ff618e9befd784c9b4eac2b991d91e29 | refs/heads/master | 2021-09-12T16:03:26.603195 | 2018-04-18T12:15:45 | 2018-04-18T12:15:45 | 108,642,866 | 1 | 0 | null | 2018-04-11T19:36:00 | 2017-10-28T11:15:40 | TypeScript | UTF-8 | Python | false | false | 210 | py | from django.apps import AppConfig
class MainappConfig(AppConfig):
name = 'mainApp'
index_page_name = 'Wasisi Home'
#templates used by the application
index_page_view_tmpl="wasisi/index.html"
| [
"a.giavaras@gmail.com"
] | a.giavaras@gmail.com |
f042ce478c96b9c592ecc94f7759c63b26bdfd5d | a7699acc9413966e426d914470e6e37cc4c9c13d | /handler/ajaxHandler.py | 541002e062a4ef2a86ab2dffefe628235f5deb4d | [] | no_license | yimiqisan/huwai | 300090c58930ee2d3a42a6aea5fdd24c13302078 | ae4f8ba8e39534aa94894b291b80f8685ba0b7d2 | refs/heads/master | 2021-01-10T21:33:30.464330 | 2012-07-11T14:21:38 | 2012-07-11T14:21:38 | 2,111,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,019 | py | #!/usr/bin/env python
# encoding: utf-8
"""
ajaxHandler.py
Created by 刘 智勇 on 2011-12-22.
Copyright (c) 2011 __MyCompanyName__. All rights reserved.
"""
import uuid
import json
from baseHandler import BaseHandler
from huwai.apps.timeline import TimeLine
from huwai.apps.behavior import Behavior
from huwai.apps.pstore... | [
"yimiqisan@gmail.com"
] | yimiqisan@gmail.com |
611a6e9cada8d577b55f385af2f8919e2a47b5d1 | 1dabcbedd99be021540c26886d8e648b568591f4 | /service/app/models/admin/log.py | 1dcd1f52db3320de4f107fd453867eb8477a18d4 | [
"Apache-2.0"
] | permissive | xuannanxan/maitul-manage | 350721635340b9df885d9478a055491acb096023 | 35ddd2946bf4c97806bb38057a7dc9d6fa97c118 | refs/heads/master | 2023-01-20T05:47:56.469700 | 2020-04-13T16:07:19 | 2020-04-13T16:07:19 | 226,102,618 | 0 | 0 | Apache-2.0 | 2023-01-05T02:56:10 | 2019-12-05T12:57:11 | JavaScript | UTF-8 | Python | false | false | 430 | py | #!/usr/bin/env python
# coding=utf-8
'''
@Description:
@Author: Xuannan
@Date: 2019-12-18 15:49:20
@LastEditTime: 2019-12-18 17:18:19
@LastEditors: Xuannan
'''
from app.models.base import db,BaseModel
# 管理员登录日志
class AdminLog(BaseModel):
__tablename__ = "admin_log"
username = db.Column(db.String(100))
i... | [
"382933169@qq.com"
] | 382933169@qq.com |
4d01bfb38168853a45c51e339d9f70dd3e327735 | 00a97aafffcc0105f3be88e2a772e1a8cbb41e1e | /BBS/web/tree_search_test.py | 2659f6c37f8ab92a6dd4e19981c8dc910483e809 | [] | no_license | chenchao1990/BBS | 45bdd5e960371744ac20b9c5889d51c545310fd5 | 5c9fd17aa0fe902e51376ce86ef1519ffda09723 | refs/heads/master | 2016-09-14T05:36:21.401419 | 2016-05-09T03:02:11 | 2016-05-09T03:02:11 | 57,026,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
c_dic = {}
l = [(None, 'F'), ('a', 'b'), ('c', 'd')]
for comment_obj in l:
if comment_obj[0] is None:
print comment_obj[0]
c_dic[comment_obj] = {}
print c_dic
data = [
(None,'A'),
('A','A1')... | [
"465234371@qq.com"
] | 465234371@qq.com |
e4212cfe4f4953c0a2e1136a2b29e11a95cf8113 | 1105414add7c27eb201a0941e5bc86eb2f09378f | /journey11/src/test/reflection/dummyclass2.py | 73b980ddc043fd28a36587896c82042857c05e51 | [
"MIT"
] | permissive | parrisma/AI-Intuition | d083204267c351bc85c796a79ce43b8ff9d58022 | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | refs/heads/master | 2021-07-25T21:07:11.455443 | 2020-06-06T20:44:17 | 2020-06-06T20:44:17 | 193,102,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | class DummyClass2:
pass
| [
"parris3142@hotmail.com"
] | parris3142@hotmail.com |
5dc353a93b06993c487906eaac9897f987daaf6d | f0e40431aeff01f0cc2730e6da5f3fdb5ad87fe2 | /app_recorder/src/app_recorder/audio_video_recorder_plugin.py | 786b81919f96e1f2d98112055eca66152ab1bb56 | [] | no_license | knorth55/app_manager_utils | 4fbbeb89ee8e7aace40df8eea849adad0cb55f3d | 9aca891475ff39cb8ca0df475473274b136ada61 | refs/heads/master | 2023-04-07T12:27:32.224464 | 2023-04-02T09:00:27 | 2023-04-02T09:00:27 | 232,241,951 | 8 | 5 | null | 2022-10-04T13:54:51 | 2020-01-07T04:25:14 | Python | UTF-8 | Python | false | false | 174 | py | from app_manager import AppManagerPlugin
class AudioVideoRecorderPlugin(AppManagerPlugin):
def __init__(self):
super(AudioVideoRecorderPlugin, self).__init__()
| [
"shingogo@hotmail.co.jp"
] | shingogo@hotmail.co.jp |
977f929c773f1780cb3a383834895a855df960b4 | 9f114e994fd512b615983bb646306a68b9d1a193 | /anagrams.py | 581a169a6ab5da1c378e985b70dceeb1a3738423 | [] | no_license | JackSnowdon/BJS-Anagrams | 66ff596933e06c45cf26351604960ee32b246a30 | 095751a523cfadd9b13663f908e90c57712ef04a | refs/heads/master | 2022-11-24T18:51:19.885679 | 2020-08-04T16:34:53 | 2020-08-04T16:34:53 | 285,034,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | # Given a words.txt file containing a newline-delimited list of dictionary
# words, please implement the Anagrams class so that the get_anagrams() method
# returns all anagrams from words.txt for a given word.
#
# Requirements:
# - Optimise the code for fast retrieval
# - Write more tests
# - Thread safe implemen... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
2008e7568ca0fd139bf4152a68c511d77c83ff7b | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/PointsExchangeInfo.py | 771e67e444e923005de6529cac7e6eb63235e3e7 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,559 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class PointsExchangeInfo(object):
def __init__(self):
self._ids = None
self._type = None
@property
def ids(self):
return self._ids
@ids.setter
def ids(self, va... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
bf1e5522abe5a8391bcf8060ef79dba2cc8ac8bb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02717/s953634994.py | 8ded245f31064aaf545f39b5322e1b83adbb2809 | [] | 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 | 158 | py | XYZ = list(map(int, input().split()))
tmp = XYZ[0]
XYZ[0] = XYZ[1]
XYZ[1] = tmp
tmp = XYZ[0]
XYZ[0] = XYZ[2]
XYZ[2] = tmp
print(" ".join(str(n) for n in XYZ)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b34b13e95d7ddb33851ed499a6fae882e993b399 | e3a5e4bc5da18c6fa9ce7789b4fcc9e340d6b267 | /TV_shows/TV_shows/asgi.py | e6cbeac993a0be7a08218065532c824b9c6df55c | [] | no_license | jsilva16/Aplicaciones | 22bee66d1933859858ada29be2602392264b523a | c865b9fa6437853ff53d8106c0bfdace4ea4d7cd | refs/heads/master | 2023-08-13T10:52:16.675539 | 2021-10-10T06:26:24 | 2021-10-10T06:26:24 | 397,779,660 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for TV_shows project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault... | [
"juansilva.ambiental@gmail.com"
] | juansilva.ambiental@gmail.com |
e1281180de1f6234d594b0cde55ed2bc8a169c6f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03776/s093609237.py | ac86717ca5a582ecc7ac508c2afd2be75c2d4878 | [] | 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 | 531 | py | from math import factorial
def comb(n, r):
if n < r:
return 0
return factorial(n) // (factorial(r) * factorial(n - r))
N, A, B = map(int, input().split())
v = list(map(int, input().split()))
v.sort(reverse=True)
cnt = 0
cnt2 = 0
for i in range(N):
if v[i] > v[A]:
cnt += 1
if v[i] == ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
85c3ba150ffe1813f60e4084ff72ce5b2d1e2b4a | e08a865be960d0db274a0a6f84ef12c01d2e8143 | /webapp/webapp/urls.py | 22bd602bfcdf26a2225a67d7f08a07a89411cb8b | [] | no_license | lsimurali/timeline | e360833bb28102b6e32fa028b871451501db8e97 | da57cb1b8e644e667cb9ba0821b6270691b528ed | refs/heads/master | 2020-04-15T05:01:54.846956 | 2019-01-08T07:42:59 | 2019-01-08T07:42:59 | 164,406,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """webapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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 ... | [
"email@example.com"
] | email@example.com |
497f80427fbab4ff5a8ce79cbdca2f3dda773496 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/565.py | 29e70e2ced6c2e8a19c4601461c44a5f37f6ae2f | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #!/usr/bin/python
# -*- coding: iso-8859-1 -*-
import sys
import math
with open(sys.argv[1], 'r') as f:
for n in range(int(f.readline())):
D, N = [int(i) for i in f.readline().split()]
y = float('inf')
for k in range(N):
K,S = [float(i) for i in f.readline().split()]
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5da863fcd7dc049d2841ce3b8da8d04f2dbc6eec | 4b87a0de0f43de2bde41f2590faac970c18fe482 | /api/v1/services/repayment/views.py | ff433fbd81e3cb569821ae72acb762e40a9f3a19 | [] | no_license | krishSona/testbackend | d0bc325776537d9814b9022b3538b5e8a840e6a4 | d87e050d02542c58876d4f81c2ea99815ab4160e | refs/heads/master | 2023-04-08T01:26:42.070058 | 2021-04-03T06:08:54 | 2021-04-03T06:08:54 | 354,214,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | from drf_yasg2 import openapi
from drf_yasg2.utils import swagger_auto_schema
from rest_framework.decorators import action
from rest_framework.exceptions import ValidationError
from rest_framework import views
from django.http import JsonResponse
from core.models import Employee
import json
import requests
from dail... | [
"kali@dailysalary.in"
] | kali@dailysalary.in |
67c9c1ddb5f128ee62d35cc0fa52199cc0929c85 | dc72e1eb44cfaed330d9477d0c27bee307a81e4a | /Jackpointnew/event/models.py | 8e1a44ffbd3a9f823cc61aa765069f491c7ee8c0 | [] | no_license | bussiere/JackPointFInal | ba200d85606e17b423535af20a58c04bf5afa550 | c414480fee519e68aece68068e941278fe10cf0a | refs/heads/master | 2021-07-24T14:25:56.982106 | 2013-07-08T11:10:41 | 2013-07-08T11:10:41 | 5,333,141 | 0 | 0 | null | 2021-06-10T17:45:33 | 2012-08-07T20:29:46 | Python | UTF-8 | Python | false | false | 4,069 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
# TODO rajouter commentaires USER sur les events.
class CategorieEvent(models.Model):
Nom = models.CharField(max_length=256, null=True, blank=True)
Administration = models.ManyToManyField("administration.Adminis... | [
"bussiere@gmail.com"
] | bussiere@gmail.com |
391c7fded8b2b76495640db2776e455bc704a04d | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/12-string-index_20200412225308.py | 2c536abfb223328031d7131a5a5cd63f1a3460c2 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | author = "Alexandre Dumas"
print(author[8])
# [start:stop]
print(author[3:9])
# [start:stop:] | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
37acb472232db6c4cf458db2e95b5516cfaf3340 | 172e58e07e2722a6d4c2753e67ea8137ee7e8b24 | /comoencasa/experiences/migrations/0002_experiencesimage_experiencesitems.py | 7a2540fabde5882a8f66d547366bdc248b1e0cf6 | [] | no_license | dmontoya1/como-en-casa | c8d98cf8eebaa9bd21916b71ffccf10460dfc409 | 76c13020a8ad01d859aaaefaabc9a9db3b9392eb | refs/heads/master | 2023-05-06T16:59:48.842067 | 2019-06-24T20:59:50 | 2019-06-24T20:59:50 | 371,432,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | # Generated by Django 2.0.10 on 2019-02-06 02:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('experiences', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='ExperiencesImage... | [
"dmontoya@apptitud.com.co"
] | dmontoya@apptitud.com.co |
a58ab627b6cfbd8baf230a75ad387b7c2cd69ac7 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/headless/DEPS | 3759f668f117c573e966db47f56ec04b8f1b2dc4 | [
"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 | 195 | include_rules = [
"+components/headless",
"+components/devtools/simple_devtools_protocol_client",
]
specific_include_rules = {
"headless_mode_command_browsertest\.cc": [
"+pdf",
],
} | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com | |
b4edc65297974e11e9b5443cb4a081c3d14480de | dc7dc1ab85403a4467044d4c0c936c17fff5225a | /fstmerge/examples/SpamBayes/rev3103-3133/spambayes/spambayes/Histogram.py | f6c073948775cbe9ad3905ac9525e86a144380cb | [] | no_license | RoDaniel/featurehouse | d2dcb5f896bbce2c5154d0ba5622a908db4c5d99 | df89ce54ddadfba742508aa2ff3ba919a4a598dc | refs/heads/master | 2020-12-25T13:45:44.511719 | 2012-01-20T17:43:15 | 2012-01-20T17:43:15 | 1,919,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,090 | py | import math
from spambayes.Options import options
try:
True, False
except NameError:
True, False = 1, 0
class Hist :
"""Simple histograms of float values."""
def __init__(self, nbuckets=options["TestDriver", "nbuckets"],
lo=0.0, hi=100.0):
self.lo, self.hi = lo, hi
... | [
"joliebig"
] | joliebig |
05b27710561769f5d0cabc3de093107ca9534942 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_159/593.py | c7df836a70db8b4acd69f1589d6853aa3b386a1d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | T = input()
for tt in range(T):
n = input()
m = map(int, raw_input().split())
first, second = 0, 0
temp = 0
for i in range(n - 1):
first += max(0, m[i] - m[i+1])
temp = max(temp, m[i] - m[i+1])
for i in range(n - 1):
second += min(temp, m[i])
print "Case #%... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2a8db427faaecd50cc6d8d15b2d193db717629d7 | c7427aeec5599a828209efd3c2805e0b9159d1a3 | /src/004_aozora/020_create_map_for_excel.py | 993c094c05996ea63278fb871fd33988faa517c2 | [] | no_license | nakamura196/genji_curation | 817690098fe6e0ea9f351edd8d21b4cb49a11c53 | b7988e2125b68c3014dbeacad7c8ce795014eb7c | refs/heads/master | 2023-04-14T01:27:39.322047 | 2021-04-30T00:04:54 | 2021-04-30T00:04:54 | 255,350,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | import requests
from bs4 import BeautifulSoup
import re
from bs4 import BeautifulSoup
import requests
import openpyxl
book = openpyxl.Workbook()
soup = BeautifulSoup(open('data/xml_s/01.xml','r'), "lxml")
sheet = book.create_sheet(index=0)
sheet.append(["現代語訳ID", "現代語訳テキスト"])
# main_text.contents = all
s_arr = so... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
5f59040c060716ef9d38d5b714f8012bae1778bb | 3d62a14eb69baea0737f8c093336cbf6380b30a7 | /dingtalk/api/rest/OapiTdpProjectMemberRemovebyprojectRequest.py | 88d73a6ee9a5d63b5f65f3c2112eec908ea6583d | [] | no_license | KangSpace/message_plus_server | 50cbc55c296d5e835a0c6f99f45cf699f6806add | 300954993f44648db3a2124d587533656d970d6c | refs/heads/main | 2023-05-01T15:08:18.195400 | 2021-05-27T04:41:56 | 2021-05-27T04:41:56 | 361,338,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | '''
Created by auto_sdk on 2020.12.23
'''
from dingtalk.api.base import RestApi
class OapiTdpProjectMemberRemovebyprojectRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.microapp_agent_id = None
self.operator_userid = None
self.project_id = None
def getHttpMethod(self... | [
"kango2gler@gmail.com"
] | kango2gler@gmail.com |
cca9e03fda7103a78b78f270d2a90d63d712799c | 52f4426d2776871cc7f119de258249f674064f78 | /programmers/dynamic_programming/N으로 표현.py | 364ee77903e2aa988da206c9759353bb24e77dc5 | [] | no_license | namhyun-gu/algorithm | 8ad98d336366351e715465643dcdd9f04eeb0ad2 | d99c44f9825576c16aaca731888e0c32f2ae6e96 | refs/heads/master | 2023-06-06T02:28:16.514422 | 2021-07-02T10:34:03 | 2021-07-02T10:34:03 | 288,646,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | def solution(N, number):
dp = [0]
for i in range(1, 9):
temp = set()
temp.add(int(str(N) * i))
for j in range(1, i):
for x in dp[j]:
for y in dp[i - j]:
temp.add(x + y)
temp.add(x - y)
temp.add(x * ... | [
"mnhan0403@gmail.com"
] | mnhan0403@gmail.com |
bd5abef434764e2a027b05d76fff1f0fcb9e3826 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/8b6ec206fa884a5e948beb75ea0e0e0e.py | c2c0e476f8434971e977285e2adaf2a155077f12 | [] | 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 | 792 | py | """
Implementation of RNA transcription module
Specification:
Given a DNA strand, return its RNA complement (per RNA transcription).
Both DNA and RNA strands are a sequence of nucleotides.
The four nucleotides found in DNA are adenine (**A**), cytosine (**C**),
guanine (**G**) and thymidine (**T**).
The four nucle... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
814079c03140feb933e952f350121c44360f9c6b | 5909009200d9254eed1aef4083d991b237a084ac | /MeasuringTools/TemperatureSoft/com.py | 2d7288a63e7b0a4b548dd6c9ac334a57c7fcdbfa | [] | no_license | jsbarbosa/TesisQuimica | 036cc8f7f9b32bad1cbd75a6feee42a4290e2e78 | 3d93bb026ba7d9b71ae5572f835bf5551f1fe890 | refs/heads/master | 2021-06-23T20:53:37.527573 | 2019-07-02T13:37:20 | 2019-07-02T13:37:20 | 133,194,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | from time import sleep
from serial import Serial
import serial.tools.list_ports as find_ports
GET_ADC = 0x02
SET_CHANNEL_0 = 0x03
SET_CHANNEL_1 = 0x04
SET_CHANNEL_2 = 0x05
SET_CHANNEL_3 = 0x06
NAME = 0x0f
SLOPES = [10.257, 10.3, 10.29]
INTERCEPTS = [-12.2, -10.2, -8.4]
BAUDRATE = 115200
TIMEOUT = 0.5
SAMPLING_TIME ... | [
"js.barbosa10@uniandes.edu.co"
] | js.barbosa10@uniandes.edu.co |
47331e0ebafb62f2c571a2c34a01e379f28e1ca4 | 3cda2dc11e1b7b96641f61a77b3afde4b93ac43f | /test/algo/nas/oneshot/test_profiler.py | ce8e2dea5f2a9803791e3cd5800ff9d84c142e52 | [
"MIT"
] | permissive | Eurus-Holmes/nni | 6da51c352e721f0241c7fd26fa70a8d7c99ef537 | b84d25bec15ece54bf1703b1acb15d9f8919f656 | refs/heads/master | 2023-08-23T10:45:54.879054 | 2023-08-07T02:39:54 | 2023-08-07T02:39:54 | 163,079,164 | 3 | 2 | MIT | 2023-08-07T12:35:54 | 2018-12-25T12:04:16 | Python | UTF-8 | Python | false | false | 3,315 | py | import pytest
import torch
from torch.nn import Conv2d
from nni.nas.nn import ModelSpace, LayerChoice
from nni.nas.oneshot.pytorch.profiler import RangeProfilerFilter, ExpectationProfilerPenalty, SampleProfilerPenalty
from nni.nas.profiler.pytorch.flops import FlopsProfiler
class Net(ModelSpace):
def __init__(s... | [
"noreply@github.com"
] | Eurus-Holmes.noreply@github.com |
9a75ee027b3d24c57e8b1c6dbad80de7e251e3e1 | 1690d6ec0451a5971fea1aded40f0f98e81ad89b | /ch06/TkUI3Label.py | 4b8cdb519d0c76238ce362064cae2b09bb127074 | [] | no_license | eggeggss/BigData | 09165e5935c25b0c5f343f457768c13ee4d7e9a5 | 0306ff01861c7dcde6dec99df58991411535036c | refs/heads/master | 2020-04-04T18:15:25.124491 | 2018-11-05T09:33:48 | 2018-11-05T09:33:48 | 156,156,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | #!/usr/bin/python
try:
import Tkinter as tk
except ImportError:
import tkinter as tk
win = tk.Tk()
# Python 2.x name # Python 3.x name
#win = tk.Tk()
'''
label1 =tk.Label(win,text="Hello World!")
label1.pack()
label2 =tk.Label(win,bg="yellow",text="Hello No2!",fg="red")
label2.pack()
label3 =tk.Label(win,text="Hell... | [
"eggeggss@gmail.com"
] | eggeggss@gmail.com |
1812c9e6925a314f7f521ef22784c8b0a52ebb59 | 6f00947901426274cb895a21ad5f83c0197b50ba | /e2e/scripts/st_arrow_table.py | c713fe9812edfcbd04adb02474bce9e3bfd9176a | [
"Apache-2.0"
] | permissive | g147/streamlit | f19a796e1bbf83f939f1bcbd3e8f3fd6e64155bb | d54fab097caa3e6dc101eb930cddc0832e05dea9 | refs/heads/develop | 2023-06-18T02:21:22.112118 | 2021-07-10T09:22:27 | 2021-07-10T09:22:27 | 363,459,800 | 1 | 0 | Apache-2.0 | 2021-07-10T09:22:43 | 2021-05-01T16:45:08 | Python | UTF-8 | Python | false | false | 2,008 | py | # Copyright 2018-2020 Streamlit 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 agreed to in wr... | [
"noreply@github.com"
] | g147.noreply@github.com |
318a8860268ad0ba67af152bf2833b94ecdd7623 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L29/29-35_MD_NVT_rerun/set_1ns_equi_1.py | 50bffb33e2c950a8a834585ad7c88e4405d940ea | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L29/MD_NVT_rerun/ti_one-step/29_35/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
c07c068572528b1005e53cc507d4d0da8811a959 | 940d7b93fb27e8eead9b6e52bc5c7444666744dd | /python/src/Lib/test/test_codecencodings_tw.py | 983d06f00342d6f3b4bc9d7905ad9863c66fefdc | [
"Apache-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Python-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-python-cwi"
] | permissive | pilotx45/sl4a | d446531d310cc17d93f24aab7271a0813e8f628d | 150e3e46b5103a9b9a391034ef3fbc5bd5160d0f | refs/heads/master | 2022-03-24T19:48:30.340479 | 2022-03-08T16:23:58 | 2022-03-08T16:23:58 | 277,016,574 | 1 | 0 | Apache-2.0 | 2022-03-08T16:23:59 | 2020-07-04T01:25:36 | null | UTF-8 | Python | false | false | 788 | py | #!/usr/bin/env python
#
# test_codecencodings_tw.py
# Codec encoding tests for ROC encodings.
#
from test import test_support
from test import test_multibytecodec_support
import unittest
class Test_Big5(test_multibytecodec_support.TestBase, unittest.TestCase):
encoding = 'big5'
tstring = test_multibytecodec... | [
"damonkohler@gmail.com"
] | damonkohler@gmail.com |
f5ae1b36eb10053a0e371e7f0bcff1f2b6bcb9bf | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/ipython/py2/IPython/kernel/kernelspec.py | 123419b2f545ca25532dbbc770a4c606fffb9ee7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 40 | py | from jupyter_client.kernelspec import *
| [
"arcadia-devtools@yandex-team.ru"
] | arcadia-devtools@yandex-team.ru |
4e45eeb96576abdddb844ce31196ff63d3ac46ed | 52814db465713cb3c659abbca77381fc6483f66a | /autocache/__init__.py | 4d938c8218029e2ecb3fd3fdb65774aaf3f737e1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tkaemming/autocache | a9a5911fb9881bf7e8bfbbe6c085c504c60c7b9a | a4539f33ba920324baf6c0e385116fbf0a4f0805 | refs/heads/master | 2020-05-07T01:09:17.983620 | 2012-04-22T00:04:33 | 2012-04-22T00:04:33 | 4,091,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from autocache.decorators import cached
# Trick pyflakes into think we actually do something with imported values.
cached
| [
"ted@kaemming.com"
] | ted@kaemming.com |
4b1ea48772e14eeff4ca5a434b230834b3f082dc | 4253429abd7f3c1d42f7f4d1fa83c006caf3f965 | /dao.py | bd1700e64d622bbf57f8a9c77bdb80fe2151c692 | [] | no_license | bloogrox/ssp-campaigns | f093a02c1ba450361f2b18059f9f6e973e7d6110 | 62da668022e6b92de899d6604db73875cccd188a | refs/heads/master | 2021-10-25T14:02:25.695104 | 2021-06-19T06:46:20 | 2021-06-19T06:46:20 | 96,702,055 | 3 | 1 | null | 2021-06-19T06:46:41 | 2017-07-09T18:06:57 | Python | UTF-8 | Python | false | false | 1,942 | py | import time
from datetime import datetime
import pytz
from elasticsearch.exceptions import ElasticsearchException
from elasticsearch_dsl import Search, Q, query as dslq
from app import es, logger
def get_subscribers(targetings, hours_whitelist, volume):
logger.debug("get_subscribers: getting subscribers")
st... | [
"bloogrox@gmail.com"
] | bloogrox@gmail.com |
1b7baf32d349d530d5788078b227696dfc21bac0 | acfb4330e53f2818fe9c63bdd75a1410db4568a1 | /main.py | a2f608f37305a066186cae5810244cb63a5179f5 | [] | no_license | zaidhassanch/NeuralTensorNetwork-Tensorflow | 8bc6b2b42be9a2e8f8d0e4c4e3b3f80415bf2467 | 3ca77c56cc0a02f05c7722e4bc213a20fa58985e | refs/heads/master | 2020-07-03T00:23:54.777032 | 2019-08-11T06:07:28 | 2019-08-11T06:07:28 | 201,723,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,140 | py | from sklearn import metrics
import numpy as np
import csv
import math
import tensorflow as tf
from scipy.io import loadmat
import os
import psutil
import random
import scipy.io
import pickle
from ntn import NTN
no_of_entities = 38696;
flipType = 0;
batch_size = 20000;
slice_size = 3;
corrupt_size = 10;
def nanargma... | [
"zaidhassanch@gmail.com"
] | zaidhassanch@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.