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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a19af9a0fadedcb4bd7e45597b3e62571e51821 | 3c6b0521eb788dc5e54e46370373e37eab4a164b | /holistic_eval/roberta_mnli/examples/scripts/scripts/run_experiment.py | 9d5f149859a049824f329d3eeca723f861738f66 | [
"Apache-2.0"
] | permissive | y12uc231/DialEvalMetrics | 7402f883390b94854f5d5ae142f700a697d7a21c | f27d717cfb02b08ffd774e60faa6b319a766ae77 | refs/heads/main | 2023-09-02T21:56:07.232363 | 2021-11-08T21:25:24 | 2021-11-08T21:25:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | import os
import smtplib
from email.mime.text import MIMEText
mail_host = 'smtp.163.com'
mail_user = 'aigu3525'
mail_pass = 'WOaibaobao'
sender = 'aigu3525@163.com'
receivers = ['liuyixian0317@gmail.com']
def run_training(ex_title, type, paras_dict, node, GPU, logger=None , print_=False):
print('_'*100)
if ty... | [
"yitingye@cs.cmu.edu"
] | yitingye@cs.cmu.edu |
71e14762493667ad2bae0d74ce90bd364e9333a7 | 780183a7842ad548703f3a62be0d1413fc901254 | /frappe/frappe/sessions.py | f2c5efe8e3fb2c2bf63699f3729c398fb244d934 | [
"MIT"
] | permissive | Shreyasnaik01/Library-Management | 9ab49281fd331d73c85c0d6f15797be97ecdbfc4 | 8bda4131309897c22e2fcbc54b402aded35a5523 | refs/heads/master | 2023-08-29T02:36:15.972349 | 2021-10-19T13:43:43 | 2021-10-19T13:43:43 | 418,891,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,260 | py | # Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
"""
Boot session from cache or build
Session bootstraps info needed by common client side activities including
permission, homepage, default variables, system defaults etc
"""
im... | [
"you@example.com"
] | you@example.com |
53b6f743c52e16229449c9f99dc18438957c017f | 4290daae480aabfc35c85374a468085a6fa1a1ac | /ctt-server/openapi_server/test/test_result_controller.py | 652d6ffdfa52d2b04f99be41db1f222c6a23aec6 | [
"Apache-2.0"
] | permissive | pjakovits/radon-ctt | 01c8bc760372f6887798722c291674971b10a86d | 8c73e05a83ef66bd6e9dba6608d2bee089df7e86 | refs/heads/master | 2021-05-20T19:13:35.919410 | 2021-03-28T17:07:20 | 2021-03-28T17:07:20 | 252,386,523 | 0 | 0 | Apache-2.0 | 2020-04-02T07:34:24 | 2020-04-02T07:34:23 | null | UTF-8 | Python | false | false | 2,596 | py | # coding: utf-8
from __future__ import absolute_import
import unittest
from flask import json
from six import BytesIO
from openapi_server.models.result import Result # noqa: E501
from openapi_server.test import BaseTestCase
class TestResultController(BaseTestCase):
"""ResultController integration test stubs""... | [
"duellmann@iste.uni-stuttgart.de"
] | duellmann@iste.uni-stuttgart.de |
a8612ac222aae209f9c985d771c92a8900557d7e | f76e8b03862264731be92bc16e4ced7b7e078b0a | /instagram/urls.py | 64a8b30ddbdcb0ea06908f107e67a02fbccf2f17 | [
"MIT"
] | permissive | bryomajor/instalite | b8d400d6b1ecc337e5008ddd6738e8df4653df05 | c3854b30235960fae89682c55c88637fb8fb05ad | refs/heads/master | 2022-12-11T15:06:32.222163 | 2021-04-07T10:13:46 | 2021-04-07T10:13:46 | 221,914,550 | 0 | 1 | MIT | 2021-06-10T22:16:42 | 2019-11-15T11:54:53 | Python | UTF-8 | Python | false | false | 1,134 | py | from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
url(r'^home/', views.timeline, name = 'index'),
url(r'^$', views.home, name = 'home'),
url(r'^signup/$', views.signup, name = 'signup'),
url(r'^activate/(?P<u... | [
"bryomajor@gmail.com"
] | bryomajor@gmail.com |
2c5ad861fcce9b4203e5ff1c9b6fbdabf1e10047 | 7c0ac74b1215a5e53698924b69b89221fec0cfd6 | /torch_geometric/utils/matmul.py | 8e8f4bb6aaea1430f1a94da1c9239473e4b18be1 | [
"MIT"
] | permissive | ZackPashkin/pytorch_geometric | b30c1a220f3f5f593ec4ac12b696f2cac1ae4e0a | 3663a96c8e649af46c29a32beb03f49cc97f5b86 | refs/heads/master | 2020-03-20T09:33:51.497347 | 2019-03-19T05:07:30 | 2019-03-19T05:07:30 | 137,341,025 | 0 | 0 | null | 2018-06-14T10:05:30 | 2018-06-14T10:05:29 | null | UTF-8 | Python | false | false | 415 | py | from torch_scatter import scatter_add
def matmul(index, value, tensor):
tensor = tensor if tensor.dim() > 1 else tensor.unsqueeze(-1)
assert (value is None or value.dim() == 1) and tensor.dim() == 2
row, col = index
out_col = tensor[col]
out_col = out_col if value is None else out_col * value.uns... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
54dfda9b7aa9d7fa1d61f506b4266155a7266e1a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/294/80466/submittedfiles/testes.py | 9d7f6042a7d4b71cbfecc32848c07dbb8ef2064f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
nome= str(input('Qual o seu nome? '))
print('Olá' +nome+ 'seja bem vinda!') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5ffb982e62eb751b952318b60fb800f712713ca9 | f3f732881b813dd5d6e1239618f5d4d6bb394db7 | /160.intersectionLinkedList.py | 6fc29a7e0f2285d1531677f1a175803bb8ec1e0d | [] | no_license | umnstao/leetcodeOJ | 45917528abb693fa23678356497267e4ce571a4f | f7cb7cfa6e1f04efd741c2456ad930db48101573 | refs/heads/master | 2021-01-21T14:57:22.257064 | 2017-11-22T22:57:48 | 2017-11-22T22:57:48 | 95,362,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def getIntersectionNode(self, headA, headB):
"""
:type head1, head1: ListNode
:rtype: ListNode
"""
lenA = 0
... | [
"umnstao@gmail.com"
] | umnstao@gmail.com |
e3927f2bbe1447e57c5f9862e6bdbbed472c3f4d | ef72a7df3c39c215dd90ac5e72b164eb9d7da892 | /rpg/monsters/imp.py | b23f023017e8acdf3b1f1eebfbf51bb93c44f41b | [] | no_license | thebmo/messing_around | d49a87fc1ff722428ea67bc710ca99ad287098bd | 4cb12e0b224cf7d1f93cb4ae6ff7603619fb7aa9 | refs/heads/master | 2021-01-13T02:18:50.799898 | 2015-04-08T01:12:41 | 2015-04-08T01:12:41 | 28,570,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | """
Imp monster sub-class of parents Monster and NPC.
"""
from monster import Monster
from npc import NPC
class Imp(Monster, NPC):
NAME = 'Imp'
STATS = {
'STR': 5,
'AGI': 3,
'INT': 1,
'CHA': 0,
'LCK': 0,
'max_hp': 6,
'max_ap': 1,
'... | [
"bmosier@gmail.com"
] | bmosier@gmail.com |
10d1bf00d434f01ca2cb8508777a5a075caff03a | fb51a82f51ba4e5f5160358822a6154cc5c9466b | /mrc_utils/json2db/squad_mysql_nia.py | 3179dddc87fae5ee65ad135fee5860c4450a6d07 | [] | no_license | yeongsunpark/good | cc26cda2106117d66ddc3bd89099dcd9d3c952eb | 3e5d510548d2d5e63174490344aa14539d6e8785 | refs/heads/master | 2020-05-02T03:30:38.354551 | 2019-12-04T01:18:33 | 2019-12-04T01:18:33 | 177,730,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,996 | py | import json
import logging
import os, sys
import random
import math
import time
import re
import concurrent.futures
import string
from multiprocessing import Pool
import pymysql
sys.path.append(os.path.abspath('..'))
import custom_logger
from morp_analyze_my import NLPAnalyzer
def return_myself(token):
return t... | [
"ylunar@naver.com"
] | ylunar@naver.com |
247c239100ef619a331be5d46ae4dabbf1f51393 | bf69394cc6015f2c8ac28ae927be2a83b96facf3 | /lib/utils/training_stats.py | 6aff48aa5ddbb6c269cd19eb13e3b1621d6a791a | [
"MIT"
] | permissive | fangyuan-ksgk/Detectron.pytorch | bf1133b73763ec682b4f219a857e81515d86ebf5 | e8dfb86fbc68d30b9f443bc6aec722c5e4ce301e | refs/heads/master | 2023-03-16T04:48:22.648717 | 2018-04-30T14:54:28 | 2018-04-30T14:54:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,618 | py | #!/usr/bin/env python2
# Copyright (c) 2017-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"roytseng.tw@gmail.com"
] | roytseng.tw@gmail.com |
58387329bb15b94260f2528c77fccfb21cdb8190 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /SqbyWYwqChQroXfhu_23.py | 85771451090fc8484ee47a515d24c515837f537c | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | """
This challenge concerns _square matrices_ (same number of rows and columns) as
the below example illustrates:
[
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]
The entries in the diagonal line from the top left to the bottom right form
the _main diagonal_ of the matrix. In this case, 1,5,9 form the... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
788398854e79143d77bd7bcbbc79202a74d49414 | 3e1beedf80c60153482192b086347d0530701c37 | /problem solving/cinema.py | cfee1d1abc3a0f3637d3211ba9876bb01e88668e | [] | no_license | rishi772001/Competetive-programming | ac130bde426844e09a3e5162e279d61278c7c502 | 3493991cac55f225eeee67dd49f1caed8211465c | refs/heads/master | 2023-04-12T14:59:59.447354 | 2021-04-30T05:05:13 | 2021-04-30T05:05:13 | 267,785,820 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # https://leetcode.com/problems/cinema-seat-allocation/
n = 2
booked = [[1,6],[1,8],[1,3],[2,3],[1,10],[1,2],[1,5],[2,2],[2,4],[2,10],[1,7],[2,5]]
theatre = [[0]*10 for i in range(n)]
for i in range(len(booked)):
theatre[booked[i][0] - 1][booked[i][1] - 1] += 1
print(theatre)
count = 0
for i in ra... | [
"noreply@github.com"
] | rishi772001.noreply@github.com |
ff54c9c913e9a0d876744c59e5036fa4992f106c | cbab8b9218b4c7965e6d1dacfb2104e4096c18d1 | /backend/helo_tesrt_dev_2404/urls.py | fbe6d1e20a84147bb29ba5acf7482a6bb158ce79 | [] | no_license | crowdbotics-apps/helo-tesrt-dev-2404 | 480408a7b426413ebaa8803e8e754efae08ea091 | 44599c5058dc7b284bdd3eaba3e38b2b5d5c33db | refs/heads/master | 2023-02-06T01:56:10.488868 | 2020-04-07T15:51:58 | 2020-04-07T15:51:58 | 253,755,570 | 0 | 0 | null | 2023-01-24T01:57:30 | 2020-04-07T10:04:28 | JavaScript | UTF-8 | Python | false | false | 1,929 | py | """helo_tesrt_dev_2404 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a75ea16fc96deba8ed6592b54837c4622da43d54 | b9a2097b1ff526f0f980cb44f321ecdecc071baf | /backend/manage.py | 4772a9003f0358346446794a2b58b87dce416f4e | [] | no_license | crowdbotics-apps/nwh-elkhart-metrics-26614 | ce08c984d6c939b7f7cd5158b5c39fe37be94dcc | e86088482281f83fe789ce0b492e76981df1c08c | refs/heads/master | 2023-05-01T08:17:44.464562 | 2021-05-12T18:42:43 | 2021-05-12T18:42:43 | 366,794,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE", "nwh_elkhart_metrics_26614.settings"
)
try:
from django.core.management import execute_from_command_line
except ImportEr... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c697d125b0367a7834e07b1127c2335e79570e79 | 2dfbb018568209864544375de59a157c8752689a | /skimreads/comments/migrations/0002_auto__del_field_comment_reading__add_field_comment_note.py | 7b339a69401d147362ef5085086bdfaa985c3fb8 | [] | no_license | tommydangerous/skimreads | 7df4bde603c6122f20242d4591357802a4484f9f | 6e73341ab034b52bb48cde4f076948946944d2a9 | refs/heads/master | 2020-05-17T23:20:15.020065 | 2014-09-27T06:28:34 | 2014-09-27T06:28:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,250 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Comment.reading'
db.delete_column('comments_comment', 'reading_id')
... | [
"quantumventuress@gmail.com"
] | quantumventuress@gmail.com |
95085f0f6148d3aeba523e3cba43e37d56a4cc60 | 908336e941d7d95d2ff168f8d132bf5656b87752 | /datasets/weibo_senti_100k/parse.py | ad104fde40447e6e0371f6df42df4903898a6e89 | [] | no_license | cyy0523xc/ChineseNlpCorpus | 364437b5662bc0a138281afc817b375c50a7fecf | a027225e9caf963d0d4e38d96b402ce515505850 | refs/heads/master | 2020-03-22T05:45:09.343135 | 2018-12-18T02:14:08 | 2018-12-18T02:14:08 | 139,587,654 | 2 | 0 | null | 2018-07-03T13:29:28 | 2018-07-03T13:29:27 | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
#
#
# Author: alex
# Created Time: 2018年07月03日 星期二 21时51分54秒
import csv
with open('./weibo_senti_100k.csv', encoding='utf8') as r, \
open('../../format_datasets/weibo_senti_100k/weibo_senti_100k_pos.txt', 'w', encoding='utf8') as pos, \
open('../../format_datasets/weibo_senti_100k/weib... | [
"cyy0523xc@gmail.com"
] | cyy0523xc@gmail.com |
fa6df867465274ac8444a135a311aa00afd86d2c | 48d08e7c20628479ea69b4a1a51f99a3db26c79d | /MathPy/04_sympy_intro.py | 9a8b4683b4bf945cb6a3376f182c1efe1b83b73d | [] | no_license | PyRPy/stats_py | 59ae0975c5b549fb47f7630b1f232caf715fe2ff | 0c87ebf7f84eb7a21bcedb3234170ef220ca2f14 | refs/heads/master | 2022-09-27T21:01:53.316765 | 2022-09-17T01:52:09 | 2022-09-17T01:52:09 | 167,268,454 | 4 | 6 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | from sympy import Symbol
# ------------------Defining Symbols and Symbolic Operations -------------------
x = Symbol('x')
print(x + x + 1)
a = Symbol('x')
print(a + a + 1)
# find the original symbol object
print(a.name)
# define multiple symbols
from sympy import symbols
x, y, z = symbols('x, y, z')
s ... | [
"noreply@github.com"
] | PyRPy.noreply@github.com |
34019fe74d66ee473c9f78d9730d9b933cee8973 | 4007a7626ccb18480e73ac304b0010f6aeba33fb | /proj_preproc/db.py | cb9defbbd56297c1bca17df0cef2ee205afdb103 | [] | no_license | olmozavala/air_pollution_forecast | 68030748b975d463158f1ce7c7f16eb038493ced | 5b543b3f4a190d7ae33a55c4f5b30f56b17347c3 | refs/heads/master | 2023-07-22T15:16:31.166036 | 2023-06-08T18:55:14 | 2023-06-08T18:55:14 | 226,166,662 | 0 | 0 | null | 2023-02-16T18:40:24 | 2019-12-05T18:41:50 | Python | UTF-8 | Python | false | false | 129 | py | def eliminateNonContinuousTimes(data, numhours):
"""It eliminates those 'rows' that do not contain 'numhours' continuously""" | [
"olmozavala@gmail.com"
] | olmozavala@gmail.com |
bdce9ca6acb87cf1e40299efade42b89dec4c38a | 9de27e623c85b0d55da4afe4d843fe321b77954d | /Configuration/Geometry/python/GeometryDD4hepExtended2026D76_cff.py | 1905e4de5a22bdb37bd5f0728b7fe57a842f0dc7 | [
"Apache-2.0"
] | permissive | PFCal-dev/cmssw | a97d566d691bc5ac900e48c632f4e87a005f94a2 | 232187f0f8a201210426312b27a1b62e55b6084c | refs/heads/hgc-tpg-devel-CMSSW_12_0_0_pre3 | 2022-06-01T08:27:39.166655 | 2021-11-23T15:28:18 | 2021-11-23T15:28:18 | 14,498,276 | 4 | 7 | Apache-2.0 | 2022-02-08T11:01:38 | 2013-11-18T16:34:32 | C++ | UTF-8 | Python | false | false | 924 | py | import FWCore.ParameterSet.Config as cms
# This config was generated automatically using generate2026Geometry.py
# If you notice a mistake, please update the generating script, not just this config
from Configuration.Geometry.GeometryDD4hep_cff import *
DDDetectorESProducer.confGeomXMLFiles = cms.FileInPath("Geometry... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
bc47d286fda4479958fbd49dd8f596957c627662 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/application/scoutevent/resultanim.py | e2efa0cc4796d7c81b9432230cea05603a9db449 | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,483 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.util.cabareterror import CabaretError
from platinumegg.app.cabaret.util.api import BackendApi
import settings
from platinumegg.app.cabaret.util.url_maker import UrlMaker
from platinumegg.app.cabaret.views.application.scoutevent.base import ScoutHandler
import urllib
... | [
"shangye@mail.com"
] | shangye@mail.com |
d1059b3e7acad5c413ee529d9f6dcd5d530089a0 | b2135e3fc77666f043f0fbafd0d88ed9865d5b4f | /7183 Python Basics/05 Chapter 1.5 - About Lists/01 List basics/78629_06_code.py | 6793446fdad2714f94b65334724482bacae4071d | [] | no_license | Felienne/spea | 164d05e9fbba82c7b7df8d00295f7157054f9248 | ecb06c66aaf6a2dced3f141ca415be9efb7dbff5 | refs/heads/master | 2020-03-17T17:35:27.302219 | 2018-05-17T10:14:49 | 2018-05-17T10:14:49 | 133,794,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | # What is the length of an empty list?
nothing = []
length = len(nothing)
assertEqual(length, __) | [
"felienne@gmail.com"
] | felienne@gmail.com |
6e6f3dccdbcc5e1215398c4c2605d64ab759adb7 | 4cdf4e243891c0aa0b99dd5ee84f09a7ed6dd8c8 | /python/decorator/12.py | 88fcefe3e80c692e7cf23963349684364a407982 | [
"MIT"
] | permissive | gozeon/code-collections | 464986c7765df5dca980ac5146b847416b750998 | 13f07176a6c7b6ac13586228cec4c1e2ed32cae4 | refs/heads/master | 2023-08-17T18:53:24.189958 | 2023-08-10T04:52:47 | 2023-08-10T04:52:47 | 99,432,793 | 1 | 0 | NOASSERTION | 2020-07-17T09:25:44 | 2017-08-05T15:56:53 | JavaScript | UTF-8 | Python | false | false | 395 | py | #coding=utf-8
# -*- coding=utf-8 -*-
from functools import wraps
def my_decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
'''decorator'''
print('Calling decorated function...')
return func(*args, **kwargs)
return wrapper
@my_decorator
def example():
"""Docstring"""
... | [
"goze.qiu@gmail.com"
] | goze.qiu@gmail.com |
649d76925e81b3a260732ead9f7c2f79e696308d | 9f387c703dbf4d970d0259424c7b299108c369f5 | /dd_sdk_1_0/dd_sdk_1_0/api/ddboost_storage_units_api.py | 9c5ab1a86a2c4d83f0fe5eb6e1108b8fe66de0c0 | [] | no_license | gcezaralmeida/datadomain_sdk_python | c989e6846bae9435c523ab09e230fc12d020f7f1 | e102ec85cea5d888c8329626892347571832e079 | refs/heads/main | 2023-08-23T22:42:47.083754 | 2021-10-25T21:52:49 | 2021-10-25T21:52:49 | 370,805,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,436 | py | # coding: utf-8
"""
DataDomain Rest API Documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolu... | [
"root@s6006st157.petrobras.biz"
] | root@s6006st157.petrobras.biz |
e4b9ae8070fb64421cd1a17b81be4ca33bd507bd | b3b066a566618f49ae83c81e963543a9b956a00a | /Intermediate Data Visualization with Seaborn/04_Creating Plots on Data Aware Grids/04_Building a PairGrid.py | 9a654d32b4feb9d7dc4923d50e47cef330e416b7 | [] | no_license | ahmed-gharib89/DataCamp_Data_Scientist_with_Python_2020 | 666c4129c3f0b5d759b511529a365dfd36c12f1a | f3d20b788c8ef766e7c86c817e6c2ef7b69520b8 | refs/heads/master | 2022-12-22T21:09:13.955273 | 2020-09-30T01:16:05 | 2020-09-30T01:16:05 | 289,991,534 | 2 | 0 | null | 2020-08-24T17:15:43 | 2020-08-24T17:15:42 | null | UTF-8 | Python | false | false | 1,354 | py | """
Building a PairGrid
When exploring a dataset, one of the earliest tasks is exploring the relationship between pairs of variables. This step is normally a precursor to additional investigation.
Seaborn supports this pair-wise analysis using the PairGrid. In this exercise, we will look at the Car Insurance Premium d... | [
"Your-Email"
] | Your-Email |
ed82d43819a50cc8adfb850789934e1c87866bb5 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_sqrt/trend_poly/cycle_0/ar_12/test_artificial_128_sqrt_poly_0_12_100.py | d9d41e9db30a39012110217754bd29484e6124f5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "poly", cycle_length = 0, transform = "sqrt", sigma = 0.0, exog_count = 100, ar_order = 12);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
8e578b5c5e911fbe8995ba795536316e66e5a61b | 0ee72dc1b03070e25d3036bf6b562fc9b809ee72 | /freeze/__init__.py | 18f5610c310bc0963162bfdbec6dfe13797a4bdd | [
"MIT"
] | permissive | fabiocaccamo/django-freeze | d36a9c7a9e197b23fa63dc77f0901aba89e4dfaf | c2d5dfbf38b072d79e1a37489b07e91c8af9461c | refs/heads/main | 2023-08-29T12:50:19.069297 | 2023-07-18T07:35:52 | 2023-07-18T07:35:52 | 44,330,200 | 91 | 19 | MIT | 2023-09-08T13:52:25 | 2015-10-15T16:20:55 | Python | UTF-8 | Python | false | false | 269 | py | from freeze.metadata import (
__author__,
__copyright__,
__description__,
__license__,
__title__,
__version__,
)
__all__ = [
"__author__",
"__copyright__",
"__description__",
"__license__",
"__title__",
"__version__",
]
| [
"fabio.caccamo@gmail.com"
] | fabio.caccamo@gmail.com |
983525aeb3a369cf1bd12f914b3440516b86d99a | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/0670.0_Maximum_Swap.py | 33229f1e40f8b51a167f593d9fa16ce58ddebd89 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | '''
执行用时:36 ms, 在所有 Python3 提交中击败了68.71% 的用户
内存消耗:14.9 MB, 在所有 Python3 提交中击败了49.11% 的用户
通过测试用例:111 / 111
'''
class Solution:
def maximumSwap(self, num: int) -> int:
digits = list(str(num))
s_digits = sorted(digits, reverse=True)
if digits == s_digits:
return num
def max... | [
"838255715@qq.com"
] | 838255715@qq.com |
3c5b293c6d389c7c7dc932dead2e0c0535d49fc5 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/shared/formatters/__init__.py | 95539a9befb1c59e1830abe651b2f06f1e199360 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 776 | py | # 2015.11.10 21:29:02 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/formatters/__init__.py
import BigWorld
from gui.shared.formatters import icons
from gui.shared.formatters import text_styles
from gui.shared.formatters import time_formatters
__all__ = ('icons', 'text_styles', 'time_formatt... | [
"info@webium.sk"
] | info@webium.sk |
3bb2bda63bb05e17d287b72bc50bda27aba736b4 | 18fe3f034f203bc8a22d08f15b29297ebcc7dfaf | /py/qlazypy/lib/densop_mcx.py | e7a3b8c9e9d186908e9c3aa923a516079358fdfc | [
"Apache-2.0"
] | permissive | katou-boop/qlazy | b8802c48b0cba0ba89cc1e1a69f551e0f4fdcc73 | 6b62fff65939a589603af7ed8be921c9f1669bb3 | refs/heads/master | 2023-02-17T12:30:05.419650 | 2021-01-17T23:20:20 | 2021-01-17T23:20:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # -*- coding: utf-8 -*-
from qlazypy.error import *
from qlazypy.config import *
from qlazypy.util import *
# multi-controlled X gate
def __gray_code(de, n):
for k in range(2**n):
yield k^(k>>1)
def densop_mcx(de,qid=[]):
# controled and target register
qid_ctr = qid[:-1]
qid_tar = qid[-1]
... | [
"saminriver33@gmail.com"
] | saminriver33@gmail.com |
6db1394c31c689f64f58cffb4a65caedab7887b6 | 55c46d50ed426a3dccef8c44904df4524de43aa1 | /oldp/apps/cases/api_views.py | ff02e857cdc98c72953bdf206858a565d1bfcd76 | [
"MIT"
] | permissive | docsuleman/oldp | 1a438a9c669a54aab2f76133200e566d627d9668 | 8dcaa8e6e435794c872346b5014945ace885adb4 | refs/heads/master | 2020-06-29T10:45:18.787344 | 2019-08-04T18:21:02 | 2019-08-04T18:21:02 | 200,513,942 | 0 | 0 | MIT | 2019-08-04T17:36:52 | 2019-08-04T16:07:25 | Python | UTF-8 | Python | false | false | 2,439 | py | import coreapi
import coreschema
from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page
from django_filters.rest_framework import DjangoFilterBackend
from drf_haystack.filters import HaystackFilter
from drf_haystack.generics import HaystackGenericAPIView
from rest_fram... | [
"gitlab@i.mieo.de"
] | gitlab@i.mieo.de |
fc696582a78cdd7c5d1899b2b36105b5ae57fb27 | cc2029f40a12e82712072275fc76a07ac59b5940 | /battles/tourneys/20170409_2015.py | 47a50e202ae61271c8e51095af49e9ed277655a0 | [
"MIT"
] | permissive | heitorchang/learn-code | d3fb8e45d539d302372126fe28e85032590b5707 | 5e6e56f7257de1910830619c01d470e892d7f9d8 | refs/heads/master | 2023-08-09T13:46:18.623772 | 2023-07-21T16:57:11 | 2023-07-21T16:57:11 | 147,522,837 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | from math import log
description = """
You are playing a number guessing game with your friend. Your friend thought of some integer x from 1 to n. In order to guess the number, you can ask two types of questions:
"is x smaller or equal to a?" for some integer a;
"is x greater or equal to a?" for some integer a.
If th... | [
"heitorchang@gmail.com"
] | heitorchang@gmail.com |
1f9b109192968687be953ae31ed89405140c4775 | 4a63e96d7015e3e13d9b5204fc0261c05f600d3b | /Standard Library/tempfile/app.py | 7fc029dac7ed9b6e14fd7f28165dcf25da70c0c0 | [
"Apache-2.0"
] | permissive | shubhamnag14/Python-Documents | 0e38f58298d35b4df5b61adb361d720337148a00 | d3fee0ad90232b413f6ac1b562588fb255b79e42 | refs/heads/master | 2023-06-08T23:51:26.089840 | 2021-06-20T15:07:44 | 2021-06-20T15:07:44 | 380,832,776 | 0 | 0 | Apache-2.0 | 2021-06-27T20:33:08 | 2021-06-27T20:31:41 | null | UTF-8 | Python | false | false | 320 | py | import tempfile
def one():
file = tempfile.mkstemp()
with open(file[1], 'w+') as f:
f.write("This is a test")
f.seek(0)
print(f.read())
print(tempfile.gettempdir())
print(tempfile.gettempdirb())
print(tempfile.gettempprefix())
print(tempfile.gettempprefixb())
print(tempfile.tempdir)
| [
"subhadeep@klizos.com"
] | subhadeep@klizos.com |
7c21708c07f793fe8b7ea0a740e301f39cdba0f3 | 00ce7b1e677abbfe7912a472e74b3fab92b9fc50 | /Data_processing/MNIST/checkSource.py | 0ca2d86a677aa1ee43da5cc7832283efb90ac5f8 | [] | no_license | Xharlie/MultiGen | a19b8cd76bc1933773411d69200e86bf1ba8ed74 | e3e646289249ce9418fb40f5a246310ac37e9a96 | refs/heads/master | 2021-01-22T10:56:16.432939 | 2017-12-02T03:34:41 | 2017-12-02T03:34:41 | 82,051,628 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | import h5py
from PIL import Image
import numpy as np
DIGIT=2
FORM=4
COLOR=0
TRANSFORM=1
def check():
imgArray = []
with h5py.File('../../Source/MNIST/all_info.h5', 'r') as f:
imgArray = f['data']
segm = f['segm']
digit = f['digit']
form = f['form']
color = f['color']
transform = f['transfo... | [
"charlie.xu007@yahoo.com"
] | charlie.xu007@yahoo.com |
8f0f47ef704ca1bf13b6b054d960ad79eb855848 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_02_01/aio/operations/_operations.py | 8379386a6db3839f741ead07cbbbe9c6844a901e | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 4,659 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
c1ea1c2df956749c6deeb18f05376f849453d2e6 | 3c3c274f266736c97dc14608511f039e65e31694 | /chalicelib/auth.py | ad8d2d2a8ff3cc74580968dde491e1779e63a446 | [] | no_license | craymaru/chalice-todoapp-training | b2de9a7bff52ae3675a36ac44c7886a003199c7c | 5a3229f3f4d185457812777432bd99adb9b7c56a | refs/heads/master | 2023-01-11T18:03:50.712684 | 2020-11-18T04:29:34 | 2020-11-18T04:29:34 | 313,465,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | import hashlib
import hmac
import datetime
from uuid import uuid4
import jwt
from chalice import UnauthorizedError
# TODO: Figure out what we want to do with this.
# We can either move this out to env vars in config.json,
# use KMS to encrypt/decrypt this value, or store this in SSM.
# Until we figure it out I'll st... | [
"craymaru@gmail.com"
] | craymaru@gmail.com |
a7b55848abbb88a94997e6304eb564af957d682f | e012ac032de8bf5bf880d4917fb6329f99f47d2b | /grdient_decent.py | 13306f92fd7645e6b5595b881733dbdf2c385b6e | [] | no_license | janakiraam/ML-ToyProbelm | d1d0b8ffe55fb68cea22ea2326be3aeb23e64423 | f8775ebce8f6b464e023bda92890fc30bcf923e6 | refs/heads/main | 2023-03-15T11:06:32.252230 | 2021-03-13T17:19:08 | 2021-03-13T17:19:08 | 341,291,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import numpy as np
def gradient_decent(x,y):
m_curr=0
b_curr=0
iteration=100
n = len(x)
learning_rate=0.001
for i in range(iteration):
y_predict=m_curr*x+b_curr
md=-(2/n)*sum(x*(y-y_predict))
bd=-(2/n)*sum(y-y_predict)
m_curr=m_curr - learning_rate*... | [
"noreply@github.com"
] | janakiraam.noreply@github.com |
4cd37584ef4a0d01cd88ff800395b7ab860f7b52 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /problems/0530.0_Minimum_Absolute_Difference_in_BST.py | 93ad4e5a1a70ef0a7e5a3df60900e33c8cd38472 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | '''
Runtime: 99 ms, faster than 5.10% of Python3 online submissions for Minimum Absolute Difference in BST.
Memory Usage: 18.5 MB, less than 69.94% of Python3 online submissions for Minimum Absolute Difference in BST.
'''
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=... | [
"laoxing201314@outlook.com"
] | laoxing201314@outlook.com |
dd6b99605f2ad07b00b76fab12d2dfa0ec787223 | 0f949dc62b728b2cf6e0e172eb7c1cc31012244d | /script/tft_touch.py | 5190129c1503eb022011cef240009dfb42cc3187 | [
"MIT"
] | permissive | jeguzzi/mt_screen | 74c4314012ddb9471650d8b1f10c889265101f92 | f06ea6404474e8a71a4d61ec381a6e99e03e0ebb | refs/heads/master | 2020-03-19T09:39:44.114549 | 2018-06-06T09:46:05 | 2018-06-06T09:46:05 | 136,307,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | #!/usr/bin/env python
from __future__ import division
import threading
import evdev
import rospy
import wiringpi2 as wp
from evdev.ecodes import ABS_X, ABS_Y, BTN_TOUCH, EV_ABS, EV_KEY
from sensor_msgs.msg import Joy
from std_msgs.msg import Bool
KEYS = [1, 4, 5]
IN = 0
OUT = 1
class TFTouch(object):
def __i... | [
"jerome@idsia.ch"
] | jerome@idsia.ch |
4de44a5b5d1cf08e40c04309c6c96b326fff5031 | c3179dc6c11770fe877d9b08bebd28448ee66ba8 | /mtdnn/tasks/utils.py | 0e80a8d2a9db50028038b3cf4486bcfa8fe6d561 | [
"MIT"
] | permissive | microsoft/MT-DNN | 2a0f102916a1b092f25b4999834177bd38319c53 | e5c3e07f3a8e55067433714ce261a6d28ba73d22 | refs/heads/master | 2023-06-29T23:57:42.108328 | 2020-07-02T02:22:06 | 2020-07-02T02:22:06 | 215,127,881 | 151 | 28 | MIT | 2023-06-12T21:28:37 | 2019-10-14T19:25:46 | Python | UTF-8 | Python | false | false | 14,964 | py | # coding=utf-8
# Copyright (c) Microsoft. All rights reserved.
import os
import pdb
from random import shuffle
from sys import path
from mtdnn.common.metrics import calc_metrics
from mtdnn.common.types import DataFormat
def process_data_and_dump_rows(
rows: list,
out_path: str,
data_format: DataFormat,
... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
e9a4edfe1026ffae7f0e4077a0753cd8224ef2a4 | d18ed72d6f8d27dd8a13eab5c6366f9dca48aa6b | /espresso/jobmanager/jobmanager/temp/bin/packjobdir.py | 697971511dcfa49909f268637571980c629e1286 | [] | no_license | danse-inelastic/AbInitio | 6f1dcdd26a8163fa3026883fb3c40f63d1105b0c | 401e8d5fa16b9d5ce42852b002bc2e4274afab84 | refs/heads/master | 2021-01-10T19:16:35.770411 | 2011-04-12T11:04:52 | 2011-04-12T11:04:52 | 34,972,670 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2009 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"dexity@gmail.com"
] | dexity@gmail.com |
ff30e8932a6292b69bb900155874ffcfa1e06431 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/2930.py | 97be09473c78d8ee4bccfb81bd58eb99d9cd14ca | [] | 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 | 432 | py | from __future__ import division
T = input()
for i in range(T):
C, F, X = [float(x) for x in raw_input().split()]
cookiesRate = 2
if C >= X : print "Case #%d: %.7f" % (i+1, X/cookiesRate)
else:
timeElapsed = 0
while(C/cookiesRate + X/(cookiesRate+F) < X/cookiesRate):
timeElapsed += C/cooki... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c633ac2470e05a99614be9f9f82a751daa8489db | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/c4ccaa8b4474471f993db5910720bf59.py | 53dba6ce82f915abfd9d8828c4b03607686fbbc1 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 1,305 | py | import unicodedata
STANDARD_RESPONSES = {
'question': 'Sure.',
'exclamation': 'Woah, chill out!',
'empty': 'Fine. Be that way!',
'other': 'Whatever.'
}
def hey(*statements):
for statement in statements:
if type(statement) != str:
try:
statement = str(statement)
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
141edf402032a4bbe9c3349258944e9dcfa2c803 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /chrome/browser/android/digital_asset_links/DEPS | 7023254e344e39b9b94c5db81d7a70a7df505240 | [
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 296 | # It is likely that this code will eventually be shared across platforms, so
# excluding dependencies that would make this being a component impossible.
include_rules = [
"-content",
"-chrome",
"+base",
"+content/public/test",
"+chrome/browser/android/digital_asset_links",
"+net",
]
| [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com | |
9836c4db6976992908c3e2fdd5c42aee5b2c2e44 | 66d352e30036b0917e22b2ccde6e0bbc05f9758c | /TelluricSpectra/TellRemoval_interptest.py | 54d1373f0ce141d99b8b9bb15b17c2674b949ca8 | [] | no_license | jason-neal/Phd-codes | 8354563b1d2b0fcce39d72adbfd82b65557399b4 | c947ffa56228746e2e5cdb3ab99e174f6c8e9776 | refs/heads/master | 2023-08-30T23:11:55.394560 | 2022-04-24T09:25:28 | 2022-04-24T09:25:28 | 42,106,284 | 0 | 1 | null | 2023-08-16T02:22:59 | 2015-09-08T10:40:26 | Jupyter Notebook | UTF-8 | Python | false | false | 5,575 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
""" Codes for Telluric contamination removal
Interpolates telluric spectra to the observed spectra.
Divides spectra telluric spectra
can plot result
"""
import argparse
import os
import time
import matplotlib.pyplot as plt
import numpy as np
import scipy as sp
... | [
"jason.neal@astro.up.pt"
] | jason.neal@astro.up.pt |
9c1b67405acfc447e0bcde61a0b406ab29189c33 | f4713830c8519daca9d75ec692a6937ee03c74d4 | /Problems/Algorithms/953. Verifying an Alien Dictionary/alien_dictionary.py | af8a014ae986a3a0467e9a3207355cbfdb4b4240 | [
"MIT"
] | permissive | xuedong/leet-code | a0dd38cb884292de9d947718bb00160eff2b0f00 | 285d49cd7061ec43368d63b7c7c56763be520570 | refs/heads/master | 2023-09-03T02:38:55.932182 | 2023-09-02T18:35:42 | 2023-09-02T18:35:42 | 189,745,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | #!/usr/bin/env python3
from typing import List
class Solution:
def isAlienSorted(self, words: List[str], order: str) -> bool:
map = {ch: idx for idx, ch in enumerate(order)}
words = [[map[ch] for ch in word] for word in words]
return all(word1 <= word2 for word1, word2 in zip(words[:-1], ... | [
"shang.xuedong@yahoo.fr"
] | shang.xuedong@yahoo.fr |
3791527cea4f9b19510cd2511f27d307b569de22 | 4d2de834ecea6ef444b1c45afb5a41e717900858 | /app/app_todo/__init__.py | 33a8204e60a9ea5ebfaf02b5c996d4aafaf808af | [] | no_license | florije1988/flask_regular | 19da04c59fbf600274d206750ccb8cf355db2d24 | 1219e4efbad76202d6dca7e4b2148344ea9edf8c | refs/heads/master | 2020-12-24T13:21:29.840919 | 2014-12-16T00:58:15 | 2014-12-16T00:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # -*- coding: utf-8 -*-
__author__ = 'florije'
from flask import Blueprint
from app.custom_api import Api
app_todo = Blueprint('app_task', __name__)
api_todo = Api(app_todo, catch_all_404s=True)
from . import views
api_todo.add_resource(views.HelloHandler, '/hello') | [
"florije1988@gmail.com"
] | florije1988@gmail.com |
3342dbd03130abc2b867b2e3e093a75c7f00aafa | 1e177ebdcb470f738c058606ac0f86a36085f661 | /Python3/Tkinter/tkinter020.py | 23c5a22cc77a5d384d51239477848c13a696f07a | [] | no_license | robingreig/raspi-git | 5cbdd295c1048a0571aa2c2f8576438269439f07 | 7373bf94557d7a88c8f343362ba64f9cd19c8ce7 | refs/heads/master | 2023-08-31T03:16:17.286700 | 2023-08-26T11:54:23 | 2023-08-26T11:54:23 | 16,873,881 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | #!/usr/bin/python3
from tkinter import *
root = Tk()
myContainer1 = Frame(root)
myContainer1.pack()
root.mainloop()
| [
"robin.greig@calalta.com"
] | robin.greig@calalta.com |
0ba9aca97b1c1f59da1afb823752e4f46a680b96 | feae88b4a8bc0aba388dcc2eeb7debb49d736809 | /apps/second_app/urls.py | fb99d9914ffc2c2fedcdee10fd14c61afe4e550b | [] | no_license | john-gore/belt3_retry | ec8a5582382fc00f0bcb3cf973fe9cd073ed571c | 03aa6d7ff9988615a96d2c882282107d389b1c52 | refs/heads/master | 2021-07-21T11:11:42.972344 | 2017-10-29T21:34:09 | 2017-10-29T21:34:09 | 108,772,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.conf.urls import url
from django.contrib import admin
from . import views
from ..first_app.models import User # This line is new!
urlpatterns = [
url(r'^$', views.index, name='index') # This line has changed!
] | [
"johngore@Johns-MBP.localdomain"
] | johngore@Johns-MBP.localdomain |
fbc05970539a311c1532e03d1461d962abe1cae2 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0/devel/.private/vector_map_msgs/lib/python2.7/dist-packages/vector_map_msgs/msg/_PointArray.py | 302c83b9f7d628767effb2ae4bd898435e6dc65f | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,546 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from vector_map_msgs/PointArray.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import vector_map_msgs.msg
import std_msgs.msg
class PointArray(genpy.Message):
_md5sum ... | [
"907097904@qq.com"
] | 907097904@qq.com |
8735f5b0e9167684495efe5852cebc7defa664f7 | 930309163b930559929323647b8d82238724f392 | /abc155_c.py | 6b0f7c6960bceb99ef3c1e6274c2f06a7b5baa8f | [] | no_license | GINK03/atcoder-solvers | 874251dffc9f23b187faa77c439b445e53f8dfe1 | b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7 | refs/heads/master | 2021-11-07T14:16:52.138894 | 2021-09-12T13:32:29 | 2021-09-12T13:32:29 | 11,724,396 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import collections
N=int(input())
S=[input() for i in range(N)]
S=collections.Counter(S)
max_v = max(S.values())
for k,v in sorted(list(filter(lambda x:x[1]==max_v, S.items()))):
print(k)
| [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
2326a5cd67d0e36dfc987657a3b77f64b1108019 | 5de646fb3ecf10ecb45e05018a23b6345fb9ca53 | /codejam/2020 Qualification Round/d.py | e358bdc477498577b9dcea874b2bbacb4f08905f | [] | no_license | PPinto22/LeetCode | 5590d6ca87efcd29f9acd2eaed1bcf6805135e29 | 494a35542b61357c98c621202274d774e650a27c | refs/heads/master | 2022-04-29T20:37:31.085120 | 2022-04-02T12:02:30 | 2022-04-02T12:02:30 | 201,478,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | from typing import Union, List, Tuple, Optional
def solve(B):
def set(index, value):
nonlocal control_equal, control_complement, known
# Fix to prevent unpaired bits right before a fluctuation
if (not control_complement or not control_equal) \
and (query % 10 == 0) \
... | [
"pedropinto24@hotmail.com"
] | pedropinto24@hotmail.com |
e79db74e458b1f23bf9c7d355f33c7457e7e49b8 | 45272da6d64161a586b1dd41df63b8f701f38e39 | /Easy Problems/1-10/1easy.py | 075277c849e0a410bcde57f4d5bf459e7c1e8fad | [] | no_license | Lucas-Guimaraes/Reddit-Daily-Programmer | 559f813d2ee1a06e80a2b260bcb43718ae50b8bf | 45d554d0e0f8bc67e2111bede3a45f77f5512d7b | refs/heads/main | 2023-07-31T18:36:48.774791 | 2021-09-13T04:08:09 | 2021-09-13T04:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | #https://www.reddit.com/r/dailyprogrammer/comments/pih8x/easy_challenge_1/
user_name = raw_input("Put in your name: ")
user_age = raw_input("Whhat's your age?: ")
user_screenname = raw_input("How about a username?: ")
print("Your name is " + user_name + " your are " + user_age + " years old, and your username is " + ... | [
"noreply@github.com"
] | Lucas-Guimaraes.noreply@github.com |
d5c5909ea6644335136f2d82bcda8a30fa14ccab | 48477a15ad96505def8097a6c098826b1e5cfe1a | /2_basic_algorithms/2_sorting_algorithms/14_pair_sum.py | 9e1422278c00aead20f8116beaac4b3230077a6d | [] | no_license | 450703035/Data-Structures-Algorithms | 02cd5bbb92ce25019fce4955af38b0317b4f4cac | dde33560fcb3e3ff41cf8bd37a454f8c13b15138 | refs/heads/master | 2021-05-22T02:25:03.554870 | 2020-06-27T14:23:24 | 2020-06-27T14:23:24 | 252,927,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | # Pair Sum
'''
Problem Statement
Given an input array and a target value (integer), find two values
in the array whose sum is equal to the target value.
Solve the problem without using extra space.
You can assume the array has unique values and will never have
more than one solution.
'''
def pair_sum(arr, target):
... | [
"danny.wangle@gmail.com"
] | danny.wangle@gmail.com |
526abb44076323b13492031101bc312d813868d2 | 40796d49a6d50237900ac1a1a20648b546613d18 | /python/applications/mobdat/common/graph/LayoutNodes.py | 333b5941c57af701d1ba71064bdf91f907c25351 | [] | no_license | Mondego/spacetime-apps | c32abca98134d80f5bff965c8d74550c8109821d | c2d3a714cc2819f4a72d2d0b1b8c129d69c4de7c | refs/heads/master | 2021-01-23T03:43:08.197768 | 2019-07-27T22:08:58 | 2019-07-27T22:08:58 | 86,112,423 | 3 | 3 | null | 2019-07-27T22:08:59 | 2017-03-24T21:34:10 | Python | UTF-8 | Python | false | false | 10,237 | py | #!/usr/bin/env python
"""
Copyright (c) 2014, Intel Corporation
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 the follow... | [
"ra.rohan@gmail.com"
] | ra.rohan@gmail.com |
26520cf0e4d572626cca7f3ae58470069e37fd63 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/GLES2/NV/read_buffer.py | 638349916933fad25c3ba754755ffda4f1e717dc | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 617 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
# End users want this...
from OpenGL.raw.GLES2._types import *
from OpenGL.raw.GLES2 import _errors
from OpenGL.constant import Constant as _C
import... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
410559c8f26e95c96374a7fea4724d3d00169ba7 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/number-of-ways-to-earn-points.py | 6707c76b184e8c02c07e41ef08fcbd9b81e9220e | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 1,069 | py | # Time: O(n * t * c)
# Space: O(t)
# knapsack dp
class Solution(object):
def waysToReachTarget(self, target, types):
"""
:type target: int
:type types: List[List[int]]
:rtype: int
"""
MOD = 10**9+7
dp = [0]*(target+1)
dp[0] = 1
for c, m in ty... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
37bf81f3ad11ff153ef7e0c65f8e73638bd8e747 | 76ae6d1194c4440b86eac56e1ed2d42f745e612c | /mcds_dcl2isa-pre-v1.py | c673f914ebc0520107f6229d628e42b73a175689 | [] | no_license | rheiland/mcds2isa | 76a551df09233bd976268c44cf0fa7968f87c075 | c0b1245fafd133701ff41fe12153543b73cb94e6 | refs/heads/master | 2021-07-21T00:11:43.103167 | 2019-08-27T17:23:19 | 2019-08-27T17:23:19 | 143,934,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,636 | py | #
# mcds_dcl2isa.py - using a MultiCellDS digital cell line XML file, generate associated ISA-Tab files
#
# Input:
# a MultiCellDS digital cell line file <DCL-root-filename>.xml
# Output:
# 3 ISA files:
# i_<DCL-root-filename>.txt
# s_<DCL-root-filename>.txt
# a_<DCL-root-filename>.txt
#
# Author: Randy H... | [
"heiland@indiana.edu"
] | heiland@indiana.edu |
b6d70d3cd0bcef780e9d1bf21d1470f79ecdd2e7 | 2fc197681ac9cdd0346fe9ab56d9aa4d59b6f1d0 | /polyaxon/db/migrations/0001_initial.py | 27bab9b4b5e9c713404ae0d918e70a6b313ea7ff | [
"MIT"
] | permissive | dtaniwaki/polyaxon | 32e0fcfc4cd4b46d1d502ae26cd285dc9c11d55a | 04e3c9c9a732a2128233e8d1db1bdc1647fe7c55 | refs/heads/master | 2020-03-20T08:16:33.334881 | 2018-06-13T22:40:17 | 2018-06-13T22:40:17 | 137,303,634 | 0 | 0 | null | 2018-06-14T03:53:13 | 2018-06-14T03:53:13 | null | UTF-8 | Python | false | false | 52,402 | py | # Generated by Django 2.0.3 on 2018-06-12 13:31
import db.models.abstract_jobs
import db.models.repos
import db.models.utils
from django.conf import settings
import django.contrib.postgres.fields
import django.contrib.postgres.fields.jsonb
import django.core.validators
from django.db import migrations, models
import d... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
6f0cf4d61aa094e7e4958d5d2d42c7ee379e097f | 942a82cd1e34cd8f57e1d7f3272e4086605256ee | /config/settings.py | 4ab609f97c0680e52cc1f2490a6f0d441b5e6b02 | [] | no_license | hanieh-mav/SocialNetwork-with-drf | d451126f93e3735a8c9d6dbf714a8179785e15cc | d929704a3d9f26e1e0ca5d961a01ba7dd5c6bf84 | refs/heads/main | 2023-06-13T08:17:46.591597 | 2021-07-09T13:37:06 | 2021-07-09T13:37:06 | 353,754,846 | 2 | 0 | null | 2021-07-09T13:27:27 | 2021-04-01T16:04:26 | Python | UTF-8 | Python | false | false | 4,482 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
f... | [
"h.mehdiabadi@gmail.com"
] | h.mehdiabadi@gmail.com |
13420aecf149f66ef9cb63a68a5a090dbc8a2e3c | 6c3e475dcd95d14875a199466b8a7c744f61478b | /userProfile/userProfile.py | 1395f4986a45fed5e4b88da12ed0cb114aa8c04b | [] | no_license | webclinic017/tripleATradeBot | b4cce7a330e76f9f207c4d6f4d16327b1717a17a | 40b6130f52eb969336c7b602e698f41a2d8f947b | refs/heads/main | 2023-01-04T04:16:38.338563 | 2020-10-29T10:33:34 | 2020-10-29T10:33:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | from eventLogger import eventLogger as logger
from pathList import pathList
from alice_blue import *
import openpyxl
class userProfile:
userProfileWorkBook=""
profileName=""
userName = ""
password = ""
apiSecret = ""
accessToken = ""
aliceObj = ""
exchangeList = ['NSE']... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
62abf1b5cf573596ca943d290748c41b37bd2e49 | 4dfb1731e42654d2694b9ea109b0da26f0e6215c | /qbittorrent_mod.py | d6a8fc5bab59ef956ce8f458554ba67a2d766cb4 | [
"MIT"
] | permissive | y2038558528/flexget_qbittorrent_mod | 3e89e13c8814e21de51e101f3430ce660b4cfcb5 | a49dacf0b4bf20217cb43df0ad94112b7dc67364 | refs/heads/master | 2023-03-22T22:00:04.330858 | 2021-03-15T13:45:02 | 2021-03-15T13:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,029 | py | import math
import os
import re
from datetime import datetime
from flexget import plugin
from flexget.entry import Entry
from flexget.event import event
from loguru import logger
from .ptsites.client.qbittorrent_client import QBittorrentClientFactory
class QBittorrentModBase:
def __init__(self):
self.cl... | [
"12468675@qq.com"
] | 12468675@qq.com |
8723a4a6f9bb16968b5f83ec44895b30cb9da123 | d82b879f41e906589a0a6ad5a6a09e0a0032aa3f | /ObservationScripts/on_off/observe_moon_spec_analyser.py | 176f9c75c90dd4f6945052404f93c17615964d9f | [] | no_license | SETIatHCRO/ATA-Utils | 66718eed669882792148fe0b7a2f977cd0f6ac2e | 59f4d21b086effaf41d5e11e338ce602c803cfd0 | refs/heads/master | 2023-08-16T20:41:44.233507 | 2023-08-10T20:39:13 | 2023-08-10T20:39:13 | 137,617,987 | 5 | 5 | null | 2023-08-10T20:39:14 | 2018-06-17T00:07:05 | Jupyter Notebook | UTF-8 | Python | false | false | 867 | py | #!/home/obsuser/miniconda3/envs/ATAobs/bin/python
from ATATools import ata_control, logger_defaults
from SNAPobs import snap_dada, snap_if
import time
import atexit
import numpy as np
import sys
import argparse
import logging
import os
def main():
logger = logger_defaults.getProgramLogger("observe",
... | [
"wael.a.farah@gmail.com"
] | wael.a.farah@gmail.com |
b38a5417f4cf586733ab782b41c420ea59c10d53 | 6a084a2df2869ce3ad565610cbf92eccf00a233e | /states/postgres_user.py | c65e8d42284fe1a2a9ce2c6f70f436a95ff64235 | [] | no_license | ltxin/saltstack | 95b5356715cc918afec378e2926d9f9a1c7a85d5 | 30a493ef5e46bd7629c8ba400e559dab023c1431 | refs/heads/master | 2021-01-16T17:52:56.939714 | 2017-08-11T10:13:41 | 2017-08-11T10:13:41 | 100,019,324 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,166 | py | # -*- coding: utf-8 -*-
'''
Management of PostgreSQL users (roles)
======================================
The postgres_users module is used to create and manage Postgres users.
.. code-block:: yaml
frank:
postgres_user.present
'''
from __future__ import absolute_import
# Import Python libs
# Import salt ... | [
"it_ltxin@163.com"
] | it_ltxin@163.com |
567c4f1b87268b45b3e5955082e71554b4e4551e | e3abb55ba514fb102ce01601ab0e9ebc15f5d26f | /code/l010_await.py | 1c1c6228bf6292b72ebae15c80d040f4c8a0b5a4 | [] | no_license | joshmarshall/coroutine-presentation | 1d8dec7a6c31a0ee5e8875883a326ea801300e93 | a6d07e70bdff286f45785f4127d854ea701a6a08 | refs/heads/master | 2023-09-03T04:23:20.422823 | 2018-01-03T10:19:50 | 2018-01-03T10:19:50 | 64,452,999 | 1 | 0 | null | 2017-11-19T21:17:58 | 2016-07-29T05:29:08 | Python | UTF-8 | Python | false | false | 1,248 | py | import asyncio
class Session(object):
@classmethod
def connect(cls):
return Session()
async def __aenter__(self):
print("Creating session...")
await asyncio.sleep(1)
return self
async def __aexit__(self, exc_typ, exc, tb):
# can also handle exceptions as nece... | [
"catchjosh@gmail.com"
] | catchjosh@gmail.com |
9967bfbb48682fff74e8fa93da453b918a2d908b | 43715a10381ec37c275850c2e4f5302cde18de8c | /rooms/models.py | 8544758b5c7d49ad504a4a43c4f38656f611174b | [] | no_license | dongdong-e/airbnb-clone | 443f290baca4ea5c8f22f6c573383d11de4140f4 | 32c083c4e7f562d968639099d8439f26a666b175 | refs/heads/master | 2023-05-02T22:08:32.232594 | 2019-11-25T12:13:13 | 2019-11-25T12:13:13 | 219,305,006 | 0 | 0 | null | 2023-04-21T20:42:00 | 2019-11-03T13:27:34 | Python | UTF-8 | Python | false | false | 2,842 | py | from django.db import models
from django.urls import reverse
from django_countries.fields import CountryField
from core import models as core_models
class AbstractItem(core_models.TimeStampedModel):
""" Abstract Item """
name = models.CharField(max_length=80)
class Meta:
abstract = True
de... | [
"youngdong9800@gmail.com"
] | youngdong9800@gmail.com |
7ab917ac2d5b6dbd613df8ad73eaa04c6fd703b9 | e042a2437aa60fdc966c4bb97d87f27fb6378c9c | /vae-mnist/utils.py | cbc53886b453559793ea1d4b8a743196b76eca8f | [] | no_license | JZDBB/OOC-for-research | a8653f69a01fe9edd024411234ca422e220a437f | 265fbd1732460acbe2a36f4273635485abf0eb0c | refs/heads/master | 2020-07-04T04:08:51.130198 | 2019-08-21T13:00:38 | 2019-08-21T13:00:38 | 202,150,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | import numpy as np
def merge(images, size):
h, w = images.shape[1], images.shape[2]
img = np.zeros((h * size[0], w * size[1]))
for idx, image in enumerate(images):
i = idx % size[1]
j = idx / size[1]
img[j*h:j*h+h, i*w:i*w+w] = image
return img
| [
"oxuyining@gmail.com"
] | oxuyining@gmail.com |
7d167e1feb92203517a6bf08e8597b19369c565e | 42ffa887ca0ac7b54f0473880613865fe523fbfc | /src/viztracer/__init__.py | 38fd0acde24ec07503595c6da251f4e74a45e921 | [
"Apache-2.0"
] | permissive | tianxie1989/viztracer | e61090ac286a5b4ffe4c8f0265fde38bca68837b | 39a6314b2a5a30ede71be96bd5e174b2bdaa2664 | refs/heads/master | 2022-12-11T08:21:25.415858 | 2020-08-21T00:21:00 | 2020-08-21T00:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/gaogaotiantian/viztracer/blob/master/NOTICE.txt
from .viztracer import VizTracer
from .flamegraph import FlameGraph
from .decorator import ignore_function
__version__ = "0.3.0"
__all__ = [
"__version... | [
"gaogaotiantian@hotmail.com"
] | gaogaotiantian@hotmail.com |
d2a67d571a6ae128e18235f827a76b271bc6e6e8 | cbd2eee46663fad5b5375b13c8c21b1b06eb4c6b | /ecloud/code/src/main/python/manor/streamlet/create_nodes.py | 159486c27b7fd7132e26361dfada9a5c35673aba | [] | no_license | 1026237416/Python | ef474ee40d7efcd6dabb6fb0ecba81b4dcfc7e14 | ffa8f9ffb8bfec114b0ca46295db05c4213c4c30 | refs/heads/master | 2021-07-05T00:57:00.456886 | 2019-04-26T10:13:46 | 2019-04-26T10:13:46 | 114,510,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | # coding=utf-8
import yaml
from tornado import gen
from manor.screwdriver import stack_util
from manor.screwdriver.vendor_ecloud import list_app_resources
from manor.streamlet import StreamletBase,get_stack_resources
from manor.streamlet import download_path
from manor.util import generals
from manor.util import redis... | [
"1026237416@qq.com"
] | 1026237416@qq.com |
8f1829ee69b87b02cc106601fc364e928bd4864f | 6275b8eee6f8f0f69c1f7d1b74a82db22329d560 | /src/train_v4.py | fe583be223d6b303b0b94e9af04e688c97169fb1 | [
"MIT"
] | permissive | khodwe56/kaggle-birdsong-recognition | 081575ea02e663f98292c5e579c14de4bcdb7e22 | 95a902c37355619cf02558968f000038e487db47 | refs/heads/master | 2023-01-01T21:35:20.101880 | 2020-10-27T17:03:06 | 2020-10-27T17:03:06 | 299,716,450 | 0 | 0 | MIT | 2020-09-29T19:21:48 | 2020-09-29T19:21:47 | null | UTF-8 | Python | false | false | 721 | py | from argparse import ArgumentParser, Namespace
from engine.main_engine_v4 import MainEngineV4
import importlib
import torch
import ignite.distributed as idist
torch.backends.cudnn.benchmark = True
def run(local_rank, config):
pe = MainEngineV4(local_rank, config)
pe.train(config.run_params)
def main(hyperpara... | [
"ryancwongsa@gmail.com"
] | ryancwongsa@gmail.com |
f74296653aa5f909d55be6b01db02cd11a8f0142 | 69533190b829ae8d37fe87e6990ecb9cc250bef3 | /old/teach_pendant/switch_map.py | d91d5db1a81cd2eaa23f0f5cc8e4f22691e1cba2 | [] | no_license | chxb1987/idx6dof | a3ebd70d9901845b3a72f611e021caaba8814602 | b6a2a1b79673cdc3d929c469116ff4eaf3f7583d | refs/heads/master | 2020-08-03T21:46:51.620409 | 2017-06-14T20:50:22 | 2017-06-14T20:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | SWITCH_UP=1
SWITCH_DOWN=3
sw_map = (
( 4, 2, SWITCH_UP),
( 12, 2, SWITCH_DOWN),
( 16, 17, SWITCH_UP),
( 17, 16, SWITCH_UP),
( 18, 15, SWITCH_UP),
( 19, 14, SWITCH_UP),
( 20, 13, SWITCH_UP),
( 21, 12, SWITCH_UP),
( 22, 10, SWITCH_UP),
( 23, 11, SWITCH_UP),
( 24, 17, SWITCH_DOWN),
( 25, 16, SWITCH_DOWN),
( 26, 15, SWITC... | [
"eric@clarinova.com"
] | eric@clarinova.com |
9c5ae5f21eb5f1a36093fe5f764a1835128a01d2 | dc67e70a303f265ee6cb4c1a2d61fe811053fb3d | /beginner/095/C.py | e641e597678f29556c9fceffadc8270b970f8ac8 | [] | no_license | cry999/AtCoder | d39ce22d49dfce805cb7bab9d1ff0dd21825823a | 879d0e43e3fac0aadc4d772dc57374ae72571fe6 | refs/heads/master | 2020-04-23T13:55:00.018156 | 2019-12-11T05:23:03 | 2019-12-11T05:23:03 | 171,214,066 | 0 | 0 | null | 2019-05-13T15:17:02 | 2019-02-18T04:24:01 | Python | UTF-8 | Python | false | false | 623 | py | def half_and_half(
A: int, B: int, C: int, X: int, Y: int) -> int:
"""
:param A: A ピザの値段
:param B: B ピザの値段
:param C: AB ピザの値段
:param X: A ピザの必要数
:param Y: B ピザの必要数
"""
min_price = float('inf')
for num_ab in range(max(X, Y)+1):
num_a, num_b = max(0, X-num_ab), max(0, Y... | [
"when.the.cry999@gmail.com"
] | when.the.cry999@gmail.com |
db520c55803ce3ffeb97f5b339bc73d74fb711f0 | cb40aad84a35856ce5a8285ea7260f4183b1dd7a | /tests/model/test_properties.py | 686bc3f6503e24b4cfda6093606dd26cd1f7e118 | [
"Apache-2.0",
"MIT"
] | permissive | vyahello/trump-bullet-game | f71f2fe86a92ba89ea82af5cfecab504b13576d0 | 7648f9722471323ddec1aa6b6d7db38166bebc91 | refs/heads/master | 2021-09-08T09:31:49.459350 | 2021-08-29T08:26:14 | 2021-08-29T08:40:40 | 167,864,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,974 | py | from typing import Tuple
import pytest
from app.model.properties import GameProperty, Color, Resolution, Border
from app import PropertyError
_rdba_color: Tuple[int, ...] = (1, 2, 3)
_resolution: Tuple[int, ...] = (10, 20)
_bottom: int = 5
def test_property_coordinates() -> None:
assert len(GameProperty.coordina... | [
"vyahello@gmail.com"
] | vyahello@gmail.com |
ba55aa07f86bf85d7f55d854a6d3e64096f4000b | d80ef8c716bcc5ea54e87540dbf0463f15bf44ce | /libmproxy/contrib/wbxml/InvalidDataException.py | 67f8ea93014bc2aaf814f9995cc5861007b63caf | [
"MIT",
"BSD-3-Clause"
] | permissive | YagiGo/YPTN | 5043d22eb131c7164d3fa575f0c4e3d8a963dbf4 | d7692a68ee1bf578536b4c09c566272210fc8b69 | refs/heads/master | 2018-10-16T03:44:18.024169 | 2018-07-24T08:53:57 | 2018-07-24T08:53:57 | 107,633,669 | 4 | 1 | MIT | 2018-06-08T09:04:29 | 2017-10-20T04:55:22 | JavaScript | UTF-8 | Python | false | false | 1,333 | py | #!/usr/bin/env python
'''
@author: David Shaw, david.shaw.aw@gmail.com
Inspired by EAS Inspector for Fiddler
https://easinspectorforfiddler.codeplex.com
----- The MIT License (MIT) -----
Filename: InvalidDataException.py
Copyright (c) 2014, David P. Shaw
Permission is hereby granted, free of charge, to any person o... | [
"jeremywu1995@gmail.com"
] | jeremywu1995@gmail.com |
4ed59eebd6c684deb8e7f456b283309a733233df | 0942f23ffad253850099d7b994415ba3ab50d896 | /pyinstaller/PyInstaller/build.py | 44ace10c67ccba3daa0f291034dfae8d36ea8776 | [] | no_license | fabiomdiniz/Frey | d5fa09c67c82201d8f6a6df61e23f24b1e71c923 | 6d1f133b33afb4e810737e1690f89e1faf9ae0ee | refs/heads/master | 2020-05-17T15:48:33.106859 | 2013-11-05T14:25:02 | 2013-11-05T14:25:02 | 2,523,746 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 63,105 | py | #
# Copyright (C) 2005, Giovanni Bajo
# Based on previous work under copyright (c) 1999, 2002 McMillan Enterprises, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of t... | [
"fabiomachadodiniz@gmail.com"
] | fabiomachadodiniz@gmail.com |
243b30d8a04317b70aab7c0bbadabf27a895a4a2 | 480a175ab2b3c012af2d1cddb79674fad1490fe5 | /0x08-python-more_classes/tests/main.2.py | 2cb60d1c599573c08cc695829729fe51c64ab27d | [] | no_license | ianliu-johnston/holbertonschool-higher_level_programming | a8a6476fc6a7ac0bd8ae300f2196f17c13e1b36f | f6a7c9cddb2482991c2aadacb99aa66e64eb50eb | refs/heads/master | 2021-04-29T11:12:56.820851 | 2017-05-10T00:48:17 | 2017-05-10T00:48:17 | 77,854,226 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | #!/usr/bin/python3
Rectangle = __import__('2-rectangle').Rectangle
new_rect = Rectangle(3, 4)
print("Dimensions of your new rectangle: {} x {}".format(new_rect.width, new_rect.height))
print("Area: {}".format(new_rect.area()))
print("Perimeter: {}".format(new_rect.perimeter()))
new_rect.width = 5
print("Width just c... | [
"ian.liu-johnson@holbertonschool.com"
] | ian.liu-johnson@holbertonschool.com |
702e93ec385bbb5567fec0ac4ca70cf08f9f04db | 7dbcf66e47684c652f9d90a47b2381cf846e003d | /pkg/Conf.py | d8e12155528eb0090ab0006f88fcc253282e3ede | [] | no_license | hlanSmart/simple | 531b9a8be524d29c43016c865f64132aa4bf3069 | c8536edd4cec1f39e23a5ff35ae16f0efa15f323 | refs/heads/master | 2020-12-27T08:24:04.383170 | 2016-09-22T04:29:44 | 2016-09-22T04:29:44 | 68,556,669 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | #!/usr/bin/python
#coding:utf-8
import os,yaml
BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
def readServer(sg,sl=False): #sg ServerGroup 服务器组 sl ServerList 组列表
with open(os.path.join(BASE_PATH,'etc/server.yml'),'r') as f:
server=yaml.load(f)
if sl: ... | [
"root@localhost"
] | root@localhost |
c2bb14d7ae24c97ce9e538b563179a0fb27d3f71 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/77d922e63877a9db19d31d69878e680aa58a54c85eee51673bc8bfa5abec9462/cython_runtime.py | f0626603901297c264822be8e70b80c27bee933e | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | # encoding: utf-8
# module cython_runtime
# from C:\Users\Doly\Anaconda3\lib\site-packages\scipy\stats\statlib.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# no imports
# Variables with simple values
__loader__ = None
__spec__ = None
# no functions
# no classes
| [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
e4d3b1c290b0ee2787f51f3bb625a45c1c113234 | 6daa3815511b1eb1f4ff3a40b7e9332fab38b8ef | /tastesavant/taste/apps/profiles/migrations/0010_auto__add_field_profile_preferred_site__chg_field_profile_user.py | f631b68b525621e7885479041e53e8ea8b703f7e | [] | no_license | kaizensoze/archived-projects | 76db01309453606e6b7dd9d2ff926cfee42bcb05 | d39ac099cb40131bac5de66bde7d0e2db5f74189 | refs/heads/master | 2021-05-31T12:16:17.800730 | 2016-02-23T00:27:56 | 2016-02-23T00:27:56 | 14,407,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,513 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Profile.preferred_site'
# The default value, 3, should refer to the NYC site.
db.add... | [
"gallo.j@gmail.com"
] | gallo.j@gmail.com |
ad784210df07d410b4d9d0b3795e111aa61b9193 | b7453e5a2700f2017a6f783eaf3990ee2486cd65 | /test/utils/test_clean_identity.py | 54c6c0a2df4ef8f53c92989877f93ce940c57635 | [
"Apache-2.0"
] | permissive | LaRiffle/cleaning-scripts | 8525164cca8336b67a2362d6907414e27ca088fa | 08f360721056d30befe8d58ded583a4a5d126184 | refs/heads/master | 2020-07-28T06:52:47.673033 | 2019-11-19T15:26:19 | 2019-11-19T15:26:19 | 209,343,798 | 0 | 0 | Apache-2.0 | 2019-09-20T13:13:25 | 2019-09-18T15:33:16 | Python | UTF-8 | Python | false | false | 233 | py | from scripts import utils
def test_clean_identity():
assert utils.clean_identity(None) == ""
assert utils.clean_identity("NaN") == ""
row_input = "Holà chicanos"
assert utils.clean_identity(row_input) == row_input
| [
"theo.leffyr@gmail.com"
] | theo.leffyr@gmail.com |
1b5cd48ff39ee1da8dbaf2f526d75d0746e5c1e6 | f1d9df04036fc43c9e5cc7998b83261f4daa94b8 | /management_commands/insert_base_data.py | cf87a7c11fd7db6f4e396e72c0e9d41bce402ce1 | [] | no_license | Eaterator/web | 019eb6547995be30b3468e5c44ecc52f05858fb4 | 9c598607f76ad770c66d85c47ffcec05f92f4d66 | refs/heads/master | 2021-01-09T20:30:13.417308 | 2017-04-25T02:44:35 | 2017-04-25T02:44:35 | 81,286,177 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | from application.auth.models import Role
from application.recipe.models import Source
from application.base_models import db
def insert_role_data():
roles = [
{
'name': 'regular',
'type_': 'consumer',
'is_admin': False
},
{
'name': 'corporate... | [
"currahl@yahoo.ca"
] | currahl@yahoo.ca |
d74da5f980c51f8a87e1f3491b38cb906651ba91 | 995c52ad5a0a3039ad37a4d2f07b06dcbbcf3961 | /tantalus/migrations/0059_auto_20180810_1837.py | f4ba3f19bfd13e80fa47e558107374b522b8b533 | [] | no_license | nafabrar/tantalus | d02cce3923205191f00b30e80152a0be7c091d6a | d8552d40472c29bc617b45a1edaf87c6624b824d | refs/heads/master | 2022-12-24T15:53:52.034999 | 2020-10-07T22:26:35 | 2020-10-07T22:26:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-10 18:37
from __future__ import unicode_literals
from django.db import migrations
def populate_sequence_file_info(apps, schema_editor):
FileResource = apps.get_model('tantalus', 'FileResource')
SequenceFileInfo = apps.get_model('tantalus', 'Seq... | [
"andrew.mcpherson@gmail.com"
] | andrew.mcpherson@gmail.com |
9b9a14f2985d9dd1d7bc6ef666b5d40a2a9a5256 | a7e0784b697b6c57920e16e2f54ea0ed2225c0e0 | /data/clingen_raw_to_training.py | 47d0357cb8921e5915cdc80d02e9879fcf3e88c3 | [] | no_license | rumeysa77/ClinGenML | 17e1a3786b8711387a61707252307aab13e682c5 | c3bf6fbf7d0fe6c1311ce0fcfb4e26d8331bbc7d | refs/heads/master | 2023-03-22T04:41:40.669592 | 2021-02-24T09:04:29 | 2021-02-24T09:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,815 | py | """
This file processes the raw excel sheet and extract data
"""
import time
import csv
from collections import defaultdict
from Bio import Entrez
from pathlib import Path
import unicodedata
def _is_whitespace(char):
"""Checks whether `chars` is a whitespace character."""
# \t, \n, and \r are technically contorl... | [
"leo.niecn@gmail.com"
] | leo.niecn@gmail.com |
0fca165af2a23670c0fdd4db934637cc1abf3c10 | 77531ad16a3ddf7aa92b7b4de809cce2a96c88a5 | /sitetables/toolbox/sources.py | 53a8ff4e69c31bffc800f47c48937200b5f4ad69 | [] | no_license | idlesign/django-sitetables | 6d3ed6b534e51c67704528d6fa1be0bc6f9f64f4 | 008b748919ee330da168d4766cd6b3c3c27e45b8 | refs/heads/master | 2022-02-17T21:25:26.430653 | 2022-02-04T12:46:19 | 2022-02-04T12:46:19 | 164,444,235 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,028 | py | import re
from collections import namedtuple
from itertools import chain
from typing import Optional, List, Union, Dict, Type, Tuple
from django.db.models import QuerySet, Model
from django.http import HttpRequest, JsonResponse
from django.urls import reverse
from .columns import TableColumn
if False: # pragma: noc... | [
"idlesign@yandex.ru"
] | idlesign@yandex.ru |
ab0d95439f8363b720d81aa80ae3aa74a0432e28 | 104005986bccea0a4213cbd55d833c95baf2f4fa | /drivers/phot_drivers/LCOGT_template_single_request.py | c6603728c1e635419c96b9c4a2e6edda588ecfe7 | [] | no_license | lgbouma/cdips_followup | 8a92ec9a31b405d316c668a6d42ce10ad47f0501 | 99ac6c6c709f96a58083a5ff7c4cf2d4f0b554a8 | refs/heads/master | 2023-08-14T02:33:17.841926 | 2023-08-01T00:46:19 | 2023-08-01T00:46:19 | 206,371,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,229 | py | """
Given a source_id, make LCOGT photometry followup requests, and optionally
submit them to the LCOGT API.
"""
import numpy as np
from astropy.time import Time
from cdips_followup.manage_ephemerides import (
query_ephemeris, get_ephemeris_uncertainty
)
from cdips_followup.LCOGT_dedicated_requests import (
get... | [
"bouma.luke@gmail.com"
] | bouma.luke@gmail.com |
10c75430230872f750e9ed2c0a241436c9120a7f | b509ef07d752e987f4cb84d1abd4c3a98488a6c7 | /resources/lib/streamlink/plugins/nownews.py | 02bd76def1234a8b05929f26bb670853a147f7ba | [
"BSD-2-Clause"
] | permissive | Twilight0/script.module.streamlink.base | d91245d1a43d6b3191b62a6eb4b1cf70598ed23e | c1e4628715a81806586b10323b8cb01424bbb6fc | refs/heads/master | 2021-01-21T04:32:41.658823 | 2020-09-07T20:56:29 | 2020-09-07T20:56:29 | 101,915,967 | 6 | 4 | BSD-2-Clause | 2018-01-14T15:20:47 | 2017-08-30T18:31:47 | Python | UTF-8 | Python | false | false | 2,149 | py | import logging
import re
import json
from streamlink.plugin import Plugin
from streamlink.stream import HLSStream
log = logging.getLogger(__name__)
class NowNews(Plugin):
_url_re = re.compile(r"https?://news.now.com/home/live")
epg_re = re.compile(r'''epg.getEPG\("(\d+)"\);''')
api_url = "https://hkt-mo... | [
"twilight@freemail.gr"
] | twilight@freemail.gr |
a5a17178600de20cbfc8a242569037482fae9caf | fccb5a43179906ddc3dd37849ac2a89cacf44981 | /sphinx/source/exercises/solution/03_os_sub_req/ex5.py | 653a604a993839e3b042cfc9ccaf6cd8eba8ff1f | [] | no_license | YasmineOweda/spring2021 | a48c1c4eaa525053a0e2188cf088124b004a35d8 | 072aadba20bfbc659427265fa228518fe4b09ff3 | refs/heads/master | 2023-04-29T10:20:14.132211 | 2021-05-11T09:07:40 | 2021-05-11T09:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import os
#1
os.mkdir('os_exercises.')
#2
os.chdir('os_exercises')
open('exercise.py', 'w')
#3
x = input('Please write something to the file: ')
with open('exercise.py', 'w') as f:
f.write(x)
#4
x = input('Please write something More to anoter file: ')
with open('exercise2.py', 'w') as f:
f.write(x)
#5
wit... | [
"clbo@kea.dk"
] | clbo@kea.dk |
db3b4d13adbd04eba6106f6e0d8559771deadcd5 | 61699048dc567cd3a814e5b987599dae175bed19 | /Python/month01/day15/exercise02.py | ba4af22e18080c30f44bdc184166efdfe0b8e96a | [] | no_license | Courage-GL/FileCode | 1d4769556a0fe0b9ed0bd02485bb4b5a89c9830b | 2d0caf3a422472604f073325c5c716ddd5945845 | refs/heads/main | 2022-12-31T17:20:59.245753 | 2020-10-27T01:42:50 | 2020-10-27T01:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | """
练习2:定义函数,根据生日(年月日),计算活了多天.
输入:2010 1 1
输出:从2010年1月1日到现在总共活了3910天
"""
import time
def life_days(year, month, day):
# 当前 - 出生时间
# time_tuple = time.strptime("%d-%d-%d" % (year, month, day), "%Y-%m-%d")
time_tuple = (year, month, day, 0, 0, 0, 0, 0, 0)
life_second = time.time() - \
... | [
"1450030827@qq.com"
] | 1450030827@qq.com |
ebce17fb0dd02ef5af320607dbcfad78bb6aec8c | dcd0fb6bdcb488dd2046778eb02edce8f4623b58 | /object_follow_edgetpu/detect_standalone.py | 7e196dbb4d1727616b1a5ec9f56384351df24223 | [] | no_license | openbsod/Adeept_AWR | 12f2df24bfcf85d7965a425bb0078b2c858e807a | 92ca5e7147a9cb44ad55f55a467371648dc76b3c | refs/heads/master | 2023-04-09T07:06:35.772918 | 2021-04-15T21:20:40 | 2021-04-15T21:20:40 | 284,012,618 | 1 | 0 | null | 2020-07-31T10:46:50 | 2020-07-31T10:46:49 | null | UTF-8 | Python | false | false | 4,801 | py | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"you@example.com"
] | you@example.com |
a76bbe862fc2f943b5866b00388228264612f33d | 6d4af63e07a137d382ef61afe8276f7470b7af59 | /wsgistate/__init__.py | 742cd2a8b2a8e916a3427188ed7f1c260ff1b2b1 | [] | no_license | Cromlech/wsgistate | 142c7016c74fc28e6c56368f018bf113c379118c | d730ee47a4a43efbd20bcb9623e76bedeeb8c62b | refs/heads/master | 2023-04-11T14:10:20.522520 | 2023-04-11T10:06:10 | 2023-04-11T10:06:10 | 15,806,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,085 | py | # Copyright (c) 2005 Allan Saddi <allan@saddi.com>
# Copyright (c) 2005, the Lawrence Journal-World
# Copyright (c) 2006 L. C. Rees
#
# 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. Redistr... | [
"trollfot@gmail.com"
] | trollfot@gmail.com |
a658a0212b71fb6327314f0662b6143017559bc1 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/snailmail/models/mail_notification.py | a368c0a778338b68f037181c93c3d78bffc3f691 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 719 | py | # -*- coding: utf-8 -*-
from odoo import fields, models
class Notification(models.Model):
_inherit = 'mail.notification'
notification_type = fields.Selection(selection_add=[('snail', 'Snailmail')], ondelete={'snail': 'cascade'})
letter_id = fields.Many2one('snailmail.letter', string="Snailmail Letter", ... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
de8b449316abbe86696e3641635d94af6d290c5d | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/caffe2/python/operator_test/stats_put_ops_test.py | 2ce56248c5dd0116931f91de9b4b556dd881e73b | [
"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 | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:86a74bb87f96bd8ebf2fa9ae72729c5cbe121a32edc1fb034496e084703631b3
size 6596
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
a35e6a756f615aca80c4b91a8b264a5aa0cd6d0e | 9cd00edd008ce38ea3127f090b6867a91fe7193d | /src/plot_Qle_at_all_events_above_Tthreh.py | 382993ac07bd63823ff8cd12124f714a8056199b | [] | no_license | shaoxiuma/heatwave_coupling | c5a2a2bba53351597f4cb60ecb446bfb9629812f | 459f6bc72402b5dd3edf49bc3b9be380b5f54705 | refs/heads/master | 2021-09-13T06:50:48.733659 | 2018-04-26T06:09:54 | 2018-04-26T06:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | #!/usr/bin/env python
"""
For each of the OzFlux/FLUXNET2015 sites, plot the TXx and T-4 days
Qle and bowen ratio
That's all folks.
"""
__author__ = "Martin De Kauwe"
__version__ = "1.0 (20.04.2018)"
__email__ = "mdekauwe@gmail.com"
import os
import sys
import glob
import netCDF4 as nc
import numpy as np
import xar... | [
"mdekauwe@gmail.com"
] | mdekauwe@gmail.com |
298bdb7986c7ce282903098e71efc3e61ebde167 | 4b0c57dddf8bd98c021e0967b5d94563d15372e1 | /run_MatrixElement/test/emptyPSets/emptyPSet_qqH125_cfg.py | 1925d9eb5134f84222300788d85f42237860a66f | [] | 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 | 896 | py | import FWCore.ParameterSet.Config as cms
import os
#!
#! PROCESS
#!
process = cms.Process("MatrixElementProcess")
#!
#! SERVICES
#!
#process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageLogger.MessageLogger_cfi')
process.MessageLogger.cerr.FwkReport.reportEvery = 5000
process.load... | [
"aperloff@physics.tamu.edu"
] | aperloff@physics.tamu.edu |
afbde151e2e1473b1d6aa573579299dc0eb3ce8d | 18c03a43ce50ee0129f9f45ada1bdaa2ff4f5774 | /epistasis/__init__.py | 4f9536d756aca5c653b3e69bbff59937aa2ff678 | [
"Unlicense"
] | permissive | harmsm/epistasis | acf7b5678b328527b2c0063f81d512fcbcd78ce1 | f098700c15dbd93977d797a1a1708b4cfb6037b3 | refs/heads/master | 2022-04-30T13:09:49.106984 | 2022-03-19T05:29:37 | 2022-03-19T05:29:37 | 150,969,948 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | """\
A Python API for modeling statistical, high-order epistasis in genotype-phenotype maps.
This library provides methods for:
1. Decomposing genotype-phenotype maps into high-order epistatic interactions
2. Finding nonlinear scales in the genotype-phenotype map
3. Calculating the contributions of differe... | [
"zachsailer@gmail.com"
] | zachsailer@gmail.com |
d8e42f2ce2432b336adb63018b3a51e93aacef6d | 1c0542cef2ac6a5fb691602887236bf70f9bf71f | /speed_test_sar/sfsi_speed/mmcls/models/backbones/utils/gumbel_sigmoid.py | 6610270f02c80a91e8e61cd013f8b7dff68c6ba3 | [
"Apache-2.0"
] | permissive | yizenghan/sarNet | 683f45620013f906cb8a550713e786787074a8ae | d47a6e243677811b259a753233fbbaf86d2c9c97 | refs/heads/master | 2023-07-16T02:09:11.913765 | 2021-08-30T02:04:02 | 2021-08-30T02:04:02 | 299,276,627 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import torch
from torch import nn
class GumbelSigmoid(nn.Module):
def __init__(self, max_T, decay_alpha, decay_method='exp', start_iter=0):
super(GumbelSigmoid, self).__init__()
self.max_T = max_T
self.cur_T = max_T
self.step = 0
self.decay_alpha = decay_alpha
self... | [
"yizeng38@gmail.com"
] | yizeng38@gmail.com |
d8e6d6bc745881e200737675ec2cd28b084d364d | 68c003a526414fef3c23ad591982f1113ca8a72c | /api/urls.py | 6287d8ae58d870352565ce7f626f9a3aa7037130 | [] | no_license | pawanpaudel93/NepAmbulance | 9d99ef3a3592b3a17091889d9db32aa952974400 | b07dba43926c3f5a350b0acd75ac90b4842e3e32 | refs/heads/master | 2020-06-14T08:59:03.523102 | 2020-01-07T09:05:03 | 2020-01-07T09:05:03 | 194,965,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | from django.contrib import admin
from django.urls import path
from .views import ListCreateAmbulance, RetrieveUpdateDeleteAmbulance, ListDistrict, ListProvince
urlpatterns = [
path('ambulance/<int:province>/<slug:district>/<slug:city>/<int:ward>/', ListCreateAmbulance.as_view(), name="list-create-api"),
path('... | [
"pawanpaudel93@gmail.com"
] | pawanpaudel93@gmail.com |
a25e040005de4ab4ceb6b75d24ad6378699d31d5 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/xt.py | 2cabdcd454cba0a0dfcd2847512439922cc7dc0c | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
6810448a2a2f895bb4d8c9a6ddda997f4967d5d2 | 99b8b8f06f2248a8ef940c0b5ba90d05f0362ba0 | /src/python/strelka/scanners/scan_pe.py | 626e9df031e01b48ea3c146b00d52c99f1d0d331 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thezedwards/strelka | b5d794198791f04a9473ae4b7b2f8a75b7ccac9b | 9791ec50354459b4c80df6e95887e0d6bd58729a | refs/heads/master | 2020-05-24T12:34:15.926932 | 2019-05-16T20:51:40 | 2019-05-16T20:51:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,150 | py | import binascii
from datetime import datetime
import hashlib
import struct
import pefile
from strelka import strelka
IMAGE_MAGIC_LOOKUP = {
0x10b: '32_BIT',
0x20b: '64_BIT',
0x107: 'ROM_IMAGE',
}
class ScanPe(strelka.Scanner):
"""Collects metadata from PE files."""
def scan(self, data, file, o... | [
"liburdi.joshua@gmail.com"
] | liburdi.joshua@gmail.com |
e9a1e970d4704ef0445f93aed0cd5162806488f7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03273/s702731643.py | a626a36c61e3c295dfc6c90d75e2a4adb265c98f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | from collections import defaultdict
import itertools
import copy
def readInt():
return int(input())
def readInts():
return list(map(int, input().split()))
def readChar():
return input()
def readChars():
return input().split()
def p(arr,b="\n",e="\n"):
print(b,end="")
for i in arr:
for j in i:
pr... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b041d27ad67048f098504f32a777272c2c0183c7 | 99218b477267dafe4b9e37a17df7f1cd7af28c78 | /fynd_test/wsgi.py | 23222bda9e292bc12fb0264613d4a79352997fdc | [] | no_license | nattesharan/fynd_test | da3367641cdd9d46220ba881680c7b809539d006 | 45d21e509379bb643630e374f9a31a9454f9f746 | refs/heads/master | 2022-12-01T17:49:38.299113 | 2020-08-16T16:19:23 | 2020-08-16T16:19:23 | 287,949,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for fynd_test project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"nattesharan@gmail.com"
] | nattesharan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.