blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91ac240c83a14f13f239bfa42d189a7ab771a61f | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/comparison/test_chart_pie02.py | da43f3a95439dfc445a57e81a063b68c6b55a26e | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 1,229 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
8915d6ab351b062c940bd3ec98322f3559a95024 | 1546f4ebbb639fddf05d4aebea263931681eaeeb | /code/app/simulation/action/base.py | f63f1c57de9de7e666e7fd5ee0f69e77221c0e48 | [] | no_license | ferdn4ndo/the-train-app | 34e9c885a658f51e42ec6184ca8058872b266244 | 4650433f7f860df3de1f7502cb052891c410618d | refs/heads/master | 2023-01-21T07:15:02.984308 | 2020-11-22T23:57:28 | 2020-11-22T23:57:28 | 315,156,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | from app.common.logger import generate_logger, LoggerFolders
from app.simulation.exception.error import ConflictConditionError
class BaseAction:
name = "none"
abbrev = "---"
def __init__(self):
"""Class constructor"""
self.moving_towards_section = ""
self.lookup_train_prefix = ""
... | [
"const.fernando@gmail.com"
] | const.fernando@gmail.com |
e0d03d82a89f95990dd13ba64cb7019fc71d2dd3 | 3b786d3854e830a4b46ee55851ca186becbfa650 | /SystemTesting/pylib/vmware/nsx/manager/bridge_endpoint/api/nsx70_crud_impl.py | 008596b40abee0735845510a687241e799f38991 | [] | no_license | Cloudxtreme/MyProject | d81f8d38684333c22084b88141b712c78b140777 | 5b55817c050b637e2747084290f6206d2e622938 | refs/heads/master | 2021-05-31T10:26:42.951835 | 2015-12-10T09:57:04 | 2015-12-10T09:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | import vmware.nsx_api.manager.bridgeendpoint.bridgeendpoint\
as bridgeendpoint
import vmware.nsx_api.manager.bridgeendpoint.schema.bridgeendpoint_schema\
as bridgeendpoint_schema
import vmware.nsx.manager.api.base_crud_impl as base_crud_impl
class NSX70CRUDImpl(base_crud_impl.BaseCRUDImpl):
_attribute_m... | [
"bpei@vmware.com"
] | bpei@vmware.com |
a4129e72e7a4b57f2a59c688c107e9ab48afe0a9 | 57845ff6759377884092d8d1c5fe82244e30b108 | /code/era5_heat_comp/bias_correction.py | df5ba6a607bd21e394286839459eee3bba4e7534 | [
"CC-BY-4.0"
] | permissive | l5d1l5/project10 | c11424c7329cdc264f6fedd974a8f887fe6c8cf8 | ded1ef7ce04573d669c2f0352b03317f64f1f967 | refs/heads/main | 2023-06-10T17:17:01.748249 | 2021-06-09T13:20:35 | 2021-06-09T13:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,728 | py | #!/usr/bin/env python
"""
Bias correction for the UTCI dataset
Both the climate model data and the ERA5-HEAT data have been regridded to 1x1 degree and uploaded to JASMIN. Here we use the ERA5-HEAT dataset from 1985 to 2014 and compare this to the derived UTCI from each climate model.
Therefore, instead of bias-corr... | [
"chrisroadmap@gmail.com"
] | chrisroadmap@gmail.com |
951acdaacbf96a5af43073fe36dba77c68a2eb14 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /Phys/BsJPsiKst/python/BsJPsiKst/GetTristanWeights_paramAc.py | de47f925bc07c284ed7678d0bb08603b73f108b6 | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,884 | py | from ROOT import *
from math import *
from array import *
from Urania import PDG
from Urania.Helicity import *
from Urania import RooInterfaces as D
from Urania import *
AccessPackage("Bs2MuMu")
from smartpyROOT import *
from OurSites import *
from sympy.utilities.lambdify import lambdify
from parameters import KpiBins... | [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
a5ab4535550b8fb055e694138a48dab497767a30 | d22f8cd1a834f706d2c0cd77a814414cb4650265 | /login/login/middleware/checksum.py | 2a6998d66cfd6febc69caf3468ff43ac487ed4c2 | [
"MIT"
] | permissive | teris1994/L2py | 9e7535935f58d729453f39bee998f21240b85e8b | 07cc5d7c5d52ac4179378b29ef4873b11f6daa0c | refs/heads/master | 2023-09-01T06:21:10.625029 | 2021-10-24T12:48:18 | 2021-10-24T13:21:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | from common import exceptions
from common.middleware.middleware import Middleware
from login.packets.init import Init
class ChecksumMiddleware(Middleware):
@staticmethod
def verify_checksum(data):
if len(data) % 4 != 0:
return False
checksum = Int32(0)
for i in range(0, le... | [
"yurzs@icloud.com"
] | yurzs@icloud.com |
7854b547da510307bdd078230c768958d415bf82 | 17e31331b7bf66ce11b77ff26a4ddbeb8355c53b | /2M1207ANALYSIS/plotTinyTimResult.py~ | 14780eb0b19495045732afd7925ceec7476793c6 | [] | no_license | YifZhou/Exoplanet-Patchy-Clouds | 06e314b941055b2a758c081d5b169f5b909b416c | 31c52938b22187182475872fd1550e3b9d384bf2 | refs/heads/master | 2020-12-24T16:43:02.882067 | 2015-12-11T22:26:30 | 2015-12-11T22:26:30 | 25,367,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | #! /usr/bin/env python
from __future__ import print_function
import matplotlib.pyplot as plt
import pandas as pd
plt.style.use('ggplot')
fn = '2M1207B_flt_F125W_fileInfo.csv'
df = pd.read_csv(fn, parse_dates = {'datetime':['obs date', 'obs time']}, index_col = 'datetime')
plt.plot(df.index, df['fluxA'], 's', label = '... | [
"zhouyifan1012@gmail.com"
] | zhouyifan1012@gmail.com | |
8a3a42371a8d7d3f73a4cbf063670af54642286d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03805/s696591698.py | 98b40232bec4242d8b740de8f5e409457aaeddf4 | [] | 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 | 571 | py |
#入力
N,M = map(int,input().split())
graph = [ ]
for _ in range(N+1):
graph.append([])
for _ in range(M):
a,b = map(int,input().split())
graph[a].append(b)
graph[b].append(a)
visited = []
for _ in range(N+1):
visited.append(False)
def dfs(dep,cur):
global N,visited,graph
if dep == N:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
df5293357794e1ccbcb5ff320b79d5c8e310eda0 | 2063a4c153b380c1d6d25f0ece6fb514389f9b1d | /mock/buildbot_secret.py | f9a64aec05765a936f22e9ece4058f6782435778 | [
"MIT"
] | permissive | musm/julia-buildbot | 1d097f709d3f75c0becd46a9075fa52638f745d7 | 653746334ba7106cde197c910f4125a3f2930fc0 | refs/heads/master | 2021-06-24T08:15:38.373394 | 2020-07-15T06:10:41 | 2020-07-15T06:10:41 | 211,406,721 | 0 | 0 | MIT | 2019-09-27T21:48:59 | 2019-09-27T21:48:59 | null | UTF-8 | Python | false | false | 515 | py | GITHUB_WEBHOOK_SECRET="nothing to see here"
GITHUB_OAUTH_CLIENT_ID="nothing to see here"
GITHUB_OAUTH_CLIENT_SECRET="nothing to see here"
GITHUB_STATUS_OAUTH_TOKEN="nothing to see here"
COVERALLS_REPO_TOKEN="nothing to see here"
CODECOV_REPO_TOKEN="nothing to see here"
FREEBSDCI_OAUTH_TOKEN="nothing to see here"
FQDN="... | [
"staticfloat@gmail.com"
] | staticfloat@gmail.com |
b1d83eb193e2280bb822881484407fa574b2b1dd | 03ec2daac0989f9b6936b1e87d8ca1b0d99f1bce | /optfn/local_attention.py | cd07243576469d8196efc9d4b5eacfb79f74b7cb | [] | no_license | SSS135/optfn | f7364dce8c1857baa90d2d6564316762c574a9ba | 48ae4f5439daa89ac54921a7642e612838c724eb | refs/heads/master | 2020-05-29T15:21:38.827291 | 2020-04-29T17:51:09 | 2020-04-29T17:51:09 | 189,217,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from .tile_2d import Tile2d
import math
from torch.utils.checkpoint import checkpoint
class LocalAttention2d(nn.Module):
def __init__(self, in_channels, num_heads, key_size, kernel_size, stride=1, padding=0,
conv_kernel_size=1, co... | [
"sss13594@gmail.com"
] | sss13594@gmail.com |
28e50a72627709735aaa8070033c738ca8ed1c72 | 3cb3702d2f3fb6729f1ea685d8439b7c2ad4f069 | /work22/q1_sol.py | c7c5943f9db4e95834bb8b91f23bdecf41c4985e | [] | no_license | ysmintor/MLAlgorithm | 95d6ceea5b16f94a039a2a5014f78ba3cdbd49d6 | 0ac119eacca336dbc9a1c22ea8a558c1761a08f4 | refs/heads/master | 2020-04-02T01:59:12.813910 | 2019-05-31T05:06:15 | 2019-05-31T05:06:15 | 153,885,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,005 | py | """
Solution to simple exercises to get used to TensorFlow API
You should thoroughly test your code.
TensorFlow's official documentation should be your best friend here
CS20: "TensorFlow for Deep Learning Research"
cs20.stanford.edu
Created by Chip Huyen (chiphuyen@cs.stanford.edu)
"""
import os
os.environ['TF_CPP_MIN_... | [
"ysmintor@gmail.com"
] | ysmintor@gmail.com |
3365218943d3ae9ecc58ae8e412764c6fc07228b | deca929038a88ced836ede461b3cdd951b02dfd6 | /file_upload_project/file_upload_project/settings.py | 22f59090d0178ccac5b3a733a7deb59b9992133e | [] | no_license | JeffLawrence1/Python-Django-Beginner | cff08ff5ab167ff82987b2c4fb1e33d37b1876a9 | 49c0f270f61ae31cf39562bb63c2facf7a443b8d | refs/heads/master | 2020-03-09T03:36:25.347060 | 2018-04-07T21:16:54 | 2018-04-07T21:16:54 | 128,567,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | """
Django settings for file_upload_project project.
Generated by 'django-admin startproject' using Django 1.11.4.
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/
""... | [
"jefflaw13@hotmail.com"
] | jefflaw13@hotmail.com |
8f4797c22b68ab37a8cf040014770158b6c472ef | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2339/60581/245838.py | f70511660b4a3a605ebb9a0482586e53a440cc8f | [] | 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 | 1,528 | py | import sys
lst = []
for line in sys.stdin:
if line.strip()=="":
break
lst.append(line)
input = []
#读入处理
for i in range(0,len(lst)):
theLine = []
j = 0
while j < len(lst[i]):
str = ''
judgeWord = False
judgeNumber = False
if lst[i][j]>='A' and lst[i][j]<='Z':... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
92c1eb4f1f66c9d305670471cc22c3e4c381ebf3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03372/s276854525.py | 57b897a767dabcd81e8e6b4752abbd0e7252b35d | [] | 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 | 571 | py | N,C = map(int,input().split())
A = [list(map(int,input().split())) for _ in range(N)]
A.insert(0,[0,0])
F = [0 for _ in range(N+1)]
F[N] = A[N][1]-(C-A[N][0])
for i in range(N-1,0,-1):
F[i] = F[i+1]+A[i][1]-(A[i+1][0]-A[i][0])
G = [0 for _ in range(N+1)]
for i in range(1,N+1):
G[i] = G[i-1]+A[i][1]-(A[i][0]-A[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e0d1c815ddb30cf7f7840777d2c216dcf534a24c | 467be8fc9c975638fcb7a64d098e1526fd1c96f0 | /dlint/linters/bad_defusedxml_use.py | 95bc81cf1c4d9b13fbf7c12dd478ebb65246b99c | [
"BSD-3-Clause"
] | permissive | dlint-py/dlint | ed8d2ca0446914fceded654a2b810b7f8ad0d9d3 | 307b301cd9e280dcd7a7f9d5edfda3d58e4855f5 | refs/heads/master | 2023-04-13T08:54:52.987469 | 2023-04-10T19:27:01 | 2023-04-10T19:27:15 | 232,599,661 | 154 | 16 | BSD-3-Clause | 2023-03-09T21:21:19 | 2020-01-08T15:53:36 | Python | UTF-8 | Python | false | false | 5,772 | py | #!/usr/bin/env python
from .helpers import bad_kwarg_use
from .. import tree
class BadDefusedxmlUseLinter(bad_kwarg_use.BadKwargUseLinter):
"""This linter looks for lack of "defusedxml" parsing defenses. The
"defusedxml" library offers "forbid_dtd", "forbid_entities", and
"forbid_external" keyword argum... | [
"schwag09@gmail.com"
] | schwag09@gmail.com |
32a6600da729c0f3fd1643970f821d26a6615da5 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/allergies/12407861133f488faa80356443c08313.py | 6ece998ee9ac220a1f267c249ba6d91f9e465777 | [] | 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 | 511 | py | class Allergies(list):
def __init__(self, score):
items = [ 'eggs',\
'peanuts',\
'shellfish',\
'strawberries',\
'tomatoes',\
'chocolate',\
'pollen',\
'cats' ]
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
fba38459a2d51b42d006592e4fd6866557f118f7 | 4f04ce5667f895889cfe54ed5f0dec6f5e7d4e4e | /bert_brain/data_sets/word_in_context.py | a0e401eb6455ea5649b200a69f747179c6b36a65 | [] | no_license | danrsc/bert_brain | e172859b7ab93b0a05ed7c5b936778fae134eabb | eca204f163018270ac6b6687c2f3b6b5b158a89c | refs/heads/master | 2022-11-28T14:32:45.420452 | 2020-08-03T00:14:42 | 2020-08-03T00:14:42 | 167,277,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,590 | py | import os
import json
from dataclasses import dataclass
import numpy as np
from ..common import split_with_indices
from .input_features import RawData, KindData, ResponseKind
from .corpus_base import CorpusBase, CorpusExampleUnifier, path_attribute_field
__all__ = ['WordInContext']
@dataclass(frozen=True)
class W... | [
"daniel.robert.schwartz@gmail.com"
] | daniel.robert.schwartz@gmail.com |
2410138a68e12d0198596a040e18476ee91d7569 | dee143986a25fd602b67aadf82e15d2f7b18f85b | /perfect_stranger/game/pages.py | 7235807b1ada5f95df35ec3eb9200b9fd3776b30 | [
"MIT"
] | permissive | cesslab/otree-perfect-stranger-matching | ea3bace81d2cd810a3197c67648ed6584839bfd9 | 0f5a4fc2beac0176d86f622a23e07511026f77cc | refs/heads/master | 2022-12-12T17:55:44.895739 | 2020-02-08T14:50:46 | 2020-02-08T14:50:46 | 239,089,905 | 0 | 0 | NOASSERTION | 2022-12-08T03:35:36 | 2020-02-08T07:55:53 | Python | UTF-8 | Python | false | false | 657 | py | from otree.api import Currency as c, currency_range
from ._builtin import Page, WaitPage
from .models import Constants
class MyPage(Page):
def vars_for_template(self):
subsessions = self.session.get_subsessions()
matrices = [subsession.get_group_matrix() for subsession in subsessions]
retu... | [
"anwarruff@gmail.com"
] | anwarruff@gmail.com |
7ed601dcf4757b3e86143ca0ec316307eb2303e2 | a50487ba59c7ce04854f9004b9752a32823b7b2a | /src/server.py | 347e07bc1763ec6c906308c9d56625708ab15516 | [] | no_license | shonenada-archives/sqlite-sync | 909062646b01f80cf621b5527f168049e9012e76 | f1379939893cebfffae701904ef12d6b4e4e18ea | refs/heads/master | 2021-01-01T05:13:56.854536 | 2016-06-04T17:53:22 | 2016-06-04T17:53:22 | 59,564,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py | # -*- coding: utf-8 -*-
import os
import sys
import socket
import base64
import sqlite3
HOST = '0.0.0.0'
PORT = 23333
MAX_CONNECTIONS = 1
SEGMENT_SZIE = 1024
DB_PATH = './dbs/sync.db'
db = sqlite3.connect(DB_PATH)
cursor = db.cursor()
def invalid_command(params):
return 'Invalid command'
def ping_command(p... | [
"shonenada@gmail.com"
] | shonenada@gmail.com |
d472390654a9ff3499afe1db639ef2ad8891fa67 | e811a08b8b653da94e516ca147ec49b534f74a62 | /test/Test_unittest.py | 770f9e14cf79477dded396b3d430e617b5f53bf2 | [] | no_license | HoYaStudy/Python_Study | 0feb4a9ba7e68ebea6b2db15b20a3680f979a4de | 59c2cc093ae8ae87c8e07365cc432d87ded29ccc | refs/heads/master | 2023-02-07T23:40:16.135565 | 2023-01-24T06:17:58 | 2023-01-24T06:17:58 | 200,445,372 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,493 | py | # Import Module --------------------------------------------------------------#
import unittest
# Class Definition to Test ---------------------------------------------------#
class TestClass1:
pass
class TestClass2:
pass
# Test Suite Class Definition ------------------------------------------------#
clas... | [
"hoya128@gmail.com"
] | hoya128@gmail.com |
b9c7959458aceb44a3dafe8e626e9ad91f88343a | 02800e659f2088550a402d7d7d8e3902560893e3 | /merf/internal/configs.py | 783fbcf0eb66cf46b5722afa9c8dbd741cc86fd4 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | antonpolishko/google-research | ab8a445d5401185eadfe757e73dc8bcf34da8dea | 1b4e7db5f90bcb4f80803383a81d8613ebfdfeec | refs/heads/master | 2023-08-31T06:38:33.963505 | 2023-08-26T16:33:48 | 2023-08-26T16:37:57 | 422,090,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,732 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
75c37893e9690925f4f47ba04135171f0874ad45 | 5cda8f2070c83341fc7218946213e11788ec7543 | /reg_task/red_winedata.py | e387c7214cae7f6d523b5ff85e0d4aa5f47d7b54 | [] | no_license | masknugget/somethings | 9b833abb2ee4df27118177f3d8c1523916fe957a | a5c0ceaf5e98c68715ce2b2bad89256b76c2118d | refs/heads/master | 2020-09-14T17:18:56.128901 | 2020-03-21T08:29:30 | 2020-03-21T08:29:30 | 223,197,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,692 | py | import numpy as np, pandas as pd
from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression, \
Ridge, Lasso, ElasticNet, SGDRegressor
from sklearn.metrics import mean_squared_error
from sklearn.preprocessing import Standa... | [
"946883098@qq.com"
] | 946883098@qq.com |
a48484aee293a6b54e8aa54af7b99820b5111cd8 | 9cf6a19289e9335f32f1081832dff33e9f1fdc86 | /examples/flask_ext/flask_ext.py | 5f8b0aa4267df72ca84477842773615dfba3c469 | [
"MIT"
] | permissive | SmartManoj/quart | 3f25e7c27d29d930139bea1d34d375f476c897ac | 317562ea660edb7159efc20fa57b95223d408ea0 | refs/heads/master | 2020-06-06T10:25:45.512773 | 2019-06-09T20:11:02 | 2019-06-09T20:11:02 | 192,714,053 | 1 | 0 | MIT | 2019-06-19T10:51:28 | 2019-06-19T10:51:27 | null | UTF-8 | Python | false | false | 2,110 | py | import quart.flask_patch
from secrets import compare_digest
import flask_login
from quart import Quart, redirect, request, url_for
app = Quart(__name__)
app.secret_key = 'secret' # Create an actual secret key for production
login_manager = flask_login.LoginManager()
login_manager.init_app(app)
# Rather than storin... | [
"philip.graham.jones@googlemail.com"
] | philip.graham.jones@googlemail.com |
52cae2c239cddc1e62d8442bee69791c62f20002 | 23e55ab51e322a3c0f967976a84f42f70f8ab701 | /tensorflow/python/ops/nn_loss_scaling_utilities_test.py | 427972f5ce13f1401a30ba675a043d9c63486d56 | [
"Apache-2.0"
] | permissive | thangnvit/tensorflow | f58e7c2f95690f337361aa2973f2b84ac7e7f947 | c83887196eb717af66a7b3f008e970b4a226ff8f | refs/heads/master | 2021-02-21T17:51:56.030461 | 2020-03-06T07:55:33 | 2020-03-06T07:58:38 | 245,362,540 | 3 | 0 | Apache-2.0 | 2020-03-06T08:05:41 | 2020-03-06T08:05:40 | null | UTF-8 | Python | false | false | 7,872 | py | # Copyright 2019 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
bd5e34f3398b5facd631a6575e61d6dee48981a9 | b873ea1def0810f67834bf4926901b9a8fead362 | /exam_preparation_10_21/problem_1 - taxi_express.py | 214d77abc7ad1bb307fe421628f0f89d08382383 | [] | no_license | NikiDimov/SoftUni-Python-Advanced | 20f822614fa0fa7de6ded3956fa8d40d589a4a86 | d6c1fe886a3c27c82f03e5e4a6c670f0905d54e6 | refs/heads/main | 2023-08-23T17:42:32.063057 | 2021-10-25T10:32:03 | 2021-10-25T10:32:03 | 328,750,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from collections import deque
customers = deque(int(el) for el in input().split(', '))
taxis = [int(el) for el in input().split(', ')]
total_time = 0
while customers and taxis:
if customers[0] <= taxis[-1]:
total_time += customers.popleft()
taxis.pop()
else:
taxis.pop()
if not custom... | [
"niki.dimov86@gmail.com"
] | niki.dimov86@gmail.com |
b6df72d27ae81c311084682cded4083282df6a16 | 11c39c48a02d25f2dffab7db76649949a0cca5e5 | /venv/bin/gunicorn_django | 3793a5d4203c3914062d0b6f343e9a2816ec6fc6 | [] | no_license | lssdeveloper/djangoecommerce | 3a1fb8e9208264e143142b112f7ed93fe3654dfe | f93b23dad7c4753cad23cb87f329226aacf1a2f6 | refs/heads/main | 2023-01-03T02:48:52.010251 | 2020-11-05T01:17:00 | 2020-11-05T01:17:00 | 310,119,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/home/leandro/djangoecommerce/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.djangoapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"leandro.serra.10@gmail.com"
] | leandro.serra.10@gmail.com | |
8a509f4b1924614dc3b87e2b87e2cb1716aa792c | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog_tags/initial_6208.py | 93485a216bd02c33878868b948176cbbe6a5050b | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,333 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
a58d2d0f98b28216c8228e5c1ea84e9f433c6285 | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/primaires/combat/commandes/bander/__init__.py | df15806a8f441e1a2a4bf8d37a4d5bfa54f3e48e | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,123 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2013 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# lis... | [
"kredh@free.fr"
] | kredh@free.fr |
712ffc2d8089cd9cdf5177d269fd592d0b46f7db | 50658c41dd6de3330d3795b116c0e0e1b38a41d4 | /lib/daal/storages/__init__.py | bcaea9583775754402938acf7f54233f020ca15e | [] | no_license | nolar/shortener | c01223f4d24f794cd5df3eb76a4beca81419c03a | 05da766aeef7cac4df7a172aefd1d37d360083ac | refs/heads/master | 2021-01-25T05:27:48.011877 | 2011-08-29T18:24:48 | 2011-08-29T18:24:48 | 2,200,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | # coding: utf-8
from ._base import Storage, StorageID
from ._base import StorageExpectationError, StorageItemAbsentError, StorageUniquenessError
from .wrapped import WrappedStorage
from .sdb import SDBStorage
from .mysql import MysqlStorage
| [
"nolar@nolar.info"
] | nolar@nolar.info |
53acc62eb0a66fd52d0aac9c4d02ff50f8eec581 | 574e7b276c83dc3866c0401f51fba38031e1faf1 | /setup.py | 386ff893bd50d64a2733f87a81810a0d7977b6bf | [
"BSD-3-Clause"
] | permissive | hiclib/iced | 251805e411a4126a07f186c67b378d4e03320f16 | 53d7a936d841dba6ae0f8fe8d168e7f4553a62eb | refs/heads/master | 2023-01-27T23:34:12.999341 | 2023-01-20T14:15:16 | 2023-01-20T14:15:16 | 29,135,229 | 30 | 38 | NOASSERTION | 2023-01-20T14:15:18 | 2015-01-12T12:50:24 | Python | UTF-8 | Python | false | false | 3,443 | py | import os
import sys
DISTNAME = 'iced'
DESCRIPTION = 'ICE normalization'
MAINTAINER = 'Nelle Varoquaux'
MAINTAINER_EMAIL = 'nelle.varoquaux@gmail.com'
VERSION = "0.6.0a0.dev0"
SCIPY_MIN_VERSION = '0.19.0'
NUMPY_MIN_VERSION = '1.16.0'
# Optional setuptools features
# We need to import setuptools early, if we want ... | [
"nelle.varoquaux@gmail.com"
] | nelle.varoquaux@gmail.com |
8060013fa68577e23d342f0850936dfbffc7c906 | 5bfa6d39ca5999f24d5c054cf26d4112156d6842 | /Practice/Numpy/Polynomials.py | e95bad632063bb8b47132979c10f83ea795d01de | [] | no_license | CompetitiveCode/hackerrank-python | 3ad7f70f3d09149242b2ab6b27d0e4ec2a188837 | 898e6bf791791cbdeca9192c78c623a115b4c97b | refs/heads/master | 2022-02-03T23:14:57.866923 | 2019-05-30T11:34:01 | 2019-05-30T11:34:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | #Answer to Polynomials
import numpy
a=list(map(float,input().split()))
x=int(input())
print(numpy.polyval(a,x))
"""
poly
The poly tool returns the coefficients of a polynomial with the given sequence of roots.
print numpy.poly([-1, 1, 1, 10]) #Output : [ 1 -11 9 11 -10]
roots
The roots tool returns the... | [
"admin@remedcu.com"
] | admin@remedcu.com |
4abe6e32b5d50900b94925c86cfa31cd58e03efc | 09e8c92187ff8d7a726727041e2dd80850dcce3d | /interview_cake/CAKE_203_find_rotation_point.py | 3353430fa0d222707af18761f0fd88a2d67630b8 | [] | no_license | kakru/puzzles | 6dd72bd0585f526e75d026f3ba2446b0c14f60e0 | b91bdf0e68605f7e517446f8a00b1e0f1897c24d | refs/heads/master | 2020-04-09T09:47:31.341475 | 2019-05-03T21:24:41 | 2019-05-03T21:24:41 | 160,246,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,210 | py | import unittest
# class Solution: # naive solution with O(n) time
# def findRotationPoint(self, words):
# """
# :type A: List[List[int]]
# :rtype: List[List[int]]
# """
# length = len(words)
# if length == 0:
# return None
# elif length == 1:
# ... | [
"karol@kruzelecki.com"
] | karol@kruzelecki.com |
a334b1604a06a8cca9a7a309ca067b58b98f81c6 | b637e53b36ad083575b161eaa8371f0cc11981a2 | /apps/Articulos_Cientificos/models.py | a096dbfd20585fd9a513898401accf4ae8f69bc2 | [] | no_license | cienciometrico2017/cienciometrico2018v2.0 | d7d014f858296aa262649696a4d3bfceb0b9afec | 22e8800c921e8c4890c4f52c9826532364a99a68 | refs/heads/master | 2020-03-20T22:04:26.710351 | 2018-07-26T04:28:26 | 2018-07-26T04:28:26 | 137,777,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,516 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from apps.Linea_Investigacion.models import linea_investigacion
from apps.Sub_Lin_Investigacion.models import sub_lin_investigacion
from apps.baseDatos.models import baseDatos
from apps.Revista.models import revista
from apps.... | [
"danilomoya19@gmail.com"
] | danilomoya19@gmail.com |
a2febb4a52872577529393b416dd06c38c3770c7 | bee9379d610c8e7b524646c5f6fe26608bf54fe1 | /detectron/ops/generate_proposals.py | b804c36f0c3664f92a804f9b1d5cfa10abb0d969 | [
"Apache-2.0",
"MIT"
] | permissive | PacteraOliver/Detectron | 8e6eeaa5c17506b8fa73a47d3df7c7dbe93a200a | b3ad58fe74b64b7594dac7537ce950f5e4f54235 | refs/heads/master | 2020-03-19T02:33:24.927162 | 2018-06-12T18:57:02 | 2018-06-12T18:57:02 | 135,638,922 | 3 | 0 | Apache-2.0 | 2018-06-12T18:14:33 | 2018-05-31T21:54:07 | Python | UTF-8 | Python | false | false | 7,996 | py | # 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 applicable law or agreed... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
23f2bea2b14225dad77414ae3db666636d85bc98 | f89d70fc8bf370ef4e2aa54c7ee0de3b4a053624 | /examples/EC2InstanceSample.py | 1de96374251ddaabaa2bd2c493498593a6a8dba3 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yks0000/troposphere | a7622bff01c31f10dcb296d2ca353144e1d7f793 | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | refs/heads/main | 2022-04-28T03:51:42.770881 | 2022-04-15T15:15:01 | 2022-04-15T15:15:01 | 482,753,190 | 1 | 0 | BSD-2-Clause | 2022-04-18T07:20:42 | 2022-04-18T07:20:42 | null | UTF-8 | Python | false | false | 2,299 | py | # Converted from EC2InstanceSample.template located at:
# http://aws.amazon.com/cloudformation/aws-cloudformation-templates/
import troposphere.ec2 as ec2
from troposphere import Base64, FindInMap, GetAtt, Output, Parameter, Ref, Template
template = Template()
keyname_param = template.add_parameter(
Parameter(
... | [
"mark@peek.org"
] | mark@peek.org |
d5bb51ef5a3cee89328ed10c67a8b8fd3f001861 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/business_word_uml_president_state_father/history.py | 44a4e3fdcc4a16d61ba54303596d20b908eb412b | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | const request = require('request');
const uuidv4 = require('uuid/v4');
/* Checks to see if the subscription key is available
as an environment variable. If you are setting your subscription key as a
string, then comment these lines out.
If you want to set your subscription key as a string, replace the value for
the O... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
adcdc60dec982562dd7453dba24bea1c337f66f5 | 86990e89998b2ac9e2aa3e79df4bd72c07173903 | /server.py | 5ff1c63e1b6522d95a7645d3b6e9bdd21616e387 | [] | no_license | StevenAWillis/counter.py | ce0dac1983de177101821cbf11b40a5dbf5c6b58 | c60873e53e069a693d11383902b5215109cc3d78 | refs/heads/master | 2020-06-20T18:46:19.194569 | 2019-07-16T14:43:04 | 2019-07-16T14:43:04 | 197,212,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from flask import Flask, render_template, request, redirect, session
app =Flask(__name__)
app.secret_key = 'keep it secret, keep it safe'
@app.route("/")
def count():
if 'count' not in session:
session['count'] =0
else:
session['count'] +=1
if 'countv' not in session:
session['co... | [
"you@example.com"
] | you@example.com |
37d399628b1fda5d720d6cfa764e556e40257814 | dea7bc1fe176d090ffa426ffd982f3f8ddb8afa7 | /Histogram_Equalization.py | 48c9fb6dd1c7f0db61f7ddb0227333f5d4228d5f | [] | no_license | cool229/Ashish-Kumar | f03f99a02d6c96ff94931b9026b079b7f6c8ffad | 72b40c7916b2447c11a6548fbb0d72a25098a6eb | refs/heads/master | 2020-03-29T20:10:41.810904 | 2019-03-10T09:42:47 | 2019-03-10T09:42:47 | 150,299,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | import cv2
import matplotlib.pyplot as plt
def main():
imgpath = "D:\\COURSES\\OpenCV\\Action\\standard_test_images\\lena_color_256.tif"
img = cv2.imread(imgpath, 1)
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
R, G, B = cv2.split(img)
output1_R = cv2.equalizeHist(R)
... | [
"noreply@github.com"
] | cool229.noreply@github.com |
b9248fdad90ce6ea4bd2265ba41473172071b84c | 55bf9e277f3e222c3c0d5fc571f59c2454eca491 | /scratch/delicatessen/main.py | 688db894b2960acab3987a54a2596a102b923ee2 | [
"MIT"
] | permissive | megbedell/delicatessen | 92dce685dcb808ddfcf8efb49a2d0dd9c1200a18 | 2f7217413c93a6ac76875724a8cc56b570065e4c | refs/heads/master | 2022-12-14T01:51:06.414952 | 2020-09-08T21:23:38 | 2020-09-08T21:23:38 | 293,909,165 | 0 | 0 | MIT | 2020-09-08T19:35:19 | 2020-09-08T19:35:18 | null | UTF-8 | Python | false | false | 3,123 | py | import numpy as np
from bokeh.io import curdoc
from bokeh.layouts import column, row
from bokeh.models import (
ColumnDataSource,
Div,
Select,
MultiSelect,
Slider,
TextInput,
)
from bokeh.plotting import figure
from bokeh.models.tools import TapTool
from bokeh.models.callbacks import CustomJS
im... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
97f925580a92f0e296fd2c6ab77eaf73efcb812a | 19102b3cc7a78b4f09d5e5eef3f7a93e33d8b988 | /backend/api/serializers/model_year_report_vehicle.py | 7d0463c011bac8eb464d731e893cdbd75be67554 | [
"Apache-2.0"
] | permissive | emi-hi/zeva | 196b766096d2353b8ba57347b4946dce43c1b0a7 | b395efe620a1b82c2ecee2004cca358d8407397e | refs/heads/master | 2023-04-16T15:20:29.240394 | 2023-03-21T21:44:08 | 2023-03-21T21:44:08 | 234,123,338 | 0 | 0 | Apache-2.0 | 2020-01-15T16:27:38 | 2020-01-15T16:27:37 | null | UTF-8 | Python | false | false | 2,295 | py | from rest_framework.serializers import ModelSerializer, \
SlugRelatedField
from api.models.model_year_report_vehicle import ModelYearReportVehicle
from api.serializers.vehicle import VehicleZevTypeSerializer
from api.serializers.vehicle import ModelYearSerializer
from api.serializers.credit_transaction import Credi... | [
"noreply@github.com"
] | emi-hi.noreply@github.com |
2ab6c871fdd07dcd31a44b4c2ab1a93718ab24fc | 4860fc856e6c75cc980c92399a2f673bf6ee06e2 | /hello/migrations/0003_sitemessage_event_date.py | f7fac7459be5640425d79342fedc65881ff9c27e | [] | no_license | RobertPastor/music-rungis | bcf994bfd515e3cdc220b12b32dd2cdead9a35c6 | b69153ded934d1d317b828f2a1aa4dbdc5b2caae | refs/heads/master | 2023-03-17T18:08:44.411749 | 2022-11-19T12:16:06 | 2022-11-19T12:16:06 | 62,034,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-04-13 19:35
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hello', '0002_sitemessage'),
]
operations = [
migrations.Add... | [
"robert.pastor0691@orange.fr"
] | robert.pastor0691@orange.fr |
9992ae849702757f553f0c77125a04659fad1629 | 6e885227c59b5b8a5a7359beb938139fca98a16f | /contacts/wsgi.py | ec24a26034a81360f3da321164adb11883330151 | [] | no_license | BukhosiMoyo/contact_list_app | 880ada2703a50014ca30ac6f1f65dac54a8fe49a | 122df2f328f0fd375f28587112daf14190d50896 | refs/heads/master | 2023-02-23T17:49:20.942877 | 2021-01-14T21:18:39 | 2021-01-14T21:18:39 | 331,508,576 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for contacts 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"bukhosizimcode@gmail.com"
] | bukhosizimcode@gmail.com |
723f727f775cbac7453aa196794d2a1531788594 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/bncdea001/question2.py | 0a3ac49bba9175ed2a5208dcfbf1e0a3657c7dbc | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # Program to check if time is valid
def main():
h=eval(input("Enter the hours: \n"))
m=eval(input("Enter the minutes: \n"))
s=eval(input("Enter the seconds: \n"))
if 0<=h<=23 and 0<=m<=59 and 0<=s<=59:
print("Your time is valid. ")
else:
print("Your time is invalid. ")
main() | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
9dfc3d5217726a4d5b436b42281e13f320ce4a7b | e7c6304677326cc40b33d72b7ee079ce3c14af4f | /getPredictionsSTS-BAlternatives_c.py | 6f17588f1041ab7fc8cc466c71703d46b565b595 | [
"MIT"
] | permissive | m-hahn/fairseq | 77f86676dd3a0793b616da89e8bc286b3c913da6 | 8508699326640a6a7a83ed4de17ac986e6213bbe | refs/heads/master | 2023-02-24T02:56:20.477873 | 2021-01-29T01:38:59 | 2021-01-29T01:38:59 | 256,415,870 | 0 | 0 | MIT | 2020-05-01T02:02:19 | 2020-04-17T06:03:05 | Python | UTF-8 | Python | false | false | 2,270 | py | from fairseq.models.roberta import RobertaModel
roberta = RobertaModel.from_pretrained(
'checkpoints_STS-B/',
checkpoint_file='checkpoint_best.pt',
data_name_or_path='STS-B-bin'
)
import torch
label_fn = lambda label: roberta.task.label_dictionary.string(
torch.LongTensor([label + roberta.task.label_d... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
c2237e88d3b71f74dceb4aafd4548925815cecce | d926e5308b5fe794d56e57d02041ea0c2436af6e | /dockerfiles/application/sonarqube/build.py | 1cd7ed2db98961fe9ca7043b4c9550ff6ad80d4c | [] | no_license | Amos-x/Blog-scripts | fa1db3805551aeff22fc326b302ec433ac595add | 95427b45cfdd5c2de6b3f8f5b4b68983fe1c5751 | refs/heads/master | 2022-04-19T21:19:12.070218 | 2020-03-15T15:15:27 | 2020-03-15T15:15:27 | 208,993,845 | 0 | 0 | null | 2022-03-29T21:56:43 | 2019-09-17T07:59:27 | Python | UTF-8 | Python | false | false | 1,092 | py | # -*- coding:utf-8 -*-
# __author__ = Amos
# Email = 379833553@qq.com
# Create_at = 2018/11/8 下午3:48
# FileName = build
from config import config as CONFIG
from utils.common import exec_shell,container_is_exist
def build_sonarqube():
if not container_is_exist('sonarqube'):
pull = 'docker pull son... | [
"379833553@qq.com"
] | 379833553@qq.com |
d26571867c2f8a8198ce2da00ebd7c1366a86ecd | d8b1effe86a654d1831b56fdd8d6a9248b29fe01 | /Week_4/Assignment_3/assignment3.py | 6f35dc7ef13eaee69ac858ab419489061ddaf63d | [] | no_license | Nidhiks2000/eyrc-mooc | b273e376b5ae31779469c48443dee4f73ade7c82 | 8e49668569a89700954165136ea29524143ff49f | refs/heads/master | 2023-07-18T05:26:22.311527 | 2021-09-08T16:48:23 | 2021-09-08T16:48:23 | 404,424,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py |
# No other modules apart from 'csv' and 'datetime' need to be imported
# as they aren't required to solve the assignment
# Import required module/s
import csv
from datetime import datetime as dt
def dayofweek(d, m, y):
t = [ 0, 3, 2, 5, 0, 3,
5, 1, 4, 6, 2, 4 ]
y -= m < 3
return (( y + int(y / ... | [
"Happysunshine.disroot.org"
] | Happysunshine.disroot.org |
145447a9d8ca15126c29c3cdd7b0d1c28972fe54 | d2a181395347b6b7308cdbd9a411c79775a035c8 | /tests/loggers/test_csv.py | dcdb6421c517f5474a910124471f2b301b058c20 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | rephrase-ai/pytorch-lightning | d30d552288d1bf6f65a605e5c8893583ecc58862 | 8bd7b1bdd7d3f723822e78908033cf0a6743713a | refs/heads/master | 2023-06-06T11:32:41.765882 | 2021-06-23T12:09:53 | 2021-06-23T12:09:53 | 291,268,679 | 2 | 0 | Apache-2.0 | 2020-08-29T12:38:33 | 2020-08-29T12:38:32 | null | UTF-8 | Python | false | false | 3,466 | py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"noreply@github.com"
] | rephrase-ai.noreply@github.com |
d15f4682a12eaabed8dec8aae69d51acc2542be6 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/Omsg/PyRunPancakeLarge.py | 001bb8508f54e1f99cced37f0cb802254ec1da0b | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,657 | py | import numpy as np
# ---- config ---- #
FileInput="dataPancakesLarge.in"
FileOutput="dataPancakesLarge.out"
# ---------------- #
def start(pancakes):
pancakes=pancakes[::-1]
pan=[]
turns=0
for p in pancakes:
pan.append(p)
i=0
for p in pan:
if p=="-":
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
1504d4dc673f453ce8d6a9116235cb370f0c3b20 | b74a332412c303921e8e067e83cbae47d64a1c9f | /common/libs/food/FoodService.py | 0337a5785c2dbeb7523e2209c76d2f5e1b7cba13 | [] | no_license | whisnos/weix | aaaf490d8f80b7ea991fa8261a74cabff8c12da1 | 4ff6f5d03e8cc304c8b12c278488b284672210c0 | refs/heads/master | 2022-12-11T03:36:26.547935 | 2019-07-13T04:27:22 | 2019-07-13T04:27:22 | 195,082,638 | 0 | 0 | null | 2022-12-08T05:50:35 | 2019-07-03T15:35:17 | JavaScript | UTF-8 | Python | false | false | 858 | py | # -*- coding: utf-8 -*-
from application import app,db
from common.models.food.FoodStockChangeLog import FoodStockChangeLog
from common.models.food.Food import Food
from common.libs.Helper import geneTime
class FoodService():
@staticmethod
def setStockChangeLog( food_id = 0,quantity = 0,note = '' ):
i... | [
"whisnos@163.com"
] | whisnos@163.com |
df62c390162d75f6230cac5e9e41da256e08bfd0 | f33b30743110532ddae286ba1b34993e61669ab7 | /352. Data Stream as Disjoint Intervals.py | 7fcf3a2a59b62c44815f299b37bcf78d3bfd76c8 | [] | no_license | c940606/leetcode | fe9dcee7a5daa4d52999d5f53253dd6dd33c348b | 631df2ce6892a6fbb3e435f57e90d85f8200d125 | refs/heads/master | 2021-07-10T14:01:26.164966 | 2020-08-16T10:46:16 | 2020-08-16T10:46:16 | 186,588,449 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | import bisect
from typing import List
class SummaryRanges:
def __init__(self):
"""
Initialize your data structure here.
"""
self.res = []
def addNum(self, val: int) -> None:
loc = bisect.bisect_left(self.res, [val])
if loc < len(self.res):
if self.r... | [
"762307667@qq.com"
] | 762307667@qq.com |
79771f0560e4f83582b509058b21e9a77b8696ae | 8c568d5ba0c4f05b10ac831d4961f34925d3db8e | /09_面向对象特性/yc_12_类属性.py | bb5951530999d19e6324a3e2a9c8366c183e082d | [] | no_license | Yang-yc/Python | dbca12bf10f7eb628ab2676e56ea5dc8ebe025af | 985bafccb45232e3c2e24d14f5a1e0dd1ff67065 | refs/heads/master | 2022-12-31T00:47:01.659889 | 2020-09-27T07:11:32 | 2020-09-27T07:11:32 | 285,573,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | class Tool(object):
# 使用赋值语句定义类属性,记录所有工具对象的数量
count = 0
def __init__(self, name):
self.name = name
# 让类属性的值+1
Tool.count += 1
# 1.创建工具对象
tool1 = Tool("斧头")
tool2 = Tool("榔头")
tool3 = Tool("水桶")
# 2.输出工具对象的总数
print(Tool.count)
| [
"ycc20121404@163.com"
] | ycc20121404@163.com |
37c6e185d005cfd7fee82133847c02321d343861 | c3e0792872e6bc34299b64e532f20187ec92dd0b | /uvrnmt/imagesfromsentence.py | 8f999fa08ebe4422ec2aa039219a1c39d6f59364 | [] | no_license | zubairabid/hybrid-mt | fc1fcb8c7b8e4837d1a8b383b9e0f6766cb32073 | 242e0588d2f6b694e5bc9b50b036e5a1c48c7a20 | refs/heads/master | 2022-06-10T14:15:46.959808 | 2020-05-06T02:24:28 | 2020-05-06T02:24:28 | 255,111,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,524 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import CountVectorizer
import numpy as np
import pickle
# In[2]:
def load_stopwords(path_to_stopwords):
stopwords = []
with open(path_to_stopwords, 'rb')... | [
"zubairabid1999+github@gmail.com"
] | zubairabid1999+github@gmail.com |
7302e33689ecf7a8f5a508a4ca323c6c352a2fa7 | 69bcc45028038351a7f891025df1f8e7d4b855f1 | /supervised_learning/0x04-error_analysis/2-precision.py | bbbb8199ffd49f17a12649012c3a6b52dc6fe389 | [] | no_license | linkjavier/holbertonschool-machine_learning | 6db799844821d450fed2a33a8819cb8df0fef911 | c7b6ea4c37b7c5dc41e63cdb8142b3cdfb3e1d23 | refs/heads/main | 2023-08-17T21:00:24.182003 | 2021-09-09T05:47:06 | 2021-09-09T05:47:06 | 304,503,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!/usr/bin/env python3
""" Precision Module """
import numpy as np
def precision(confusion):
""" Function that calculates the sensitivity for each
class in a confussion matrix
"""
classes, _ = confusion.shape
classPrecision = np.zeros(classes)
for classItem in range(classes):
clas... | [
"linkjavier@hotmail.com"
] | linkjavier@hotmail.com |
838c922568619e9c765ef08d146d4c44efb7f403 | 297497957c531d81ba286bc91253fbbb78b4d8be | /testing/web-platform/tests/tools/third_party/pytest/src/_pytest/_io/terminalwriter.py | 578b4507e30a12c62aeff72ba90fca207718f8ec | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 6,906 | py | """Helper functions for writing to terminals and files."""
import os
import shutil
import sys
from typing import Optional
from typing import Sequence
from typing import TextIO
from .wcwidth import wcswidth
from _pytest.compat import final
def get_terminal_width() -> int:
width, _ = shutil.get_terminal_size(fa... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
a7d0db784cf881f05dba47cc0b12b2e1fbbdb62d | d8913c1512146bb42756f61ba0872d73179884eb | /listinghouse/serializers.py | 80ebe2255ddd5aae19eed9132ea1d96f83bea056 | [
"MIT"
] | permissive | sahin88/Django_Rest_Framework_Redux_React_Estate_App_FullStack | 2ed305c399edfab05ce3653e8bcaf36f09ae9015 | 10e31c4071bcebc0e4401f42084211d170b2ea56 | refs/heads/main | 2023-03-22T17:00:37.102265 | 2021-03-16T17:26:53 | 2021-03-16T17:26:53 | 319,297,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | from rest_framework import serializers
from .models import Listings
class ListingsSerializers(serializers.ModelSerializer):
class Meta:
model = Listings
fields = ('title', 'adress', 'city', 'state', 'price', 'house_type', 'sqft', 'open_house',
'sale_type', 'photo_main', 'bathroom... | [
"sahinmuratogur@gmail.com"
] | sahinmuratogur@gmail.com |
13fc739aab16ab38d7a30ba8b63752d9ac9fbcd2 | ef9d0d7d305ed829ff3ef1c66869d80517eebfc0 | /tfx/orchestration/portable/python_executor_operator_test.py | 388a145199578452084c6774e4b14c14df31c77a | [
"Apache-2.0"
] | permissive | Saiprasad16/tfx | 22ee62ccef1ec4b6fbb4dfa1ece5d7f701918c94 | c1e0704b2a83232469f55598efcdb7808b6c909f | refs/heads/master | 2023-04-28T09:58:04.522405 | 2021-05-10T09:01:22 | 2021-05-10T09:02:37 | 366,007,194 | 1 | 0 | Apache-2.0 | 2021-05-10T10:41:53 | 2021-05-10T10:40:57 | null | UTF-8 | Python | false | false | 6,801 | py | # Copyright 2020 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 required by applicable law or a... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
6c4eddee5209f157275e0c1c486d4a9000dd913a | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/nextGreater_20200626113110.py | 7ce3a916d9cbe406ef38804518f0fc5d2f6c8ae5 | [] | 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 | 274 | py | # [4,5,2,25]
def nextGreater(arr):
for i in range(len(arr)):
for j in range(i+1,len(arr)):
print('i -------->',arr[i])
print('j--->',arr[j])
next = -1
if arr[i]
nextGreater([4,5,2,25]) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
488d37a9557bbaa9ff0e1776cd2ed117da779dae | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /puzzles/paint_house_iii.py | 051c5ec114bf5ae06f30f68479b4daa2fe5f9c4f | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 3,763 | py | # https://leetcode.com/problems/paint-house-iii/
"""
There is a row of m houses in a small city, each house must be painted with one of the n colors (labeled from 1 to n), some houses that have been painted last summer should not be painted again.
A neighborhood is a maximal group of continuous houses that are painted... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
492e82e716c69c6f83f8eabf883c64187f99db7a | 118546c7bf7fe3063ed68e1c6270b33ed500c3c9 | /python8/ex08.py | f223d0f2db2d8d7c1744afd39fd84c04f31a3fa4 | [] | no_license | yoonah95/Python_practice | 83b1070f1c95d57a9ea81d2ec3898521f98544f4 | 1e8fbded66e789ba77b3af5499520b8e8e01a6a1 | refs/heads/master | 2022-06-12T20:55:38.490142 | 2020-05-08T02:20:20 | 2020-05-08T02:20:20 | 256,125,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py |
import sys
import StringIO
stdout = sys.stdout
sys.stdout = f = StringIO.StringIO()
print('Sample output')
print('good')
print('Good')
sys.stdout = stdout
s = f.getvalue()
print 'Done-------------'
print(s)
| [
"yoon.a1@hanmail.net"
] | yoon.a1@hanmail.net |
9dc8de4d2758350b6b958b69e457c1d86f34e7aa | 0eb599c3bbfa6e5b31516913b88cc9db3a1311ce | /AGC/agc041b.py | 047f318a49e38b13fc421cfd7491200922169bae | [] | no_license | Linus-MK/AtCoder | 5b84dc88c2d2773d0f97ed18265d303290da7879 | a587e89a9e0c2ab4d36b09176bcc95e901e14326 | refs/heads/master | 2022-11-25T05:37:12.148722 | 2022-11-17T16:04:10 | 2022-11-17T16:04:10 | 169,840,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | # うーん分からん
# ある特定の問題を入れたい人の気持ちになって考えた場合、トップにする必要はない
# 上位P問が使われるので、同率P位に滑り込めればOK
# 明らかに、ソートしても問題ない
# 投票して数字を増やすより減らしたほうが見通しが立てやすい気がするぞ
# (P問の値を1引き上げるのではなく、N-P問の値を1引き下げる、と考える。これでも同じ。)
# 降順にソートする。
# 「ある特定の問題」がk問目だとする。
# 上位(P-1)問は確定。P問目〜k-1問目をk問目と同じ数まで引き下げられたらOK。
# この引き下げが可能である条件は
# ・P問目の数 - k問目の数 <= 投票者の数M
# ・引き下げに必要な票数合... | [
"13600386+Linus-MK@users.noreply.github.com"
] | 13600386+Linus-MK@users.noreply.github.com |
192d9b5bc4efbf95468b5095c4c8a2857a41666c | 0910e259a9bd252300f19b2ff22049d640f19b1a | /ml/m16_pipeline_RS4_boston.py | fddc26054c201ab70e936aa04c527f0903fdb23a | [] | no_license | kimtaeuk-AI/Study | c7259a0ed1770f249b78f096ad853be7424a1c8e | bad5a0ea72a0117035b5e45652819a3f7206c66f | refs/heads/master | 2023-05-05T12:34:52.471831 | 2021-05-22T16:16:12 | 2021-05-22T16:16:12 | 368,745,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | #전처리 하나와 모델을 합침
import numpy as np
import tensorflow as tf
import pandas as pd
from sklearn.datasets import load_boston
from sklearn.preprocessing import MinMaxScaler, StandardScaler
from sklearn.model_selection import train_test_split, KFold, cross_val_score, GridSearchCV, RandomizedSearchCV
from sklearn.metrics impo... | [
"ki3123.93123@gmail.com"
] | ki3123.93123@gmail.com |
942af07212df99cf419268d0a99a758b26bcbd9b | 262195faec1b59ff67067f2dc7e3eb7db8dba946 | /src/follow.py | 9a204856a7170ebd404ce32e362b91c1f6278f99 | [
"MIT"
] | permissive | sudeep0901/python | 3a090ae2cd8a61e8e375cebb4722c051d2d766aa | 7a50af12e72d21ca4cad7f2afa4c6f929552043f | refs/heads/master | 2022-04-21T14:15:25.606241 | 2020-04-13T02:35:56 | 2020-04-13T02:35:56 | 155,167,294 | 0 | 0 | MIT | 2020-03-07T06:59:36 | 2018-10-29T07:08:06 | Jupyter Notebook | UTF-8 | Python | false | false | 432 | py | '''
Created on Dec 7, 2018
@author: _patels13
'''
import time
def follow(thefile):
thefile.seek(0, 2)
while True:
line = thefile.readline()
print(line)
if not line:
time.sleep(0.1)
continue
yield line
# Example use
if __name__ == '__main__':
logf... | [
"sudeep.tech.patel@gmail.com"
] | sudeep.tech.patel@gmail.com |
635df689e111bfcf60068fb814cf2a224fc3dc42 | 893656022f3d70c0fc0cab0e864c2600885125bb | /setup.py | a8886101c13999b4ad5286f9573fc2235eeb0662 | [
"MIT"
] | permissive | iaxyzHpi/froide | 85fdd421db71afcf3ca83e2b0760e8328cd1d4b1 | fa159d352e77960f5ee696a1271509ced31785d1 | refs/heads/master | 2020-04-19T19:24:43.468542 | 2019-01-30T16:32:10 | 2019-01-30T16:32:10 | 168,387,397 | 0 | 0 | null | 2019-01-30T17:46:42 | 2019-01-30T17:46:42 | null | UTF-8 | Python | false | false | 2,016 | py | #!/usr/bin/env python
import codecs
import re
import os
from setuptools import setup, find_packages
def read(*parts):
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
def find_version(*file_paths):
version_file = re... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
62cbd89d4141d9d2c4b797326954958585d031c9 | 4c03def55433d8fa736c59a6a00f8e3b0ab4bbe4 | /scripts/aws/availability.py | 54e89598682f7c97efb203d12e1d1599799b7d17 | [
"MIT"
] | permissive | stanford-futuredata/training_on_a_dime | 58c9884e9621db8c56c4a2d189b8079d9bf6bc65 | 85f659572ff9da2701e5f309fbad7e828e6be46b | refs/heads/master | 2022-11-22T21:14:09.685491 | 2020-02-21T00:49:45 | 2020-07-27T19:51:18 | 242,011,847 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 5,444 | py | import argparse
from datetime import datetime
import signal
import json
import subprocess
import sys
import time
instances = {}
instance_types = {
("v100", 1): "p3.2xlarge",
("v100", 4): "p3.8xlarge",
("v100", 8): "p3.16xlarge",
("k80", 1): "p2.xlarge",
("k80", 8): "p2.8xlarge",
("k80", 16): "... | [
"deepakn94@gmail.com"
] | deepakn94@gmail.com |
8f08bea2b00b6368d534a49cc1fb79cce05d5036 | 4bc696d97f9fec7e5ce136593556007a8b889d5f | /server/apps/reportAdmin/serializers.py | 64305a4b89bca1e9f3e6cba439f38354d22ba3bd | [] | no_license | davidhorst/FirstDjangular | 37224a72ebd1e487b4b07755b06432a99f572eaf | 5d18577f8d52e7e276c2c850d33f929de8e77ee6 | refs/heads/master | 2021-06-12T09:34:21.103774 | 2016-12-13T14:53:24 | 2016-12-13T14:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from rest_framework.serializers import ModelSerializer
from .models import Report
class ReportSerializer(ModelSerializer):
class Meta:
model = Report
| [
"="
] | = |
a6aea563186b15e750ba2fdd61cbf03c3df667ad | 14e7058adf766352a0b90b66b7dcf887105a481c | /portal/disciplines/forms.py | 39c5085371b163ba74eb94f11e5700a74e0c2746 | [
"BSD-2-Clause"
] | permissive | brunogamacatao/portalsaladeaula | 2b7f07f07c2518dd359f043483fbb27417f62aaf | 9429e485aa37ffea3208339a807032e9230a3c84 | refs/heads/master | 2020-12-29T01:42:18.594281 | 2012-06-22T12:24:44 | 2012-06-22T12:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | __author__ = 'brunocatao'
from django import forms
from portal.models import Discipline
from django.utils.translation import ugettext as _
class DisciplineForm(forms.ModelForm):
class Meta:
model = Discipline
fields = ('name', 'acronym', 'description', 'feed_url', 'twitter_id',
'... | [
"brunogamacatao@gmail.com"
] | brunogamacatao@gmail.com |
f8ce9dd28dcb500d0b0228e76c9a387e5584278c | cee11bed1fd868fc87ef113f6062440cd190a40c | /detect/model/backbone/MobilenetV2.py | 95ec1e952dae01010670f264bbf36bfb9f651726 | [] | no_license | Peiiii/plate_detect_recongnize_tf_py3 | f1d41270c7e6ed1718cb9d0d46784d8c83701439 | 39a04ef6475cdbaf8b4ff6e6f729e5b28b24daf1 | refs/heads/master | 2020-07-10T12:30:17.863818 | 2019-08-25T07:52:44 | 2019-08-25T07:52:44 | 204,263,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | # coding: utf-8
import tensorflow as tf
from ...model.layers import *
def MobilenetV2(input_data, training):
with tf.variable_scope('MobilenetV2'):
conv = convolutional(name='Conv', input_data=input_data, filters_shape=(3, 3, 3, 32),
training=training, downsample=True, activa... | [
"1535376447@qq.com"
] | 1535376447@qq.com |
491a906ed44c2bb3341d88b41d6bb070781fff0d | 77717d0024c8597fec83600259ea5547abbc183a | /mmdet/apis/inference.py | 2d4a987e2606fa6e324e8245d6eabe1877171244 | [
"Apache-2.0"
] | permissive | fengyouliang/wheat_detection | 0a090ef5eda7f2c5463996f4795f9ce06dd04050 | d056123426a1260c29b486cbb8e44a88a0a3c5bc | refs/heads/master | 2022-11-17T15:09:29.113493 | 2020-07-18T13:47:34 | 2020-07-18T13:47:34 | 276,532,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,421 | py | import warnings
import matplotlib.pyplot as plt
import mmcv
import torch
from mmcv.parallel import collate, scatter
from mmcv.runner import load_checkpoint
from mmdet.core import get_classes
from mmdet.datasets.pipelines import Compose
from mmdet.models import build_detector
from mmdet.ops import RoIAlign,... | [
"1654388696@qq.com"
] | 1654388696@qq.com |
bfd6a2a39dc4018db6176fae203a4a0bded8c670 | 1a04e02811c844ecf53cc041b104667e5c987a09 | /vgrabber/datalayer/serializer/test.py | 4fe5c4679330e91f2240bb6902bee4213cce9703 | [] | no_license | janjanech/vzdelavanieGui | dff17add6e6946063597d4c1eba5d6d76b6f5374 | b2015f41f7cb1be1ecccf1c4778a91f43f8fba12 | refs/heads/master | 2021-10-24T16:21:24.911817 | 2019-01-15T17:03:49 | 2019-01-15T17:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from lxml.etree import Element
from vgrabber.model import Test
class TestSerializer:
__test: Test
def __init__(self, test):
self.__test = test
def serialize(self):
test_element = Element(
'test',
id=str(self.__test.id),
name=self.__test.name,
... | [
"janik@janik.ws"
] | janik@janik.ws |
0be06179167ae3177f62d6f0f00b960ebd3eacda | 1a6919459bd4619bfef7527bc9c49ced3901e483 | /tests/test_permissions_sql.py | a146e330aa370d7398c2e2786d0be3d5641e7cb2 | [
"Apache-2.0"
] | permissive | simonw/datasette-permissions-sql | 870b1129b13377b812353183ba64e0bb69fa7339 | e0103ea1c13389391a3e40241485df45739aa638 | refs/heads/master | 2022-10-09T19:47:28.383910 | 2020-06-12T07:03:35 | 2020-06-12T07:03:35 | 271,408,895 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,570 | py | from datasette.app import Datasette
import httpx
import sqlite_utils
import pytest
def create_tables(conn):
db = sqlite_utils.Database(conn)
db["table_access"].insert_all(
[
{"user_id": 1, "database": "test", "table": "dogs"},
{"user_id": 2, "database": "test", "table": "dogs"}... | [
"swillison@gmail.com"
] | swillison@gmail.com |
c9be03f3e886d8a684bee9b8789e37ca03bdd523 | 4720b2f296b21b60836510d1fe997d58026ff573 | /remo/remozilla/admin.py | dc3cf6f8678f1beed6df00e8c775b45a04ceca17 | [] | no_license | seocam/remo | 9bc9b9e52bfdbef87a5c333e4f4f2be14630ccba | 879cbbb0132f12dff64dfbd4ed118d0f5169615f | refs/heads/master | 2021-01-15T13:06:39.844096 | 2014-05-13T10:23:06 | 2014-05-13T10:23:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from django.contrib import admin
from remo.remozilla.models import Bug, Status
class BugAdmin(admin.ModelAdmin):
"""Bug Admin."""
list_display = ('__unicode__', 'summary', 'status', 'resolution')
list_filter = ('status', 'resolution', 'council_vote_requested')
search_fields = ('bug_id', )
admin.sit... | [
"giorgos@mozilla.com"
] | giorgos@mozilla.com |
ce2abc1434b7dcd4474ff498d805bd178c9cf4cc | 72ea8dbdbd68813156b76c077edb5a3806bf42ab | /synapse/lib/scrape.py | 61310192069525156af418567b158186df1f3042 | [
"Apache-2.0"
] | permissive | williballenthin/synapse | 5c6f197f5a3cb3566c48dc444770592e89d4152a | 799854da814b79d6631e5cc2796c347bf4a80ce7 | refs/heads/master | 2020-12-24T14:19:12.530026 | 2017-03-16T20:30:38 | 2017-03-16T20:30:38 | 41,521,212 | 2 | 0 | null | 2015-08-28T02:01:50 | 2015-08-28T02:01:50 | null | UTF-8 | Python | false | false | 2,356 | py | import re
import synapse.data as s_data
import synapse.cortex as s_cortex
import synapse.lib.datfile as s_datfile
from synapse.common import *
tldlist = list(s_data.get('iana.tlds'))
tldlist.sort(key=lambda x: len(x))
tldlist.reverse()
tldcat = '|'.join(tldlist)
fqdn_re = r'((?:[a-z0-9_-]{1,63}\.){1,10}(?:%s))' % ... | [
"invisigoth.kenshoto@gmail.com"
] | invisigoth.kenshoto@gmail.com |
cd852578580f51734828c8130405eaf66f147395 | 697af415566ba649502bd18751a6521ac526892c | /get_er2_mvis.py | 27bdde56be929ded3f2d22aebef00f4cf2ef64c6 | [] | no_license | srbrodzik/impacts-scripts | df44c8f34746499b8397b5b1a4ad09859b4cc8d4 | 263c7545bbb912bbcea563a21d0619e5112b1788 | refs/heads/master | 2023-05-31T05:01:09.558641 | 2023-05-22T23:24:52 | 2023-05-22T23:24:52 | 215,638,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,561 | py | #!/usr/bin/python3
# Inconsistent naming of daily subdirectories after unzip. Sometimes HH, othertimes HHMM
import os
import sys
import shutil
import requests
from datetime import datetime
from bs4 import BeautifulSoup
from ftplib import FTP
from zipfile import ZipFile
def listFD(url, ext=''):
page = requests.g... | [
"brodzik@uw.edu"
] | brodzik@uw.edu |
e6371302f8591fb2a405866ff5192a52cc735e72 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_quadricepses.py | 05b399424fc9c4dc2fe68ec222b1600fea37c16f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py |
from xai.brain.wordbase.nouns._quadriceps import _QUADRICEPS
#calss header
class _QUADRICEPSES(_QUADRICEPS, ):
def __init__(self,):
_QUADRICEPS.__init__(self)
self.name = "QUADRICEPSES"
self.specie = 'nouns'
self.basic = "quadriceps"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4dd9fda777a418611e522466a3fcad13b7b456bf | 080a6b7be74dc2d2fac61e0bb60a5402533294de | /week7/bc-ints-avg-float.py | 3104214222f46aab04b7ba40ece6c87de394fb3c | [] | no_license | rosmoke/DCU-Projects | cfec4c59ba00beb68d174cf869952b7a88e5c1dc | 1478f476e1d81756d00a206b8f5bfcd0a1094649 | refs/heads/master | 2021-01-20T17:03:59.642966 | 2016-06-23T15:06:46 | 2016-06-23T15:06:46 | 61,814,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | i = 0
integer = raw_input()
total = 0.0
while integer != "end":
total = total + int(integer)
integer = raw_input()
i = i + 1
if i > 1:
print total / i
else:
print total
| [
"danielasofiei@yahoo.ie"
] | danielasofiei@yahoo.ie |
6f7318386169ac167772e18f4034f3b8da28d5a7 | f93fde3ad0c7f96710f8f8f8495adfa14484763b | /ld12/gene.py | d2678af23a96a69bc93a9d4e8569b51c75c8e227 | [
"MIT"
] | permissive | xapple/ld12 | 0f80b0b4fc353327779e3189d7152f110cc0cf78 | e2dfc98beaec8d6dcecaec86fb7854ea5bb6f333 | refs/heads/master | 2021-01-10T01:52:50.282298 | 2016-04-04T19:19:34 | 2016-04-04T19:19:34 | 53,348,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | # Built-in modules #
import re
# First party modules #
# Third party modules #
###############################################################################
class Gene(object):
"""A DNA sequence with an ID associated and belonging to a genome."""
def __repr__(self): return '<%s object %s>' % (self.__class... | [
"lucas.sinclair@me.com"
] | lucas.sinclair@me.com |
06e0ddc21cdd990cd36cfa9d2d2fcbe3eddc2d2e | 10d89b6e07a7c72c385eb1d1c60a3e0ed9f9fc3c | /boss/report/views/phone_fee.py | ead5501cffbbe306fc0cb441b004269ec0037dac | [] | no_license | cash2one/pt | 2a4998a6627cf1604fb64ea8ac62ff1c227f0296 | 8a8c12375610182747099e5e60e15f1a9bb3f953 | refs/heads/master | 2021-01-20T00:36:43.779028 | 2016-11-07T03:27:18 | 2016-11-07T03:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | #coding: utf-8
"""
服务质量追踪-充话费
"""
from report_pub import *
@login_required
@permission_required(u'man.%s' % ReportConst.PHONE_FEE, raise_exception=True)
@add_common_var
def phone_fee(request, template_name):
app = request.GET.get("app")
report_check_app(request, app)
vers = get_app_versions(app)
... | [
"xl@putao.cn"
] | xl@putao.cn |
2032fcdbc5f7bfd3980087825cefef8a1b0f3e7e | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/arneb-django-export/allPythonContent.py | c1f0cbe7c45766156c8d3fdd4513c94e9d1ed073 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,667 | py | __FILENAME__ = models
########NEW FILE########
__FILENAME__ = urls
from django.conf.urls.defaults import *
urlpatterns = patterns('export.views',
url(r'^database/$', 'export_database', {}, name="export_database"),
url(r'^database_s3/$', 'export_to_s3', {}, name="export_database_s3"),
url(r'^media/$', 'e... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
c6fa6a2edb99f5bcef6bebbe9f0f17b78178e9aa | dc8a337ea1d8a285577d33e5cfd4dbbe846ee1a0 | /src/main/scala/mock/25092020/ShortestPathInGridWithObstaclesElimination.py | d006e85a23d9c40ffbbddf03061da34dabd8a5b3 | [] | no_license | joestalker1/leetcode | 8a5cdda17abd33c3eef859732f75d7bec77a9d0e | ae392ddbc7eb56cb814b9e9715043c98a89a6314 | refs/heads/master | 2023-04-13T22:09:54.407864 | 2023-04-09T19:22:54 | 2023-04-09T19:22:54 | 131,803,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | from heapq import heappop, heappush
class Solution:
def shortestPath(self, grid, k):
if not grid or not grid[0]:
return -1
n = len(grid)
m = len(grid[0])
q = [[0, 0, 0, 0]] # len, row,col, eliminated obstacles < k
seen = set()
seen.add((0,0))
wh... | [
"denys@dasera.com"
] | denys@dasera.com |
47f4c767c2a7b9c7065929c3f93e659bcb8be2b3 | fd6525073b8bd0f9387ccd14b801fdb6bfecd374 | /nur/path.py | 260f0d7957dea351b7c4bc2b1ca3abc02dcda391 | [
"MIT"
] | permissive | demyanrogozhin/NUR | 5a92757c52d28ff0bbe8684b4bf25fc8998bfc43 | a7746bf35b2fda77e2cb7a3a1f22db3e4d21f399 | refs/heads/master | 2020-12-12T17:40:47.783164 | 2020-01-26T21:10:26 | 2020-01-26T21:38:16 | 234,187,682 | 1 | 0 | MIT | 2020-01-15T22:40:27 | 2020-01-15T22:40:27 | null | UTF-8 | Python | false | false | 1,245 | py | import os
import subprocess
from pathlib import Path
from .error import NurError
def _is_repo(path: Path) -> bool:
return path.joinpath("lib/evalRepo.nix").exists()
def _find_root() -> Path:
source_root = Path(__file__).parent.parent.resolve()
if _is_repo(source_root):
# if it was not build wit... | [
"joerg@thalheim.io"
] | joerg@thalheim.io |
1c50b1cb0dad2f0bc854e38e79cd4a34774cb970 | 28dbe47aba287ed94ef7bba734203736bcc06249 | /.history/dmac_20200715002741.py | 56378030f386fb56196f8f2ccc62c0c32ea76ac5 | [] | no_license | ntung88/Trading_Algorithms | 242fd816b19df95e02e9fcd8c5c91c862d2ede40 | d96488b1754e3751f739d9c3f094a8f8dc54a0a9 | refs/heads/master | 2022-11-19T16:04:07.800344 | 2020-07-17T21:14:10 | 2020-07-17T21:14:10 | 276,239,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,471 | py | import yfinance as yf
import numpy as np
import pandas as pd
from pandasgui import show
from scipy.optimize import minimize
import matplotlib.pyplot as plt
'''
A library for running Dual Moving Average Crossover trading strategy, with backtesting,
period optimization, and vizualization tools.
'''
#Period of time (in ... | [
"nathantung@Nathans-MacBook-Pro.local"
] | nathantung@Nathans-MacBook-Pro.local |
e56fe457c611b069400b8d96e73af45fe2389bdb | 4474fb478f27f9caa5e4c9c465369230daf2c3ac | /project 2/task2.py | 856b3e4454d95c47243c65920022d9319d6751e3 | [] | no_license | hariprasath95/computer_vision_image_processing | 0a6a8f107028c498ba47de23d0e744eb9f9b34a4 | 3dbc2a82911afec1238206495507447997a63a23 | refs/heads/master | 2020-03-30T05:09:23.556754 | 2018-12-03T09:56:32 | 2018-12-03T09:56:32 | 150,783,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,233 | py | UBIT = 'hparthas'
import cv2
import numpy as np
from matplotlib import pyplot as plt
import random
np.random.seed(sum([ord(c) for c in UBIT]))
# read image 1 and convert to BW
m1_clr = cv2.imread('data/tsucuba_left.png')
image1_bw= cv2.cvtColor(m1_clr,cv2.COLOR_BGR2GRAY)
# read image 2 and convert to BW
m2_clr = cv2.i... | [
"-"
] | - |
569d9b2f6f80fca2a538781490709f78f5bb87c9 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/not/sample_good810.py | 2d825235e439c825c7db724e4c12e9a012a6fdd9 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | import difflib
import textwrap
import random
import readline
import datetime
nterms = 422
n1, n2 = 0, 1
if nterms <= 0:
print("Please provide a positive integer.")
elif nterms == 1:
print("Fibonacci sequence upto", nterms, ":")
print(n1)
else:
print("Fibonacci sequence:")
count = 0
while 0 == True & 0 < 422:
pr... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
a02f9b72024d40ecfced70d6044ca509b2e7e823 | effce116340b7d937bd285e43b49e1ef83d56156 | /data_files/673 Number of Longest Increasing Subsequence.py | 324b988bc2e0f1fbbc1e5247543d6f56b9c932ca | [] | no_license | DL2021Spring/CourseProject | a7c7ef57d69bc1b21e3303e737abb27bee3bd585 | 108cdd906e705e9d4d05640af32d34bfc8b124da | refs/heads/master | 2023-04-11T18:52:30.562103 | 2021-05-18T09:59:59 | 2021-05-18T09:59:59 | 365,733,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py |
from typing import List
class LenCnt:
def __init__(self, l, c):
self.l = l
self.c = c
def __repr__(self):
return repr((self.l, self.c))
class Solution:
def findNumberOfLIS(self, A: List[int]) -> int:
if not A:
return 0
n = len(A)
F... | [
"1042448815@qq.com"
] | 1042448815@qq.com |
c71847414fb17baa6000c236edad0ccc41ceef33 | 3fdad7e4cf4725e90354a674eddea4ec34f2344c | /myia/operations/macro_dtype.py | 3a8c6fd0f5874ab38ee713d174cf5ba6a72c6c5f | [
"MIT"
] | permissive | zangmunger/myia | 1f2e9045af62da5a5d832eed0436de7c5813cd99 | 0aa38aa3c43648ee408dc031352ba442f6bed59f | refs/heads/master | 2020-12-13T04:10:28.154027 | 2020-01-15T20:33:05 | 2020-01-15T20:33:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | """Implementation of the 'dtype' macro."""
from ..lib import AbstractArray, Constant, macro
@macro
async def dtype(info, arr: AbstractArray):
"""Macro implementation for 'dtype'."""
return Constant((await arr.get()).element)
__operation_defaults__ = {
'name': 'dtype',
'registered_name': 'dtype',
... | [
"abergeron@gmail.com"
] | abergeron@gmail.com |
6674b616ab97613bb411dc42120f9e008a75d530 | 23ed45d816476bc2c73a0e0b0d6bf96c713c979d | /bearsong.py | 45b321d8c2af89b38a3356ca648e9b1100f6e379 | [] | no_license | jason12360/zixue | e5fd0c6cd0ba8d4c72420360697ad23a5479615d | acc696732bb770f6fc0f0a8d4d076305ae39a9a6 | refs/heads/master | 2020-03-17T20:22:02.306897 | 2018-06-01T09:46:13 | 2018-06-01T09:46:13 | 133,906,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | word = 'bottles'
for beer_num in range(99,0,-1):
print(beer_num,word,'of beer on the wall.')
print(beer_num,word,'of beer.')
print('Take it down.')
print('Pass it around.')
if beer_num == 1:
print('No more bottle of beer on the wall')
else:
new_num = beer_num - 1
if new_... | [
"370828117@qq.com"
] | 370828117@qq.com |
0c1bef08943f239f67d9037534080ced61668cfd | f6e83bc298b24bfec278683341b2629388b22e6c | /scripts/check_db_integrity.py | 3a994897b46425ba6bb41e00d88a664abd1712c1 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | noaOrMlnx/sonic-utilities | 8d8ee86a9c258b4a5f37af69359ce100c29ad99c | 9881f3edaa136233456408190367a09e53386376 | refs/heads/master | 2022-08-17T23:15:57.577454 | 2022-05-18T21:49:32 | 2022-05-18T21:49:32 | 225,886,772 | 1 | 0 | NOASSERTION | 2022-07-19T08:49:40 | 2019-12-04T14:31:32 | Python | UTF-8 | Python | false | false | 3,007 | py | #!/usr/bin/env python3
"""
This is to verify if Database has critical tables present before warmboot can proceed.
If warmboot is allowed with missing critical tables, it can lead to issues in going
down path or during the recovery path. This test detects such issues before proceeding.
The verification procedure here u... | [
"noreply@github.com"
] | noaOrMlnx.noreply@github.com |
b93802b90b96587bbc604e99f8afd807224026b6 | d752046f2a056ca1b26323d431dc0a02153fe071 | /corphub_app/views.py | 81be1004dd1aa6fa1e8611c3b38e9714b8818496 | [] | no_license | calixo888/corphub | 2cecac4a116ce49df64428da2f602cc00c7ed2d6 | bc8e811b0edef18a906595e93c3ef8abf2198fca | refs/heads/master | 2020-07-06T07:41:49.775105 | 2019-08-18T00:24:22 | 2019-08-18T00:24:22 | 202,943,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | from django.shortcuts import render
from django.http import HttpResponse
from corphub_app import forms
import requests
from bs4 import BeautifulSoup
from fake_useragent import UserAgent
import re
# Create your views here.
links = []
agent = UserAgent()
header = {'user-agent': agent.chrome}
query = ""
def index(reques... | [
"calix.huang1@gmail.com"
] | calix.huang1@gmail.com |
1767d3910fac27679191cb881124e7753f02b9dc | d29a5ce285083043a37cb0da2abb5a3045e05551 | /reviewboard/admin/tests/test_related_user_widget.py | 81f98b7213a9063a1f659f54219a18d85eaa4dc9 | [
"MIT"
] | permissive | wen501271303/reviewboard | 83fa35123b851a5b42e3c2a3eb44f477a3da6198 | a3b548437deb703792b805cf80f80313c7dd7f8a | refs/heads/master | 2020-06-12T06:16:28.241753 | 2019-06-24T22:25:09 | 2019-06-24T22:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,736 | py | """Unit tests for reviewboard.admin.form_widgets.RelatedUserWidget."""
from __future__ import unicode_literals
from django import forms
from django.contrib.auth.models import User
from reviewboard.admin.form_widgets import RelatedUserWidget
from reviewboard.testing.testcase import TestCase
class TestForm(forms.For... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
62ae74f067f9e799dea7e452ee0644d0e64f3f79 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_091/ch25_2020_09_30_19_23_04_594122.py | 56f82a63d1ac642611703c6c1b15d4481a550f7c | [] | 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 | 360 | py | import math
v=int(input('Digite o valor da velocidade da jaca: '))
m=math.degrees(input('Digite em graus o ângulo de lançamento: '))
d=((v**2)*math.sin(math.degrees(2*m)))/9.8
if d<98:
print('Muito perto')
elif d>=98 and d<=102:
print('Acertou')
elif d>102:
print('Muito longe')
... | [
"you@example.com"
] | you@example.com |
7595dee2388e7d0424519ce001bd1a177e831d2c | de707c94c91f554d549e604737b72e6c86eb0755 | /supervised_learning/0x12-transformer_apps/1-dataset.py | ecbc295eff78c8f60161c3dbab97b078db9527a8 | [] | no_license | ejonakodra/holbertonschool-machine_learning-1 | 885cf89c1737573228071e4dc8e26304f393bc30 | 8834b201ca84937365e4dcc0fac978656cdf5293 | refs/heads/main | 2023-07-10T09:11:01.298863 | 2021-08-11T03:43:59 | 2021-08-11T03:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,979 | py | #!/usr/bin/env python3
"""
Defines class Dataset that loads and preps a dataset for machine translation
"""
import tensorflow.compat.v2 as tf
import tensorflow_datasets as tfds
class Dataset:
"""
Loads and preps a dataset for machine translation
class constructor:
def __init__(self)
public... | [
"eislek02@gmail.com"
] | eislek02@gmail.com |
349a7c36c49b2122284b4e8861c63a455bcb3fb4 | e77b92df446f0afed18a923846944b5fd3596bf9 | /Inflearn_algo/section5_StackQueueHash/pro_8.py | 4b75091911002a18320692cf54624df1ef6ac406 | [] | no_license | sds1vrk/Algo_Study | e40ca8eb348d1fc6f88d883b26195b9ee6f35b2e | fbbc21bb06bb5dc08927b899ddc20e6cde9f0319 | refs/heads/main | 2023-06-27T05:49:15.351644 | 2021-08-01T12:43:06 | 2021-08-01T12:43:06 | 356,512,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # 단어 찾기
# 시에 쓰이지 않는 단어 찾기
import sys
# sys.stdin=open("3190.txt","r")
n=int(input())
node=[]
content=[]
for i in range(n):
node.append(input())
for j in range(n-1):
content.append(input())
# 오름차순으로 정렬 ==> 무조건 답은 1개이기 때문에
node.sort()
content.sort()
# print(node)
# print(content)
result=""
for i in range(l... | [
"51287886+sds1vrk@users.noreply.github.com"
] | 51287886+sds1vrk@users.noreply.github.com |
98ff009947702d0d5bfca3498b6c22479e18e62e | e07ba3eeea2d9a3ce44bdc6fb26386db5b72d8fc | /ijvine_ebay/ijvine_ebay_base/wizard/imports/__init__.py | c8511c6ba816f058973a66f4a88db0a32fef9ec2 | [] | no_license | tosink/ab | 8e4b931214eb333e141fd5c6512ba956e5cde3d4 | 1c410562edce9be367ad6cab7ac3370353e395c8 | refs/heads/master | 2023-06-14T10:34:21.120996 | 2021-07-15T20:09:14 | 2021-07-15T20:09:14 | 275,185,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # -*- coding: utf-8 -*-
##############################################################################
# Copyright (c) 2021-Present IjVine Corporation (<https://ijvine.com/>)
##############################################################################
from . import import_operation
from . import import_attribute
fro... | [
"komolafetosin@gmail.com"
] | komolafetosin@gmail.com |
16433d05f74a4f2012471c58b28b8c8e80c34dbd | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/MT5_ID4146_for_PyTorch/transformers/src/transformers/models/poolformer/__init__.py | 904dd02ac05522a70491dedf6e4862494d96cd6c | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,990 | py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
23297565cf5f63a35de1cce9992af035d53c2a35 | 21e177a4d828f4e0a003e9424c4952dbc0b47d29 | /testlints/test_lint_ext_ian_space_dns_name.py | f149b7266693b0ec79697e0bc1d1d61d1bd555a3 | [] | no_license | 846468230/Plint | 1071277a55144bb3185347a58dd9787562fc0538 | c7e7ca27e5d04bbaa4e7ad71d8e86ec5c9388987 | refs/heads/master | 2020-05-15T12:11:22.358000 | 2019-04-19T11:46:05 | 2019-04-19T11:46:05 | 182,255,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | import sys
sys.path.append("..")
from lints import base
from lints import lint_ext_ian_space_dns_name
import unittest
import os
from cryptography import x509
from cryptography.hazmat.backends import default_backend
class TestIANEmptyDNS(unittest.TestCase):
'''test lint_ext_ian_space_dns_name.py'''
def test_IA... | [
"846468230@qq.com"
] | 846468230@qq.com |
f3a4f9d862a4e6d05ac0f4a9d2af4620e88d4183 | a9cd70686c362d946f40ed4314f6cf871a0149aa | /appsflyer_processor.py | 04ad2789d92c543bdc2c728fa6e1e744b0b7c473 | [
"MIT"
] | permissive | lxzero/bot_appsflyer | 73ec3f33784f4fadd2d60416fddf28098a8dea26 | e0e7c0439e7448e5645c262151c7d35fd7295886 | refs/heads/main | 2023-03-19T16:01:47.367603 | 2020-10-21T17:45:50 | 2020-10-21T17:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,161 | py | import pandas as pd
import numpy as np
from datetime import date
from pathlib import Path
from typing import Optional, Dict
class AppsFlyerProcessor:
source_directory_path: Path
platform_directory_map: Dict[str, str]
processed_data: Optional[pd.DataFrame]=None
def __init__(self, source_directory_path: Path, ... | [
"leif@leifmeyer.io"
] | leif@leifmeyer.io |
0a82b035a5f5e69b90154c800f8c8daa9dde3af8 | 6371acdb640e62e4e6addac2ba1aa70002a8c1b1 | /Algorithms/pySINDy/env/lib/python3.6/site-packages/matplotlib/backends/_gtk3_compat.py | e0ac33c8d3433fbe37af268ab3bbd11ec424236c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | M-Vause/SEED | 263307152ebac1e4f49cd81dcd5207ecbdf51139 | cda94a02a5ef47a1e9a885d330eef2821301ebed | refs/heads/master | 2022-12-13T20:11:58.893994 | 2020-04-27T16:10:09 | 2020-04-27T16:10:09 | 252,790,026 | 3 | 3 | MIT | 2022-12-08T01:52:05 | 2020-04-03T16:55:10 | Jupyter Notebook | UTF-8 | Python | false | false | 1,458 | py | """
GObject compatibility loader; supports ``gi`` and ``pgi``.
The binding selection rules are as follows:
- if ``gi`` has already been imported, use it; else
- if ``pgi`` has already been imported, use it; else
- if ``gi`` can be imported, use it; else
- if ``pgi`` can be imported, use it; else
- error out.
Thus, to... | [
"58262117+M-Vause@users.noreply.github.com"
] | 58262117+M-Vause@users.noreply.github.com |
27b11c1cfa45069236e8505d414d2d41fd14cbba | 00946ddaec6fc10781a5cd4c6242c4674e599c90 | /TwoPointers/986. Interval List Intersections.py | cdbf19243dd41d55282757efc2ebb683634791d9 | [] | no_license | XihangJ/leetcode | 618f15c1fb57a57499924145afaa93be0dfebc4c | f7d215ef4780d88b91d2478b75ae09aed0e257f1 | refs/heads/main | 2023-08-22T00:59:55.239744 | 2021-10-26T05:21:58 | 2021-10-26T05:21:58 | 375,885,476 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | '''
You are given two lists of closed intervals, firstList and secondList, where firstList[i] = [starti, endi] and secondList[j] = [startj, endj]. Each list of intervals is pairwise disjoint and in sorted order.
Return the intersection of these two interval lists.
A closed interval [a, b] (with a <= b) denotes the se... | [
"noreply@github.com"
] | XihangJ.noreply@github.com |
10cc915e429d025238de2714b821afd172faa197 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/ABC/A/065_a.py | 9045ea98ef9fe34b57a5544b42250b279866012e | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import sys
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.seek(0)
out = sys.stdout.read()[:-1]
... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
849d6da1c93aa71164cd222145fb72163c6366c0 | 66358f0897dd92882344a9ec87adff2003c9bc76 | /leetcode/501~600/501. Find Mode in Binary Search Tree.py | 32f12787db36506d9437248100b324015ec7da2e | [] | no_license | Parkyes90/algo | 973c5f84ed1cae41bb963a5838b835473c8dc984 | 86490aad1774631ad947bdf12818e9ddba8a8ed0 | refs/heads/master | 2023-04-06T23:17:08.372040 | 2023-03-30T10:18:11 | 2023-03-30T10:18:11 | 244,273,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # Definition for a binary tree node.
from typing import List
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def findMode(self, root: TreeNode) -> List[int]:
if not root:
return []
values = []
... | [
"parkyes90@gmail.com"
] | parkyes90@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.