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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7548fe3f47a10d5a78a43b667b7b2a0f726ef768 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7/Gather2_W_fixGood_C_change/train/pyr_1s/L6/step09_1side_L6.py | 89ebd751954369c671fb1720c3654f0e2e924585 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,525 | py | #############################################################################################################################################################################################################
from step08_c_use_G_generate_I_w_M_to_Wx_Wy_Wz_focus_to_Cx_Cy_focus_combine import I_w_M_to_W_to_C
from step08_b_u... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
fcaf80bdda5cd0b6b0ce65c9fb6246ac8ad6e44f | dbc0202e6a002fae4d86a0b16649af0cc1577b4e | /app/newsh.py | 489d0f8eff1e569c83b5d60dd3031a701929a349 | [] | no_license | huangchao20/CheckPackage | c8613efd844e7ac20cfaf090590b341d1241702f | c2ddddd2578a2b15044573261520f29b3f110450 | refs/heads/master | 2020-04-16T21:56:48.858233 | 2019-01-23T00:39:16 | 2019-01-23T00:39:16 | 165,946,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import os
import re
def createNewSh(str1):
print("开始组建sh脚本")
print("str1=[%s]" % str1)
if os.path.isfile(str1):
pass
def openfile(dpath, filename):
"""
:function:将命令添加到sh脚本里面
:param dpath:
:param filename:
:return:
"""
if os.path.splitext(filename)[1] == ".sh":
... | [
"842713855@qq.com"
] | 842713855@qq.com |
a460369a6cb9776a2850ebfd39f7e10664457c89 | e5d5fa28999bcc6c642bb42dda93afd38e272b81 | /LeetCode/28. Find the Index of the First Occurrence in a String/solve4.py | 6bdbe92c17e5dbadf39ec79dae682ed9224d6700 | [] | no_license | chiahsun/problem_solving | cd3105969983d16d3d5d416d4a0d5797d4b58e91 | 559fafa92dd5516058bdcea82a438eadf5aa1ede | refs/heads/master | 2023-02-05T06:11:27.536617 | 2023-01-26T10:51:23 | 2023-01-26T10:51:23 | 30,732,382 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | class Solution:
def strStr(self, haystack: str, needle: str) -> int:
N, prev, pos = len(needle), -1, -1
fallback = [-1] * N
for i in range(1, N):
while prev >= 0 and needle[i] != needle[prev+1]:
prev = fallback[prev]
if needle[i] == needle[prev+1]:
... | [
"chiahsun0814@gmail.com"
] | chiahsun0814@gmail.com |
b6930afe6a1a7a309ead3c407c3baa734f28d9c1 | 951500339f5887590fbf83a900dc633887402580 | /examples/06-classes.py | 38f77b461d46ceb82464e6b518e669ca42ae5a97 | [] | no_license | Tanwuld/skillbox-chat | abfd4b6a888c84ee6274ace42e295508594887ef | 4218bebe40167549bee5e6ee45f5b9623f84ef03 | refs/heads/master | 2020-09-29T04:47:45.834886 | 2019-12-12T15:59:37 | 2019-12-12T15:59:37 | 226,955,034 | 1 | 0 | null | 2019-12-12T15:59:39 | 2019-12-09T19:52:57 | Python | UTF-8 | Python | false | false | 1,253 | py | # Created by Artem Manchenkov
# artyom@manchenkoff.me
#
# Copyright © 2019
#
# Объектно-ориентированного программирование, использование классов и объектов
#
# Простой класс с переменными
class Person:
first_name: str
last_name: str
age: int
person1 = Person()
person1.first_name = 'John'
person1.la... | [
"artyom@manchenkoff.me"
] | artyom@manchenkoff.me |
ef3b7fb16a5b900b2a8336fd5516cad4bdbbb9dd | c2163c653ba589ea610733250230ab4b57ab7d6a | /doc/uses/EPSCs-and-IPSCs/smooth histogram method/04.py | 6d67cefc7771ee5cfdad63b64fa73f9b4ad96701 | [
"MIT"
] | permissive | harshadsbs/SWHLab | 6ff57f816f252da888f5827e9ea677e696e69038 | a86c3c65323cec809a4bd4f81919644927094bf5 | refs/heads/master | 2021-05-20T12:24:55.229806 | 2018-12-14T03:18:38 | 2018-12-14T03:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | """
MOST OF THIS CODE IS NOT USED
ITS COPY/PASTED AND LEFT HERE FOR CONVENIENCE
"""
import os
import sys
# in case our module isn't installed (running from this folder)
if not os.path.abspath('../../../') in sys.path:
sys.path.append('../../../') # helps spyder get docs
import swhlab
import matplotlib.pyplot as ... | [
"swharden@gmail.com"
] | swharden@gmail.com |
90be05ad622bd48ee39185b7ebe344684ce90150 | 2ca5a1fe5608eb8298d7e142ecca98fd0fa4566b | /venv/lib/python3.7/site-packages/Crypto/Cipher/_mode_siv.py | 077848ce6408996822dc5d8c426e00882ce0abf9 | [
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"Python-2.0",
"MIT"
] | permissive | basemanbase/Animal-Health | 75bd2e4dc4eb29b6466125b197a77a70e14d91a4 | d9741aafd54126f05ba43e6f4ad6517755797c76 | refs/heads/master | 2023-05-30T17:53:19.905594 | 2022-01-30T05:52:53 | 2022-01-30T05:52:53 | 228,593,914 | 0 | 1 | MIT | 2023-05-01T20:37:31 | 2019-12-17T10:41:05 | Python | UTF-8 | Python | false | false | 13,742 | py | # ===================================================================
#
# Copyright (c) 2014, Legrandin <helderijs@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:
#
# 1. Redistributio... | [
"ogunbaseemmanuel@yahoo.com"
] | ogunbaseemmanuel@yahoo.com |
9e46dea8c726e6b556c22797629ff6ce5462f2a9 | 9aaa39f200ee6a14d7d432ef6a3ee9795163ebed | /Algorithm/Python/507. Perfect Number.py | ec25990fcf6a4ba827dcadc6c1d1b4da2a527a0f | [] | no_license | WuLC/LeetCode | 47e1c351852d86c64595a083e7818ecde4131cb3 | ee79d3437cf47b26a4bca0ec798dc54d7b623453 | refs/heads/master | 2023-07-07T18:29:29.110931 | 2023-07-02T04:31:00 | 2023-07-02T04:31:00 | 54,354,616 | 29 | 16 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
# @Author: WuLC
# @Date: 2017-03-31 23:48:21
# @Last modified by: WuLC
# @Last Modified time: 2017-03-31 23:49:23
# @Email: liangchaowu5@gmail.com
# naive solution
class Solution(object):
def checkPerfectNumber(self, num):
"""
:type num: int
:rtype: bool
... | [
"liangchaowu5@gmail.com"
] | liangchaowu5@gmail.com |
fb18b89e34d8324bd64c7a65ddc675258ea78b59 | d838bed08a00114c92b73982a74d96c15166a49e | /docs/data/learn/Bioinformatics/input/ch6_code/src/Stepik.6.3.ExerciseBreak.CountUniqueReversalsFor100SyntenyBlocks.py | ebdc61515fc02e393e9c4f69178b127ff28b5644 | [] | no_license | offbynull/offbynull.github.io | 4911f53d77f6c59e7a453ee271b1e04e613862bc | 754a85f43159738b89dd2bde1ad6ba0d75f34b98 | refs/heads/master | 2023-07-04T00:39:50.013571 | 2023-06-17T20:27:05 | 2023-06-17T23:27:00 | 308,482,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # Poorly worded question. Here's my crack at rewording it: What's the maximum number of unique reversals possible on a
# permutation of length 100? So for example, assume you have a permutation of length 2: [+A, +B]...
#
# reverse 1: [+A, +B] to [-A ,+B]
# reverse 2: [+A, +B] to [+A, -B]
# reverse range 1-2: [+A, +B]... | [
"offbynull@gmail.com"
] | offbynull@gmail.com |
af752a00767f668d27c56b14d4367f68fed39eb1 | c593ef56f070fef8c221c30053b10483f9bf8fd2 | /作业01-预测彩票/Program/Apriori/Code/SetInList.py | 2a76262511165133ed1b121de16c04da7d00ecb8 | [] | no_license | nbgao/HDU-Data-Mining-Experiment | d17b1d750b06f6e89244116f3d3b37c5629933df | 7842187cf1ef4efd80dd6ff60c1fc85a270d53b3 | refs/heads/master | 2021-09-02T08:07:17.123842 | 2017-12-31T19:24:38 | 2017-12-31T19:24:38 | 115,851,261 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | def SetInList(Set, L):
for s in Set:
if s not in L:
return False
return True
| [
"nbgao@126.com"
] | nbgao@126.com |
a1232a7431c67b8eab70fd33da37c300d8418e45 | 000002c39ac5c00f1f70d7667d772d3acbe95680 | /batchtest.py | 6b500f8323c871c4a0d69f28526dc462ca91a247 | [] | no_license | ag8/shapes | ab0dcfa1d46c412faf63c421edec9a0165eb5090 | c6b38eca3a50b8a31ab7ccec11158e4a99fb628b | refs/heads/master | 2020-12-03T06:36:40.435743 | 2017-07-07T01:23:23 | 2017-07-07T01:23:23 | 95,675,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | from __future__ import print_function
import tensorflow as tf
f = ["f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8"]
l = ["l1", "l2", "l3", "l4", "l5", "l6", "l7", "l8"]
fv = tf.constant(f)
lv = tf.constant(l)
rsq = tf.RandomShuffleQueue(10, 0, [tf.string, tf.string], shapes=[[],[]])
do_enqueues = rsq.enqueue_many([fv... | [
"andrew2000g@gmail.com"
] | andrew2000g@gmail.com |
f7eadefbc3b67fe920ef3ab321a31c5a0f3b62e9 | 67e817ca139ca039bd9eee5b1b789e5510119e83 | /Tree/[662]Maximum Width of Binary Tree.py | de96b2b77ecccee00510b6deba357ba2222af7b4 | [] | no_license | dstch/my_leetcode | 0dc41e7a2526c2d85b6b9b6602ac53f7a6ba9273 | 48a8c77e81cd49a75278551048028c492ec62994 | refs/heads/master | 2021-07-25T21:30:41.705258 | 2021-06-06T08:58:29 | 2021-06-06T08:58:29 | 164,360,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | # Given a binary tree, write a function to get the maximum width of the given tr
# ee. The maximum width of a tree is the maximum width among all levels.
#
# The width of one level is defined as the length between the end-nodes (the le
# ftmost and right most non-null nodes in the level, where the null nodes between... | [
"dstch@163.com"
] | dstch@163.com |
d849d50e164d18d2d8753644d39bb684e7d01269 | 6a95112805b64322953429270a305d01fef3faea | /dist/weewx-3.7.0/bin/weewx/reportengine.py | f1cca8b3494f730e49e66d9d45e49f43aca3c450 | [
"GPL-3.0-only",
"GPL-1.0-or-later",
"Apache-2.0"
] | permissive | tomdotorg/docker-weewx | c6d59dc492a9e53f3bc898f7b9f593717092d72c | 7085654f455d39b06acc688738fde27e1f78ad1e | refs/heads/main | 2023-06-08T17:57:44.184399 | 2023-01-30T11:21:23 | 2023-01-30T11:21:23 | 54,113,384 | 21 | 16 | Apache-2.0 | 2022-10-19T23:46:26 | 2016-03-17T11:39:29 | Dockerfile | UTF-8 | Python | false | false | 33,547 | py | #
# Copyright (c) 2009-2015 Tom Keffer <tkeffer@gmail.com>
#
# See the file LICENSE.txt for your full rights.
#
"""Engine for generating reports"""
# System imports:
import datetime
import ftplib
import glob
import os.path
import shutil
import socket
import sys
import syslog
import threading
import time
import t... | [
"tom@tom.org"
] | tom@tom.org |
aaac2a8d988a604a4d19efaa994359ce8a18e87f | aaa6ae528d66e711f41699d6b6ee79fa059be4f8 | /satchmo/shipping/modules/tieredweightzone/migrations/0002_auto_20190417_1857.py | 693f7226b1d816c86b07f97d97552a1cbf02d836 | [
"BSD-2-Clause"
] | permissive | ToeKnee/jelly-roll | c23e1eac1c2983ede4259bd047578c404a8c72e0 | c2814749c547349ff63415bdc81f53eb1215c7c0 | refs/heads/master | 2020-05-21T22:34:00.399719 | 2020-02-03T20:20:02 | 2020-02-03T20:20:02 | 33,657,967 | 0 | 1 | null | 2015-07-21T20:36:13 | 2015-04-09T08:37:28 | Python | UTF-8 | Python | false | false | 1,617 | py | # Generated by Django 2.1.7 on 2019-04-17 18:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tieredweightzone', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='carrier',
name='delivery',
... | [
"tony@ynottony.net"
] | tony@ynottony.net |
a9c83352baf1af5398777f9338af863c8f4e6112 | bc25016fdae676eb7b000e59b8e823da6fefe157 | /servo/stm32uart.py | d0758b97afd2735e62bd0b36b9621b37d3a6cf0f | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mmind/servo-hdctools | b275d98e8c71b46cfc326aad774ce83b29b55d58 | c7d50190837497dafc45f6efe18bf01d6e70cfd2 | refs/heads/master | 2020-06-24T20:41:19.110569 | 2016-11-28T13:04:07 | 2016-11-28T13:04:07 | 74,622,430 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,724 | py | # Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Allow creation of uart/console interface via stm32 usb endpoint."""
import errno
import exceptions
import logging
import os
import pty
import select
im... | [
"chrome-bot@chromium.org"
] | chrome-bot@chromium.org |
374ab19d532b0e4f7999ecbd18bdc4861166f1e4 | 229924db99b28bc8ae88e8379252e0422119c3c6 | /logistic_sgd.py | 4192da4ece52edf5523269c09bf6ef7c9e341d3d | [] | no_license | ineedaspo1/CNN | 3ae4a9213762df627e1217ec526df1777651884b | 60cdf54947db7d3149cbae8a915c43ae53e81faa | refs/heads/master | 2021-06-01T03:43:25.853717 | 2016-07-18T00:29:26 | 2016-07-18T00:29:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,390 | py | """
This tutorial introduces logistic regression using Theano and stochastic
gradient descent.
Logistic regression is a probabilistic, linear classifier. It is parametrized
by a weight matrix :math:`W` and a bias vector :math:`b`. Classification is
done by projecting data points onto a set of hyperplanes, the distance... | [
"volpato30@gmail.com"
] | volpato30@gmail.com |
2cdf189fecef26456d0e4f7217c73f9b92a27121 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/networkcloud/azure-mgmt-networkcloud/azure/mgmt/networkcloud/operations/_cloud_services_networks_operations.py | b61b0103213a19dd43fef2433dc9879e2b3810ca | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 52,841 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
5252b25fafef0707d008c0d81a0299eea6cd5383 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/python/kernel_tests/where_op_test.py | 17575da6f1bf2c226a67419b4bc8156f70f6dedc | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 5,579 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
9cb4ecfd020a49a4c42e9f0db47935b6e84e0704 | 13a4df75e81ee4330a197340a300ec0755247a93 | /Strings/4.balanceStrings.py | 7e038243f1e6a517488ccb561510ce15d9197e87 | [] | no_license | ltfafei/py_Leetcode_study | d22955380bf9f134bc9cb215fea73ec4f9ea94cf | 0fd1bca56a621001cf9093f60941c4bfed4c79a5 | refs/heads/master | 2023-07-13T18:15:59.098314 | 2021-08-30T15:11:17 | 2021-08-30T15:11:17 | 363,597,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | #!/usr/bin/python
# Env: python3
# Rewrite by afei_0and1
'''
4.1、平衡字符串
现在输入一个只包含L和R的字符串,并其中L与R的个数是相等的。符合这种输入条件的字符串称之为”平衡字符串“。
要求通过编程对输入的平衡字符串进行分割,尽可能多的分割出平衡字符串子串,并将可以得到的子串数量返回。
例如:输入:RLLRRRL,将返回结果:3,其可以分割成:RL、LLRR和RL;输入:LLLRRR将返回结果:1,因为其只能分割
出LLLRRR。
'''
def balanceStrings(string):
res = 0 #最终组合结果
lc = 0... | [
"m18479685120@163.com"
] | m18479685120@163.com |
854703fda0ce649f68979599bf1e07ee0f3ca0ee | 40125ea7386e269bbae2425a318a3fd2e8571cb3 | /src/ie/urls_library.py | d191538ba4416aa1650b93c462b5b0788bef5722 | [
"MIT"
] | permissive | compressore/moc | bb160a308562e6e57fe4300a8d8a6ee00a59e785 | 8e05e3e60d2d2c7534e0c659b6ed0743e9189f6b | refs/heads/master | 2023-02-11T18:13:44.096427 | 2021-01-06T11:08:02 | 2021-01-06T11:08:02 | 327,283,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | """ Project-specific URL Configuration
See urls.py for more information
"""
from django.contrib import admin
from django.urls import include, path
from django.conf import settings
from core.admin import admin_site
current_site = "library"
urlpatterns = [
path("admin/", admin_site.urls),
path("tinymce/", ... | [
"paul@penguinprotocols.com"
] | paul@penguinprotocols.com |
aca32633a7afe077270b8ec6cb5ecd7dd189ccc3 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/sacremoses/__init__.py | 48cc9af42c69614012407cbaee0083bb18bc67f6 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4b560216eecc87542d164c228258494730d7eeb75b4bddbd9bf242ff0b88cfb8
size 196
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
c664d8e4031d11d62a0818bb29281830bbbd6ece | a6194c0c20dc09a115f54ebd6a02fbbb55e206e8 | /dqn_agent/q_network.py | 3970d8bc020f04f36e19d8113c5b9155449e1612 | [] | no_license | Rowing0914/tf_agent_investigation | c1149c1b7371c070ef8513e7bf0fd63a48d33cee | dbce3862abf12a21115e67e6391314f8d866b658 | refs/heads/master | 2020-08-13T13:53:58.249071 | 2019-10-14T07:56:40 | 2019-10-14T07:56:40 | 214,979,265 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | from __future__ import absolute_import, division, print_function
import gin, tensorflow as tf
from tf_agents.networks import encoding_network, network
def validate_specs(action_spec, observation_spec):
del observation_spec
flat_action_spec = tf.nest.flatten(action_spec)
if len(flat_action_spec) > 1:
... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
e85ecaabccae9cff03474e2aadde53d65568a73b | c5dab033cbdfa9c4b9b4d1912ed09fe0fe34ec40 | /duc.py | f15913a7051674f8a4ee9641497dc2f7bca08417 | [] | no_license | bmwant/duc | 73019442b28e61af2903d61f1ceb204a0cc3ff34 | ccd7cb4175ec00ccf49b77f38b0a7e84e2a1e759 | refs/heads/master | 2020-12-31T05:25:45.022694 | 2015-05-28T09:32:49 | 2015-05-28T09:32:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,930 | py | # -*- coding: utf-8 -*-
__author__ = 'Most Wanted'
import logging
from collections import UserDict, UserList
from cerberus import Validator
logging.basicConfig(level=logging.DEBUG)
class DottedList(UserList):
"""
Dotted list allows to use dot-notation when accessing list items by index: e.g.
arr = ['a', ... | [
"bmwant@gmail.com"
] | bmwant@gmail.com |
4196b3328fb2ae090303eab64b5720ae7299b3ce | 7235051c8def972f3403bf10155e246c9c291c58 | /angola_erp/angola_erpnext/doctype/inss/inss.py | 77cf56a0d8e98888cad5dfe0c5a2ec943b1f7544 | [
"MIT"
] | permissive | proenterprise/angola_erp | 8e79500ce7bcf499fc344948958ae8e8ab12f897 | 1c171362b132e567390cf702e6ebd72577297cdf | refs/heads/master | 2020-06-03T08:51:34.467041 | 2019-06-07T01:35:54 | 2019-06-07T01:35:54 | 191,514,859 | 1 | 0 | NOASSERTION | 2019-06-12T06:53:41 | 2019-06-12T06:53:41 | null | UTF-8 | Python | false | false | 255 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Helio de Jesus and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class INSS(Document):
pass
| [
"hcesar@gmail.com"
] | hcesar@gmail.com |
49e463ea9d2c04cee39afcce3719c6f9c650dad7 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/netapp/volumes/replications/reverse.py | 8cd797fd2d4a34131e35fbbbbdc0477a66f1efbb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 3,224 | py | # -*- coding: utf-8 -*- #
# Copyright 2023 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
8c8158918e991fc5c7b0286a8c393cab6a256e10 | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_algos/rf/pyunit_custom_metrics_pubdev_5088.py | 2a91952de3807564ef0b33cc1b40b49fbe8907f1 | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 1,637 | py | import sys
sys.path.insert(1, "../../../")
import h2o
from tests import pyunit_utils
from tests.pyunit_utils import CustomMaeFunc, CustomRmseFunc,\
assert_correct_custom_metric, regression_model, multinomial_model, binomial_model
from h2o.estimators.random_forest import H2ORandomForestEstimator
# Custom model me... | [
"noreply@github.com"
] | Winfredemalx54.noreply@github.com |
385ce40f026c78916f14eddf848c66a606974671 | cf737d6f8bb3d2db9eb5756fd11cecb612f5694b | /pype/tools/pyblish_pype/view.py | 477303eae879a3ac1cad666432f1b270643cf2cb | [
"MIT"
] | permissive | jrsndl/pype | 7e04b9eaeadb339008a70dbab74864d5705a07ea | 47ef4b64f297186c6d929a8f56ecfb93dd0f44e8 | refs/heads/master | 2023-08-16T09:20:30.963027 | 2020-09-15T15:59:53 | 2020-09-15T15:59:53 | 297,372,053 | 1 | 0 | MIT | 2020-09-21T14:53:08 | 2020-09-21T14:53:08 | null | UTF-8 | Python | false | false | 11,656 | py | from Qt import QtCore, QtWidgets
from . import model
from .constants import Roles, EXPANDER_WIDTH
# Imported when used
widgets = None
def _import_widgets():
global widgets
if widgets is None:
from . import widgets
class ArtistView(QtWidgets.QListView):
# An item is requesting to be toggled, with... | [
"jakub.trllo@gmail.com"
] | jakub.trllo@gmail.com |
0cb7704f335aa1089c00787ef0e0221b9dfc20c3 | b316c1d1e57ca197b0b24625b5ceede12905a979 | /tango_with_django_project/tango_with_django_project/urls.py | 67adf6c79e5fb3c4505ed3c1b74f796dcb90e178 | [] | no_license | JayWelborn/Rango | 962ed888e33c591074c80cbf07f77edca2d4d821 | 41c832c9bc791f910b948fe9026cd41fc12cf129 | refs/heads/master | 2021-01-22T22:16:35.134729 | 2017-09-22T19:05:02 | 2017-09-22T19:05:02 | 92,766,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | """tango_with_django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, nam... | [
"jesse.welborn@gmail.com"
] | jesse.welborn@gmail.com |
19e82b23b4f97c9a1c1bd88fe98d27f73b01476b | 3faf4b9fb76145b2326446bc6bc190a5712b3b62 | /Algorithms/0695 Max Area of Island.py | cdc720cba3b793eb17af5a9da0ce13bc619edfd6 | [] | no_license | cravo123/LeetCode | b93c18f3e4ca01ea55f4fdebceca76ccf664e55e | 4c1288c99f78823c7c3bac0ceedd532e64af1258 | refs/heads/master | 2021-07-12T11:10:26.987657 | 2020-06-02T12:24:29 | 2020-06-02T12:24:29 | 152,670,206 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | # Solution 1, DFS
class Solution:
def dfs(self, i, j, grid, m, n):
area = 1
grid[i][j] = 0
for di, dj in [[-1, 0], [1, 0], [0, -1], [0, 1]]:
x, y = i + di, j + dj
if 0 <= x < m and 0 <= y < n and grid[x][y] == 1:
area += self.dfs(x, y, grid, m... | [
"cc3630@columbia.edu"
] | cc3630@columbia.edu |
c3f9cd2060490f4c7f83b91a605c42694ee81a49 | ee92057a8ebc91ba90d8055a9bece25d24211499 | /kattis/maximum-points-you-can-obtain-from-cards/maximum-points-you-can-obtain-from-cards.py | 5705a97eb87d0bfc290539344a5fe68a41a69367 | [] | no_license | KendrickAng/competitive-programming | ce0a4f44f592f295c2f8cd7e854139f18fb8853a | f9768a2020f801b8e4787cc853398b8258a0bf09 | refs/heads/master | 2022-05-29T07:21:32.607089 | 2022-04-24T16:35:14 | 2022-04-24T16:35:14 | 254,402,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | class Solution:
def maxScore(self, cardPoints: List[int], k: int) -> int:
# calculate prefix sums
n = len(cardPoints)
prefix = [0]
for i in range(n):
tmp = prefix[-1] + cardPoints[i]
prefix.append(tmp)
#print(prefix)
# move fixed slidi... | [
"kendrick.wh@outlook.com"
] | kendrick.wh@outlook.com |
37b64b825968043ad9deba9d9b7b60f106080bfb | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/coderByte_20200518233550.py | ef8c2488afe45ffa8446a7d96de9b95d1352174d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py |
def QuestionsMarks(str):
a,b = 0,0
for i in range(len(s)-1):
for j in range(i,len(s)):
if s[i].isdigit() and s[j].isdigit() and int(s[i])+int(j[i]) == 10:
a,b = i,j
new = s[a+1:b+1]
if new.count('?') == 3:
return 'true'
else:
return 'false'
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
ddaa9fc9222adb6cea73a896b2bad36c63421164 | 17993dcca87d490bc9841437309f309a5592ab38 | /Codes/linear_regression/exercise/face_solution.py | 3ee098e36b1d89f939fdf469515fb53525213a62 | [] | no_license | dreamlikexin/machine_learning | bc86ea15ef8552ad1be78a5bc65fb74a2cdb274e | 850e87025270847210b6ad188d2da181983a72c7 | refs/heads/master | 2022-01-16T09:51:20.538340 | 2019-06-19T16:27:26 | 2019-06-19T16:27:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import fetch_olivetti_faces
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
data = fetch_olivetti_faces()
data = data.images.reshape((len(data.images), -1))
n_pixels = data.shape[1]
X = data[... | [
"wanglei@wanglei-mbp.local"
] | wanglei@wanglei-mbp.local |
1a7a8fdd1634fdda99eea85a2692323fb7209a0f | a411a55762de11dc2c9d913ff33d2f1477ac02cf | /lte/gateway/python/integ_tests/s1aptests/test_ipv6_non_nat_dp_ul_tcp.py | 43041ea8822b77bd9e137145804ac43a2c93d85f | [
"BSD-3-Clause"
] | permissive | magma/magma | 0dc48c1513d9968bd05fb7589f302c192b7c0f94 | 0e1d895dfe625681229e181fbc2dbad83e13c5cb | refs/heads/master | 2023-09-04T09:31:56.140395 | 2023-08-29T13:54:49 | 2023-08-29T13:54:49 | 170,803,235 | 1,219 | 525 | NOASSERTION | 2023-09-07T17:45:42 | 2019-02-15T04:46:24 | C++ | UTF-8 | Python | false | false | 4,053 | py | """
Copyright 2022 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES O... | [
"noreply@github.com"
] | magma.noreply@github.com |
f26cfb2eec843676ac2c9085e502fcee2b1f71ce | 43842089122512e6b303ebd05fc00bb98066a5b2 | /dynamic_programming/213_house_robber_ii.py | 2b579f56defc49ef1f5790ac7012f6ace3142db0 | [] | no_license | mistrydarshan99/Leetcode-3 | a40e14e62dd400ddb6fa824667533b5ee44d5f45 | bf98c8fa31043a45b3d21cfe78d4e08f9cac9de6 | refs/heads/master | 2022-04-16T11:26:56.028084 | 2020-02-28T23:04:06 | 2020-02-28T23:04:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py |
"""
213. House Robber II
Medium
627
18
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That means the first house is the neighbor of the last one. Meanwhile, adjacent houses have security system ... | [
"maplesuger@hotmail.com"
] | maplesuger@hotmail.com |
c2c3436aac89ebe1bc9f7f979a2d3dcdc72f552e | c7c63d04ca4a3db48ccc2d78b11ee092175df043 | /numpyro/contrib/control_flow/scan.py | 35ffb1dd785705fc2c8afee7cfd5f742f298d995 | [
"Apache-2.0"
] | permissive | zeta1999/numpyro | e17413805db2e70d48e1ada4b029b02cb065f539 | 6823c495f62774172936fb437bb17210fd0179e0 | refs/heads/master | 2023-04-11T14:39:41.356900 | 2021-04-14T03:24:36 | 2021-04-14T03:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,831 | py | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
from collections import OrderedDict
from functools import partial
from jax import (
device_put,
lax,
random,
tree_flatten,
tree_map,
tree_multimap,
tree_unflatten,
)
import jax.numpy as jnp
from jax.tree_ut... | [
"noreply@github.com"
] | zeta1999.noreply@github.com |
24e705f289cc6429a70f3dce754c533a3befe52e | 991d0b40a9ddb5ea6a72e3c018a74c6135792909 | /freenodejobs/admin/views.py | 9d6fb0fbcfa91721fbec85b8e0219cf6646f0888 | [
"MIT"
] | permissive | freenode/freenodejobs | 9afe699713efb915f5008c1ee2299a25604ab351 | 235388c88ac6f984f36cd20074542e21369bcc8b | refs/heads/master | 2021-06-11T05:09:14.255759 | 2019-10-22T13:46:44 | 2019-10-22T13:46:44 | 128,451,423 | 4 | 5 | MIT | 2021-03-18T20:31:54 | 2018-04-06T19:16:05 | JavaScript | UTF-8 | Python | false | false | 2,306 | py | from django.contrib import messages
from django.shortcuts import render, redirect, get_object_or_404
from freenodejobs.jobs.enums import StateEnum
from freenodejobs.utils.paginator import AutoPaginator
from freenodejobs.utils.decorators import staff_required
from freenodejobs.jobs.models import Job
from .forms impor... | [
"chris@chris-lamb.co.uk"
] | chris@chris-lamb.co.uk |
86b92b8f212a1e0ccacfc949fefe1da3ffb5b062 | 6dd5bfe305bfc8d7fccf1f9bd6b3ec2250fc574c | /tensorflow_probability/python/bijectors/cholesky_outer_product_test.py | 12b437fe8c7502373507a9937c4af664181bef2f | [
"Apache-2.0"
] | permissive | snehil03july/probability | dd38cf7abba01b6702362476150d67092ce754b2 | 5f576230f1e261a823e20a49c442ff38c8f381d3 | refs/heads/master | 2020-03-28T10:24:46.378464 | 2018-09-08T22:34:22 | 2018-09-08T22:34:25 | 148,106,347 | 1 | 0 | Apache-2.0 | 2018-09-10T06:01:26 | 2018-09-10T06:01:26 | null | UTF-8 | Python | false | false | 6,045 | py | # Copyright 2018 The TensorFlow Probability 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 applicable law o... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
4989526cf06ccac21cea11cc7c61c481bd7c4e7a | 74bc48ba64859a63855d204f1efd31eca47a223f | /Planet/3000.Prav_vgg16_01.py | b0e04eacff9cf7bbf863c935f3498c951b3fa0f1 | [] | no_license | PraveenAdepu/kaggle_competitions | 4c53d71af12a615d5ee5f34e5857cbd0fac7bc3c | ed0111bcecbe5be4529a2a5be2ce4c6912729770 | refs/heads/master | 2020-09-02T15:29:51.885013 | 2020-04-09T01:50:55 | 2020-04-09T01:50:55 | 219,248,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,500 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 09 20:02:03 2017
@author: SriPrav
"""
import numpy as np
np.random.seed(2017)
import os
import glob
import cv2
import datetime
import pandas as pd
import time
import warnings
warnings.filterwarnings("ignore")
from sklearn.cross_validation import KFold
from keras.models ... | [
"padepu@wesfarmers.com.au"
] | padepu@wesfarmers.com.au |
59225ea2848e31f2eec61a545e3c036792b4f7a2 | 6db515644769c94166d2023b05c1f5ea57d3df51 | /blog/migrations/0001_initial.py | 090c4757842dddd9a2cb5656d58f7707b24683fb | [] | no_license | toastding/footprint | fe7da2340e826438d1cb17d18a5b1bdf2018d8a0 | e9af8163706efdce8e5732e9dfaedd6ecb2fb445 | refs/heads/master | 2022-11-17T22:38:40.539558 | 2020-07-12T04:43:37 | 2020-07-12T04:43:37 | 278,774,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py | # Generated by Django 3.0.8 on 2020-07-11 08:56
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL)... | [
"ding02211995@gmail.com"
] | ding02211995@gmail.com |
9f08f99d478449a90db4b6dd7d4a9e87595f22d8 | 1316cd6763e784811c769c1de577235c921af0de | /Widgets/Striptool/setup.py | 3766198b8ae55d1005c727f74a195f038871b27f | [] | no_license | VELA-CLARA-software/Software | a6fb6b848584e5893fd6939a447d23134ce636cc | 2e2a88ac0b2b03a495c868d2e11e6481e05097c3 | refs/heads/master | 2023-02-05T07:40:58.260798 | 2023-01-27T09:39:09 | 2023-01-27T09:39:09 | 69,860,536 | 7 | 3 | null | 2021-04-07T14:17:07 | 2016-10-03T10:20:46 | Mathematica | UTF-8 | Python | false | false | 312 | py | from distutils.core import setup
setup(
name='Striptool',
version='1.1',
packages=[''],
url='',
license='',
author='jkj62',
author_email='james.jones@stfc.ac.uk',
description='Strip tool widget for PyQt4',
install_requires=['pyqtgraph>=0.10.0','numpy','peakutils>=1.0.3'],
)
| [
"james.jones@stfc.ac.uk"
] | james.jones@stfc.ac.uk |
a508e4bb0d77eab214532f5da0b2c7c0c380210a | c068f19f14749c7e29a5450871da81d0e4b57348 | /inasilentway/collection.py | d0443b44fd449af559bde16b95b272f8985e3139 | [] | no_license | davidmiller/inasilentway | 42b94adea60143a70e7fa82ecd8504fa6a1142f1 | c88ccd1cc0f79aa167f8a2ff082a20a043d64556 | refs/heads/master | 2022-12-10T11:47:51.052379 | 2021-01-22T12:41:33 | 2021-01-22T12:41:33 | 161,032,907 | 0 | 0 | null | 2022-12-08T01:29:25 | 2018-12-09T11:38:22 | HTML | UTF-8 | Python | false | false | 5,074 | py | # """
# Collection utilities
# """
# import pickle
# import time
# import ffs
# import discogs_client as discogs
# from inasilentway import utils
# HERE = ffs.Path.here()
# CACHE_PATH = HERE / '../data/collection.pickle'
# def get_collection():
# if CACHE_PATH:
# with open(CACHE_PATH.abspath, 'rb') as ... | [
"david@deadpansincerity.com"
] | david@deadpansincerity.com |
f4dc7d92176b117ca06704933db0d564697b3c06 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/core/reshape/pivot.py | 15602b58b926514bef78fdad232eb4e3806945f4 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,217 | py | import numpy as np
from pandas.util._decorators import Appender, Substitution
from pandas.core.dtypes.cast import maybe_downcast_to_dtype
from pandas.core.dtypes.common import is_integer_dtype, is_list_like, is_scalar
from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
import pandas.core.common as... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
8571d468f570736fbf2eb36541b40bad5f1b0fee | 1599f9a44e5ec492c019036195a769fa3ed9e04b | /tests/test_api/test_v1/test_views/test_index.py | 652ea7f07f022c95414ee40b62085c394159254c | [] | no_license | Mikaelia/AirBnB_clone_v3 | 63b70a2c8874e9d6d6e60ab3c6b2d1511136303a | f628759076ccdd2e5aecf61c8d079505b4d17412 | refs/heads/master | 2020-03-26T22:31:17.315057 | 2018-10-09T01:10:30 | 2018-10-09T01:10:30 | 145,465,466 | 0 | 0 | null | 2018-08-29T19:19:21 | 2018-08-20T20:09:48 | Python | UTF-8 | Python | false | false | 1,334 | py | #!/usr/bin/python3
"""
Unit Test for api v1 Flask App
"""
import inspect
import pep8
import web_flask
import unittest
from os import stat
import api
module = api.v1.views.index
class TestIndexDocs(unittest.TestCase):
"""Class for testing Hello Route docs"""
all_funcs = inspect.getmembers(module, inspect.isfu... | [
"328@holbertonschool.com"
] | 328@holbertonschool.com |
f7a3f1a1e14e46defed815dd909775f9fd84d89e | 0d5de943909877c01b485d8a918d8bef0cf9e196 | /plugins/RemoveTriggerArea/PluginRemoveTriggerArea.py | db28cd82e00fc81726f38db0b6d1c935c1c47617 | [
"MIT"
] | permissive | baverman/scribes-goodies | 31e2017d81f04cc01e9738e96ceb19f872a3d280 | f6ebfe62e5103d5337929648109b4e610950bced | refs/heads/master | 2021-01-21T10:13:08.397980 | 2013-09-25T16:33:05 | 2013-09-25T16:33:05 | 854,207 | 2 | 1 | null | 2013-09-25T16:33:05 | 2010-08-22T03:12:39 | Python | UTF-8 | Python | false | false | 802 | py | from scribes.helpers import Trigger, TriggerManager
import subprocess
from gettext import gettext as _
name = "Remove trigger area plugin"
authors = ["Anton Bobrov <bobrov@vl.ru>"]
version = 0.1
autoload = True
class_name = "TriggerAreaPlugin"
short_description = "Removes trigger area"
long_description = "Removes trig... | [
"bobrov@vl.ru"
] | bobrov@vl.ru |
ba725d409c9ca8e433e32f76419bbea9c92d6199 | 6cad5c613306789b9bd6387c2e7af02515b1c0ad | /django_document/inheritance/migrations/0002_auto_20171011_0700.py | 0ba7650807e9ff33a1802862fd91abed05693195 | [] | no_license | Isaccchoi/django_document_project | ead5eb7b2e932ae5401d5a3cdb3672d3dfd8f9f5 | 980f25c98f99994e6148af16ed82ae4f12d50870 | refs/heads/master | 2021-05-08T06:12:51.261138 | 2017-10-13T05:14:58 | 2017-10-13T05:14:58 | 106,355,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-11 07:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('inheritance', '0001_initial'),
]
operations = [
... | [
"isaccchoi@naver.com"
] | isaccchoi@naver.com |
720138848aebe7a03865a14abc5960de284e5505 | bf683eb4a6080cf67669de90d1afdad53fccb738 | /Lib/site-packages/phonenumbers/data/region_KZ.py | 62d0715f66f5f56e0453cb8e060ae5324352b8dc | [
"MIT"
] | permissive | mspgeek/Client_Portal | cd513308840aa4203554ebc1160f17f0dd4b17cf | 0267168bb90e8e9c85aecdd715972b9622b82384 | refs/heads/master | 2023-03-07T21:33:22.767108 | 2020-04-08T01:43:19 | 2020-04-08T01:43:19 | 253,946,635 | 6 | 0 | MIT | 2022-12-31T07:01:43 | 2020-04-08T00:43:07 | HTML | UTF-8 | Python | false | false | 1,863 | py | """Auto-generated file, do not edit by hand. KZ metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_KZ = PhoneMetadata(id='KZ', country_code=7, international_prefix='810',
general_desc=PhoneNumberDesc(national_number_pattern='33622\\d{5}|(?:7\\d|80)\\d{8}', possible_... | [
"kspooner13@yahoo.com"
] | kspooner13@yahoo.com |
958cbde7c2aceabaaef1f3083dec0f27a6c8c624 | b39d72ba5de9d4683041e6b4413f8483c817f821 | /GeneVisualization/ass1/Lib/site-packages/itk/itkMetaConverterBasePython.py | a87a60552c7b70b51183b5adedd5f9c8389b008e | [] | no_license | ssalmaan/DataVisualization | d93a0afe1290e4ea46c3be5718d503c71a6f99a7 | eff072f11337f124681ce08742e1a092033680cc | refs/heads/master | 2021-03-13T05:40:23.679095 | 2020-03-11T21:37:45 | 2020-03-11T21:37:45 | 246,642,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,469 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkM... | [
"44883043+ssalmaan@users.noreply.github.com"
] | 44883043+ssalmaan@users.noreply.github.com |
b76703edb54f9d342ff986b4ad2451ffd03e6498 | f281c9ecd48aedd30469cfbd556bc3319cd8419d | /sendmail/src/main.py | 0b5456e505640bb912ccd4735ffc2480b6fa88dd | [] | no_license | youerning/blog | 5d5edeb4f836d233a4119796f38fc4e33531714e | 59c3704cf5a77bba70a48a5d09db9b165ea59d4b | refs/heads/master | 2023-08-31T04:08:16.461923 | 2023-08-27T01:28:39 | 2023-08-27T01:28:39 | 114,074,235 | 183 | 105 | null | 2023-05-05T02:36:52 | 2017-12-13T04:35:00 | HTML | UTF-8 | Python | false | false | 6,488 | py | # -*- coding: UTF-8 -*-
# @author youerning
# @email 673125641@qq.com
import sys
import base64
import smtplib
from email.header import Header
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.image import MIMEImage
from collections import defaultdict
from io import By... | [
"673125641@qq.com"
] | 673125641@qq.com |
822ab7eaf58e30573d40ece680172b2eed27c257 | c3a3cf534fb77a1963c172836aeff70ef1875e4b | /fender/trunk/src/vmware/vcenter.py | fd8798eeb4fb2dd09118af32c487231d2bbe1182 | [
"CC0-1.0"
] | permissive | raychorn/svn_hp-projects | dd281eb06b299e770a31bcce3d1da1769a36883d | d5547906354e2759a93b8030632128e8c4bf3880 | refs/heads/main | 2023-01-08T07:31:30.042263 | 2020-10-14T21:56:57 | 2020-10-14T21:56:57 | 304,144,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,071 | py | #####################################################
#
# vcenter.py
#
# Copyright 2011 Hewlett-Packard Development Company, L.P.
#
# Hewlett-Packard and the Hewlett-Packard logo are trademarks of
# Hewlett-Packard Development Company, L.P. in the U.S. and/or other countries.
#
# Confidential computer software... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
7b59d635ceceda572349f0002f30d490b644440d | 8f8d9428c68aa6bb1e6d131c505c217403979955 | /Python/0053. 螺旋三角.py | 442375ec79cdb6f9c5f503f591d033fb29160d4a | [] | no_license | yang4978/Huawei-OJ | fb3799c0f807b853fcfd4574b809fed5740fc6ea | ea3cccb2b070545574fadd64aecd38f73804361d | refs/heads/main | 2023-04-17T22:04:44.526675 | 2021-04-30T03:40:26 | 2021-04-30T03:40:26 | 337,046,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | # If you need to import additional packages or classes, please import here.
def func():
# please define the python3 input here.
# For example: a,b = map(int, input().strip().split())
# please finish the function body here.
# please define the python3 output here. For example: print().
while True:
... | [
"noreply@github.com"
] | yang4978.noreply@github.com |
30a24d477498b4413500a53839689643274b89e7 | 4fc73cbe9e79974cde44d674b7c810edc9b07cd2 | /puyopuyoall/feverclass.py | ebb79ed88aef6c45b799c740ea0ede9ca7610cc8 | [] | no_license | yuufujikata2/Games | 36fbcdfbba976cc6b1850fd5f950bf269f81248d | abc2177023653247ebe1abb9cab172db31d038dc | refs/heads/master | 2020-07-30T14:07:54.466545 | 2019-09-23T03:39:56 | 2019-09-23T03:39:56 | 210,257,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py |
class Fever():
def __init__(self):
self.haichi=[[0 for i in range(8)] for j in range(15)]
self.fegauge=0
self.fetime=15
self.fehantei=None
self.ferensasuu=5
def feverin(self,field,ferensatane):
self.haichi=[[s for s in m] for m in field.haichi]
self.fehantei=True
field.haichi=[[s... | [
"yuu.1201.soccer.f@gmail.com"
] | yuu.1201.soccer.f@gmail.com |
ede2789c8c52c03ef68198b4070f979461ae3c2b | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_Wxyz_focus_Z_ok/pyr_Tcrop255_pad20_jit15/Sob_k15_s001_EroM_Mae_s001/pyr_4s/L6/step09_4side_L6.py | d7d9613e38ece92e30feabda063d9ae25ca3206d | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111,554 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
81e404ed98ec96915a3628c44c71a508ebd0e5d3 | a25e2aa102ffe9c2d9b553252a1882fe5a9d7ec9 | /SprityBird/spritybird/python3.5/lib/python3.5/site-packages/openpyxl/formatting/tests/test_rule.py | ad4cc25a93850facfe3ae3cf6730e51174e6aa40 | [
"MIT"
] | permissive | MobileAnalytics/iPython-Framework | f96ebc776e763e6b4e60fb6ec26bb71e02cf6409 | da0e598308c067cd5c5290a6364b3ffaf2d2418f | refs/heads/master | 2020-03-22T06:49:29.022949 | 2018-07-04T04:22:17 | 2018-07-04T04:22:17 | 139,660,631 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,212 | py | # coding=utf8
from __future__ import absolute_import
# copyright 2010-2015 openpyxl
import pytest
from openpyxl.xml.functions import fromstring, tostring
from openpyxl.xml.constants import SHEET_MAIN_NS
from openpyxl.styles import Color
from openpyxl.tests.helper import compare_xml
@pytest.fixture
def FormatObjec... | [
"909889261@qq.com"
] | 909889261@qq.com |
a67a7e3853351430549f23b2546bf23d0b9996aa | d6c84c8d2568fdbf898f0f477f0f666ad5769f53 | /polybot/planning.py | 64baebd4e075375fdba645e5bae56a431858ddad | [
"Apache-2.0"
] | permissive | cwang344/polybot-web-service | ae533535e834da10da3b4ddff1a458f89d9dbb89 | 0aebb082829e0a8b4ac4a6d15c5da3f4458ab143 | refs/heads/master | 2023-07-18T07:03:05.577043 | 2021-08-20T14:47:51 | 2021-08-20T14:47:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,617 | py | """Definition for the class that runs the optimization routine.
We describe the policy for starting new runs by implementing a
`Colmena <http://colmena.rtfd.org/>`_ Thinker class.
"""
import random
from pathlib import Path
from typing import Dict, Callable, Union
import requests
from colmena.redis.queue import Client... | [
"ward.logan.t@gmail.com"
] | ward.logan.t@gmail.com |
0c5ed03200eea5fa07824fedb9ecfa87e7fe52e8 | a563a95e0d5b46158ca10d6edb3ca5d127cdc11f | /tccli/services/iotexplorer/v20190423/help.py | dff03e15e9ea50a3d1125332751988261fcb441f | [
"Apache-2.0"
] | permissive | SAIKARTHIGEYAN1512/tencentcloud-cli | e93221e0a7c70f392f79cda743a86d4ebbc9a222 | d129f1b3a943504af93d3d31bd0ac62f9d56e056 | refs/heads/master | 2020-08-29T09:20:23.790112 | 2019-10-25T09:30:39 | 2019-10-25T09:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,925 | py | # -*- coding: utf-8 -*-
DESC = "iotexplorer-2019-04-23"
INFO = {
"ModifyStudioProduct": {
"params": [
{
"name": "ProductId",
"desc": "产品ID"
},
{
"name": "ProductName",
"desc": "产品名称"
},
{
"name": "ProductDesc",
"desc": "产品描述"
},
... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
84c6951f02125c18e80e44560c2b69348c7b7a14 | 45a0434de7cb5aaf51f372a9ea39c2e62528e8d7 | /decoder_hier_fsoftmax_v1.py | bbba0b4556ec3440adaff9eb6a5e5f96ff1e0890 | [] | no_license | hongtaowutj/Seq2Seq-Keyphrase-Generation | 44b5b24f3af7a85c24fc5ef231c53c1dac7e48ff | 6f2d08222b108b543b7628b32e98480f2e3a32b0 | refs/heads/master | 2020-03-27T10:43:09.941194 | 2018-07-23T07:21:35 | 2018-07-23T07:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,457 | py | import os
import sys
sys.path.append(os.getcwd())
import numpy as np
from datetime import datetime
import time
import tensorflow as tf
from keras.models import Model
import keras.backend as K
from keras.models import load_model
from keras.utils import to_categorical
from utils.data_connector import DataCon... | [
"i.nimah@tue.nl"
] | i.nimah@tue.nl |
b03e63e83a8119e43592f779267c3e1089933a42 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /vaufKtjX3gKoq9PeS_17.py | 188c5344f01609d7777059c7e888e3ce3952cdbd | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py |
def ohms_law(v, r, i):
if r and i and not v:
ans = round(r * i, 2)
elif v and i and not r:
ans = round(v / i, 2)
elif v and r and not i:
ans = round(v / r, 2)
else:
ans = 'Invalid'
return ans
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
bba7fcd21ff8aad07745a06ba5cf7bec4ede0975 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/1601.py | 4a308e37f8e46ee749375c4c4f01d664c3823c76 | [] | 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 | 913 | py | #!/usr/bin/env python
import sys
def main(argv=None):
if argv is None:
argv = sys.argv
T = int(sys.stdin.readline())
for t in xrange(T):
vrow = int(sys.stdin.readline())
cards1 = []
for i in xrange(4):
row = sys.stdin.readline()
if i == vrow - 1:
cards1 = map(int, row.split(" "))
vrow =... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c4fd6c0e6b2e2d046e2e8e8768f03f52b6748480 | bb7d5f000de07cc2c458a64fd275f3b14701dea2 | /examples/Lottery.py | 3c002d7320f7fe471e8334c122caa8f4f5162c79 | [
"MIT"
] | permissive | timmy61109/Introduction-to-Programming-Using-Python | 201d532a5c041ed045939c10909de0426a6e8be7 | bcbfd8d66173f5adfa1553103a692c02500e7896 | refs/heads/master | 2022-12-12T22:07:56.647918 | 2022-11-23T19:13:48 | 2022-11-23T19:18:46 | 210,872,428 | 0 | 6 | MIT | 2021-11-21T12:58:47 | 2019-09-25T14:58:14 | Python | UTF-8 | Python | false | false | 811 | py | import random
# Generate a lottery
lottery = random.randint(0, 99)
# Prompt the user to enter a guess
guess = eval(input("Enter your lottery pick (two digits): "))
# Get digits from lottery
lotteryDigit1 = lottery // 10
lotteryDigit2 = lottery % 10
# Get digits from guess
guessDigit1 = guess // 10
guessDigit2 = gue... | [
"38396747+timmy61109@users.noreply.github.com"
] | 38396747+timmy61109@users.noreply.github.com |
02f7ab0bee68cd454347bcc87f684b94c7b503e2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2111/60832/263214.py | 493b6cd70cdd6be8f9b3626e503bb4888b869bfb | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | n = int(input())
x = 2
i = 1
while i < n:
num = x
while num % 5 == 0:
num = num // 5
while num % 3 == 0:
num //= 3
while num % 2 == 0:
num //= 2
if num == 1:
i += 1
x += 1
print(x - 1) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
348dc2478aef4fefed9ef1a05d40b69aab88803f | 853c6a09af16fd4dd8a53efa8bde631e63315b59 | /BOJ BF/sum_subsequence.py | e1c9ee7e1ffa0b4065c89119d04a4ff13f4ba0ac | [] | no_license | Areum0921/Abox | 92840897b53e9bbab35c0e0aae5a017ab19a0500 | f4739c0c0835054afeca82484769e71fb8de47c8 | refs/heads/master | 2021-12-13T11:16:33.583366 | 2021-10-10T08:09:50 | 2021-10-10T08:09:50 | 176,221,995 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # 콤비네이션 안쓰고 리스트 안에 있는 숫자들을 조합하여 더할 수 있는 모든 경우의 값
# set 안쓰고 중복을 방지하고싶으면 False 배열을 만들고, 결과값 인덱스를 True 바꾸는 식으로 사용.
N=int(input())
s=list(map(int,input().split(" ")))
sum_list=[]
def dfs(x,y):
if(x==N):
sum_list.append(y)
return
dfs(x+1,y)
dfs(x+1,y+s[x])
dfs(0,0)
# 결과물 sum_list.sort()하면 None... | [
"a90907@gmail.com"
] | a90907@gmail.com |
fe0604f50c4cfe8fa89dbadfb87823935a8e5e5f | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNoticeSpiders/BoYangInvestNotice.py | e5c41b22ec6938b39b38abc013bcd7137d30f716 | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from urllib.parse import urljoin
from scrapy.utils.response import get_base_url
from FundNoticeSpiders import GGFundNoticeItem
from FundNoticeSpiders import GGFundNoticeSpider
class BoYangInvestNoticeSpider(GGFundNoticeSpider):
name = 'FundNotice_BoYangInvest... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
68a35022c085f4199fb83aa56e770d6c7eae54af | 3c119c145a00fbfc3b2d8841a3b9280fa4bc1da8 | /commons/utils/es_.py | 63a4ef747e86519b04ef4e015eb307990362ff25 | [] | no_license | disenQF/GoodsServer | 5cd54786d8c9b3444ffad38057fc62ebade87d3a | de7207b8fba0e60315ae7458978e210b325f305e | refs/heads/master | 2022-12-11T04:37:12.975547 | 2019-04-01T02:21:15 | 2019-04-01T02:21:15 | 177,748,032 | 3 | 1 | null | 2022-12-08T04:55:20 | 2019-03-26T08:45:59 | JavaScript | UTF-8 | Python | false | false | 2,861 | py | import pymysql
import requests
from pymysql.cursors import DictCursor
from FoodsAdminServer.settings import DATABASES
# 哪些数据添加到搜索引擎
sql = """
select c.name as cate_name,
f.id, f.name,f.price,f.image
from t_category c
join t_foods f on (c.id=f.category_id)
"""
HOST = 'localhost' # ES 的服务器地址
PORT = 9200 ... | [
"610039018@qq.com"
] | 610039018@qq.com |
eccfa6654ec3fb088a7177d281c098151f918970 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2491/58758/260329.py | 584afe2be11bf0d64307db2c872bcfd9c6c35ace | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | nums1 = eval(input())
nums2 = eval(input())
nums1.sort()
nums2.sort()
ans = []
for i in nums1:
try:
ind = nums2.index(i)
nums2.remove(i)
ans.append(i)
except Exception:
continue
print(ans)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
38cd18e7d9ad3e43327fd7219a1a4dd1428fc53e | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /src/sentry/integrations/custom_scm/repository.py | 2667d60c50a84c2264e0af4de028c4fb0a2556f5 | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 1,797 | py | from django.http import Http404
from rest_framework.request import Request
from rest_framework.response import Response
from sentry.api.serializers import serialize
from sentry.models import Integration, Repository
from sentry.plugins.providers import IntegrationRepositoryProvider
class CustomSCMRepositoryProvider(I... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
7115f457ba5937098412a7e1070fbe84366470d4 | 87ba55b289f5bf0451e03384ceb0531ddc7016eb | /setup.py | d2206a7e07f97300c5228c15c96ece87a2991229 | [
"Apache-2.0"
] | permissive | ck196/TensorFlowASR | 5e8e57c6f62947e97d968bb9153784394bd5846b | 16c81282f08fc31b08156bb179d59eea3daaf120 | refs/heads/main | 2023-03-28T07:34:45.623636 | 2021-05-22T13:18:08 | 2021-05-22T13:18:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | # Copyright 2020 Huy Le Nguyen (@usimarit)
#
# 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 t... | [
"nlhuy.cs.16@gmail.com"
] | nlhuy.cs.16@gmail.com |
ceb964674032bd1ac4980a9a892671fa4f5d22d1 | 57a054c03419607bd0dad1c50b0692430a9ace40 | /home/migrations/0002_load_initial_data.py | f58c19e4fde560d2607585826423571fef1e099b | [] | no_license | crowdbotics-apps/project-1-25765 | a4c1d1cfff2378a7633cb1429303008a9301a8fa | 148acaf70e78f03c9428a73a5c4e1c60deb13da4 | refs/heads/master | 2023-04-10T13:40:54.952083 | 2021-04-18T19:49:15 | 2021-04-18T19:49:15 | 359,238,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Project_1"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a235e57a2ee471ee699cc093909e1875ca74704b | cc9c720f8831b4feeb94930a92792430a40ceb7c | /richcontext/scholapi/__init__.py | c032438cd46d5216c27f2330da14701e6fdf78df | [
"CC0-1.0"
] | permissive | kaydoh/RCApi | 55f9e24d36c5151cdef13252e6c0421e839c0580 | c1f3cf96d1b176cd616830e6a4563585280c12e9 | refs/heads/master | 2023-02-16T18:27:05.899301 | 2021-01-11T18:35:23 | 2021-01-11T18:35:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | from .scholapi import ScholInfraAPI
| [
"ceteri@gmail.com"
] | ceteri@gmail.com |
06e0b1986d2f094be6d854335ade4123fbe7b438 | d1c67f2031d657902acef4411877d75b992eab91 | /swagger_client/models/dynatrace_app_mon_integration.py | ca1117554501b7498f36d5208bbec16407bd3784 | [] | no_license | Certn/opsgenie-python | c6e6a7f42394499e5224d679cc9a449042fcf9c3 | bd5f402f97d591e4082b38c938cbabca4cf29787 | refs/heads/master | 2023-01-01T10:45:13.132455 | 2020-10-27T17:40:01 | 2020-10-27T17:40:01 | 307,769,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,415 | py | # coding: utf-8
"""
Opsgenie REST API
Opsgenie OpenAPI Specification # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class DynatraceAppMonIntegration(object):
"""NOTE: This cl... | [
"john@oram.ca"
] | john@oram.ca |
fc1dd3e2e53ac9889619341981ad72b9420d9047 | ffe68fc28402e30e1feeb32c972702e3c45da354 | /saybapco/run.py | a89c40df190b04e6f9790d7e5745e0954b1fb72c | [] | no_license | mcnigno/saybapco | 5ad8254d35af02b5e7b517d234487d1b18741904 | 28207c1ce09498808ef9f3525129b7e47f2cf731 | refs/heads/master | 2022-12-11T20:31:47.405351 | 2018-04-29T20:01:26 | 2018-04-29T20:01:26 | 131,268,488 | 1 | 0 | null | 2022-12-08T02:03:51 | 2018-04-27T08:27:33 | JavaScript | UTF-8 | Python | false | false | 69 | py | from app import app
app.run(host='0.0.0.0', port=5001, debug=True)
| [
"mcnigno@gmail.com"
] | mcnigno@gmail.com |
9517eb82fff730a2ecd4af39230afef7a9dc6d0d | ac61c80a2d9e95838ab6fdd8d41c9328e64a740e | /org/api/f.py | 029341f2c46e61303c8ed4fa0ebd2d22350ca324 | [] | no_license | zdYng/ients_down | ac45f8f1016e8876b8e282d9055975b2c19291db | a85be63365ab7f54a3629498e19cd0c619e67887 | refs/heads/master | 2020-03-09T04:24:37.824832 | 2018-03-19T00:56:02 | 2018-03-19T00:56:02 | 128,586,973 | 1 | 0 | null | 2018-04-08T02:07:16 | 2018-04-08T02:07:16 | null | UTF-8 | Python | false | false | 13,845 | py | # 模块的功能
from django.shortcuts import render, redirect, HttpResponse
from datetime import datetime, timezone, timedelta
from store import models as Store_models
from org import models as org_models
from general import models as general_models
from org import views
import general.functions
import org
import uuid
import ... | [
"mcdull9393@gmail.com"
] | mcdull9393@gmail.com |
fe372976873228e0ed042f92dc498e7f69260681 | c839961aeab22795200d9edef9ba043fe42eeb9c | /data/script869.py | 6c72307996165323f1b6da8a8eb5e4ccbe7c4420 | [] | no_license | StevenLOL/kaggleScape | ad2bb1e2ed31794f1ae3c4310713ead1482ffd52 | 18bede8420ab8d2e4e7c1eaf6f63280e20cccb97 | refs/heads/master | 2020-03-17T05:12:13.459603 | 2018-05-02T19:35:55 | 2018-05-02T19:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py |
# coding: utf-8
# # Intro
# **This is Lesson 7 in the [Deep Learning](https://www.kaggle.com/learn/machine-learning) track**
#
# The models you've built so far have relied on pre-trained models. But they aren't the ideal solution for many use cases. In this lesson, you will learn how to build totally new models.... | [
"adithyagirish@berkeley.edu"
] | adithyagirish@berkeley.edu |
b91f4fe7546cb810a246edc25d61c27d766888e2 | c1a5a5779fa3cebee65d23d0216549f09fdffda5 | /508saver.py | f3f0e4d8410b7357f37db8805df69b203d2f6961 | [] | no_license | greenmac/python-morvan-tensorflow | b0821825f8857d969d4d60437334f8fbb2ca18aa | 0abd63e74b3f5a54f82337fb8deaf4edecef294f | refs/heads/master | 2020-04-11T06:20:28.315996 | 2019-01-08T13:57:27 | 2019-01-08T13:57:27 | 161,578,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # https://morvanzhou.github.io/tutorials/machine-learning/tensorflow/5-06-save/
# https://github.com/MorvanZhou/tutorials/blob/master/tensorflowTUT/tf19_saver.py
import tensorflow as tf
import numpy as np
# //////////
# ## Save to file
# ## remember to define the same dtype and shape when restore
# W = tf.Variable([[1... | [
"alwaysmac@msn.com"
] | alwaysmac@msn.com |
930a3906ee90eb771f1a686e1d0ba722cc78cf13 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_135/ch88_2020_05_06_11_49_20_934805.py | e6bba1cfd6fb8a4323e72c322207bfb9927fdc3b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | class Retangulo:
def __init__(self, inferior_esquerdo, superior_direito):
self.inferior_esquerdo = inferior_esquerdo
self.superior_direito = superior_direito
def calcula_perimetro(self):
lado_x = superior_direito.x - inferior_esquerdo.x
lado_y = superior_direito.y - inferior_esq... | [
"you@example.com"
] | you@example.com |
e9a6a86f1f9c97aeebc0645f9143517e6480c3a1 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/1367.py | 0cf8ef40104ecb429f0cbaab2ce61a8013ecb146 | [] | 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 | 1,446 | py | # Google Code jam Problem A Speaking in Tongues
# Apr. 13, 2012
# Python 3.2.3
import sys
import string
def ReadRules(d):
encrypted = 'ejp mysljylc kd kxveddknmc re jsicpdrysi rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd de kr kd eoya kw aej tysr re ujdr lkgc jv y e q z'
original = 'our language is... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a26ee3c1141a3c077ccbfe142df161d7aaff5cbe | 98acc759f4023cc907fc601d18e531101ce23f1b | /jsonschema/__main__.py | fb260ae145d7518f8e8fa16ed13cc2c6173e7404 | [
"MIT"
] | permissive | python-jsonschema/jsonschema | e2465e85dda618f8003cf69e15ee95e4e947405d | 40733195ec975da5cd86c98522959f9162b338b0 | refs/heads/main | 2023-08-17T06:32:47.748711 | 2023-08-09T15:51:57 | 2023-08-09T15:51:57 | 3,072,629 | 671 | 84 | MIT | 2023-09-12T00:11:27 | 2011-12-30T03:37:43 | Python | UTF-8 | Python | false | false | 115 | py | """
The jsonschema CLI is now deprecated in favor of check-jsonschema.
"""
from jsonschema.cli import main
main()
| [
"Julian@GrayVines.com"
] | Julian@GrayVines.com |
09df8a06e99dac1e29ef731782777407116b0ea2 | 9463b87c683fdada077cacca542998e19557f1e5 | /其他教学参考/随书源码/CH1.2-P015“百鸡百钱”问题.py | 8b5e3d725cc8267233b4d85feabb7731ed0b0688 | [] | no_license | hongm32/2020design | fa3d9e06b0e91be30784f3ad78bf65cbcfb3550b | 34b6a3c6a2740f049134eada1fbab6cacc154b0d | refs/heads/master | 2023-07-25T10:34:23.708781 | 2021-09-05T01:08:28 | 2021-09-05T01:08:28 | 303,857,648 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # “百鸡百钱”问题
# 是一个有名的数学问题,出自《张丘建算经》。其内容是:
# 公鸡5文钱1只,
# 母鸡3文钱1只,
# 小鸡3只1文钱,
# 用100文钱买100只鸡,其中公鸡、母鸡和小鸡都必须有,
# 问公鸡、母鸡和小鸡各多少只?
money = 100 # 一共100文钱
num = 100 # 一共100只鸡
cock_price = 5 # 公鸡价格5文
hen_price = 3 # 母鸡价格3文
chick_price = 3 # 3只小鸡1文
for cock_num in range(1, money // cock_price + 1): # 公鸡只数可能为1-20
for hen_n... | [
"XHM,1024cj"
] | XHM,1024cj |
54fd5dc3bc286cccf4c6d9ba9a7ddc091dcb1d07 | 4b0c57dddf8bd98c021e0967b5d94563d15372e1 | /run_MatrixElement/test/crabConfigFiles/crab_STopT_T_JESUp_cfg.py | c094b1e645d7a28aef753031438be4d92f8c137b | [] | no_license | aperloff/TAMUWW | fea6ed0066f3f2cef4d44c525ee843c6234460ba | c18e4b7822076bf74ee919509a6bd1f3cf780e11 | refs/heads/master | 2021-01-21T14:12:34.813887 | 2018-07-23T04:59:40 | 2018-07-23T04:59:40 | 10,922,954 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'run_MatrixElement_STopT_T_JESUp'
config.General.transferOutputs = True
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'PrivateMC'
config.JobType.s... | [
"aperloff@physics.tamu.edu"
] | aperloff@physics.tamu.edu |
556b24d6265074e5934dfa15c924c83202d587df | ff5d50f40629e50794a1fd4774a9a1a8ce3a2ecd | /controles/migrations/0001_initial.py | 5a23d36747b966a639429842817c16424b62b0fd | [] | no_license | thiagorocha06/mairimed | 0d9de3db03ff073de431c0d40e16b3c1c5b1d3fe | 6705e36b52410823c04b41db58e8f0b6b3f30b85 | refs/heads/master | 2022-12-13T07:37:49.619189 | 2018-12-30T16:03:49 | 2018-12-30T16:03:49 | 109,196,690 | 0 | 0 | null | 2022-12-08T02:23:39 | 2017-11-01T23:56:20 | Python | UTF-8 | Python | false | false | 2,743 | py | # Generated by Django 2.0.7 on 2018-10-18 21:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"thiagorocha06@gmail.com"
] | thiagorocha06@gmail.com |
16528ea339ae9b698b0ceb7e36bc37dfd763c35a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_293/ch147_2020_04_26_03_40_37_343598.py | ffa76dab8a358a07959763021cc31259573a94f1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | def mais_frequente(lista):
dic = {}
mais_freq = 0
for e in lista:
if e not in dic:
dic[e] = 1
else:
dic[e] += 1
if mais_freq < dic[e]:
mais_freq = dic[e]
a = e
return a | [
"you@example.com"
] | you@example.com |
22b207801f06c41467931b863d2751b9314ccccd | 6ed01f4503fc9de234a561c945adff7cf4b1c81b | /ncar_lib/lib/frameworks.py | d00ac877a2c94b3b7ffa1bceab14ddcb9f7de3be | [] | no_license | ostwald/python-lib | b851943c913a68424a05ce3c7b42878ff9519f68 | 9acd97ffaa2f57b3e9e632e1b75016549beb29e5 | refs/heads/master | 2021-10-28T06:33:34.156095 | 2021-10-21T23:54:49 | 2021-10-21T23:54:49 | 69,060,616 | 0 | 1 | null | 2018-06-21T16:05:30 | 2016-09-23T21:04:46 | Roff | UTF-8 | Python | false | false | 6,986 | py | """
classes for reading library_dc and webcat XML records
"""
import os, sys, re, codecs
from JloXml import XmlRecord, XmlUtils
import globals
class NCARRec (XmlRecord):
"""
assumes a flat metadata structure (all fields are children of docRoot)
"""
field_list = None
id_field = None
description_field = None
x... | [
"ostwald@ucar.edu"
] | ostwald@ucar.edu |
7d2b7099645047f346ca3482c84e6f3449782ee8 | 767e864a1b1a2722b4952fb5034a776064b2ef64 | /sentry_youtrack/youtrack.py | 392e297142606b6935d89406888fa5f14f6bb367 | [] | no_license | pombredanne/sentry-youtrack | 18403a9c218e65bc044cfa6244f1fe63fd298638 | 1d1b11aeaf63299c8b1aa83a814d708c23d9cb8a | refs/heads/master | 2021-01-22T09:09:55.134392 | 2013-11-04T22:50:08 | 2013-11-04T22:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | import requests
from BeautifulSoup import BeautifulStoneSoup
class YouTrackError(Exception):
pass
class YouTrackClient(object):
LOGIN_URL = '/rest/user/login'
PROJECT_URL = '/rest/admin/project/<project_id>'
PROJECTS_URL = '/rest/project/all'
CREATE_URL = '/rest/issue'
ISSUES_URL = '/rest/i... | [
"adam@bogdal.pl"
] | adam@bogdal.pl |
debadb1000b285c673c11ca3b02952361c6269a6 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/object_init-10.py | d1da68d96efe52d99bed5413918cba60abbfd04d | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | class A(object):
$TypedVar = 42
class B(A):
b:bool = True
def __init__(self:"B"):
print("B")
B()
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
ad0979e6aca66c863e3842d3e0935bfb6eda761d | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/dice-roll-simulation/395113484.py | 4bebf6dda3ade473f97b66109b045114c3d4405d | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | # title: dice-roll-simulation
# detail: https://leetcode.com/submissions/detail/395113484/
# datetime: Sun Sep 13 22:57:31 2020
# runtime: 120 ms
# memory: 14 MB
class Solution:
def dieSimulator(self, n: int, rollMax: List[int]) -> int:
MOD = 10 ** 9 + 7
dp =collections.deque([[1] * 6 for i in rang... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
714411dc03e2aaedad3968d900b044a60fada680 | 189e14e07571b4d5720f01db73faaaef26ee9712 | /dj/dj/settings.py | e0d57bfd76c00098690ab693bede6126bd0d0bff | [] | no_license | italomaia/mylittlework | d7e936fa3f24f40ea6a95e7ab01a10208036f439 | f6d0aacec46f8c2adb429626fff0532e8939b8b8 | refs/heads/master | 2021-01-19T19:13:48.605376 | 2017-04-10T02:01:10 | 2017-04-10T02:01:10 | 86,644,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | """
Django settings for dj project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
# Bui... | [
"italo.maia@gmail.com"
] | italo.maia@gmail.com |
0be35c239f203a478a140f9a2e835f4a4f7ae5d7 | d19c695ab6a3f470412cd90a84c028d555bf7f03 | /Usernames/un.py | 1acf677bee02b702e127c2e5ff7805397db3d215 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | XanderRiga/reddit | 696a38fd0ca3862484645604cf7f0a859235519e | 5ce75bda6a8ccc57d3c01342f502a6d32ce9cb54 | refs/heads/master | 2020-12-06T17:22:18.105205 | 2015-12-21T22:49:52 | 2015-12-21T22:49:52 | 48,395,160 | 0 | 0 | null | 2015-12-21T21:31:07 | 2015-12-21T21:31:06 | null | UTF-8 | Python | false | false | 22,402 | py | #/u/GoldenSights
import datetime
import praw
import random
import requests
import sqlite3
import string
import sys
import time
import traceback
sql = sqlite3.connect('C:/git/reddit/usernames/un.db')
cur = sql.cursor()
cur.execute('''
CREATE TABLE IF NOT EXISTS users(
idint INT,
idstr TEXT,
created INT... | [
"edalool@yahoo.com"
] | edalool@yahoo.com |
18ef80dd2de67a6233f311d3e3f208441538b880 | d737fa49e2a7af29bdbe5a892bce2bc7807a567c | /software/qt_examples/src/pyqt-official/painting/painterpaths.py | 71c45fc5a6d7b0abe3471e2fbfd81fca085adbb7 | [
"MIT",
"CC-BY-NC-SA-4.0",
"GPL-1.0-or-later",
"GPL-3.0-only"
] | permissive | TG-Techie/CASPER | ec47dfbfd6c3a668739ff4d707572e0b853518b4 | 2575d3d35e7dbbd7f78110864e659e582c6f3c2e | refs/heads/master | 2020-12-19T12:43:53.825964 | 2020-01-23T17:24:04 | 2020-01-23T17:24:04 | 235,736,872 | 0 | 1 | MIT | 2020-01-23T17:09:19 | 2020-01-23T06:29:10 | Python | UTF-8 | Python | false | false | 11,019 | py | #!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2013 Riverbank Computing Limited.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is part of the examples of PyQt.
##
## $QT_BEGIN_LICENS... | [
"TGTechie01@gmail.com"
] | TGTechie01@gmail.com |
1f1772421914f015926ea0d471a316d3cdc7ee23 | 766da3ffcbd26e7f58d711f5b0e7312cb365e9fb | /framework/utils/time_meter.py | d1d9c26db12e5b47cb70fb745317ca636bd3c553 | [
"MIT"
] | permissive | RobertCsordas/ndr | 1277b353eb61267e023b671072730bdc7e779ca5 | da20530dfb4336deddfbe5e79d62e72d1dc2580e | refs/heads/master | 2023-09-02T22:38:57.601098 | 2021-11-19T09:52:23 | 2021-11-19T09:52:23 | 414,588,414 | 20 | 4 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | import time
class ElapsedTimeMeter:
def __init__(self):
self.reset()
def start(self):
self.start_time = time.time()
def _curr_timer(self) -> float:
if self.start_time is None:
return 0
return time.time() - self.start_time
def stop(self):
self.sum... | [
"xdever@gmail.com"
] | xdever@gmail.com |
e8eab1a20e20aaa2466c43899cd2dbc957cfe1d7 | e3afb1720da16d9437b58ee3839e6184f521d9ee | /05_POST/main.py | 0a316d92d7b61e1ce6515e37c63d58b583fe4ed9 | [] | no_license | jaisenbe58r/APIs_Python | 1517d0bafa7a97bd460292514784105b9b005529 | afae603b2a2df86e65b06b9967c4960835767ae5 | refs/heads/master | 2021-04-11T12:43:16.883269 | 2020-03-21T17:05:26 | 2020-03-21T17:05:26 | 249,022,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import requests
import os
import json
if __name__ == '__main__':
url = "https://httpbin.org/post"
payload = {'nombre':'Jaime', 'curso':'python', 'nivel':'intermedio'}
response = requests.post(url, data = json.dumps(payload))
if response.status_code == 200:
print(response.content) | [
"jsendra@autis.es"
] | jsendra@autis.es |
1b68bf740ed1005e4796f4811ed3a0fb17945fc6 | f8bbdfb112618136fc4adccb03ce25fbfc48bff5 | /panel/module/management_ranking/CustomProcesses/ScoreCompilingProcess.py | 7f3e9d1df3d356a08670fc04958730bb997eec4e | [] | no_license | lazypanda10117/CICSA-Ranking-Platform | 160973987b533ede6e0b94af29b5bc85646b2bc0 | d5f6ac64a1f85c3333c71a7d81749b49145b9a16 | refs/heads/master | 2022-12-09T23:21:28.649252 | 2020-04-28T22:53:07 | 2020-04-28T22:53:07 | 133,093,367 | 3 | 2 | null | 2021-09-22T17:51:39 | 2018-05-11T22:14:01 | Python | UTF-8 | Python | false | false | 1,607 | py | from django.shortcuts import redirect
from django.shortcuts import reverse
from misc.CustomFunctions import RequestFunctions
from api.model_api import EventAPI
from api.model_api import SummaryAPI
from panel.module.base.block.CustomProcesses import AbstractBaseProcess
class ScoreCompilingProcess(AbstractBaseProcess)... | [
"jeffreykam0415@gmail.com"
] | jeffreykam0415@gmail.com |
1a58f3399d6440b08b067dfb5c463b434e8e21a5 | 6a423fba995b1106086998477eb2bbd1953d3e70 | /js_events/cms_menus.py | 8bf76b09548418fb76b73807dc14013811acb02c | [] | no_license | compoundpartners/js-events | c94addf5c3d4440ed3d170b1232d753120b92262 | 3d2798c6e197cce96d246305642fed1002ce67f7 | refs/heads/master | 2023-08-09T05:52:03.545468 | 2023-07-24T15:06:36 | 2023-07-24T15:06:36 | 170,514,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
try:
from django.core.urlresolvers import NoReverseMatch
except ImportError:
# Django 2.0
from django.urls import NoReverseMatch
from django.utils.translation import (
get_language_from_request,
ugettext_lazy as _,
)
from cms.menu_ba... | [
"evgeny.dmi3ev@gmail.com"
] | evgeny.dmi3ev@gmail.com |
c5af36d24bce66eace96ce089931f566d69ce2bc | 7860d9fba242d9bdcb7c06c32ee4064e4a7fa2f1 | /litex_boards/platforms/trenz_max1000.py | 9772cf7130da1dc27fbf2845ca2f848cf350ffce | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | litex-hub/litex-boards | ef1f200fd6d34c96621f4efa094ede874f4c34ab | b92c96b3a445fde31037f593a40fe621f85cb58c | refs/heads/master | 2023-09-03T15:09:11.198560 | 2023-08-30T15:22:11 | 2023-08-30T15:22:11 | 191,191,221 | 291 | 283 | BSD-2-Clause | 2023-09-03T20:32:58 | 2019-06-10T15:09:10 | Python | UTF-8 | Python | false | false | 4,043 | py | #
# This file is part of LiteX-Boards.
#
# Copyright (c) 2019-2021 Antti Lukats <antti.lukats@gmail.com>
# SPDX-License-Identifier: BSD-2-Clause
#
# http://trenz.org/max1000-info
from litex.build.generic_platform import *
from litex.build.altera import AlteraPlatform
from litex.build.altera.programmer import USBBlaste... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
b8d06a8e1b6fd0756d5f515307ecef361a32c7f9 | 4bd555bc662b8182a2e7644976bfdb00ed5e1ebe | /PythonistaAppTemplate/PythonistaKit.framework/pylib_ext/sympy/logic/utilities/dimacs.py | bc3b091d40e5b4892e961122c7f6f09c982cc07c | [] | no_license | fhelmli/homeNOWG2 | a103df1ef97194dec9501dbda87ec1f7c111fb4a | e794fd87b296544542fd9dc7ac94c981c6312419 | refs/heads/master | 2020-04-04T13:40:20.417769 | 2019-01-30T21:41:04 | 2019-01-30T21:41:04 | 155,970,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | #import pythonista
"""For reading in DIMACS file format
www.cs.ubc.ca/~hoos/SATLIB/Benchmarks/SAT/satformat.ps
"""
from __future__ import print_function, division
from sympy.core import Symbol
from sympy.logic.boolalg import And, Or
import re
def load(s):
"""Loads a boolean expression from a string.
Exa... | [
"tberk@gmx.at"
] | tberk@gmx.at |
57ed5ba90da3aa7395be14a2b86bb1c3a1d84f41 | 10c9ef03f6916f9596d18ecc28c0c73f548017ad | /manage.py | e59608d55b3e953ea1e3a79cf395e6127c56395b | [] | no_license | WinningAddicted/website-Django | 2127756b1b9ca6389e79822f9df59207ea9a1d46 | 79bef48f408df9123d28840fba1179710a9f7b38 | refs/heads/master | 2021-01-11T01:10:12.765425 | 2016-10-25T13:07:59 | 2016-10-25T13:07:59 | 71,049,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "yatharth.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"="
] | = |
db32911df7ddf0cec04b14d0424f03ec7969dcaa | 0bad722e38038bdc5bf86970e1b69bd41dcd4974 | /exp/exp010.py | 19d2b1c9e153ab23135f113b8b344e0dff548475 | [] | no_license | Kitsunetic/commonlit | b66f0b89a10d2f59c3cee00ee3b5c08a1434589b | 8781139c8ed4cc59f7c7ac9d97c72c351ee91377 | refs/heads/master | 2023-07-03T00:27:11.126056 | 2021-08-03T01:49:40 | 2021-08-03T01:49:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,854 | py | import torch
from torch import nn
from torch.utils.data import DataLoader, Dataset
from torch.nn import functional as F
from pytorch_lightning.core.lightning import LightningModule
import pandas as pd
import dataclasses
from transformers import AutoTokenizer, AutoModel
import pytorch_lightning as pl
from transformers i... | [
"kurupical@gmail.com"
] | kurupical@gmail.com |
296fcbafb9e14304b02ae171edcc38f915888c75 | 59f0fde411ca668b874fa6fa6001069b9146f596 | /src/blog/migrations/0001_initial.py | 84fd012107ea912917ff84da08179642506c4756 | [] | no_license | nabilatajrin/django-blog-application | 4c256755fc31b41f609b44a5329fb128d46c5fa1 | 7971f8f7d8b3b442fbd4530bc0f32dff7865adcc | refs/heads/master | 2020-12-06T16:09:00.310415 | 2020-11-03T05:37:34 | 2020-11-03T05:37:34 | 232,503,248 | 0 | 0 | null | 2020-01-08T07:24:39 | 2020-01-08T07:19:38 | Python | UTF-8 | Python | false | false | 474 | py | # Generated by Django 2.2 on 2020-01-09 01:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog1Post',
fields=[
('id', models.AutoField(... | [
"nabilatajrin@gmail.com"
] | nabilatajrin@gmail.com |
339639d4a52ad804b5f0d74045f5f8bc6b486ab6 | c94f888541c0c430331110818ed7f3d6b27b788a | /ak_05b080ffa82d4d06b1e7a357a34277ba/python/setup.py | 3c6ee05721510fdc60c55feb4c7cd7b6f1706b3b | [
"Apache-2.0",
"MIT"
] | permissive | alipay/antchain-openapi-prod-sdk | 48534eb78878bd708a0c05f2fe280ba9c41d09ad | 5269b1f55f1fc19cf0584dc3ceea821d3f8f8632 | refs/heads/master | 2023-09-03T07:12:04.166131 | 2023-09-01T08:56:15 | 2023-09-01T08:56:15 | 275,521,177 | 9 | 10 | MIT | 2021-03-25T02:35:20 | 2020-06-28T06:22:14 | PHP | UTF-8 | Python | false | false | 2,650 | py | # -*- coding: utf-8 -*-
"""
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
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
bce1e3aee1f648f85291bf76517e5522f6502ef0 | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0056_Merge_Intervals/__init__.py | 5304b1da2e9a95667938b3f5520a802216339283 | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 298 | py | ID = '56'
TITLE = 'Merge Intervals'
DIFFICULTY = 'Hard'
URL = 'https://oj.leetcode.com/problems/merge-intervals/'
BOOK = False
PROBLEM = r"""Given a collection of intervals, merge all overlapping intervals.
For example,
Given `[1,3],[2,6],[8,10],[15,18]`,
return `[1,6],[8,10],[15,18]`.
"""
| [
"romain_li@163.com"
] | romain_li@163.com |
38b74240c0ac72b22bbb1077080fc560750aedf1 | 43c24c890221d6c98e4a45cd63dba4f1aa859f55 | /test/cpython/test_gdbm.py | f4a1592118780e9bdae368559dda1f7f9c485ac2 | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jmgc/pyston | c8e4df03c33c6b81d20b7d51a781d9e10148238e | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | refs/heads/master | 2020-12-11T07:51:58.968440 | 2020-09-11T14:38:38 | 2020-09-11T14:38:38 | 39,242,644 | 0 | 0 | NOASSERTION | 2020-09-11T14:38:39 | 2015-07-17T08:09:31 | Python | UTF-8 | Python | false | false | 40 | py | ../../from_cpython/Lib/test/test_gdbm.py | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
cf139f390e7f58784c0fcf319c590eff3ad17f0e | 556403cb93b2fdd464c3aef4cba4f1c3dc42e9d7 | /AutomationProject/demo/getTestname.py | 1e04817bef4bb45df162c33780e2b5c0aac891af | [] | no_license | msivakumarm/PycharmProjects | 4d90a0105f334f2393d30fe46dc650808002b4fd | 7d84194a576f9ec8356ff272642d07dbddc48d42 | refs/heads/master | 2020-09-06T14:42:12.945424 | 2019-11-08T11:42:14 | 2019-11-08T11:42:14 | 219,989,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import inspect
# functions
def whoami():
return inspect.stack()[1][3]
def myfunc():
x=whoami()
print(x)
myfunc() | [
"sivakumarm.mamillapalli@gmail.com"
] | sivakumarm.mamillapalli@gmail.com |
949d8a85b10490cceaf3bf00e17d2898bd3f6164 | 48d820d4bd6a433c2b0fdb0dcb7657b62db050bf | /Training_Work/ODOO_C_MODULE_BACKUPS/new_app/controllers/controllers.py | 3d7cfd1ee67329ccccc1c9ed2fdf8fe04ca77a97 | [] | no_license | dhruv-aktiv/training_task_data | 1a30580a512aa4831fb547b250faffff11f7e008 | 3d8b25ca812e876a484d387fc57272257322c85f | refs/heads/master | 2023-06-07T07:06:04.193576 | 2021-07-01T04:37:13 | 2021-07-01T04:37:13 | 381,908,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # -*- coding: utf-8 -*-
# from odoo import http
# class NewApp(http.Controller):
# @http.route('/new_app/new_app/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/new_app/new_app/objects/', auth='public')
# def list(self, **kw):
# return http.request.r... | [
"dhruv.s@icreativetechnolabs.com"
] | dhruv.s@icreativetechnolabs.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.