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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
b65eeff263cdcdddf10a579f84650f676024d345 | b733a463ba1a21ac4c2756e8552ff4b251ce6b55 | /Inpainting/contextual_attention_baseline/celebahq/model.py | 2395a67a8b38326d4562a068027be9706d77003e | [] | no_license | fengjiran/tensorflow_learning | 003047cdb396572e3535043dfff8671befcd0f21 | 44dce5bb39c8d6421ea6181338b0ea4b0e5e9797 | refs/heads/master | 2023-04-04T07:53:55.707703 | 2022-03-30T09:35:52 | 2022-03-30T09:35:52 | 100,839,372 | 3 | 0 | null | 2023-03-24T22:50:54 | 2017-08-20T04:58:21 | Python | UTF-8 | Python | false | false | 21,391 | py | from __future__ import print_function
# import numpy as np
import tensorflow as tf
from utils import spatial_discounting_mask
from utils import random_bbox
from utils import bbox2mask
from utils import local_patch
from utils import gan_wgan_loss
from utils import random_interpolates
from utils import gradient_penalty... | [
"fengjiran@foxmail.com"
] | fengjiran@foxmail.com |
f8c8e2f0535c68e4e418bb51085da631c4d2dc26 | 8149d1030b5bc62cc82d5afedbe7486daedbf8c5 | /[114][Flatten Binary Tree to Linked List][Medium].py | 42719b75942c5b3d7739e947657d0281d93a89d4 | [] | no_license | guofei9987/leetcode_python | faef17bb59808197e32ed97e92e2222862e2ba8c | 23703a6fb5028d982b3febc630e28f9bb65a82a6 | refs/heads/master | 2020-03-21T18:24:33.014579 | 2019-10-12T13:29:03 | 2019-10-12T13:29:03 | 138,889,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | # https://leetcode.com/problems/flatten-binary-tree-to-linked-list | [
"guofei9987@foxmail.com"
] | guofei9987@foxmail.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 |
33ee4698a0d01d53b045abacba21376f831b52ad | f3fb552a1b8b9c7536190bc43b9a77243f5be9b5 | /tests/opc/test_rels.py | 85d4d6cf7734f589e5518a29da03f5553031d6a5 | [
"MIT"
] | permissive | amisa/python-pptx | d602ead85ebf9e2b484c83cc901a2c742004236c | 808f2475639f3d1471879ef2dacd151cfe8b89d3 | refs/heads/master | 2021-01-18T11:20:57.664794 | 2014-08-07T13:29:33 | 2014-08-07T13:29:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,280 | py | # encoding: utf-8
"""Test suite for pptx.part module."""
from __future__ import absolute_import
import pytest
from mock import call, Mock, patch, PropertyMock
from pptx.opc.constants import RELATIONSHIP_TYPE as RT
from pptx.opc.oxml import CT_Relationships
from pptx.opc.package import Part, _Relationship, Relation... | [
"scanny@cisco.com"
] | scanny@cisco.com |
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 |
3072c7e3c97554c5f0f223ad3bc77e3dcdadf097 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/OrderJourneyElement.py | 1723b24f1ac2ba1951d4dbd946e7c30c59f302c4 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 9,461 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.JourneyLocation import JourneyLocation
from alipay.aop.api.domain.JourneyLocation import JourneyLocation
from alipay.aop.api.domain.OrderExtInfo import OrderExtInfo
from alipay.aop.... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.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 |
d6bf6958bdc2ebf23455a7c7bf25a8584b71bf4d | f1ff78b950f40023e82b0d877be49971a42f70c0 | /Channel.py | ff51701105e38e962e458534a4af5b3974f4bd61 | [] | no_license | buddyli/python | 72e2c6788e4982a3fa188a757585c1c97a385eaa | f764b64ba9b7d723648d1d1a35af15aa0a6f3a6f | refs/heads/master | 2020-04-01T21:00:27.984460 | 2014-08-12T03:16:42 | 2014-08-12T03:16:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,853 | py | #!/usr/bin/python
# _*_ coding: UTF-8 _*_
import time
import urllib
import httplib
import hashlib
import json
#from lib.ChannelException import ChannelException
from lib.RequestCore import *
from json.tests.test_pass1 import JSON
class Channel(object):
'''Channel类提供百度云PUSH服务的Python版本SDK,
用户首先实例化这个类,
设置自己的a... | [
"="
] | = |
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 |
e9a06b60aac5a8da4edf76fdebd109d5673af1a3 | f62fd455e593a7ad203a5c268e23129473d968b6 | /sahara-6.0.1/sahara/plugins/images.py | c30bc6d5e7dc0e8181b81bda91a62c4f11268d9d | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 39,713 | py | # Copyright (c) 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.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 |
1897c30ae963a3b1a0dcb49603f6a9cdfbbf5117 | 2741c717fe58ac6bb78fdac2deb0c16f566590e5 | /python-rest/myenv/bin/django-admin.py | 0908c66abdc9f0422f98d550667abcd3fc6d2cad | [] | no_license | guarav00009/Auth | bf72eed3cbec0675356a34aa0ae0cec021d0ab29 | 7ad60c5d8a74464413d89f74beefd2811acf983d | refs/heads/master | 2020-12-05T12:11:29.193902 | 2020-01-06T14:04:09 | 2020-01-06T14:04:09 | 232,106,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | #!/var/www/html/python-rest/myenv/bin/python3.6
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"gauravp@clavax.com"
] | gauravp@clavax.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 |
056777178631514733ce8bcafa9806a3c76a691e | f352f9915c0b9d6f7ea010169f5dafd3a9fb8638 | /lib/nltk/cluster/kmeans.py | 7b6e14d16c9aef7425f6a48074a9d70471b5e92d | [] | no_license | nltk/nltk.github.com | fa235e76788e6e8e7349e7195e61799c1402e61d | cf0d2aa508a1de9147ccf30bd070660651d55adb | refs/heads/master | 2023-07-31T13:34:20.864897 | 2023-01-02T15:33:19 | 2023-01-02T15:33:19 | 2,686,706 | 34 | 41 | null | 2022-10-06T17:06:49 | 2011-11-01T09:59:49 | HTML | UTF-8 | Python | false | false | 8,592 | py | # Natural Language Toolkit: K-Means Clusterer
#
# Copyright (C) 2001-2021 NLTK Project
# Author: Trevor Cohn <tacohn@cs.mu.oz.au>
# URL: <https://www.nltk.org/>
# For license information, see LICENSE.TXT
import copy
import random
import sys
try:
import numpy
except ImportError:
pass
from nl... | [
"stevenbird1@gmail.com"
] | stevenbird1@gmail.com |
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 |
95bc7ec13f8bee30543025c5b1d8cd5d1232d287 | 1f63dde39fcc5f8be29f2acb947c41f1b6f1683e | /Boss2D/addon/opencv-3.1.0_for_boss/modules/python/test/tickets.py | de51e7aa16571d34a9c9ac96bbdc616da0f6650b | [
"MIT",
"BSD-3-Clause"
] | permissive | koobonil/Boss2D | 09ca948823e0df5a5a53b64a10033c4f3665483a | e5eb355b57228a701495f2660f137bd05628c202 | refs/heads/master | 2022-10-20T09:02:51.341143 | 2019-07-18T02:13:44 | 2019-07-18T02:13:44 | 105,999,368 | 7 | 2 | MIT | 2022-10-04T23:31:12 | 2017-10-06T11:57:07 | C++ | UTF-8 | Python | false | false | 4,236 | py | #!/usr/bin/env python
import unittest
import random
import time
import math
import sys
import array
import os
import cv2.cv as cv
def find_sample(s):
for d in ["../samples/c/", "../doc/pics/"]:
path = os.path.join(d, s)
if os.access(path, os.R_OK):
return path
return s
class Test... | [
"slacealic@gmail.com"
] | slacealic@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 |
20591bf17f76442d97811693898a12de521db530 | 2cbf3aaad62f4922d827af658fb5dbb7ac651bef | /teledusite/teledu/admin/gameSystem.py | 6ec61995a947768d4240c49b802f454dea506c89 | [] | no_license | tctimmeh/teledu | 0266240aa864cd2eed75857e66eaeb8270f44c1a | 04135ffb04f397f29152ca48f868a957b18d504a | refs/heads/master | 2021-01-23T08:52:32.817693 | 2013-10-29T01:34:41 | 2013-10-29T01:34:41 | 2,566,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django.contrib import admin
from teledu.models import GameSystem
admin.site.register(GameSystem)
| [
"tctimmeh@gmail.com"
] | tctimmeh@gmail.com |
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 |
3b293693b6b6ec55a2f05ceb0a7ce642c441bdba | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/security/azure-mgmt-security/azure/mgmt/security/v2020_01_01/operations/_server_vulnerability_assessment_operations.py | a9f17636c842d926979789c6b493a74d6cec9412 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 27,727 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
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 |
5bf4d8bfacc9a85401f649b40ed3654d51bcc16f | b231c58c841dfc3e90677ce15cb6fe246b56bac5 | /backend/oloffers_24608/urls.py | c4b31a37d38eccfb3cdf67e3a3ddc7782d33c132 | [] | no_license | crowdbotics-apps/oloffers-24608 | 025688272bd3322ce8748160fbe89ebd0a8691d7 | 0900f3d64303e932aca702335024bfe398e68cd9 | refs/heads/master | 2023-03-19T04:33:32.594244 | 2021-02-18T22:08:13 | 2021-02-18T22:08:13 | 340,189,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,967 | py | """oloffers_24608 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')
Clas... | [
"team@crowdbotics.com"
] | team@crowdbotics.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 |
bc67cc314ee03bbe982d2d0f9e6123cef9b45598 | 8550f21689b0549d899b738411d2f94e1e5cc7e2 | /catkin_ws/devel/lib/python2.7/dist-packages/mavros_msgs/srv/_CommandTriggerControl.py | 2ecd8ccdd401bf391ec50284ebbee533562d2a0e | [] | no_license | pratyusv/px4_data_collection | fb21c0e53b9b9c5b7d3d4f1db25589ca852561b9 | cb45a180ff2c2b3cf7d9693c54997123dbfd46b5 | refs/heads/master | 2020-03-20T01:27:21.756306 | 2018-06-12T17:34:01 | 2018-06-12T17:34:01 | 137,076,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | /home/pratyush/git/px4_data_collection/catkin_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/srv/_CommandTriggerControl.py | [
"pratyushvarshney91@gmail.com"
] | pratyushvarshney91@gmail.com |
33b9a78047691b1cba997ab1118c3c51209a9d79 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/sentry/2016/8/mail.py | 04a7cd3cd597f4687513a9b5f50d11221517a4a9 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 17,616 | py | from __future__ import absolute_import, print_function
import itertools
import logging
import time
import traceback
import uuid
from datetime import datetime, timedelta
from random import Random
import six
from django.contrib.webdesign.lorem_ipsum import WORDS
from django.core.urlresolvers import reverse
from django.... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.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 |
706653fd415c83d411ace8de9143ce7840d68d3b | 631847fafbcfa07bf33eee078d9b59b464ce4b50 | /optimization/first_sdEta_mjj_optimization/sdEta_mistake_analyses/dEta_mmjj_cuts_plots/loose_analysis_sdeta_2.6_mmjj_1250/Output/Histos/MadAnalysis5job_0/selection_6.py | 676e32566983b0ec5ab94df2e16d9c835f8efb95 | [
"MIT"
] | permissive | sheride/axion_pheno | 7b46aeb7cc562800d78edd9048504fdbc0f5fa42 | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | refs/heads/master | 2021-07-01T08:47:59.981416 | 2021-02-03T23:03:50 | 2021-02-03T23:03:50 | 219,261,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,235 | py | def selection_6():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.lin... | [
"elijah.sheridan@vanderbilt.edu"
] | elijah.sheridan@vanderbilt.edu |
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 |
4a8e80cd7e903d4068d0a5758d594014ae06a533 | 477a669e9ab041f411a728dacd983b20e20073a5 | /cosmos.py | e1d5ab469f7f67c126c1e466a0fd5e1f10ce8cb4 | [] | no_license | DriftingPig/postrunbrick | 01c2a008bfd29ed93ac058b5eb39d553517999fd | 39456e64ded3bd12234719057df047c024db7213 | refs/heads/main | 2023-07-03T03:36:50.463758 | 2021-08-04T18:11:11 | 2021-08-04T18:11:11 | 390,432,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,761 | py | from filesystem import LegacySimData
import subprocess
from glob import glob
import astropy.io.fits as fits
from astropy.table import Table,vstack
from SurveySource import BaseSource
import os
import numpy as np
class CosmosRepeats(LegacySimData):
def __init__(self, survey_dir=None, outdir=None, subsection=None, ... | [
"kong.291@osu.edu"
] | kong.291@osu.edu |
0fb84358f3bca4f1f4d759fa3813602aabe58d22 | 53cac2d67603d32b82a3237e38755577819f1aad | /pytext/loss/loss.py | 9db304f404b3d167b8dcaf17302b4a6745e281fc | [
"BSD-3-Clause"
] | permissive | sahupankaj10/test-pytext | c1957b67b137ff5433a9e8d0ec1fb1212326f779 | 3c88baf811ac182203e8025f016371d662a94385 | refs/heads/master | 2020-04-15T10:57:40.046773 | 2019-01-08T09:10:49 | 2019-01-16T06:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,850 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch.nn.functional as F
from pytext.config import ConfigBase
from pytext.config.component import Component, ComponentType
from pytext.utils import loss_utils
from pytext.utils.cuda_utils import FloatTensor
from torch i... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.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 |
faca11ef879f43fcfd751e4cb4ffee515534cc55 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/K/kazumasakata/line.py | e36352dd4877f40656b7704b874aece5d488856b | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,320 | py | import scraperwiki
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import glob
import datetime
import locale
import sqlite3
import sys
import traceback
import urllib
import cgi
print "Content-Type: text/plain\n\n"
def fOpen(filename):
buff = []
f = open(filename,"r")
for line in f:
buf... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
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 |
fb6afdf9dbb7cd9d0a6633a6e2296e70e406b1c3 | bf63f844c9d3db9ae0293bc6762be53a6ca450b2 | /helusers/jwt.py | 735acf51caf9a653141543574b9fd416610362be | [
"BSD-2-Clause"
] | permissive | tuomas777/django-helusers | 93ab292b3b7a884b8ba04f9b24452ee3cc8342a7 | 77252693770410e40191f775462181cc7a3ec2bd | refs/heads/master | 2020-04-10T05:30:45.465682 | 2018-09-14T09:43:06 | 2018-09-14T09:43:06 | 160,829,703 | 0 | 0 | BSD-2-Clause | 2018-12-07T13:50:08 | 2018-12-07T13:50:07 | null | UTF-8 | Python | false | false | 1,111 | py | from django.conf import settings
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from rest_framework_jwt.settings import api_settings
from .user_utils import get_or_create_user
def patch_jwt_settings():
"""Patch rest_framework_jwt authentication settings from allauth"""
defaults = ap... | [
"juha.yrjola@iki.fi"
] | juha.yrjola@iki.fi |
58129f886c88589305db31e038960283db42c122 | 72b74f66f83239a928bf049c0dd6e47576e57bae | /tensorflow/tensorflow-master/tensorflow/python/kernel_tests/control_flow_ops_py_test.py | 00372831df6122c142850ae5ed87cbe3eb8baf5c | [
"Apache-2.0"
] | permissive | InsaneLife/DeepLearning | 7934056682e4fec7f3241dd2d4fbe1b4c5f192d2 | 4b60fe40587b96ba2a351c1b3cb832d03c2071ab | refs/heads/master | 2022-10-08T08:18:19.633449 | 2017-08-30T10:47:05 | 2017-08-30T10:47:05 | 65,697,666 | 2 | 4 | null | 2022-09-30T21:55:05 | 2016-08-15T02:16:34 | C++ | UTF-8 | Python | false | false | 65,141 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"993001803@qq.com"
] | 993001803@qq.com |
0315d6b622ee9399845ac3c750df71dabf3c92b2 | 2967a6fa8065ecb68683b0499f66f65b9ab646c1 | /Wbudowane_struktury_danych/9_named_tuple/zadanie/main.py | 802648494ba1c52c2fcb15f4d95f5733ca93eeac | [] | no_license | keinam53/Python_Poczatek | f285836a4aa7d261f25bcc4add253e894c30e65e | ccb05f3918cc94c925055c78627cba28482ce5bb | refs/heads/master | 2023-05-01T06:41:56.414754 | 2021-05-13T19:30:30 | 2021-05-13T19:30:30 | 363,479,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from collections import namedtuple
Apple = namedtuple("Apple", ["species_name", "size", "price"])
def run():
apple = Apple("Gala", "M", 2.5)
print(apple.species_name)
print(apple.size)
print(apple.price)
print(apple[0])
print(apple[1])
print(apple[2])
for data in apple:
prin... | [
"mariusz.baran536@gmail.com"
] | mariusz.baran536@gmail.com |
c36b683cc1e58e829f9f297098569c90edd4c7e4 | ffa8a728f43b6de2b9a4dbfda18f3eb8518fbbbd | /snmp-mibs/DISMAN-EXPRESSION-MIB.py | 1ffaaebeb4ca69378f03f4197870dfb4089a8e77 | [] | no_license | oriordan/pysnmp_mibs | 60e0d80e3f50490d9e6ab29d21627fec59ab0cfc | 92d39abf358a952e55a426e2a4658f4b0824182f | refs/heads/master | 2021-01-09T23:37:59.137750 | 2014-11-26T20:07:28 | 2014-11-26T20:07:28 | 20,253,987 | 11 | 15 | null | 2020-07-26T02:49:32 | 2014-05-28T10:43:18 | Python | UTF-8 | Python | false | false | 43,500 | py | # PySNMP SMI module. Autogenerated from smidump -f python DISMAN-EXPRESSION-MIB
# by libsmi2pysnmp-0.1.3 at Thu May 22 11:57:35 2014,
# Python version sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0)
# Imports
( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "I... | [
"oriordan@devel.hu"
] | oriordan@devel.hu |
ac7050e1295509d0dead45d69060787b34fbc2c0 | 26933a384f41d0ebb3fb341d0b30a37983cb8bd8 | /src/026.py | cf27c3a412306c4594e21af586da4a8470e6a276 | [] | no_license | KBRI-Biology-Experiment-Computation/bioinfo-lecture-2021-07-05 | bbd085139730fd947c716bc46596f22f521eb92c | c46bb213bc41ad4f119abdf35c758da641228beb | refs/heads/main | 2023-08-09T19:34:13.823250 | 2021-07-07T08:03:11 | 2021-07-07T08:03:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | s = "ATGTTATAG"
for i in range(0, len(s), 3):
print(s[i:i+3])
| [
"kenneth.jh.han@gmail.com"
] | kenneth.jh.han@gmail.com |
10c9ca0234965420c1d7890a0676eac38518ad78 | d40fbefbd5db39f1c3fb97f17ed54cb7b6f230e0 | /ibm_db2/tests/test_unit.py | b9afacce63cced4dd32e2536a2f191f692792ab6 | [] | permissive | slightilusion/integrations-core | 47a170d791e809f3a69c34e2426436a6c944c322 | 8f89e7ba35e6d27c9c1b36b9784b7454d845ba01 | refs/heads/master | 2020-05-20T18:34:41.716618 | 2019-05-08T21:51:17 | 2019-05-08T21:51:17 | 185,708,851 | 2 | 0 | BSD-3-Clause | 2019-05-09T02:05:19 | 2019-05-09T02:05:18 | null | UTF-8 | Python | false | false | 616 | py | # (C) Datadog, Inc. 2019
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import pytest
from datadog_checks.ibm_db2.utils import scrub_connection_string
pytestmark = pytest.mark.unit
class TestPasswordScrubber:
def test_start(self):
s = 'pwd=password;...'
assert... | [
"noreply@github.com"
] | slightilusion.noreply@github.com |
5f697b884de06a2a759dbaf8eff4e587d4b61385 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog_tags/initial_8302.py | ada636326405c8ccbeb036a5d50f5d02b405d7d7 | [] | 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,331 | 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 |
641a6e7fb1755fe782bd4cfa3de6704b19fd36e6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2020_09_09_11_54_52_542373.py | b6266cc9513e5cad35ebf1d45a0ba2b74ee8442f | [] | 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 | 230 | py | import math
def calcula_gaussiana(x, mi, sigma):
form = (1/ (sigma((2*math.pi)**(1/2))))* (e**(((-0.5((z-mi)/sigma))**2))
return form
| [
"you@example.com"
] | you@example.com |
24f9ced0b5dd1c194216331452babe0cbcb1b786 | 52e05d43e6c37ee7a586118cf0f390b04e92ada3 | /76. Minimum Window Substring _ Hash Table.py | 81639a8ff54abd07d4ebc6079e31945e94369bcd | [] | no_license | CaizhiXu/LeetCode-Python-Solutions | 8f7a856e11e0804f32c43ed98bc08525a950ac13 | 63120dbaabd7c3c19633ebe952bcee4cf826b0e0 | refs/heads/master | 2021-05-18T04:57:16.412834 | 2020-08-05T04:33:13 | 2020-08-05T04:33:13 | 251,121,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | class Solution:
def minWindow(self, s: str, t: str) -> str:
ans = float('inf')
minstr = ''
sourcehash = [0] * 256
targethash = [0] * 256
self.init_target_hash(targethash, t)
j = 0
for i in range(len(s)):
while not self.valid(sourcehash, targethash)... | [
"xucaizhi@gmail.com"
] | xucaizhi@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.