blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d0074cf34faa97e409587457b3a55e2e27a680b9 | e4e1223e28a47bee5c47f3b08e05276996bb3694 | /example/context.py | 101cbd0c816dc15c5e05434adbb53d99e805564c | [
"BSD-3-Clause"
] | permissive | ecarreras/subcmd | 891bc108ea713a2e2f78dfde9a2e7f2661f3c847 | ee0475b82da7125909c6a6828eee115d20e6193c | refs/heads/master | 2020-12-25T04:18:09.850340 | 2012-08-28T09:09:52 | 2012-08-28T09:09:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | #
## BEGIN LICENSE BLOCK
#
# Copyright (c) <2012>, Raul Perez <repejota@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copy... | [
"repejota@gmail.com"
] | repejota@gmail.com |
e7ed20584cd2a3e9120547bf256c89a97295ec0d | 1a949f20cafe328c5ad145659903e8dc5d974a76 | /subjects/admin.py | 70f7ea47f0a4e6dd08a1ec643b007f0d733a30c9 | [] | no_license | Fabricourt/plotx | 7154be9153ab532796a16a1de3125276913fca97 | b2a526d4a9236217978a48a997b3b425cd40c0a9 | refs/heads/master | 2022-12-11T18:57:36.631087 | 2020-07-07T17:22:50 | 2020-07-07T17:22:50 | 230,000,109 | 0 | 1 | null | 2022-12-08T03:27:54 | 2019-12-24T20:25:39 | JavaScript | UTF-8 | Python | false | false | 458 | py | from django.contrib import admin
from .models import *
class SubjectAdmin(admin.ModelAdmin):
list_display = ('subject_name', 'created_by', 'is_published', )
list_display_links = ('subject_name',)
list_filter = ('subject_name', 'created_by',)
list_editable = ('is_published',)
search_fields = ('subject_nam... | [
"mfalme2030@gmail.com"
] | mfalme2030@gmail.com |
632b44110f8d17e5a87f2169f16492724791a409 | 2c4ba5a56b7a3d3e1c286b678eb8068f51c23046 | /week2/3-Simple-Algorithms/solutions/first_n_perfect.py | 388005a98408f01742f75b53102ab5c4f146e5ab | [] | no_license | OgnyanPenkov/Programming0-1 | 3b69757bd803814585d77479fc987a0ee92d0390 | 8078f316ea2b81216c21cf78e7cf1afc17f54846 | refs/heads/master | 2021-01-21T15:12:20.814368 | 2015-10-07T18:16:39 | 2015-10-07T18:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # Проблемът на тази задача е, че не знаем горната граница на интервала
# Например, не знае първите 4 перфектни числа в какъв интервал са
# За това подхождаме по следния начин - while True:
# За всяко число +1 гледаме дали е перфектно
# Aко намерим перфектно, намаляваме търснеата бройка с 1
# Когато търсената бройка ста... | [
"radorado@hackbulgaria.com"
] | radorado@hackbulgaria.com |
7393ed5275df359c4798e683f9f52f70ea73ee36 | 5fd4707876cac0a4ca3b14af9a936301c45b5599 | /02_数据结构/fp_15_一个谜题.py | 12cd3f9686732f4027c53318216d150dbc7debc7 | [] | no_license | xuelang201201/FluentPython | 5b0d89bfc6ee1238ad77db9955ec7e8417b418b8 | 7cbedf7c780c2a9e0edac60484f2ad4c385e1dbd | refs/heads/master | 2022-04-26T21:49:16.923214 | 2020-04-27T01:27:50 | 2020-04-27T01:27:50 | 258,290,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # 一个关于+=的谜题
t = (1, 2, [30, 40])
t[2] += [50, 60]
# 到底会发生下面4中情况中的哪一种?
# a. t变成 (1, 2, [30, 40, 50, 60])。
# b. 因为 tuple 不支持对它的元素赋值,所以会抛出 TypeError 异常。
# c. 以上两个都不是。
# d. a 和 b 都是对的。
# 在终端中运行:没人料到的结果:t[2] 被改动了,但是也有异常抛出
# t
# TypeError Traceback (most recent call last)
# <ipython-input-2-d87... | [
"xuelang201201@gmail.com"
] | xuelang201201@gmail.com |
bdea5739deb6de4ea45ee5a8b9375074d1bd4a56 | c1e31f49a59beb6089328d09040f6f48d2e12cde | /lib/python2.7/exportfits.py | 8ac16bd8a03a5dfb2e656ce6285ff75d901e1e57 | [
"Python-2.0"
] | permissive | kernsuite-debian/casalite | 3d81761e0d8ae497f97ea242e98d4357618a7591 | b620981f14f4ba5b77f347f649cd2c16d498db04 | refs/heads/master | 2021-06-22T16:22:51.765703 | 2021-02-25T13:28:05 | 2021-02-25T13:28:05 | 80,822,139 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | #
# This file was generated using xslt from its XML file
#
# Copyright 2009, Associated Universities Inc., Washington DC
#
import sys
import os
from casac import *
import string
from taskinit import casalog
from taskinit import xmlpath
#from taskmanager import tm
import task_exportfits
def exportfits(imagename='', fit... | [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
568bc42695dfdf14190d884be35c1c4afa43689f | d1ac66f9a935fd5515a16a1cc8d4dae0104ea0fe | /src/check_structures.py | 3c3fea7183213683e377187b6fdf992c82b42c34 | [
"MIT"
] | permissive | chemspacelab/meltingpoint | 8b1b1f5a7e6f45fee82c2e8d55db2df29c6ae0bc | e3d8eb61fcb5fa5c9c2a1a03852216e4e625a9c9 | refs/heads/master | 2020-08-30T06:08:17.739191 | 2020-04-17T11:18:32 | 2020-04-17T11:18:32 | 218,285,755 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py |
import qml
from chemhelp import cheminfo
import numpy as np
from rdkit import Chem
import sys
args = sys.argv[1:]
filename = args[0]
molobjs = cheminfo.read_sdffile(filename)
for i, molobj in enumerate(molobjs):
molobj = next(molobjs)
# stat = cheminfo.molobj_optimize(molobj)
# print(stat)
dis... | [
"jimmy@charnley.dk"
] | jimmy@charnley.dk |
dae39314521542665f7fe4ce4c6605824fa4d40c | 728e57a80995d7be98d46295b780d0b433c9e62a | /src/rewriter/rewriter.gyp | 1566c15345faf46401995133dcfc423cc15a2523 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"GPL-1.0-or-later"
] | permissive | SNQ-2001/Mozc-for-iOS | 7936bfd9ff024faacfd2d96af3ec15a2000378a1 | 45b0856ed8a22d5fa6b4471548389cbde4abcf10 | refs/heads/master | 2023-03-17T22:19:15.843107 | 2014-10-04T05:48:29 | 2014-10-04T05:48:42 | 574,371,060 | 0 | 0 | Apache-2.0 | 2022-12-05T06:48:07 | 2022-12-05T06:48:06 | null | UTF-8 | Python | false | false | 4,492 | gyp | # Copyright 2010-2014, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and ... | [
"kishikawakatsumi@mac.com"
] | kishikawakatsumi@mac.com |
0cc9f793bbbacb2d71d1f077caac1470878e96ee | badb121a8c72debc539e7b9caf17b5c4cd875897 | /setup.py | d788bb0448c2f1d68b5d93911c2598c8b73aeadc | [
"MIT"
] | permissive | shlpu/DeepNeuro | 8721e1f83b30031a422e6cf112c31879edfa0feb | 6b239942589d1b05e2384019c442508f5d02beb3 | refs/heads/master | 2020-03-16T07:12:25.128910 | 2018-04-10T22:32:29 | 2018-04-10T22:32:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | """DeepNeuro: A deep learning python package for neuroimaging data.
Created by the Quantitative Tumor Imaging Lab at the Martinos Center
(Harvard-MIT Program in Health, Sciences, and Technology / Massachussets General Hospital).
"""
DOCLINES = __doc__.split("\n")
import sys
from setuptools import setup, find_pack... | [
"andrew_beers@alumni.brown.edu"
] | andrew_beers@alumni.brown.edu |
54b5f9999727867f92c0a86ef38bb2f8502bf5aa | 56fc8fe58ec8d576ec857f19a8adc43b49e19125 | /DjangoDrf/DjangoDrf/urls.py | c75f1d5a486221814c1b64622ac12621ad0426fc | [] | no_license | Qpigzhu/Drf | 53ae3dfd7d2715ea49bbfca02ada1a9239cb25a2 | e4faa165a81abe8e641b992b6f86cc46cb01ac16 | refs/heads/master | 2022-12-13T16:30:33.868771 | 2018-12-12T02:34:11 | 2018-12-12T02:34:11 | 161,421,986 | 0 | 0 | null | 2022-12-08T01:20:24 | 2018-12-12T02:32:20 | JavaScript | UTF-8 | Python | false | false | 2,253 | py | """DjangoDrf URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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-bas... | [
"331103418@qq.com"
] | 331103418@qq.com |
4fdd0d8c6ae5710146751a450372bd9c6f5b06d7 | 1934761958bbb6082beebe887af36d7579d73fd5 | /sandbox/test_concatenation.py | e25fa9c7ed94080b29d6fbe34cc88e58924e3439 | [
"MIT"
] | permissive | sjoerdapp/tacoma | 92d16e0beb93a3fc0dd0a745bccc35e050fa5dbe | 3c63d51e2b9b021f95a6945716f50b557dd41d52 | refs/heads/master | 2020-04-10T14:01:22.713198 | 2018-12-07T17:10:09 | 2018-12-07T17:10:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | import tacoma as tc
print("===== edge_lists => edge_lists =====")
L = tc.edge_lists()
L.N = 4
L.t = [0.0,1.0,2.0]
L.tmax = 3.0
L.edges = [
[
(0,1)
],
[
(1,2), (0,2)
],
[
(0,1)
],
]
L2 = tc.e... | [
"benjaminfrankmaier@gmail.com"
] | benjaminfrankmaier@gmail.com |
75b3a9895a158f61870ce7f6948ee8c615166ebf | ad1fc1783487a70b3b10e9d3927cd864d15a6056 | /pytablewriter/style/__init__.py | 01aa4c10be5158f44fcc371276ce1231fe78cce7 | [
"MIT"
] | permissive | Diwahars/pytablewriter | ea1d53669d7f0507c35332cb296fc9c0015473d0 | 6275405d75cb091c9e225e278b0d1230736fb9e8 | refs/heads/master | 2020-04-16T09:41:39.070414 | 2019-01-09T13:38:03 | 2019-01-09T13:38:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # encoding: utf-8
from __future__ import absolute_import
from ._font import FontSize, FontWeight
from ._style import Align, Style, ThousandSeparator
from ._styler import (
HtmlStyler,
LatexStyler,
NullStyler,
TextStyler,
MarkdownStyler,
ReStructuredTextStyler,
)
from dataproperty import Format... | [
"tsuyoshi.hombashi@gmail.com"
] | tsuyoshi.hombashi@gmail.com |
0f9324881116da5ccc6d95e209e3b1eca52c64cb | d0bdf444c71b724ecfd59b5bc6850962c56494cb | /labs/07-resampling_and_the_bootstrap/tests/q0_2.py | cb757a625b8c22fcb31df3b7f2d4ca35b9ab74d6 | [] | no_license | ucsd-ets/dsc10-su20-public | 10e3d0ff452b337f222baee330fe60d1465b0071 | 38787e6cc3e6210b4cc8a46350e5120845971c9f | refs/heads/master | 2022-12-13T23:28:20.512649 | 2020-09-03T19:28:06 | 2020-09-03T19:28:06 | 275,905,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | test = {
'hidden': False,
'name': '0.2',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> p_50 == 76
True
""",
'hidden': False,
'locked': False
}
],
'scored': True,
'setup': '',
'teardown': '',
... | [
"eldridgejm@gmail.com"
] | eldridgejm@gmail.com |
911268cc7033fdb9e4f5dfa358b0e1e352f93e23 | ae39044997354b7270c6f35957bdd5efdcfbd2ee | /21.类.py/carse.py | c25056e3efde01e2d06ef62660cd80b401ed2c88 | [] | no_license | text007/learngit | a2a7d8c872f17103a388f77370dcd07d6eb477c9 | 6f3429ecab51f738a99b2ec6637cd21603f48ec4 | refs/heads/master | 2020-06-18T13:18:34.563100 | 2019-10-08T13:08:09 | 2019-10-08T13:08:09 | 156,345,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py |
'''一个类'''
# 导入另外一个类
from cars import Car
class Battery(): # 定义一个类
def __init__(self, battery_size = 70): # 定义一个方法,传入一个形参,如果没有传入参数值,则默认值
self.battery_size = battery_size # 初始化
def describe_battery(self): # 定义一个方法
print(str(self.battery_size)) # 打印
def get_range(self): # 定义一个方... | [
"jzheng@qumitech.local"
] | jzheng@qumitech.local |
4ed203fe5bd61e1e611d29326dfa8157d106a3bd | 292726345fae67a78771477e164441a716e0c22b | /setup.py | 90234c02a27b4334d60238f950aa900379015c21 | [] | no_license | anirban89/mypackage | d9bf8c7b0d2cc9dbd4ac4b5493cd650bf390f8a7 | 7b38e6db6c9e60cf2edb2b34ebe649ec3b7f0737 | refs/heads/master | 2021-01-13T02:26:17.878874 | 2014-10-02T00:29:34 | 2014-10-02T00:29:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from setuptools import setup
setup(
name = 'mypackage',
version = 0.1,
packages = ['mypackage'],
install_requires = ['numpy']
)
| [
"anirbancnha@gmail.com"
] | anirbancnha@gmail.com |
f705ee4bc444b70f5af055fe8b3972fe83329f2c | 8a6c18088c50bc782df58e176663114d91ffc47c | /src/teams/migrations/0048_auto_20180814_1950.py | c59f9f8cb4135dcc034d5f69b80569efbd596119 | [
"BSD-3-Clause"
] | permissive | flummer/bornhack-website | 14cc55f34b85740d32567d6a3934e865f2549381 | c40f225f0993a6edd25dc608de1f6467f7d8e5a1 | refs/heads/master | 2020-04-29T13:23:44.167064 | 2019-05-12T15:30:01 | 2019-05-12T15:30:01 | 176,167,685 | 0 | 0 | BSD-3-Clause | 2019-03-17T22:19:27 | 2019-03-17T22:19:27 | null | UTF-8 | Python | false | false | 359 | py | # Generated by Django 2.1 on 2018-08-14 17:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('teams', '0047_taskcomment'),
]
operations = [
migrations.RenameField(
model_name='taskcomment',
old_name='content',
... | [
"valberg@orn.li"
] | valberg@orn.li |
07151db73c571183b2efe81f155b7ee8f4d0d5aa | 9b8e2992a38f591032997b5ced290fe1acc3ad94 | /untitled1.py | 5168631138eec406cbc548e97cca8ab1abb1401a | [] | no_license | girishdhegde/aps-2020 | c694443c10d0d572c8022dad5a6ce735462aaa51 | fb43d8817ba16ff78f93a8257409d77dbc82ced8 | refs/heads/master | 2021-08-08T04:49:18.876187 | 2021-01-02T04:46:20 | 2021-01-02T04:46:20 | 236,218,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | import cv2
import numpy as np
def dense():
global cap,currentframe
if denseflag==1:
x=currentframe
x1=x-100
y1=x+100
count=x1
cap.set(1,x1)
ret, frame1 = cap.read()
prvs = cv2.cvtColor(frame1,cv2.COLOR_BGR2GRAY)
while(count<y1):
... | [
"girsihdhegde12499@gmail.com"
] | girsihdhegde12499@gmail.com |
5294c57910e749afa0feb0dc04adc4fd5fdc14aa | a7685d315e6616cc2b6d43587bb19ead4324fb2a | /cci_salesman/wizard/extract_participations.py | 11c7dc952971d632537da32cf14d109bdf728a5d | [] | no_license | philmervdm/modules_cci_odoo8 | 472ea68de409e876722413afdd873d6a7827744e | 603144219a86e805f7603cfafc0fb05a78166eef | refs/heads/master | 2021-01-09T20:02:58.326569 | 2017-05-06T15:45:03 | 2017-05-06T15:45:03 | 60,332,279 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
#... | [
"philmer@ccilvn.be"
] | philmer@ccilvn.be |
37aad6a8d126f7a2f34d49e6e6fd4bddd5f08cb1 | 7f529df5381361874d51c8cb7d8678e088dbe71d | /aea/protocols/default/__init__.py | 52e51b51e36ef3b50d6e1ccddf33b0782f9c9c80 | [
"Apache-2.0"
] | permissive | cyenyxe/agents-aea | 914546708ce3e2e913ce1bb48bc8928289738c9a | c2aec9127028ae13def3f69fbc80d35400de1565 | refs/heads/master | 2021-01-07T05:36:27.879856 | 2020-02-07T19:28:01 | 2020-02-07T19:28:01 | 241,594,907 | 0 | 0 | Apache-2.0 | 2020-03-05T14:53:54 | 2020-02-19T10:35:49 | null | UTF-8 | Python | false | false | 872 | py | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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... | [
"david.minarsch@googlemail.com"
] | david.minarsch@googlemail.com |
125494d60a6fda1d0624163876564440784178ed | f8666599b83d34c861651861cc7db5b3c434fc87 | /plotly/validators/carpet/baxis/tickformatstop/_name.py | 8ff0b7a47aa7b5fed8b166c536845b675ff38361 | [
"MIT"
] | permissive | mode/plotly.py | 8b66806e88c9f1820d478bab726f0bea81884432 | c5a9ac386a40df2816e6c13264dadf14299401e4 | refs/heads/master | 2022-08-26T00:07:35.376636 | 2018-09-26T19:08:54 | 2018-09-26T19:19:31 | 60,372,968 | 1 | 1 | MIT | 2019-11-13T23:03:22 | 2016-06-03T19:34:55 | Python | UTF-8 | Python | false | false | 492 | py | import _plotly_utils.basevalidators
class NameValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='name',
parent_name='carpet.baxis.tickformatstop',
**kwargs
):
super(NameValidator, self).__init__(
plotly_name=plotly_nam... | [
"noreply@github.com"
] | mode.noreply@github.com |
d15d67d65624be46de1b72401f49d991cdb8c86e | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/batch_delete_iterations_v4_request.py | 49a9950000cd6af7e35e6cdf50daf4cd5933de11 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,126 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class BatchDeleteIterationsV4Request:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
740028a049c72a4eb04c08359edfac9f378d6525 | c0340c511cff5b40b4681c4d3238d807624c0323 | /models/corpus_reader/corpusIterator.py | 9ae01c2a3c9b76ef214d4727d895cd74c0b05141 | [] | no_license | m-hahn/grammar-optim | 5fa7ade47d2ad91f517c887ee2c65af24059069d | 07a1a80692a504bcafc8120a21c4dc9066b495ee | refs/heads/master | 2022-08-30T06:54:42.749264 | 2022-08-05T12:09:28 | 2022-08-05T12:09:28 | 156,456,167 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,334 | py | import os
import random
import sys
header = ["index", "word", "lemma", "posUni", "posFine", "morph", "head", "dep", "_", "_"]
def readUDCorpus(language, partition):
basePaths = ["/u/scr/mhahn/grammar-optim_ADDITIONAL/corpora/"]
files = []
while len(files) == 0:
if len(basePaths) == 0:
... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
27c7fe3ed3a9f243315dd8256f5390ab76485e06 | e81576012330e6a6024d14f3e241f88ca34b73cd | /python_code/vnev/Lib/site-packages/jdcloud_sdk/services/mps/apis/GetNotificationRequest.py | 49630052bdeca358968876ff0e2634d9dd20ad88 | [
"MIT"
] | permissive | Ureimu/weather-robot | eba6a84147755aa83c941a306bac1a7c4e95e23e | 7634195af388538a566ccea9f8a8534c5fb0f4b6 | refs/heads/master | 2021-01-15T07:23:42.274413 | 2020-03-23T02:30:19 | 2020-03-23T02:30:19 | 242,912,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | 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 ... | [
"a1090693441@163.com"
] | a1090693441@163.com |
578ab4564ac917e59f31823eb1d6cfb9f28fc608 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_21885.py | 8917a8ab7563dc2340287d482527305078ed27d8 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | # Making a call to a Chef server from Windows PE
> perl Configure VC-WIN32 no-asm no-shared
> ms\do_ms
> nmake -f ms\ntdll.mak
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4fcebeee0e3e255674d7dfda68f199803b482d48 | c7e9ec5ce6627f6f68bab1b86a27a4516595154d | /maintenance/06migratedeletes.py | c9d6b4ad448306f6ddbcd4e2633be4ec2113805c | [] | no_license | michaelcrubenstein/consentrecords | 7b79e82c9ad4b5efcfbb44a50ff1d4cadf7180e2 | 992fe78c68d1d5c083f9e2cc0e3e9aa24363b93d | refs/heads/master | 2021-01-23T19:28:13.807809 | 2018-07-03T16:10:34 | 2018-07-03T16:10:34 | 41,223,029 | 1 | 1 | null | 2018-07-03T16:10:35 | 2015-08-22T20:21:26 | JavaScript | UTF-8 | Python | false | false | 1,765 | py | # Migrate translation objects to translation types.
import datetime
import django
import tzlocal
import getpass
import sys
from django.db import transaction
from django.contrib.auth import authenticate
from django.db.models import F
from django.db.models import Count
from consentrecords.models import TransactionStat... | [
"michaelcrubenstein@gmail.com"
] | michaelcrubenstein@gmail.com |
0c35e06c4e5be85693d075e16977c37d18936c4b | 14aab11a9bd38acaaf3ed959ce736a3e1f1e3bad | /contrast/4/p4/mininet/delay.py | dc4aa0dd140d190cd83feac0ad77c10c8e299be3 | [] | no_license | chenyuchuting0912/SwitchML | 4eae7d3a3f40c93156ebf039e34df67df430c286 | d24ee879b3feadf308b4fdf52d090d0d21d1ee80 | refs/heads/master | 2020-06-03T17:41:13.993330 | 2020-01-09T02:39:47 | 2020-01-09T02:39:47 | 191,668,879 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | #!/usr/bin/python
from mininet.net import Mininet
from mininet.node import Controller, RemoteController, OVSController
from mininet.node import CPULimitedHost, Host, Node
from mininet.node import OVSKernelSwitch, UserSwitch
from mininet.node import IVSSwitch
from mininet.cli import CLI
from mininet.log import setLogLe... | [
"18227357674@163.com"
] | 18227357674@163.com |
045862281c288c88f92463538e884c0427ee8453 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/choropleth/_reversescale.py | 8af580fb6748504b61ef7f5ef3b1ef25f5da02e4 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 431 | py | import _plotly_utils.basevalidators
class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name='reversescale', parent_name='choropleth', **kwargs
):
super(ReversescaleValidator, self).__init__(
plotly_name=plotly_name,
p... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
1f84f12505ff59602d122001d005785a8f5bce8d | adbedf9626c52748aa048f2b17c18d25262b4d56 | /robot_framework_baseline_comparator/BaselineComparator/html_baseline.py | 34eefcebeb0891f7888d2198c466c78c88472e5c | [] | no_license | sanjitroy1992/robot_framework_custom_libraries | 3ef91ea6d4705215f86c83d276d67ce7c5af673a | e5fde8f428a4d46d5cacb2c5369f9c59529f5c91 | refs/heads/master | 2022-11-06T09:11:02.148601 | 2020-06-29T09:35:46 | 2020-06-29T09:35:46 | 274,330,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,893 | py |
from Libraries.Common.BaselineComparator.HTMLTBodyComparator import HTMLBodyComparator
from Libraries.Common.BaselineComparator.HTMLTBodyComparator import HTMLFooterComparator
from Libraries.Common.BaselineComparator.HTMLTBodyComparator import HTMLHeaderComparator
from Libraries.Utilities import ReportBuilder
from ite... | [
"sanjit.roy@finastra.com"
] | sanjit.roy@finastra.com |
277537b8ae7e47142a220286372b6306e21c780c | a024fe3b05dd320a7860165dd72ebd832ce6e484 | /account_cajas/models/payment_group.py | 833df438839be2ce04c80b1330df47f33925d155 | [] | no_license | acostaw/erp_odoo | 97d02a675908e441cf8e1ba4e3dcbc62691f8dec | 2437997b650c9fdbf6a6f007c0a1fea2aab018e2 | refs/heads/main | 2023-04-19T14:52:48.877851 | 2021-04-22T18:40:07 | 2021-04-22T18:40:07 | 360,644,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | from odoo import fields, api, models, exceptions
class PaymentGroup(models.Model):
_inherit = 'grupo_account_payment.payment.group'
caja_session_id = fields.Many2one(
'account.caja.session', string="Sesión de caja")
def get_sesion(self):
sesion = self.env['account.caja.session'].search(
... | [
"wacosta@INTN.GOV.PY"
] | wacosta@INTN.GOV.PY |
0f7ba2626ddb918345b5b65b7b33821c1416ba0d | 63daf225819636397fda6ef7e52783331c27f295 | /cbb/taobao/top/api/rest/WangwangEserviceNewevalsGetRequest.py | 6ec015f4437fc789e6fe969e968f93ce8d6d80c1 | [] | no_license | cash2one/language-Python | e332ecfb4e9321a11407b29987ee64d44e552b15 | 8adb4f2fd2f023f9cc89b4edce1da5f71a3332ab | refs/heads/master | 2021-06-16T15:15:08.346420 | 2017-04-20T02:44:16 | 2017-04-20T02:44:16 | 112,173,361 | 1 | 0 | null | 2017-11-27T09:08:57 | 2017-11-27T09:08:57 | null | UTF-8 | Python | false | false | 370 | py | '''
Created by auto_sdk on 2014.03.24
'''
from top.api.base import RestApi
class WangwangEserviceNewevalsGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.btime = None
self.etime = None
self.query_ids = None
def getapiname(self):
... | [
"a@ie9.org"
] | a@ie9.org |
d948e6f2cea3277ef12bf61e893e539a196cdc75 | ae326c4e6a2b2d5b67fa8d175249ef90f6a3021a | /leo/external/npyscreen/wgbutton.py | 3c3864dccecbf6a1b774d0f84bc4e561b11aed17 | [
"MIT"
] | permissive | frakel/leo-editor | f95e6c77d60485d80fddfbeaf35db961cf691177 | b574118ee3b7ffe8344fa0d00dac603096117ac7 | refs/heads/master | 2020-03-28T10:40:24.621077 | 2018-10-23T14:39:31 | 2018-10-23T14:39:31 | 148,132,817 | 0 | 0 | MIT | 2018-09-10T09:40:18 | 2018-09-10T09:40:18 | null | UTF-8 | Python | false | false | 4,629 | py | #@+leo-ver=5-thin
#@+node:ekr.20170428084207.524: * @file ../external/npyscreen/wgbutton.py
#!/usr/bin/python
#@+others
#@+node:ekr.20170428084207.525: ** Declarations
import curses
import locale
# import weakref
from . import npysGlobalOptions as GlobalOptions
# from . import wgwidget as widget
from . import wgche... | [
"edreamleo@gmail.com"
] | edreamleo@gmail.com |
cbec1b9899516b898ddf2b75425a155a5e2e9388 | 5aa80aab7a75d76b0aa838bf8f74a276a12c876e | /src/dns/scripts/del_virtual_dns.py | d01e287f11d833d931e334fea48bc13f10915239 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | tungstenfabric/tf-controller | 83b6d58afadb5697b540b5345711a5b2af90d201 | f825fde287f4eb2089aba2225ca73eeab3888040 | refs/heads/master | 2023-08-28T02:56:27.329584 | 2023-08-20T12:15:38 | 2023-08-20T12:31:34 | 231,070,970 | 55 | 29 | Apache-2.0 | 2023-07-23T01:38:17 | 2019-12-31T10:24:38 | C++ | UTF-8 | Python | false | false | 2,811 | py | #!/usr/bin/python
#
#Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
from __future__ import print_function
from future import standard_library
standard_library.install_aliases()
from builtins import object
import sys
import argparse
from six.moves import configparser
from provision_dns import DnsProv... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
51f512a009d612d8737cedcd92ab98789dd019e2 | 13f5984be7be77852e4de29ab98d5494a7fc6767 | /LeetCode/029两数相除.py | 1156923f619001bb4fb9a6633818ed77385df8ac | [] | no_license | YuanXianguo/Python-Interview-Master | 4252514763fc3f563d9b94e751aa873de1719f91 | 2f73786e8c51dbd248341559de171e18f67f9bf2 | refs/heads/master | 2020-11-26T18:14:50.190812 | 2019-12-20T02:18:03 | 2019-12-20T02:18:03 | 229,169,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | """
给定两个整数,被除数 dividend 和除数 divisor。将两数相除,要求不使用乘法、除法和 mod 运算符。
返回被除数 dividend 除以除数 divisor 得到的商。
"""
def divide(dividend, divisor):
if dividend > 0 and divisor > 0 or dividend < 0 and divisor < 0:
sign = 1 # 判断是否异号
else:
sign = -1
m = 1 # 记录当前除数是原除数的倍数
cnt = 0 # 记数
dd, dr = abs... | [
"736913978@qq.com"
] | 736913978@qq.com |
27d2228fcf7d6359ffa01c55e6fa92812d23a53d | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/gtk/gdk/EventMask.py | d9b44af804a2c42a9f51aefc54aa18bc8e118408 | [] | 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 | 1,178 | py | # encoding: utf-8
# module gtk.gdk
# from /usr/lib64/python2.6/site-packages/gtk-2.0/bonobo/ui.so
# by generator 1.136
# no doc
# imports
from exceptions import Warning
import gio as __gio
import gobject as __gobject
import gobject._gobject as __gobject__gobject
import pango as __pango
import pangocairo as __pangocai... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
16ea2edf996fdde207855365be0fe52b0d5e8b2d | 05b0162d5ee7ab74f71ad4f21d5188a8735dfaef | /plugins/modules/telemetry_info.py | bda5b2c9f1557fd1446ffb91c4bca170ffd1fd56 | [
"MIT"
] | permissive | steinzi/ansible-ise | 567b2e6d04ce3ca6fbdbb6d0f15cd1913a1e215a | 0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0 | refs/heads/main | 2023-06-25T15:28:22.252820 | 2021-07-23T14:21:40 | 2021-07-23T14:21:40 | 388,820,896 | 0 | 0 | MIT | 2021-07-23T14:03:07 | 2021-07-23T14:03:06 | null | UTF-8 | Python | false | false | 2,955 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2021, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r"""
---
module: telemetry_info
short_description: Information module for Telemetry Info
description:
- Get all Telemetry Info.
- G... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
d4c171602f31cd1882324afc4197bdd92fee1638 | ee4f7d4a0d81e902520b339dd77e5960014fa339 | /migrations/versions/bf3e0c0e76b8_.py | 41ff51012432dcaffd146da5ebd531869980da86 | [] | no_license | davejonesbkk/flask_by_example | 96b8865fa9ab31f0887412ef152de221bf7661f3 | 9d9fad6afc85ed4cdbbd2f583029a3c29e2d035f | refs/heads/master | 2016-09-12T20:56:51.007430 | 2016-05-08T04:39:56 | 2016-05-08T04:39:56 | 58,139,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | """empty message
Revision ID: bf3e0c0e76b8
Revises: None
Create Date: 2016-05-07 13:52:41.241555
"""
# revision identifiers, used by Alembic.
revision = 'bf3e0c0e76b8'
down_revision = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
### commands auto... | [
"davejonesbkk@gmail.com"
] | davejonesbkk@gmail.com |
a412918ce5dcec8fee3151308724b448fd5d6002 | 433ca57245fe15afd309323e82f3bdf3287b4831 | /core/migrations/0008_auto_20160307_2140.py | 62fda1323eb7db7c7c2c7350624efb31a595440e | [] | no_license | greenteamer/ceiling-django | db5170faada0f1582c744fa28c638e8671dc2ab9 | b4a469ae7d2ce6ed36ae51af60633de1fdb43ea4 | refs/heads/master | 2020-04-09T19:01:40.273226 | 2018-12-05T14:39:15 | 2018-12-05T14:39:15 | 160,531,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-07 21:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_auto_20160307_2129'),
]
operations = [
migrations.CreateModel(
... | [
"greenteamer@bk.ru"
] | greenteamer@bk.ru |
b5b8943bbb5130ddcfdefa25858db25f6cc56290 | 1166cad08dd1b57ce5a48721fac9c3c58426c431 | /pyBlackScholesAnalytics/example_options_IV.py | 76e281499403f56f0972f935f50a534b04a368c3 | [] | no_license | gabrielepompa88/IT-For-Business-And-Finance-2019-20 | 411956bc1999b1bc3a83494ac23e5d32cb6bf263 | 7c0ecab93a13ebcd62de0d00615320fee0af6bb4 | refs/heads/master | 2021-07-16T09:49:41.808308 | 2021-03-07T12:35:37 | 2021-03-07T12:35:37 | 241,672,404 | 6 | 6 | null | null | null | null | UTF-8 | Python | false | false | 5,627 | py | """
Created by: Gabriele Pompa (gabriele.pompa@gmail.com)
File: example_options_IV.py
Created on Tue Jul 14 2020 - Version: 1.0
Description:
This script shows usage of PlainVanillaOption and DigitalOption classes to
compute of Black-Scholes implied volatility surfaces for plain-vanilla and
digital option con... | [
"gabriele.pompa@gmail.com"
] | gabriele.pompa@gmail.com |
20837687ebe33143cbbc0a6ecf06987128e7ddcd | e5d83ede8521027b05d9b91c43be8cab168610e6 | /0x0F-python-object_relational_mapping/11-model_state_insert.py | 3b320438e74aeaf232b7feb9798f734e04f290b2 | [] | no_license | Danielo814/holbertonschool-higher_level_programming | 8918c3a6a9c136137761d47c5162b650708dd5cd | 832b692529198bbee44d2733464aedfe650bff7e | refs/heads/master | 2020-03-28T11:09:00.343055 | 2019-02-22T03:33:54 | 2019-02-22T03:33:54 | 148,181,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | #!/usr/bin/python3
"""
'11-model_state_insert' module, uses sqlalchemy to list state
objects from a database
"""
if __name__ == '__main__':
from model_state import Base, State
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import sys
engine = create_engine("mysql+mysqld... | [
"211@holbertonschool.com"
] | 211@holbertonschool.com |
59c36e7a733d2586f940c8d7f2cda193587e2e64 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /631/631.design-excel-sum-formula.233766026.Accepted.leetcode.py | 43c751d9a3847fbc50be93236347e9397d60a780 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | class Excel(object):
def _indices(self, r, c):
return [r - 1, ord(c) - ord("A")]
def __init__(self, H, W):
rows, cols = self._indices(H, W)
self.excel = [[0 for _ in range(cols + 1)] for _ in range(rows + 1)]
def set(self, r, c, v):
r, c, = self._indices(r, c)
self.... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
365ceaa7222b7532942e6aad67b9545a9a634088 | 65c3e7139829829dd1410228e17f85c285ab0706 | /Aniyom Ebenezer/phase 1/python 2 basis/Day_25_Challenge_Solution/Question 5 Solution.py | 5ceac0d832e2fe6730aa996bf1728961909326a7 | [
"MIT"
] | permissive | eaniyom/python-challenge-solutions | 167e9d897d0a72f1e264ff2fed0e4cc5541b0164 | 21f91e06421afe06b472d391429ee2138c918c38 | refs/heads/master | 2022-11-24T02:57:39.920755 | 2020-08-05T09:23:04 | 2020-08-05T09:23:04 | 277,686,791 | 1 | 0 | MIT | 2020-07-07T01:31:00 | 2020-07-07T01:30:59 | null | UTF-8 | Python | false | false | 686 | py | """
From Wikipedia:
An isogram (also known as a "nonpattern word") is a logological term for a word or phrase without a repeating letter. It is also used by some people to mean a word or phrase in which each letter appears the same number of times, not necessarily just once. Conveniently, the word itself is an isogram ... | [
"eaniyom@gmail.com"
] | eaniyom@gmail.com |
7a592cdf6a9b54e598ddd17945122d921db69bb3 | 7548c8efccb43b1d8daec719bd7d8ad4a4d03630 | /Check Completeness of a Binary Tree/Leetcode_958.py | 0a338ef629921b6783c50f373af6e33940a2e591 | [] | no_license | arw2019/AlgorithmsDataStructures | fdb2d462ded327857d72245721d3c9677ba1617b | 9164c21ab011c90944f844e3c359093ce6180223 | refs/heads/master | 2023-02-17T11:50:07.418705 | 2021-01-19T19:37:17 | 2021-01-19T19:37:17 | 204,222,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
from collections import deque
class Solution:
def isCompleteTree(self, root: TreeNode) -> bool:
levelOrder = [root]
i = 0
while le... | [
"noreply@github.com"
] | arw2019.noreply@github.com |
743fb306d02fdd8647e4e3fdc698e0da32610bad | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /upsolve/ABC/abc077/c/main.py | 0d82c8873315de4343231f2620a0fa633e717d3a | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 1,196 | py | # -*- coding: utf-8 -*-
from bisect import bisect_left, bisect_right
from typing import List
def bisect_lt(sorted_array: List[int], value: int):
"""Find the largest element < x and its index, or None if it doesn't exist."""
if sorted_array[0] < value:
index: int = bisect_left(sorted_array, value) - ... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
78a0851ea9299d16a556f87dd0545a5c9477d748 | 21dfcc44840cb94058bcd014946f2a38fbf30c54 | /scripts/EmuSo.py | d0f8e85d777d129c382cb83107cca556152999c8 | [
"SGI-B-2.0",
"MIT",
"Libpng",
"BSD-3-Clause",
"LicenseRef-scancode-glut",
"Zlib",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Unlicense"
] | permissive | nigels-com/regal | 819a74deeeac00860bcb6f21c3e59ccad1b78448 | 3f1a06d5c098339d30221c9e999640e4c5437a0b | refs/heads/master | 2020-12-14T16:19:29.701418 | 2015-10-18T08:57:48 | 2015-10-18T08:58:56 | 9,986,650 | 2 | 3 | null | 2014-07-12T07:28:49 | 2013-05-10T17:35:20 | C++ | UTF-8 | Python | false | false | 3,670 | py | #!/usr/bin/python -B
soFormulae = {
# TODO
'GenSamplers' : {
'entries' : [ 'glGenSamplers' ],
'impl' : [ '_context->so->GenSamplers( ${arg0plus} );' ],
},
'DeleteSamplers' : {
'entries' : [ 'glDeleteSamplers' ],
'impl' : [ '_context->so->DeleteSamplers( ${arg0plus} );'... | [
"nigels@users.sourceforge.net"
] | nigels@users.sourceforge.net |
0e2bbbc4a67fd094f67dd7d060888036adf62cba | 030aef4b13a29246ef21342efea9b26f5620f0b0 | /code/SWEA/1859_백만장자_프로젝트.py | 757a273af12d8f69c335f163cf7e6678348557f7 | [] | no_license | kyeah01/Problem_Solving | d70049efb72d09c4ea07a8dba9144d482857b36a | efec0486ec07843e085abf4e66cdf694fdde104b | refs/heads/master | 2021-07-03T14:28:56.001123 | 2020-09-23T17:37:42 | 2020-09-23T17:37:42 | 176,175,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | T = int(input())
for tc in range(1, T+1):
N = int(input())
days = list(map(int, input().split()))
max_index = N-(days[::-1].index(max(days))+1)
ans = 0
# max_index까지 값을 구해야함
for i in range(max_index):
ans += max(days) - days[i]
if ans < 0:
ans = 0 | [
"kyeah01@gmail.com"
] | kyeah01@gmail.com |
570430474d734ea45b7b4bf3c1ec9a6489e26a5b | a05716cdf916edb42efdcec4fd10c65bdd043f3d | /elasticsearch/_async/client/monitoring.py | 2f7b570d21a89b3af2d569d08af6dd9e023b1547 | [
"Apache-2.0"
] | permissive | mesejo/elasticsearch-py | 0a30e104f3f4e6b2426c1eb01ba51e5d86efab14 | 041a433de263482e306b3855ab67b93c03978966 | refs/heads/master | 2022-11-11T11:57:44.792382 | 2020-06-23T18:36:32 | 2020-06-23T18:36:32 | 274,199,907 | 0 | 0 | Apache-2.0 | 2020-06-22T17:20:49 | 2020-06-22T17:20:49 | null | UTF-8 | Python | false | false | 1,494 | py | # Licensed to Elasticsearch B.V under one or more agreements.
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information
from .utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH, _bulk_body
class MonitoringClient(Name... | [
"sethmichaellarson@gmail.com"
] | sethmichaellarson@gmail.com |
4f6e98d736958850f3715a80606ca28c7eabddf4 | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/43/43-31_wat_20Abox/set_1ns_equi_m.py | eeadbfffcabc77af30b8d082f6dcced30aacc839 | [] | 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 | 923 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L43/wat_20Abox/ti_one-step/43_31/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_m.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
44ea4283cb706f70dc5b653285510c61915d9fcb | 931a3304ea280d0a160acb87e770d353368d7d7d | /vendor/swagger_client/models/get_characters_character_id_mail_labels_ok.py | c6952fb75c441a4204eea1c255bb24fb9afe18e6 | [] | no_license | LukeS5310/Broadsword | c44786054e1911a96b02bf46fe4bdd0f5ad02f19 | 3ba53d446b382c79253dd3f92c397cca17623155 | refs/heads/master | 2021-09-08T00:05:26.296092 | 2017-10-24T07:01:48 | 2017-10-24T07:01:48 | 105,143,152 | 0 | 1 | null | 2017-11-03T14:29:38 | 2017-09-28T12:03:19 | Python | UTF-8 | Python | false | false | 4,288 | py | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online
OpenAPI spec version: 0.6.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class GetCharactersCharacterIdMailLabelsOk(object):
"""
... | [
"cyberlibertyx@gmail.com"
] | cyberlibertyx@gmail.com |
ef3f05716502649f5e7d9ddc4e67ec5912e7270a | 3851d5eafcc5fd240a06a7d95a925518412cafa0 | /Django_Code/gs28/gs28/asgi.py | e1f1a15c27ff9ec6f8b42b0f1666ea6af01dd283 | [] | no_license | Ikshansaleem/DjangoandRest | c0fafaecde13570ffd1d5f08019e04e1212cc2f3 | 0ccc620ca609b4ab99a9efa650b5893ba65de3c5 | refs/heads/master | 2023-01-31T04:37:57.746016 | 2020-12-10T06:27:24 | 2020-12-10T06:27:24 | 320,180,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for gs28 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"ikshan3108@gmail.com"
] | ikshan3108@gmail.com |
56658b1b204f9655fbd8f8276cc516986cabee06 | 3e6dffad73b8d5024024b52b044c57a05e7e9655 | /assets/2019-11-30/commondb_server.py | 6b08cb78bef355870da187cefdbe820cdc3509bc | [
"MIT"
] | permissive | dhilipsiva/talks | 07f33b162d8db6e20e3d5974576d71c273629187 | 05581b6b8fdd0598d4ffed4bf75204d718719ed9 | refs/heads/master | 2022-08-05T12:27:39.932612 | 2022-07-21T07:43:36 | 2022-07-21T07:43:36 | 68,734,565 | 5 | 3 | MIT | 2021-07-30T11:24:12 | 2016-09-20T17:05:44 | Python | UTF-8 | Python | false | false | 1,022 | py | from concurrent.futures import ThreadPoolExecutor
import grpc
from grpc_opentracing.grpcext import intercept_server
from grpc_opentracing import open_tracing_server_interceptor
from github_pb2 import Reply
from utils import get_config, wait_for_termination
from github_pb2_grpc import CommonDBServicer, add_CommonDBSer... | [
"dhilipsiva@pm.me"
] | dhilipsiva@pm.me |
678a035115b9bab5ee37b4008fa8b1f71d3795dc | 91b80ef798cbcdaab7f6ae0be994f5a3b12f1515 | /198.py | 155ed9d04a687a65692c489eeaa6c5e9ef28c808 | [] | no_license | luckkyzhou/leetcode | 13377565a1cc2c7861601ca5d55f6b83c63d490e | 43bcf65d31f1b729ac8ca293635f46ffbe03c80b | refs/heads/master | 2021-06-21T11:26:06.114096 | 2021-03-24T21:06:15 | 2021-03-24T21:06:15 | 205,568,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from typing import List
class Solution:
def rob(self, nums: List[int]) -> int:
prevMax = 0
curMax = 0
for num in nums:
temp = curMax
curMax = max(prevMax + num, curMax)
prevMax = temp
return curMax
| [
"luckky_zhou@163.com"
] | luckky_zhou@163.com |
10b521f82bc66ef9eca34617899ca120391d14d3 | 00820b522cc16bf996f1ef44a94a2f31989c4065 | /abc/abc144/c.py | 6932b9a69d517fcc35addc7fce7e72fb3b8071b0 | [] | no_license | yamato1992/at_coder | 6dffd425163a37a04e37507743a15f67b29239fc | 6e0ec47267ed3cae62aebdd3d149f6191fdcae27 | refs/heads/master | 2020-08-31T11:17:03.500616 | 2020-06-12T15:45:58 | 2020-06-12T15:45:58 | 218,678,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | import math
INF = 1e12
n = int(input())
cnt = INF
m = math.sqrt(n)
for i in range(1, math.ceil(m) + 1):
if n % i == 0:
j = n // i
cnt = min(cnt, i + j - 2)
else:
continue
print(cnt) | [
"yamato.mitsui.orleans@gmail.com"
] | yamato.mitsui.orleans@gmail.com |
917ee557f9fe287f3752878d2f57f0990122fb69 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /OA/Akuna/QAkuna_Order Marketing.py | dbf97a7359f5393adf302b66732ef5fea9e7cc95 | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,571 | py | import json
import copy
from collections import defaultdict
# Implement the class below, keeping the constructor's signature unchanged; it should take no arguments.
class Company:
def __init__(self, name):
self.name = name
self.own = 0
self.sell = 0
self.buy = 0
def __eq__(self... | [
"564258080@qq.com"
] | 564258080@qq.com |
7c4624679b56a92e566f8525561a6d268d4791f7 | e0b81ac782cb6b5b96f49914ac5707971d31d5b4 | /week14/todo_list/main/urls.py | 0f9b60b7a5903820284a2eb17db67cb3f931aec3 | [] | no_license | balnur00/djangoSpring2020 | 33ba23472715aa143e2a9b1ff785730c2778a1fd | ca3500875a339601a44dc105bc946d72e4d143eb | refs/heads/master | 2021-09-29T05:44:34.941331 | 2020-04-21T10:26:29 | 2020-04-21T10:26:29 | 237,578,070 | 0 | 0 | null | 2021-09-22T19:45:38 | 2020-02-01T07:19:09 | Python | UTF-8 | Python | false | false | 692 | py | from rest_framework.routers import DefaultRouter
from django.urls import path
from main import viewsets
from .views import BusTaskListApiView, BusTaskListDetailApiView, BusTaskApiView, BusTaskDetailApiView, ReceiverApiView
urlpatterns = [
path('business/', BusTaskListApiView.as_view()),
path('business/<int:pk>... | [
"balnur00@mail.ru"
] | balnur00@mail.ru |
76c2be24cd3471acd4c320fa2ff5671d516aa254 | 49ba5356bdc5df7dd9803b56fe507c5164a90716 | /unique-number-of-occurrences/solution.py | 8947b64feeaba863e1fa0f2965c3530126347f56 | [] | no_license | uxlsl/leetcode_practice | d80ad481c9d8ee71cce0f3c66e98446ced149635 | d8ed762d1005975f0de4f07760c9671195621c88 | refs/heads/master | 2021-04-25T18:12:28.136504 | 2020-03-11T07:54:15 | 2020-03-11T07:54:15 | 121,472,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | class Solution(object):
def uniqueOccurrences(self, arr):
"""
:type arr: List[int]
:rtype: bool
"""
m = {}
for i in arr:
if i in m:
m[i] += 1
else:
m[i] = 1
return len(m.values()) == len(set(m.values()))... | [
"linsl2018@163.com"
] | linsl2018@163.com |
c7473e0b86b77ea6781aa54b3063668f7f9695b3 | 846c067f53006d18caa467997b2143ae4df50519 | /config/config.py | efbc2a7e2fd6de4de26c10e551251379b239c5c8 | [] | no_license | radusuciu/dancealytics | 7e791d9732c8a19f3b6df2f61bb2837360cf4c65 | 7246ab8a32f2b7cbf7a42e08605e58c4a61b8a38 | refs/heads/master | 2022-12-13T23:12:54.065740 | 2017-07-14T02:21:49 | 2017-07-14T02:21:49 | 97,040,963 | 0 | 0 | null | 2022-12-08T00:01:27 | 2017-07-12T18:38:53 | JavaScript | UTF-8 | Python | false | false | 1,377 | py | """Main configuration file for project."""
import yaml
import os
import pathlib
PROJECT_NAME = 'dancealytics'
PROJECT_HOME_PATH = pathlib.Path(os.path.realpath(__file__)).parents[1]
# debug is true by default
DEBUG = bool(os.getenv('DEBUG', True))
_secrets_path = PROJECT_HOME_PATH.joinpath('config', 'secrets.yml')... | [
"radusuciu@gmail.com"
] | radusuciu@gmail.com |
cec3a985e7ce8c9aa91b159664568dd89362fb14 | ab621c65fc91f5194c4032d68e750efaa5f85682 | /docline_sequence/models/sale.py | 56ef1d787c8c291ba4c97ac9796b71da170e942c | [] | no_license | pabi2/pb2_addons | a1ca010002849b125dd89bd3d60a54cd9b9cdeef | e8c21082c187f4639373b29a7a0905d069d770f2 | refs/heads/master | 2021-06-04T19:38:53.048882 | 2020-11-25T03:18:24 | 2020-11-25T03:18:24 | 95,765,121 | 6 | 15 | null | 2022-10-06T04:28:27 | 2017-06-29T10:08:49 | Python | UTF-8 | Python | false | false | 874 | py | # -*- coding: utf-8 -*-
from openerp import models, api, SUPERUSER_ID
from .common import DoclineCommon, DoclineCommonSeq
class SaleOrder(DoclineCommon, models.Model):
_inherit = 'sale.order'
@api.multi
@api.constrains('order_line')
def _check_docline_seq(self):
for order in self:
... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
5f9bd3f574357e4086032aec7e61d62623341ce2 | c59b91482ea23003e055688fdbfb409a6b99c8da | /qanta/guesser/nn.py | c36167748e721fbb6530602b0284bbe0f77a6c37 | [
"MIT"
] | permissive | nadesai/qb | 83a3618227e87fef46680fade3a168585aebb889 | f2dd64499eb66ae409f08eb9f762d4a6b0a7feda | refs/heads/master | 2021-08-24T15:13:23.959664 | 2017-12-08T15:28:33 | 2017-12-08T15:28:33 | 112,909,453 | 0 | 0 | null | 2017-12-03T07:40:36 | 2017-12-03T07:40:35 | null | UTF-8 | Python | false | false | 4,823 | py | from typing import Set, Dict, List
import random
import numpy as np
import os
import pickle
from qanta.util.io import safe_open
from qanta.config import conf
from qanta import logging
log = logging.get(__name__)
def create_embeddings(vocab: Set[str], expand_glove=False, mask_zero=False):
"""
Create embeddi... | [
"ski.rodriguez@gmail.com"
] | ski.rodriguez@gmail.com |
0c3bfbea643ac9fd23c1c480c171e9ec77ba22e6 | 0191140830e827ddfde9300d5cc5962018a7bac1 | /celauco/migrations/0001_initial.py | 9423288d3a9aaa9dec80cbf2469bbfe1324ef34e | [] | no_license | NicolleLouis/LouisNicolle | d816a60f30d92a9c2bc1b6ef6443c477505bf1bc | b99ae034d58afce5670d0b2fb0e5f3ce57bf1449 | refs/heads/master | 2023-08-17T20:37:29.024430 | 2021-09-13T14:26:02 | 2021-09-13T14:26:02 | 291,709,252 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # Generated by Django 3.2.4 on 2021-09-11 17:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Board',
fields=[
('id', models.AutoField(pr... | [
"louisxnicolle@gmail.com"
] | louisxnicolle@gmail.com |
391053f155a0c7fe44b5bdddb2c4f93f2fa2dd38 | 1c91439673c898c2219ee63750ea05ff847faee1 | /configs/vision_transformer/vit-large-p16_ft-64xb64_in1k-384.py | 5be99188bfe0fbbce2de927c9d9c55ed74131d2f | [
"Apache-2.0"
] | permissive | ChenhongyiYang/GPViT | d7ba7f00d5139a989a999664ab0874c5c9d53d4d | 2b8882b2da41d4e175fe49a33fcefad1423216f4 | refs/heads/main | 2023-06-08T00:10:07.319078 | 2023-05-26T15:52:54 | 2023-05-26T15:52:54 | 577,075,781 | 78 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | _base_ = [
'../_base_/models/vit-large-p16.py',
'../_base_/datasets/imagenet_bs64_pil_resize_autoaug.py',
'../_base_/schedules/imagenet_bs4096_AdamW.py',
'../_base_/default_runtime.py'
]
model = dict(backbone=dict(img_size=384))
img_norm_cfg = dict(
mean=[127.5, 127.5, 127.5], std=[127.5, 127.5, 1... | [
"chenhongyiyang@Chenhongyis-MacBook-Pro.local"
] | chenhongyiyang@Chenhongyis-MacBook-Pro.local |
fc60af11b3d368c537f0f4df6d74171c61349d76 | 364edc98a05ddecf5ad7b7614d2a35a95d19705b | /rxpy/subject.py | 02dcecc1bc9be7f5921fc1486dee19a05d51b19c | [] | no_license | as950118/outsource | f7f10b5ba62487da8ccddd894aaedc8af48e9d50 | 05a9f654aa222f4da4ce9c4902dde094c9d158d0 | refs/heads/master | 2022-12-21T00:18:45.405708 | 2020-02-03T15:53:16 | 2020-02-03T15:53:16 | 193,331,277 | 0 | 0 | null | 2022-12-06T22:38:00 | 2019-06-23T09:50:33 | HTML | UTF-8 | Python | false | false | 401 | py | from rx import Observable, Observer
from rx.subjects import Subject
class PrintObserver(Observer):
def on_next(self, value):
print("Value :", value)
def on_error(self, error):
print("Error :", error)
def on_completed(self):
print("Completed")
subject = Subject()
subject.subscribe(P... | [
"na_qa@icloud.com"
] | na_qa@icloud.com |
a76cca19fa4d0bfcf0f465ae0c1bec1dce41ed75 | c824722d02a36f888f74bf60455361a2a1fe5212 | /rnacentral_pipeline/rnacentral/genes/methods/singletons.py | 23f128344be241778a004c7535b3cea245c45a8c | [
"GPL-1.0-or-later",
"Apache-2.0",
"Artistic-1.0-Perl",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | RNAcentral/rnacentral-import-pipeline | d1b52291fc083470d75cf400b10792e1613662db | 4505f748f9a932ffe4663c16b6c81574e4c04178 | refs/heads/master | 2023-08-31T23:37:29.744476 | 2023-04-11T11:10:48 | 2023-04-11T11:10:48 | 29,351,993 | 5 | 0 | Apache-2.0 | 2023-07-12T13:58:10 | 2015-01-16T14:34:15 | Python | UTF-8 | Python | false | false | 1,074 | py | # -*- coding: utf-8 -*-
"""
Copyright [2009-2021] EMBL-European Bioinformatics Institute
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... | [
"bsweeney@ebi.ac.uk"
] | bsweeney@ebi.ac.uk |
ec68fcbdad6e89265b1e12e9341ad203211a2bb2 | 283bbf2ce575ea72010e9823907285b08d20fce4 | /breathecode/services/slack/commands/cohort.py | 2836ed2bf671bb37af7aab2ef7b781a00670daf5 | [] | no_license | AnMora/apiv2 | c084ffcb4ff5b7a0a01dac8fca26f4f4c37aad97 | fa3b3f0ce4a069facdecd18e133c7b4222a0004a | refs/heads/master | 2023-05-19T23:00:34.257230 | 2021-06-08T21:17:56 | 2021-06-08T21:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | import os
from breathecode.admissions.models import Cohort, CohortUser
from ..decorator import command
from ..utils import to_string
"""
Possible parameters for this command:
- users: Array of user slack_ids mentioned inside the slack command text content
- user_id: Slack user ID of the message author
- team_id: Slac... | [
"aalejo@gmail.com"
] | aalejo@gmail.com |
c435f6f9e7b20dc1af9c920cba94abff9c3cc1da | 799fee946fa3f4773cb1340bb36af5b465fdc570 | /tests/test_models/test_body_models/test_utils.py | 98127bf148f16a4805906a814f7a689e4be4c29c | [
"Apache-2.0"
] | permissive | open-mmlab/mmhuman3d | 8c534d3c252f68f2d14d3e67fe67bfbccadfad36 | 9431addec32f7fbeffa1786927a854c0ab79d9ea | refs/heads/main | 2023-08-31T13:30:59.894842 | 2023-07-10T02:32:20 | 2023-07-10T02:32:20 | 432,877,190 | 966 | 139 | Apache-2.0 | 2023-08-31T08:49:16 | 2021-11-29T02:10:31 | Python | UTF-8 | Python | false | false | 4,440 | py | import torch
from mmhuman3d.models.body_models.builder import build_body_model
from mmhuman3d.models.body_models.utils import (
batch_transform_to_camera_frame,
transform_to_camera_frame,
)
from mmhuman3d.utils.transforms import ee_to_rotmat
def test_transform_to_camera_frame():
# initialize body model
... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
f6e74ba49764c4245f61beabf3c6737993b74fa6 | 057d662a83ed85897e9906d72ea90fe5903dccc5 | /.PyCharmCE2019.2/system/python_stubs/-1247971762/gi/_gi/FunctionInfo.py | 08fe51300b7b7b03f1451dd70de9ae5fb449ad8f | [] | no_license | Karishma00/AnsiblePractice | 19a4980b1f6cca7b251f2cbea3acf9803db6e016 | 932558d48869560a42ba5ba3fb72688696e1868a | refs/heads/master | 2020-08-05T00:05:31.679220 | 2019-10-04T13:07:29 | 2019-10-04T13:07:29 | 212,324,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | # encoding: utf-8
# module gi._gi
# from /usr/lib/python3/dist-packages/gi/_gi.cpython-37m-x86_64-linux-gnu.so
# by generator 1.147
# no doc
# imports
from gobject import (GBoxed, GEnum, GFlags, GInterface, GParamSpec, GPointer,
GType, Warning)
import gi as __gi
import gobject as __gobject
class FunctionInfo(_... | [
"karishma11198@gmail.com"
] | karishma11198@gmail.com |
38cd0029c788bca9efbf7774f3d7caafaafcf326 | a66b7da9b7d04e1fea8669bb736b92f87e49b030 | /tests/django18_sqlite3_backend/base.py | f7efd2e03cbdfa0e9838ed984b10d342fdd24a4d | [
"MIT"
] | permissive | zebuline/django-perf-rec | 5e8e4ff2e690e326618cb4abf9ed25a67c16843b | e0bed464976b113df5cb58205a847b3d8e81b27f | refs/heads/master | 2020-04-09T07:38:49.180825 | 2018-12-02T15:41:50 | 2018-12-02T15:41:50 | 152,588,701 | 0 | 0 | MIT | 2018-10-11T12:33:25 | 2018-10-11T12:33:44 | null | UTF-8 | Python | false | false | 429 | py | # -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from django.db.backends.sqlite3.base import DatabaseWrapper as OrigDatabaseWrapper
from .operations import DatabaseOperations
class DatabaseWrapper(OrigDatabaseWrapper):
def __init__(self, *args, **kwargs)... | [
"adam@adamj.eu"
] | adam@adamj.eu |
3636b76404a69947dae29bd528db4ccab84c8469 | 315450354c6ddeda9269ffa4c96750783963d629 | /CMSSW_7_0_4/src/TotemRawData/RawToDigi/python/.svn/text-base/ExampleClustering.py.svn-base | 08efb09d86301e6ce3a10a1cf864bd0d73f76826 | [] | no_license | elizamelo/CMSTOTEMSim | e5928d49edb32cbfeae0aedfcf7bd3131211627e | b415e0ff0dad101be5e5de1def59c5894d7ca3e8 | refs/heads/master | 2021-05-01T01:31:38.139992 | 2017-09-12T17:07:12 | 2017-09-12T17:07:12 | 76,041,270 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | import FWCore.ParameterSet.Config as cms
process = cms.Process("RealDataMonitorXML")
# minimum of logs
#process.load("Configuration.TotemCommon.LoggerMax_cfi")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(20000)
)
# input of raw data
process.source = cms.Source("RawDataSource",
... | [
"eliza@cern.ch"
] | eliza@cern.ch | |
95ea081218c6d5f432695b3b8e6be76adf492fb5 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/ocr/dbnet/pytorch/dbnet_cv/__init__.py | 65b6016ceb237276f13baab4fba2ab2a8c266426 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 373 | py | # Copyright (c) OpenMMLab. All rights reserved.
# flake8: noqa
# from .arraymisc import *
from .fileio import *
from .image import *
from .utils import *
from .version import *
# from .video import *
# from .visualization import *
# The following modules are not imported to this level, so dbnet_cv may be used
# withou... | [
"yongle.wu@iluvatar.com"
] | yongle.wu@iluvatar.com |
9028e75eec7c52e5c1103aa926a2fa0661cfce5a | 18239524612cf572bfeaa3e001a3f5d1b872690c | /clients/keto/python/ory_keto_client/models/ory_access_control_policy_roles.py | cff6965d729259b822fa0830da11454472db44ab | [
"Apache-2.0"
] | permissive | simoneromano96/sdk | 2d7af9425dabc30df830a09b26841fb2e8781bf8 | a6113d0daefbbb803790297e4b242d4c7cbbcb22 | refs/heads/master | 2023-05-09T13:50:45.485951 | 2021-05-28T12:18:27 | 2021-05-28T12:18:27 | 371,689,133 | 0 | 0 | Apache-2.0 | 2021-05-28T12:11:41 | 2021-05-28T12:11:40 | null | UTF-8 | Python | false | false | 3,658 | py | # coding: utf-8
"""
ORY Keto
A cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. # noqa: E501
The version of the OpenAPI document: v0.0.0-alpha.37
Contact: hi@ory.sh
Generated by: https://openapi-generato... | [
"noreply@github.com"
] | simoneromano96.noreply@github.com |
3292558238a1c314f6d4aa4e1d50871f9b3a95ab | b40d1a26ea04a19ec0da7bf55db84b7ee36cc898 | /algoexpert.io/python/KMP_Algorithm.py | f64b7085b85fe4297668d29e69091911d3e79cbb | [
"MIT"
] | permissive | partho-maple/coding-interview-gym | 5e8af7d404c28d4b9b52e5cffc540fd51d8025cf | 20ae1a048eddbc9a32c819cf61258e2b57572f05 | refs/heads/master | 2022-09-11T16:36:01.702626 | 2022-03-14T08:39:47 | 2022-03-14T08:39:47 | 69,802,909 | 862 | 438 | MIT | 2022-08-18T06:42:46 | 2016-10-02T14:51:31 | Python | UTF-8 | Python | false | false | 660 | py | def knuthMorrisPrattAlgorithm(string, substring):
pattern = buildPattern(substring)
return doesMatch(string, substring, pattern)
def buildPattern(substring):
pattern = [-1 for _ in substring]
j, i = 0, 1
while i < len(substring):
if substring[i] == substring[j]:
pattern[i] = j
i += 1
j += 1
elif j... | [
"partho.biswas@aurea.com"
] | partho.biswas@aurea.com |
5c28515d3b5ab34c658293847d5bf7e618fa2754 | 3856c34baa38949498840ba1489c180964cbac6a | /Day4/ansiblevault/inheritance.py | ee797d43a0128e7af40f3c1a13979701b82f8d59 | [] | no_license | vinodhmvm/ansibledockertraining | ffcb9c459fefe18507f81982e052c1880558715b | e28f42b5a09f96fc12f0b3044d617eca80aba154 | refs/heads/master | 2020-03-16T22:01:47.512777 | 2018-05-11T10:10:10 | 2018-05-11T10:10:10 | 133,023,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | class Parent1:
def __init__(self):
print("Paren1 Inside Constructor")
self.__privateData1 = 100
self._protectedData1 = 200
self.publicData1 = 300
def setValues(self, val1, val2, val3):
self.__privateData1 = val1
self._protectedData1 = val2
self.publicData1 = val3
def... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
33207db912f627bcbaa44baf0ad4edf3f56c2638 | 0bda1f543ef3be8cd12a4709d44da95bc68ba507 | /exs/mundo_3/python/075.py | f084fa0ca20c97ee710e02bcaf5c37a615eba6ae | [
"MIT"
] | permissive | BearingMe/exercicios-CeV | e5a18e897a725cd8a7a86fd0473dc2d66ee39771 | d65a022041af81a161ae7c98b24a0896e6bb4a5e | refs/heads/master | 2023-04-13T09:51:33.449706 | 2023-03-29T19:51:43 | 2023-03-29T19:51:43 | 519,369,091 | 1 | 0 | MIT | 2022-07-29T23:00:45 | 2022-07-29T23:00:45 | null | UTF-8 | Python | false | false | 803 | py | """
Desafio 075
Problema: Desenvolva um programa que leia quatro valores pelo teclado
e guarde-os em uma tupla.
No final, mostre:
A) Quantas vezes apareceu o valor 9;
B) Em que posição foi digitado o primeiro valor 3;
C) Quais foram os números pares.
Resolução ... | [
"50463866+matheusfelipeog@users.noreply.github.com"
] | 50463866+matheusfelipeog@users.noreply.github.com |
3a56ab23accce20fe1187c8bc32ac64f54145555 | 5ecdac376b2f43272910c2429288297c4302b459 | /65.py | cfafb6ab114b86be196304563f0f57c813d73120 | [] | no_license | higher68/lang_process | c8ff7963ea2824e9387a982bf9ec1d28d91b467e | 8b644b9a6f2ffa65e4358adb6e942c8b234a905f | refs/heads/master | 2020-03-21T08:01:42.432014 | 2018-10-08T14:47:07 | 2018-10-08T14:47:07 | 138,314,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | ##!!!!!!!!!!exercute 64.py and setup testdb!!!!!!!!!!!!!
##!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
import json
from pymongo import MongoClient # mongodbへのクエリをだす
from bson.objectid import ObjectId
def support_ObjectId(obj):
'''json.dumps()でObjectIdを処理するための関数
ObjectIdはjsonエンコードできない型なので、文字列型に変換する
... | [
"hatiro7code@gmail.com"
] | hatiro7code@gmail.com |
cd400a68fac11c77858bc6409ccc7da10a5332b8 | b26674cda3264ad16af39333d79a700b72587736 | /corehq/util/mixin.py | 4c0450bc10c880dc787cec04f29c0a71f4f55d22 | [] | no_license | tlwakwella/commcare-hq | 2835206d8db84ff142f705dbdd171e85579fbf43 | a3ac7210b77bea6c2d0392df207d191496118872 | refs/heads/master | 2021-01-18T02:07:09.268150 | 2016-03-24T14:12:49 | 2016-03-24T14:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | import uuid
class UUIDGeneratorException(Exception):
pass
class UUIDGeneratorMixin(object):
"""
Automatically generates uuids on __init__ if not generated yet.
To use: Add this mixin to your model as the left-most class being inherited from
and list all field names in UUIDS_TO_GENERATE to gener... | [
"gcapalbo@dimagi.com"
] | gcapalbo@dimagi.com |
57eda055023149e7acd1f892a5d03da7db1cfc98 | 3485ceeca2dcb96e5fc10d353a8ca18a9b0d54af | /legacy_examples/exp_concat_visual_bpr.py | 490764d84236ec822e47259593dedd4492a6dfb8 | [
"Apache-2.0"
] | permissive | Yuan-T-Xuan/openrec | 2d82cfa7ee4448744e70aa607d981ddb312f74ee | 925cff19225874144f839aae30c304df32cc4b1d | refs/heads/master | 2020-03-11T17:46:07.472963 | 2018-10-16T01:53:31 | 2018-10-16T01:53:31 | 116,905,600 | 1 | 0 | Apache-2.0 | 2018-03-06T00:44:03 | 2018-01-10T03:54:54 | Python | UTF-8 | Python | false | false | 1,561 | py | import os
import sys
sys.path.append(os.getcwd())
from openrec.legacy import ImplicitModelTrainer
from openrec.legacy.utils import ImplicitDataset
from openrec.legacy.recommenders import ConcatVisualBPR
from openrec.legacy.utils.evaluators import AUC
from openrec.legacy.utils.samplers import PairwiseSampler
from confi... | [
"ylongqi@gmail.com"
] | ylongqi@gmail.com |
dca90dedaf030321cc01173965bf0a98d9e611f8 | e0980f704a573894350e285f66f4cf390837238e | /.history/flex/models_20201029145653.py | c271e0bdba6e0a3670289d00d9c26ad51349a930 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | from django.db import models
from wagtail.core.models import Page
from wagtail.core.fields import StreamField
from wagtail.admin.edit_handlers import StreamFieldPanel
from wagtail.snippets.blocks import SnippetChooserBlock
from wagtail.core import blocks as wagtail_blocks
from streams import blocks
from home.models im... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
99028d394ffee3ec6127b4af8b4a21e4dac6cbe7 | a5d0a0499dd069c555080c8cefc2434304afead4 | /BOJ/2953.py | 18289777d1ae4372c43d03089f4dc700f78adb42 | [] | no_license | devjinius/algorithm | 9bdf9afc021249b188d6930cf9d71f9147325d9f | 007fa6346a19868fbbc05eefd50848babb5f1cca | refs/heads/master | 2020-05-04T06:08:32.827207 | 2019-07-31T02:39:39 | 2019-07-31T02:39:39 | 178,999,456 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # 백준알고리즘 2953번
# https://www.acmicpc.net/problem/2953
# 문제
# 각 참가자가 얻은 점수는 다른 사람이 평가해 준 점수의 합이다. 이 쇼의 우승자는 가장 많은 점수를 얻은 사람이 된다.
# 각 참가자가 얻은 평가 점수가 주어졌을 때, 우승자와 그의 점수를 구하는 프로그램을 작성하시오.
# 입력
# 총 다섯 개 줄에 각 참가자가 얻은 네 개의 평가 점수가 공백으로 구분되어 주어진다. 첫 번째 참가자부터 다섯 번째 참가자까지 순서대로 주어진다. 항상 우승자가 유일한 경우만 입력으로 주어진다.
# 출력
# 첫째 줄에 우승자... | [
"eugenekang94@gmail.com"
] | eugenekang94@gmail.com |
f129c103ade98b9c151721146c3cefac3efbbb39 | 7c2a976cce8c2b32d644b079c9c5fa3199373491 | /list_qsort.py | e5f38565187224fc079d5e0652fb6f166feab9d3 | [
"Apache-2.0"
] | permissive | xartisan/Algo | f7bbf8627a4cfcc43d952f34482b5691cfd1fbf6 | 6ba61c84f9f111ba6c71ec4d7ce41ee8734d590d | refs/heads/master | 2021-04-12T08:41:32.261209 | 2018-05-17T23:11:31 | 2018-05-17T23:11:31 | 126,271,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | # quicksort algorithms for linked list
class ListNode:
def __init__(self, val, next=None):
self.val = val
self.next = next
def __repr__(self):
rv = str(self.val)
if self.next:
rv = rv + ' -> ' + repr(self.next)
return rv
def qsort(start, end=None):
if... | [
"codeartisan@outlook.com"
] | codeartisan@outlook.com |
be605463e4ac1976451faca56113a86d84a55e52 | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Algorithms/Halloween Sale/test.py | 833625794fb188739df4943a47e9facfcbea19f1 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 301 | py | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.howManyGames(20, 3, 6, 80), 6)
def test_case_1(self):
self.assertEqual(solution.howManyGames(20, 3, 6, 85), 7)
if __name__ == '__main__':
unittest.main()
| [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
948fd7847c5cd59d02192e55b5ce7af68fdce4c5 | aa265e03e73f718d4008cfe30ada7ee32c852eec | /other/cf_2015_morning_easy_b.py | 3e3d8ddb67e1f17d63dff6d77afb83b3bb7f17fe | [
"MIT"
] | permissive | ryosuke0825/atcoder_python | 4fb9de9733cd9ef41c2ad9ad38b3f190f49d3ad5 | 52d037d0bc9ef2c721bf2958c1c2ead558cb0cf5 | refs/heads/master | 2023-03-11T22:47:56.963089 | 2023-03-05T01:21:06 | 2023-03-05T01:21:06 | 181,768,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | N = int(input())
S = input()
if N % 2 != 0:
print(-1)
exit(0)
half = N//2
ans = 0
for i in range(half):
if S[i] != S[i+half]:
ans += 1
print(ans)
| [
"ayakobon@gmail.com"
] | ayakobon@gmail.com |
e43f804556ee3049d4fcaffe0a2c595238467584 | 0fa3ad9a3d14c4b7a6cb44833795449d761b3ffd | /day08_all/day08/exercise04.py | 387bae00da3fef78a90100f8c8541ac5fb94018b | [] | no_license | dalaAM/month-01 | 3426f08237a895bd9cfac029117c70b50ffcc013 | e4b4575ab31c2a2962e7c476166b4c3fbf253eab | refs/heads/master | 2022-11-22T23:49:43.037014 | 2020-07-24T07:37:35 | 2020-07-24T07:37:35 | 282,154,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | """
参照下列代码,定义函数,计算斤量.
day02/exercise08
# total_weight = int(input("请输入多少两:"))
# number_jin = total_weight // 16
# number_liang = total_weight % 16
# print("结果为:" + str(number_jin) + "斤" + str(number_liang) + "两")
"""
def calculation_weight(total_weight):
"""
计算斤两
:param total_w... | [
"1105504468@qq.com"
] | 1105504468@qq.com |
9481bf27e9bd8c47d6a4ad24719e8ac76919e8b2 | 87d5b21265c381104de8f45aa67842a4adc880eb | /96. Unique Binary Search Trees.py | 26dbb55326d8f87010e034de603ebc359adae505 | [] | no_license | MYMSSENDOG/leetcodes | ac047fe0d951e0946740cb75103fc94aae967166 | 8a52a417a903a0742034161471a084bc1e494d68 | refs/heads/master | 2020-09-23T16:55:08.579319 | 2020-09-03T19:44:26 | 2020-09-03T19:44:26 | 225,543,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | from tree_node_lib import *
class Solution:
def numTrees(self, n: int) -> int:
dp = [0]*(n+1)
dp[0] = 1
if n == 0:
return 0
else:
for i in range(1,n+1):
for j in range(i):
dp[i] += dp[j] * dp[i-j-1]
return dp[n]
sol... | [
"fhqmtkfkd@naver.com"
] | fhqmtkfkd@naver.com |
60653133ec457b24ba0b502d0d5d416b5464ac9e | d807627695b0be66f5b666a0a7292e74b4168af0 | /tests/server/util.py | f0589cc4579dc662a2f1f0aa55977e9451e996a4 | [] | no_license | evvaletov/balsam | fc61c57c09807b2047d9fdc601929137749cb1e3 | b0c908706ccb7aee2f01cae81da7a64272b29767 | refs/heads/main | 2023-08-10T16:39:20.546564 | 2021-09-02T17:35:35 | 2021-09-02T17:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,725 | py | from fastapi import status
from fastapi.encoders import jsonable_encoder
class BalsamTestClient:
def __init__(self, client):
self._client = client
@property
def headers(self):
return self._client.headers
def check_stat(self, expect_code, response):
if expect_code is None:
... | [
"msalim@anl.gov"
] | msalim@anl.gov |
cd2e4f6d7aacbf6a2ac1b9a15e8fecf67de1ad0d | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20170928/example_marshmallow/00extend.py | af0aa4d3cf26db1f738db90211a4fc60cc7001be | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 347 | py | from marshmallow import Schema, fields
class S(Schema):
v = fields.Integer(required=True)
print(S().load({"v": 10}))
print(S().load({"v": 10, "extra": "extra"}))
print("----------------------------------------")
s = S()
s.fields["extra"] = fields.String(required=True)
print(s.load({"v": 10}))
print(s.load({"v... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
4de008b82491430f5dd198909206a566a8046d33 | 3fc01457951a956d62f5e8cc0a8067f6796ee200 | /misago/threads/views/list.py | 1c38a3fb6308fac9b4d19fcc80f54dd524234a8b | [] | no_license | kinsney/education | 8bfa00d699a7e84701a8d49af06db22c384e0e8d | 48f832f17c2df7b64647b3db288abccf65868fe6 | refs/heads/master | 2021-05-04T01:15:03.078130 | 2016-12-04T03:18:20 | 2016-12-04T03:18:20 | 71,164,542 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import Http404
from django.shortcuts import render
from django.views.generic import View
from ..viewmodels import (
PrivateThreadsCategory, ThreadsCategory, ThreadsRootCategory,
ForumThreads, PrivateThreads)
class ... | [
"kinsney@bupt.edu.cn"
] | kinsney@bupt.edu.cn |
b63caf64a7adfc33fa4412914bdfd400318a63eb | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/waf/waf_xml_schema.py | a6c1a7ac3aab778fc54295f60cf1cc95b76dda52 | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 1,289 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class XmlSchema(A10BaseClass):
"""Class Description::
Manage XML-Schema files.
Class xml-schema supports CRUD Operations and inherits from `common/A10BaseClass`.
This class is the `"PARENT"` class for this module.`
:param uuid: {"descripti... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
7063bba9a5ccd6af262eae54a272ea3d37aa2445 | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /tests/beta_tests/test_required_data_2.py | 48b091de71469858c02437d9e115177357e086c4 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | import unittest
from katas.beta.required_data_2 import given_nth_value
class RequiredData2TestCase(unittest.TestCase):
def setUp(self):
self.list_1 = [3, 3, -1, 10, 6, 8, -5, 4, 22, 31, 34, -16, -16, 8, 8]
self.list_2 = [3, 3, -1, 10, 6, 8, -5, 'Yes', 4, 22, 31]
self.list_3 = [3, 3, -1, 1... | [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
bd39e76f31f1c24a51b416369db58b831e6dfd68 | 9f13c7be7e88d2486076db0b89a215ab900fea1a | /main/apps/core/tests/test_views.py | 2211728d9e898097fa1eadd09d136514d1880520 | [] | no_license | truhlik/reimpay | 534664d2e506f39ec6b0edea471e7cfbad179c3b | ac8291dc8a0ac543283ee10aecd32deba24a1641 | refs/heads/main | 2023-08-10T16:45:55.283272 | 2021-10-06T19:00:15 | 2021-10-06T19:00:15 | 414,333,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,091 | py | import datetime
from django.test import Client
from django.urls import reverse
from django.utils import timezone
from model_bakery import baker
from rest_framework.test import APITestCase
from main.apps.users import constants as user_constatnts
class CoreViewsTestCase(APITestCase):
def setUp(self) -> None:
... | [
"lubos@endevel.cz"
] | lubos@endevel.cz |
2200eada0e86c8efa83ef9570debe0a0a5d506eb | 8b9638839818331df2637cf389d38d541c2b94ed | /SSWW_fitting/n5_Asimov_Dataset_fitting/n0_Asimov_DatasetMaking.py | 795663ef59a8f12f9a0f05eedb919b7f3b4d9d2c | [] | no_license | PKUHEPEWK/DNN | 015bb5f862f6ee0363f8671890339469ef7aa76b | ad500137441b2f0a55bf462830aca42d9c9d6710 | refs/heads/master | 2020-03-25T01:34:54.253383 | 2019-01-29T07:56:26 | 2019-01-29T07:56:26 | 143,244,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,606 | py | from ROOT import *
from math import sqrt
import sys, os, math
#from root_numpy import *
import numpy as np
sys.path.append("/Users/leejunho/Desktop/git/python3Env/group_study/project_pre/func")
from c0_READ_PATH_FILE_ROOT import read_file_name_root
class Asimov_Dataset:
def __init__(self,infileLL,infileTTTL):
... | [
"skyblue1293@naver.com"
] | skyblue1293@naver.com |
ba0d414f75ba433e54bc79826218257d4eb70aa8 | 5785d7ed431b024dd910b642f10a6781df50e4aa | /revise-daily/arjuna-vishwamitra-abhimanyu/educative/5-medium-subsets/4_permutation_case_sensitive.py | f355280b9cad1e435f0ad603dc1e781b88acf6e7 | [] | no_license | kashyapa/interview-prep | 45d77324446da34d99bf8efedb3544b367b5523e | 7060c090c40602fb9c4778eace2078e1b51e235b | refs/heads/master | 2023-07-28T13:12:49.515299 | 2021-09-06T14:33:25 | 2021-09-06T14:33:25 | 403,706,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py |
def permutation_swapcase(str):
# abcd, Abcd, aBcd, ABcd, abCd, AbCd, aBCd, ABCd, abcD, AbcD, aBcD, ABcD, abCD, AbCD, aBCD, ABCD
perms = []
perms.append(str)
for i in range(len(str)):
n = len(perms)
if str[i].isalpha():
for j in range(n):
new_perm = perms[j]
... | [
"schandra2@godaddy.com"
] | schandra2@godaddy.com |
87f0fffaab7bc21ca9eeed785b838ae66c278d13 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /robust_loss/util.py | e16e1d6560e238c6a2ba80982aec7983c748cf1f | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 5,609 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
0aba4c835bf050bf8a957d653f0f795cc8df0b45 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/1589. Maximum Sum Obtained of Any Permutation/1589.py | 788bf7675e89f00c8c36280ac9384a28a4918035 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 507 | py | class Solution:
def maxSumRangeQuery(self, nums: List[int], requests: List[List[int]]) -> int:
kMod = 1_000_000_007
ans = 0
# count[i] := # of times nums[i] has been requested
count = [0] * len(nums)
for start, end in requests:
count[start] += 1
if end + 1 < len(nums):
count[e... | [
"me@pengyuc.com"
] | me@pengyuc.com |
4d98fe655147a64f31dce19a2237de013034d925 | 9419861577102f31261bcd5d0c365a8c8362c54d | /firstproject/urls.py | 04fe0109a96dbcb862d69932f9ce4d8a6332f710 | [] | no_license | 16LeeSeul/django_wordcount | f09ae855406cf767e0555191385a22e07218a8ba | 01d195298de0cd03390d397d01ccb2e79b8fd593 | refs/heads/master | 2020-04-17T23:25:44.141771 | 2019-01-22T17:16:19 | 2019-01-22T17:16:19 | 167,034,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py |
from django.contrib import admin
from django.urls import path
import wordcount.views
urlpatterns = [
path('admin/', admin.site.urls),
path('', wordcount.views.home, name="home"),
path('about/', wordcount.views.about, name="about"),
path('result/', wordcount.views.result, name="result"),
path('inde... | [
"YOUR@EMAIL.com"
] | YOUR@EMAIL.com |
0d6b5e20427885b3ea44219bd165433b76358e41 | f62955f9f78fc0ebc84d2f58118a012edc3317b9 | /.eggs/scikit_learn-0.19.1-py2.7-linux-x86_64.egg/sklearn/decomposition/cdnmf_fast.py | 4d8deb50edc2ac72da6186c62a71462b276a2247 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wouterkessels/PREDICTFastr | 31aa5de9b0a85613af7e961297c13be2c19d3dfc | 2ac3a34b4d43e6a88684e79fd14d5c3f02d27eb6 | refs/heads/master | 2021-04-03T05:21:20.425482 | 2018-05-14T07:57:40 | 2018-05-14T07:57:40 | 124,414,878 | 0 | 0 | null | 2018-03-08T16:00:55 | 2018-03-08T16:00:54 | null | UTF-8 | Python | false | false | 286 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__, 'cdnmf_fast.so')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"m.starmans@erasmusmc.nl"
] | m.starmans@erasmusmc.nl |
82e2d74564a2c116c8172cf12c9f4aae74c1cf6c | 324ec5647849f97418c91151e4e1d1953d2d9257 | /account_dashboard_bokeh/__manifest__.py | efb0b7a4ced07a7c134122ea173cb32a2235bc73 | [] | no_license | MarcosCommunity/marcos_community_addons | 84ab9ae7639b1d77ad36a167786160f54e0ef409 | 7adeceea5c12129baad36c037ff188cbccc98e2f | refs/heads/10.0 | 2020-04-04T07:27:54.837381 | 2017-10-10T01:44:17 | 2017-10-10T01:44:18 | 45,713,685 | 15 | 15 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# iFenSys Software Solutions Pvt. Ltd.
# Copyright (C) 2017 iFenSys Software Solutions(<http://www.ifensys.com>).
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3),... | [
"eneldoserrata@gmail.com"
] | eneldoserrata@gmail.com |
5f530fb04413e8fe54b09e163502f22247cc0074 | 21b50b70ab307adfa39b9932b826f4de1b5e7786 | /posts/urls.py | 60d16029df27881878cb78d0c32dad61d9264664 | [] | no_license | kamral/drf1 | 080da165852fb2e7247c3298c03f26f96a76046a | f78aea6e39aa0aa6b66bb094c583286970fe14b9 | refs/heads/main | 2023-01-20T04:45:41.676653 | 2020-11-26T15:57:08 | 2020-11-26T15:57:08 | 316,277,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.urls import path
from .views import PostListApiView,PostDetailApiView
urlpatterns=[
path('', PostListApiView.as_view()),
path('<int:pk>/', PostDetailApiView.as_view()),
] | [
"kamral010101@gmail.com"
] | kamral010101@gmail.com |
a82e2ff00c8f70e65e2c5564da32ab9055065709 | 39988ca6b376a37fe115816d6e707c4e7ea0b077 | /reproducibilityPackages/independenceStudy/cuibm/gridIndependence/Re2000AoA35/plotForceCoefficientsCompareATol.py | 6fc2b7a0aa8a39ee7e310044a2b9ecc90c862db6 | [
"CC-BY-4.0",
"CC-BY-3.0",
"MIT"
] | permissive | mljack/snake-repro | beddb77e1a892e126005cb4a8843365214d84ec9 | f594d975fd2ba00a66b90877a4f7bd7596838fc8 | refs/heads/master | 2023-03-18T16:24:37.684519 | 2020-05-10T17:34:03 | 2020-05-10T17:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | """
Compares the instantaneous force coefficients obtained on the coarse mesh
(h=0.006) using a different absolute tolerance (1.0E-05 and 1.0E-06) as exit
criterion for the Poisson solver.
The velocity solver is solved with an absolute tolerance of 1.0E-16 (machine
accuracy).
This script generates the figure `forceCo... | [
"mesnardo@gwu.edu"
] | mesnardo@gwu.edu |
d47f5cff2feae7651c928e07fc84f08ff20b1a9b | 8661524d0aab2ec62a0443d843cd2810a5d06201 | /tiendadj/tienda/tienda/urls.py | b15dad841c769079d032df88bdae517ce5bd6541 | [] | no_license | Garavirod/Django-DRF-Projects | e8fbfbbd86f09862ac4ae48cb7f9c46b9360978a | 93ba2a5f59dbbe2c2c440abc89c6cd473b59fc4c | refs/heads/master | 2023-01-13T13:06:06.647724 | 2020-11-23T19:28:12 | 2020-11-23T19:28:12 | 289,785,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | """tienda URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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 ... | [
"rodrigogarciaavila26@gmail.com"
] | rodrigogarciaavila26@gmail.com |
2bd53bae47464d656701a6fdfb49ed469fb6bbfe | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/iam/_delete_client_by_namespace.py | 66c47c09ba25715164ca03371181b603b5a439d1 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,268 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Iam Service (6.2.0)
# pylint: disable=duplicate-code
# pylin... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
62ead87a73ff1561c12a3a6a489e0494f0c0c0b8 | 3f09e77f169780968eb4bd5dc24b6927ed87dfa2 | /src/Problems/Trapping_Rain_Water.py | 790695e2d95e041b9c6897137e6540ec4299a717 | [] | no_license | zouyuanrenren/Leetcode | ad921836256c31e31cf079cf8e671a8f865c0660 | 188b104b81e6c73792f7c803c0fa025f9413a484 | refs/heads/master | 2020-12-24T16:59:12.464615 | 2015-01-19T21:59:15 | 2015-01-19T21:59:15 | 26,719,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | '''
Created on 19 Jan 2015
@author: Yuan
'''
'''
This problem has several solutions.
Solutoin1:
1. find the peak of the array.
2. for each bar to the left of the peak, if the tallest to its left is MAX, then it can hold MAX-bar water.
3. for each bar to the right of the peak, if the tallest to its right is... | [
"y.ren@abdn.ac.uk"
] | y.ren@abdn.ac.uk |
562b6ccf75ce533f7d45cd5c3e35c161c0f06b56 | 7438ed5bda477e728fd075d8aba69a4ee43cbe83 | /day_04/json_ex/json_ex01.py | 05adb2c4821a47893079dd8e8f067e52b83645fe | [] | no_license | mindful-ai/18012021PYLVC | b2717846a905400c2462eb4dd293aa3a7a48a86f | 2facc19fb433e3e15d1195fb2b75eea3bffd097a | refs/heads/main | 2023-02-18T22:40:38.112663 | 2021-01-22T12:52:47 | 2021-01-22T12:52:47 | 330,656,405 | 1 | 2 | null | 2021-01-22T17:28:23 | 2021-01-18T12:17:10 | Python | UTF-8 | Python | false | false | 145 | py | import pandas as pd
data = pd.read_json('http://api.population.io/1.0/population/India/today-and-tomorrow/?format = json')
print(data)
| [
"noreply@github.com"
] | mindful-ai.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.