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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4e95ce87e3dfed19b6eb0f2a9a234b433d33960 | 030ffa11f6ec88a21b8ddf9af01136040ba1f928 | /actions/actions.py | 1d0393b29ef2ed746267c10eabfeec745678be48 | [] | no_license | ForeverDreamer/rasa_learning | 9f5b832d3e328ee370f68a03dff8c4b91ce725ce | 5f1d24ca575adc4bca6ae72004e3558f6213dfb1 | refs/heads/main | 2023-04-15T19:55:16.821683 | 2021-04-27T10:38:01 | 2021-04-27T10:38:01 | 362,047,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,181 | py | # This files contains your custom actions which can be used to run
# custom Python code.
#
# See this guide on how to implement these action:
# https://rasa.com/docs/rasa/custom-actions
# This is a simple example for a custom action which utters "Hello World!"
import datetime
from typing import Any, Text, Dict, List... | [
"499361328@qq.com"
] | 499361328@qq.com |
1d58f0d6dcd1a45bfe29411fa9065d4e3d877cf7 | 7d5641f61e9317984dc656ae43658f9f09a3d2c5 | /26.py | 6024eee6df52bafb4b434e0cf8fc75cf21510391 | [
"MIT"
] | permissive | r9y9/nlp100 | 51ec6b1a13128a53eeda9ff110d122211f0fceba | 391ca6c4fb8afc074ed825404d4ad4efc4467f05 | refs/heads/master | 2021-01-25T09:00:54.021853 | 2017-06-09T17:32:52 | 2017-06-09T17:32:52 | 93,770,527 | 18 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | import gzip
import json
def get_uk_text():
with gzip.open("./jawiki-country.json.gz") as f:
for line in f:
json_dict = json.loads(line)
if "イギリス" in json_dict["title"]:
return json_dict["text"]
import re
doc = get_uk_text().split("\n")
rb = re.compile("^{{基礎情報(.+)... | [
"zryuichi@gmail.com"
] | zryuichi@gmail.com |
75b6c3bf93a5f85e26bf6cd02d44d1aa2e71a745 | f41309da5e0d26b24d974a009fa309a02fcaa20c | /aws_s3_policies/aws_s3_bucket_public_read.py | ccf464ceaa2f8b11056dc159297782cfc1c8aa97 | [
"Apache-2.0"
] | permissive | georgeSkoumas/panther-analysis | 2e1e87f83c6533cb6d62ecb62e3f61b2ff4b5ed4 | 30b21c270504bf7c84f99207c9c6c2f6110843ae | refs/heads/master | 2022-09-14T13:22:31.786275 | 2020-05-26T16:18:58 | 2020-05-26T16:18:58 | 267,569,230 | 1 | 0 | Apache-2.0 | 2020-05-28T11:15:05 | 2020-05-28T11:15:04 | null | UTF-8 | Python | false | false | 364 | py | GRANTEES = {
'http://acs.amazonaws.com/groups/global/AuthenticatedUsers',
'http://acs.amazonaws.com/groups/global/AllUsers'
}
PERMISSIONS = {'READ'}
def policy(resource):
for grant in resource['Grants']:
if grant['Grantee']['URI'] in GRANTEES and grant[
'Permission'] in PERMISSIONS... | [
"noreply@github.com"
] | georgeSkoumas.noreply@github.com |
cbd0ddf19cf8e3f84e2c113e26f005c423c54660 | 9978c3271a8176f6e4b58da8aba756ace58e5bde | /backend/home/migrations/0003_message.py | 0dccad6cd6c08f7876c38b56e333a7bc900a3de5 | [] | no_license | crowdbotics-apps/facebark-21363 | eb805941308cac6950e913607fb75d9fea424144 | 76120271527cda7f3e368a012c674696bd1989e5 | refs/heads/master | 2023-01-22T15:26:21.478106 | 2020-12-06T01:16:27 | 2020-12-06T01:16:27 | 303,172,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | # Generated by Django 2.2.16 on 2020-10-11 17:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("dating", "0001_initial"),
("home", "0002_load_initial_data"),
]
operations = [
migrations.CreateMo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9cf10ca86ef3c854c21af09878bf7ba423d724f5 | b68bc3ee7e7c15915ef34f6b4a5dde14e821b174 | /activities_for_kids.py | 68077a2e6e80b5a6e88a5d51d4dfb7fddfff8460 | [] | no_license | MatthewScott32/Python-Functions | 57b1163ef0f2adce7507f23fe89bffb4728e6277 | db6bbd0937826f756cad85a07bfdb16e3aef1a89 | refs/heads/master | 2022-04-16T18:20:12.939713 | 2020-04-13T22:07:58 | 2020-04-13T22:07:58 | 255,369,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | def run(*name):
for kids in name:
print(f'{kids} ran like a fool!')
run("Timmy", "Jimmy", "Gimmy")
def swing(*name):
for kids in name:
print(f'{kids} swings high!')
swing("Timmy", "Jimmy", "Gimmy", "Sally")
def slide(*name):
for kids in name:
print(f'{kids} slides... | [
"matthewscottblagg@gmail.com"
] | matthewscottblagg@gmail.com |
2fb95ad9c97403a75796dc35f5c3ba9239205e00 | 6760a9ac86a2d59ca1d50d3678e577b85a77361a | /files_cache/create_bw_table.py | c73142b19336913c861c5f23bea12a2bc9d17f62 | [] | no_license | emylincon/caching_ipfs_gui | 7506c4121d2a520c415ee858053f5ec2068a3ae2 | ebb497cf1fd16066aaa55b981d82656aa5f9233f | refs/heads/master | 2020-04-20T16:59:34.828147 | 2019-03-08T10:25:35 | 2019-03-08T10:25:35 | 168,975,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import sqlite3
def main():
try:
con = sqlite3.connect('/home/mec/cache.db')
cur = con.cursor()
cur.executescript('''DROP TABLE IF EXISTS Bw_Table;
CREATE TABLE Bw_Table(Id integer not null primary key, mec1 varchar(50), mec2 varchar(50));
INSERT INTO Bw_Table VALU... | [
"emylincon@gmail.com"
] | emylincon@gmail.com |
4055da1c20a179cb21d8d511beb3b3644081bfa7 | b39c773c36495eee5281a6f88a7119f7789769bd | /jupyterhub/singleuser/__init__.py | 60159406eaf2875908017a5f7e0c1566ce98b675 | [
"BSD-3-Clause"
] | permissive | rcthomas/jupyterhub | 89058e3475498187b3d81e17f5055a3a887be278 | b18a05c2c8a8ff86f9255bc2abaa356c418d3dd3 | refs/heads/main | 2022-06-08T16:47:21.908864 | 2022-05-13T09:56:58 | 2022-05-13T09:56:58 | 290,629,030 | 0 | 0 | NOASSERTION | 2020-08-26T23:48:09 | 2020-08-26T23:48:08 | null | UTF-8 | Python | false | false | 446 | py | """JupyterHub single-user server entrypoints
Contains default notebook-app subclass and mixins
"""
from .app import SingleUserNotebookApp, main
from .mixins import HubAuthenticatedHandler, make_singleuser_app
# backward-compatibility
JupyterHubLoginHandler = SingleUserNotebookApp.login_handler_class
JupyterHubLogoutH... | [
"benjaminrk@gmail.com"
] | benjaminrk@gmail.com |
aba631ae9bbd14167725b93dbda85867866b2b46 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0/build/roi_object_filter/catkin_generated/pkg.installspace.context.pc.py | 8bf5b524c07f5e0f94d7c25f49424912ba5a3cc4 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;sensor_msgs;geometry_msgs;autoware_msgs;grid_map_ros;grid_map_cv;grid_map_msgs;tf".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX =... | [
"907097904@qq.com"
] | 907097904@qq.com |
b2d81b1776d050c5a03d6d96603b26b10a549318 | eef243e450cea7e91bac2f71f0bfd45a00c6f12c | /.history/app/api_service/views_20210125015859.py | f3408eea1890e6090563cdc08b314c632548145a | [] | no_license | hoaf13/nlp-chatbot-lol | 910ab2ea3b62d5219901050271fc1a1340e46a2f | 18cb64efa9d6b4cafe1015f1cd94f4409271ef56 | refs/heads/master | 2023-05-08T04:17:19.450718 | 2021-02-02T02:37:38 | 2021-02-02T02:37:38 | 332,535,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,259 | py | from flask import jsonify, Blueprint, flash, render_template, request, session, abort, redirect, url_for
from flask.views import MethodView
import requests
import os
from app import db
from app.models import Champion, Conversation
from app import app
import json
from app.api_service.nlp_processing import *
api_service... | [
"samartcall@gmail.com"
] | samartcall@gmail.com |
7ab5640cbbfe69e5bd261903e2a158d0a79c75ba | 95fb4b8e51dd7a852d9ed9de067c1e929a71404a | /colour/models/rgb/transfer_functions/tests/test_fujifilm_flog.py | dbe7971601b3a16951202a7b2b7f31c67950b4e8 | [
"BSD-3-Clause"
] | permissive | zachlewis/colour | e9b1f6978dae157306536492a652b2fb9588894a | c248e2913d6c62658e4892e5bc8503d86ed5d9ab | refs/heads/develop | 2021-04-25T22:08:34.617007 | 2020-11-29T23:18:48 | 2020-11-29T23:18:48 | 109,490,837 | 0 | 0 | BSD-3-Clause | 2019-10-28T19:44:56 | 2017-11-04T11:53:24 | Python | UTF-8 | Python | false | false | 6,182 | py | # -*- coding: utf-8 -*-
"""
Defines unit tests for :mod:`colour.models.rgb.transfer_functions.\
fujifilm_flog` module.
"""
from __future__ import division, unicode_literals
import numpy as np
import unittest
from colour.models.rgb.transfer_functions import (log_encoding_FLog,
... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
745b6bfbeb231ec7991ee3bab781c785feb41def | 098662ca9c95151e669753e246d7c158dccad201 | /temp/miniAIb5.py | 295e7a99ab3210c58043ee03c71a73abceba92d2 | [] | no_license | ava9/CS6700 | 92dd92081614c3596b880de204e72d3098d85f2f | bcad9094a48784635ae8e6081cea4267e3729df0 | refs/heads/master | 2021-03-27T18:13:43.680760 | 2017-05-22T16:19:07 | 2017-05-22T16:19:07 | 84,686,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | import copy
import random
class miniAIb5:
# check if legal move
def legal(self, board):
arr = [0, 0, 0, 0, 0, 0, 0]
for c in range(0, board.columns):
if (board.colFull(c + 1)):
arr[c] = False
else:
arr[c] = True
return arr
def checkfirstmoves(self, board, player):
b = boar... | [
"szl5@cornell.edu"
] | szl5@cornell.edu |
540f2525a6ca4b5237c7baaa9cef7d760e97fab2 | cadf0efdcfd48c4c79b6aacde29e80a060566125 | /env/lib/python3.6/site-packages/Accounts/__init__.py | a580c70bfc32e37119519886c1a57847a95f6837 | [
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0"
] | permissive | Harshalshree/Anton-Virtual-Assistant | 48b49ecffd950fe6b750e7d360bc8703475bbd09 | 463f986ae94dcbb4027ee90c0d209b0c2fae10bd | refs/heads/master | 2022-11-19T12:38:17.684283 | 2020-02-11T17:46:01 | 2020-02-11T17:46:01 | 239,824,516 | 1 | 0 | CC0-1.0 | 2022-06-17T00:22:32 | 2020-02-11T17:37:39 | Python | UTF-8 | Python | false | false | 699 | py | """
Python mapping for the Accounts framework.
This module does not contain docstrings for the wrapped code, check Apple's
documentation for details on how to use these functions and classes.
"""
import objc
import sys
import Foundation
from Accounts import _metadata
sys.modules["Accounts"] = mod = objc.ObjCLazyMod... | [
"harshal.shree03@gmail.com"
] | harshal.shree03@gmail.com |
691ecfad9ea251dc85c00ed118b9e6bd1e7c5040 | 0ba5622abc2125ac8a9907757680da4d7cb7b47e | /Knowrob/indigo/indigo-knowrob-dev/catkin_ws/build/designator_integration_msgs/catkin_generated/pkg.develspace.context.pc.py | 7e1c3ade9bb1cacb5a7c4cb068659331d9d563e9 | [] | no_license | IoT-Lab-Minden/docker-ros | c2a327117bdf1d0b861d4580156e595a079ec5d5 | 5c57c15717cbcae515d82c3dc75470587bb2508e | refs/heads/master | 2021-01-18T03:33:22.128596 | 2017-05-17T13:48:05 | 2017-05-17T13:48:05 | 85,809,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/root/catkin_ws/devel/.private/designator_integration_msgs/include".split(';') if "/root/catkin_ws/devel/.private/designator_integration_msgs/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_m... | [
"aljoscha.poertner@fh-bielefeld.de"
] | aljoscha.poertner@fh-bielefeld.de |
8eaf69eb39d7f557c7fabe12f76fe4cf834ab418 | 958685165bfeb4122cc3473659a6d0c89c5cae95 | /crea8s_nail/__openerp__.py | 9d5a536c3f339d7b1eb0724fde18680ca9803875 | [] | no_license | tringuyen17588/OpenERP-7.0 | 44efee7735af65d960c5adb4b03a1a329f5c4a57 | 2486261e4d351d4f444ec31e74c6b0e36ed2fb82 | refs/heads/master | 2021-01-10T02:45:24.320726 | 2016-02-19T06:05:21 | 2016-02-19T06:05:21 | 52,064,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"tri@crea8s.com"
] | tri@crea8s.com |
226a6af47a7be895cf76f242e15620628427f0df | b79837918de72f26558f484a59639bfc8ae3fc1b | /dialogue-engine/src/programy/storage/stores/sql/engine.py | f9b82cde336861cf765e706a6ea87cfa3a8a80b9 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jaygeet/cotoba-agent-oss | d0efcfb3f22271afa32d0ffde04cf9808bbc1368 | 26de67dbda401be5f1d50ae2165e4e1d820882f5 | refs/heads/master | 2022-04-20T14:32:04.790471 | 2020-04-07T02:41:33 | 2020-04-07T02:41:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,020 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
be0ea85f5ac3f2350a466998eb372469c2a10b44 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_383/ch88_2019_06_06_13_56_46_097312.py | 38642d059e8649f97e8f94a4b31215f3605c9426 | [] | 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 | 364 | py | class Retangulo:
def __init__(self,ponto1,ponto2):
self.base = self.ponto1.x - self.ponto2.x
self.altura = self.ponto1.y - self.ponto2.y
def calcula_perimetro(self):
self.perimetro = 2*self.base + 2*self.altura
return self.perimetro
def calcula_area(self):
self.area = se... | [
"you@example.com"
] | you@example.com |
24bc03627440b4abce478f766b023ad4b9464fcf | 4e044ab3073f5893f2eae33931ab5079b282817c | /01_python/notes/fibo.py | f09fd9b115b6ebbfc94796c473b600dd2757bf25 | [] | no_license | whiteblue0/Startcamp | e5e8c30476eda7a30c3daae4bdc018f223da74e8 | 7ddebe8be878a8550d99fcc572666b963dda583d | refs/heads/master | 2023-01-27T18:36:28.013135 | 2020-09-12T06:21:12 | 2020-09-12T06:21:12 | 195,809,764 | 0 | 0 | null | 2023-01-07T11:25:23 | 2019-07-08T12:42:40 | Jupyter Notebook | UTF-8 | Python | false | false | 230 | py | def fibo_recursion(n):
if n == 0 or n == 1 :
return 1
else:
return fibo_recursion(n-1) + fibo_recursion(n-2)
def fibo_for(n):
a,b = 1, 1
for i in range(n-1):
a,b = b, a + b
return b | [
"21port@naver.com"
] | 21port@naver.com |
c4746963bb66e4edd1a24abb71cb99ba90d3a356 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/spark_job_list_view_response_py3.py | ed1ad32f59547331e74ebd3fdc1c890df785bd40 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 1,078 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
e4214a3f7970cfc26a869e90697f018135cb5eb4 | 0b842bcb3bf20e1ce628d39bf7e11abd7699baf9 | /oscar/a/app/oscar/generic_action/__init__.py | c3545b896438c34723359ad1a0867d194a2b7649 | [] | no_license | afeset/miner2-tools | 75cc8cdee06222e0d81e39a34f621399e1ceadee | 81bcc74fe7c0ca036ec483f634d7be0bab19a6d0 | refs/heads/master | 2016-09-05T12:50:58.228698 | 2013-08-27T21:09:56 | 2013-08-27T21:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,792 | py | #
# Copyright Qwilt, 2010
#
# The code contained in this file may not be used by any other entities without explicit written permission from Qwilt.
#
# Author: nirs
"""
This class implements an exceutable for a generic action.
The application class name is provided on the command line (--application-class)
This cla... | [
"afeset@gmail.com"
] | afeset@gmail.com |
795ae08e2eb745df1f1b0e44185daf891aed6644 | d0a6ee29321e54636b80d8dd5505af45f3734ccf | /orginvoicer/__main__.py | 609387cfa6fd49bc61cf9e631b16b880a19f325f | [
"MIT"
] | permissive | brandon-rhodes/org-mode-invoicer | bcdb128dc65c090c743feaafbf36a8af1d8145d7 | 054aa7fff46de5a9c52a1e5677547e502d3a9fc7 | refs/heads/master | 2023-07-12T00:33:15.688527 | 2013-07-20T05:27:28 | 2013-07-20T05:27:28 | 11,541,090 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | import codecs
import sys
from datetime import datetime
from decimal import Decimal
from .format import format_invoice
from .personal import compute_rate
one = Decimal('1')
sixty = Decimal('60')
def main():
path = sys.argv[1]
title = sys.argv[2]
with codecs.open(path, encoding='utf-8') as f:
lines ... | [
"brandon@rhodesmill.org"
] | brandon@rhodesmill.org |
488c027ff3c40c022233d0c99c23f9a6ddf779e3 | 3e98a39995e0f58198d00023917247fd65a8d5be | /31/my_trace.py | 6e5c25b84fa7b733004ee5974cf2ee394729cbfc | [
"CC0-1.0"
] | permissive | marcusreaiche/cpython-book-samples | fd453ef76890a2c23b5f3dd8b4e32a2025399da8 | d61d252d63461b114c3c02329a88a74dc8c51956 | refs/heads/master | 2023-01-28T13:27:38.417534 | 2020-12-12T03:59:55 | 2020-12-12T03:59:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | import sys
import dis
import traceback
import io
def my_trace(frame, event, args):
frame.f_trace_opcodes = True
stack = traceback.extract_stack(frame)
pad = " "*len(stack) + "|"
if event == 'opcode':
with io.StringIO() as out:
dis.disco(frame.f_code, frame.f_lasti, file=out)
lines... | [
"anthony.p.shaw@gmail.com"
] | anthony.p.shaw@gmail.com |
2108dbdd30cee943adce32cd16edc642e4232f15 | 7ec5d6b69609cd58835b60960a4ffa7241654a7f | /lib/util/crashme_methods.py | c1c24810e5b1c136db10e59de232c6bd5f83f3c1 | [
"Apache-2.0"
] | permissive | isabella232/kewpie | 4721ab3280bfd2296c003229900f71a8385f9174 | 47d67124fa755719eda3ca5a621a2abf0322d3f9 | refs/heads/master | 2023-03-07T14:47:14.310718 | 2015-05-22T00:36:38 | 2015-05-22T00:36:38 | 312,541,849 | 0 | 0 | Apache-2.0 | 2021-02-23T14:52:18 | 2020-11-13T10:17:28 | null | UTF-8 | Python | false | false | 4,738 | py | #! /usr/bin/env python
# -*- mode: python; indent-tabs-mode: nil; -*-
# vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
#
# Copyright (C) 2011 Patrick Crews
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Softwar... | [
"gleebix@gmail.com"
] | gleebix@gmail.com |
6256ba98c403e91b8107e3b0e6675beeac0824af | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210523132559.py | faf2d5d2e49c34c4a463da88c463d3a60c627a9f | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from flask import Flask
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
class MCQ(FlaskForm):
age = IntegerField("Age", [DataRequired()])
profession = StringField("Professi... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
5f035df00ef110ec1d26450e2a2656bf1743590b | 00d528db10276498fe9e76ba19cfd559362ea86c | /others/sample.py | 9aa9ec9a08755d86461e5d9223b74b8f1722431c | [] | no_license | petershan1119/Crawler-1 | f4b9852d73ddc191110e2a4f20116eb0e40db93d | 51b2ad08b60f1c740cfe2632f69fd63b2bca083a | refs/heads/master | 2020-04-13T00:41:03.100135 | 2017-09-22T08:09:25 | 2017-09-22T08:09:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | import re
f = open('sample.txt', 'rt')
source = f.read().strip().replace('\t', '')
def find_tag(tag_name, class_, source):
p = re.compile(r'<{tag_name} class="{class_name}".*?>.*?</{tag_name}>'.format(
tag_name=tag_name,
class_name=class_))
return re.findall(p, source)
# <td class="title">...... | [
"dev@azelf.com"
] | dev@azelf.com |
9f7d12311b9413bda5ccdba716729c59647de8ef | f3c26a7ce7b17f2d5bfb949ee0662441bf239f15 | /sysinv/sysinv/sysinv/sysinv/api/controllers/v1/query.py | a7c2c08e0c488a2f73747e7331bf1b5cc7fe1765 | [
"Apache-2.0"
] | permissive | MarioCarrilloA/config | 0090b145ab417c791a58b55d23cb6953c34ce071 | 06a6f142d154970ce658e979822cd84ce447f612 | refs/heads/master | 2021-06-13T02:15:36.827921 | 2019-06-10T19:38:49 | 2019-06-10T19:38:49 | 191,260,761 | 0 | 0 | Apache-2.0 | 2021-05-08T17:00:18 | 2019-06-10T23:44:18 | Python | UTF-8 | Python | false | false | 6,320 | py | # coding: utf-8
# Copyright © 2012 New Dream Network, LLC (DreamHost)
# Copyright 2013 IBM Corp.
# Copyright © 2013 eNovance <licensing@enovance.com>
# Copyright Ericsson AB 2013. All rights reserved
#
# Authors: Doug Hellmann <doug.hellmann@dreamhost.com>
# Angus Salkeld <asalkeld@redhat.com>
# Eogha... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
ccc9eaa2275ba600dfb9accccf467aa68e3a0447 | f6fd7fb1ebde815c3a31d7625ec5bdd3c6bc5039 | /datafiles/blender_icons_update.py | 50dfc7fb4e9cc165ecd908a5d9488a38fa7f87fc | [] | no_license | hixio-mh/vray_for_blender_build_utils | 076526740e0e2eef09fb929fdac30f68a3a7c583 | b92042edd053508ae339dbb8e53e85b8fbd53f04 | refs/heads/master | 2022-12-25T21:13:19.628426 | 2019-09-09T12:09:54 | 2019-09-09T12:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | #!/usr/bin/env python3
# This script updates icons from the SVG file
import os
import sys
def run(cmd):
print(" ", cmd)
os.system(cmd)
BASEDIR = os.path.abspath(os.path.dirname(__file__)) + os.sep
inkscape_path = 'inkscape'
if sys.platform == 'darwin':
inkscape_app_path = '/Applications/Inkscape.app/... | [
"andrei.izrantcev@chaosgroup.com"
] | andrei.izrantcev@chaosgroup.com |
5a94280417e8a5a7ac13f66f13fe00001d192005 | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v2/model/metric_distinct_volume_attributes.py | 7567237ac0b689bae4132010df0ebba4f0c02d4b | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 1,072 | py | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import Union
from datadog_api_client.mo... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
a97e71537fcf0a4c99dd134e4d922af4e71d4212 | 4c30ea963e61fe941b2ebf684d997c1a2890f3cc | /baobab/lims/content/patients.py | c37c210fb5814438dedc8f9d2cb070a520d120be | [] | no_license | kid-kodi/Baobab-ipci | f9513d87ec548e4e8c8d6f9eb2dfc96ed2b238d9 | 4490020dc8580d26b9827a66cccab2a7180e5584 | refs/heads/master | 2020-03-09T18:35:23.537944 | 2018-07-01T11:08:33 | 2018-07-01T11:08:33 | 128,936,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from AccessControl import ClassSecurityInfo
from Products.ATContentTypes.content import schemata
from Products.Archetypes import atapi
from plone.app.folder.folder import ATFolder, ATFolderSchema
from zope.interface.declarations import implements
from baobab.lims.config import PROJECTNAME
from baobab.lims.interfaces i... | [
"konedangui@gmail.com"
] | konedangui@gmail.com |
ac1d4a6ea7a3b2a151d53e3643f14aedf40f1ddd | 7baef4f7dad8e6538096d42c4e03e6d531fbf0bf | /day01/05_urlencode编码.py | fc056bdd3a1cf6583f53148fdddb92a7ade8e6c0 | [] | no_license | q737645224/spyder | a16a2bdbdab12ca6b2546f81363d3571d1358a3e | bae94180ef6953a21a2491da378cce738312afc7 | refs/heads/master | 2020-04-07T20:03:30.966825 | 2018-11-23T04:29:34 | 2018-11-23T04:29:34 | 158,673,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import urllib.request
import urllib.parse
baseurl = "http://www.baidu.com/s?"
headers = {"User-Agent":"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16"}
key = input("请输入要搜索的内容:")
# urlencode编码,参数一定要是字典
d = {"wd":key}
d = urllib.parse.urle... | [
"764375224@qq.com"
] | 764375224@qq.com |
433b039280150dfd34ea561b4d9e3f53522e314b | 3d8b4e0415bd4d818c17dcf0b3fc1676caad47b6 | /tests/nex/test_settings.py | 103ab215aaf90b07a7a858562e904abfb33e7140 | [
"MIT"
] | permissive | ShigemoriHakura/NintendoClients | 68c08ab2f54e36fb41eab2b2461bedd5bd1522be | da56e272f8504bcc8e5238128d63ab6ee44fa2c7 | refs/heads/master | 2022-03-09T19:20:05.647911 | 2022-03-01T23:35:01 | 2022-03-01T23:35:01 | 252,926,498 | 0 | 1 | MIT | 2022-03-01T23:35:02 | 2020-04-04T06:30:32 | null | UTF-8 | Python | false | false | 655 | py |
from nintendo.nex import settings
def test_constants():
s = settings.default()
assert s.TRANSPORT_UDP == 0
assert s.TRANSPORT_TCP == 1
assert s.TRANSPORT_WEBSOCKET == 2
assert s.COMPRESSION_NONE == 0
assert s.COMPRESSION_ZLIB == 1
assert s.ENCRYPTION_NONE == 0
assert s.ENCRYPTION_RC4 == 1
... | [
"ymarchand@me.com"
] | ymarchand@me.com |
9d57a4b834ed1573980f53465f3cff9b30c994f0 | 61673ab9a42f7151de7337608c442fa6247f13bb | /__scraping__/sec.gov/main.py | 02eb93f71d1ed61d58daa98eedabce15b7ece11d | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 1,070 | py |
#
# https://stackoverflow.com/a/47742578/1832058
# https://stackoverflow.com/a/47614478/1832058
#
import requests
from bs4 import BeautifulSoup
import re
url = 'https://www.sec.gov/Archives/edgar/data/320193/000119312515356351/d17062d10k.htm'
r = requests.get(url)
soup = BeautifulSoup(r.text, 'html.parser')# "lxml"... | [
"furas@tlen.pl"
] | furas@tlen.pl |
3a3df6fe1c7d5c5ebfabb6dfea779f01becfa3d3 | aa2645c96047d775061e0443299c64fc5b255027 | /lab11-ex3.py | 685d7a97b0e8bfbde9a6de340f291da258be93aa | [] | no_license | sunnyhyo/Problem-Solving-and-SW-programming | ca63b705b27ebb49d32a0a6591211250f213d019 | 8689b9728c028a870dfba7a4d16601a248c7e792 | refs/heads/master | 2021-03-30T21:07:27.276272 | 2018-06-14T15:27:22 | 2018-06-14T15:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #lab11-ex3
#전역변수와 지역변수
times=0 #count 함수가 실행된 횟수
def count():
#이 함수가 실행된 횟수를 화면에 출력한다.
global times #times 는 전역변수다 . 사용하고 변경까지 하고 싶을때
times=times+1
print(times)
count()
count()
| [
"sunnyhyo77@gmail.com"
] | sunnyhyo77@gmail.com |
c5ccafeae5906f290cba2950bb99493ac37ca91c | 457a71c31c5bb992616bc2c8067817436c416784 | /src/teewtme/tweets/admin.py | 49b964c6538d75b657e060777ff00a81cec981b5 | [] | no_license | mahmoudzeyada/tweetme | 9a7f15e9b1c3d0d4054637ac8ad5581a0a5ee825 | 00c046b96d40061e192990b9bae76998e8f46319 | refs/heads/master | 2020-04-10T04:17:13.130415 | 2019-04-29T01:17:28 | 2019-04-29T01:17:28 | 160,793,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django.contrib import admin
from .models import Tweet
from .forms import TweetModelForm
# Register your models here.
#admin.site.register(Tweet)
class TweetModelAdmin(admin.ModelAdmin):
class meta:
model=Tweet
admin.site.register(Tweet, TweetModelAdmin)
| [
"mahmoudzeyada440@gmail.com"
] | mahmoudzeyada440@gmail.com |
a367b5d3ea2493d4869d08f69172d07ad26b28f1 | a59d55ecf9054d0750168d3ca9cc62a0f2b28b95 | /lib/googlecloudsdk/compute/subcommands/zones/get.py | fc8f8d9a485783c4f032daa75bff8f8e1d07b912 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/google-cloud-sdk | bb2746ff020c87271398196f21a646d9d8689348 | b34e6a18f1e89673508166acce816111c3421e4b | refs/heads/master | 2022-11-26T07:33:32.877033 | 2014-06-29T20:43:23 | 2014-06-29T20:43:23 | 282,306,367 | 0 | 0 | NOASSERTION | 2020-07-24T20:04:47 | 2020-07-24T20:04:46 | null | UTF-8 | Python | false | false | 696 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""Command for getting zones."""
from googlecloudsdk.compute.lib import base_classes
class GetZones(base_classes.GlobalGetter):
"""Get Google Compute Engine zones."""
@staticmethod
def Args(parser):
base_classes.GlobalGetter.Args(parser)
base_classes.Ad... | [
"alfred.wechselberger@technologyhatchery.com"
] | alfred.wechselberger@technologyhatchery.com |
68dbda8e2c3a5c24986cb27e2f748c95a9468258 | d0758e0ca004226cec8ad8b26c9565c98534a8b8 | /11-videogames/Referencia/01-Esqueleto inicial y movimiento en rejilla/game.py | a4f6ef6c60d981a40512906c1b790b4af58cd6d0 | [] | no_license | pythoncanarias/eoi | 334d64a96afc76ac1fa10282378f291b6d8c94b3 | 349367254f85e3e4273cede067ca950913a1332c | refs/heads/master | 2023-07-06T08:00:11.366345 | 2023-06-30T15:19:33 | 2023-06-30T15:19:33 | 222,742,870 | 26 | 19 | null | 2023-06-25T16:03:46 | 2019-11-19T16:41:25 | Jupyter Notebook | UTF-8 | Python | false | false | 2,895 | py | import pygame
import sys
from settings import *
from sprites import *
class Game:
def __init__(self):
"""Create the game window, game clock and load required data."""
pygame.init()
self.screen = pygame.display.set_mode([WIDTH, HEIGHT])
pygame.display.set_caption(TITLE)
... | [
"euribates@gmail.com"
] | euribates@gmail.com |
c378fad8d51ae2f16f0d63eceee41849fdb25ba0 | b1be171c55cabf4f7258e990b2aed1ae88d0f717 | /backend/tight_voice_dev_19784/wsgi.py | 087a75adb97842c236889f0d1334e6f0ce7a8b4d | [] | no_license | crowdbotics-apps/tight-voice-dev-19784 | 1485547f50be1d0375caccba57fd6489054dc3bf | e9287584a8606f11cfb0fd0289ae857af7c01b17 | refs/heads/master | 2023-03-07T10:00:27.743188 | 2021-02-23T21:19:59 | 2021-02-23T21:19:59 | 341,692,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for tight_voice_dev_19784 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b2aa18e31fe038ffdb76a589c27a005b22d39e9b | 09912a852e0e20d6a475ef904724f80072a68359 | /eds/openmtc-gevent/server/openmtc-ngsi/openmtc-ngsi-pylibs/flask/testsuite/test_apps/moduleapp/apps/admin/__init__.py | 5b97da035e8ce404fdacca85f1871465a2904a07 | [
"Apache-2.0"
] | permissive | elastest/elastest-device-emulator-service | 034aa19438383df0975bf86d49e231342d63002f | f512355c5fde6bf027d23558e256b96e2296e0f2 | refs/heads/master | 2021-03-09T15:13:30.676138 | 2020-01-13T12:02:02 | 2020-01-13T12:02:02 | 91,440,225 | 3 | 9 | Apache-2.0 | 2018-12-03T14:59:27 | 2017-05-16T09:26:10 | Python | UTF-8 | Python | false | false | 259 | py | from flask import Module, render_template
admin = Module(__name__, url_prefix='/admin')
@admin.route('/')
def index():
return render_template('admin/motor.html')
@admin.route('/index2')
def index2():
return render_template('./admin/motor.html')
| [
"sro"
] | sro |
6f6a9af7ca357fea9a7a411b52d263eec5cfbe53 | 19521e33ca495c04ce17e804ba6fef877266d037 | /qa/rpc-tests/txindex.py | df89e3f25cce76fbcfbd7bbec7578f0ace65ade7 | [
"MIT"
] | permissive | mirzaei-ce/core-moselbit | 3f441f5960a5c858e1fe389a60c2f5f1d11eff3d | 7e8e723109f22b0fddfa227692b9492f48d12d7c | refs/heads/master | 2021-08-14T18:06:06.700435 | 2017-11-16T11:44:03 | 2017-11-16T11:44:03 | 110,964,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test txindex generation and fetching
#
import time
from test_framework.test_framework import Moselbi... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
99b416b3eda4709724da952a0128643524c6bd02 | d85d4381b78c9d17aa894983ecbbf171195dfb22 | /configs/free_anchor/retinanet_free_anchor_x101-32x4d_fpn_1x.py | ee35b35be4e0c095a26a5caca29fd62ac76fb972 | [
"Apache-2.0"
] | permissive | meiyu422321/mmdetection | 2d17eae43e03037784379be5bf86542dc71b7bc8 | a37efbca5e0982e24875bdc080f292003c75f694 | refs/heads/master | 2020-06-13T11:58:16.168522 | 2020-02-05T10:48:37 | 2020-02-05T10:48:37 | 194,646,026 | 2 | 0 | Apache-2.0 | 2020-01-08T06:13:12 | 2019-07-01T09:50:50 | Python | UTF-8 | Python | false | false | 3,741 | py | # model settings
model = dict(
type='RetinaNet',
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=... | [
"chenkaidev@gmail.com"
] | chenkaidev@gmail.com |
6ecca463d1afeea8e9d8d0639ba05131bd86f03f | af0dcf80a36da4ac6894dc517ad1870f702c3122 | /azure-mgmt-scheduler/azure/mgmt/scheduler/models/job_recurrence.py | e90ce302e8f96f510b1f9bdd87635f6ac3bd0361 | [
"Apache-2.0"
] | permissive | FlavioAlexander/azure-sdk-for-python | 4c6151ca17886f9e4d47e1ccc469859abdedca5a | 8c7416749f9a5697e0311bc9af8fe5c0d524ca03 | refs/heads/master | 2021-01-24T02:34:37.194767 | 2016-07-03T23:47:23 | 2016-07-03T23:47:23 | 62,738,173 | 0 | 1 | null | 2016-07-06T16:54:12 | 2016-07-06T16:54:10 | null | UTF-8 | Python | false | false | 2,353 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
3bb63f8a27383e27df201fae8a37afbe4e48c8f7 | 842f96f188a1385dda9fa539af7e643069dff613 | /armstrong 100 to 1000.py | 5bd71f7c513134c66d9dcbbf926a68877d7c697d | [] | no_license | Laxmivadekar/lucky | 2bac568f831e9aac78e212b5412e868bac41a89d | 7e84e1452465da7eed11fd5a18e32ae97da61862 | refs/heads/main | 2023-07-15T09:18:59.882617 | 2021-08-28T17:39:53 | 2021-08-28T17:39:53 | 400,763,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | n=100
while n<=1000:
temp=n
sum=0
while temp>0:
rem=temp%10
sum+=rem**3
temp//=10
if sum==n:
print(n)
n=n+1
| [
"noreply@github.com"
] | Laxmivadekar.noreply@github.com |
bd57c3c56d41470d252eabdbdcb9343a8e8cb72f | 97ae7e6d4c8184f99d616709ec603277122efeec | /it_light/task.py | bbbc08139d332e9a350e257d33fc9126b3468439 | [] | no_license | didoogan/it_light | 401f4ec1c72821b74c1480e77bda80c60d34bc92 | c48440b8b5276fce5af0da8d0385eb96053c3b2a | refs/heads/master | 2021-01-19T01:01:25.153179 | 2016-07-13T21:26:11 | 2016-07-13T21:26:11 | 62,972,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | def transform_char(char, num):
char_to_int = None
char_to_int = ord(char) + num
# deal with Capitalize char
if char_to_int > 90 and char_to_int < 97:
if char_to_int > 90 and char_to_int < 97:
char_to_int = char_to_int - 90 + 64
# deal with lowercase char
else:
if char_to_int > 122:
char_to_int = ... | [
"tzd0409@gmail.com"
] | tzd0409@gmail.com |
753d5ef898282896ca95c23bc1acd50810254f9c | f5dbf8b9fc7a67167a966ad842999c5ec41d2363 | /app/forms/generic/fields/typed_choice_tag.py | 985f46bdf83d7991977b0830bb04eb50a59a3f5e | [] | no_license | super0605/cogofly-v1 | 324ead9a50eaeea370bf40e6f37ef1372b8990fe | dee0f5db693eb079718b23099992fba3acf3e2dd | refs/heads/master | 2022-11-27T12:16:30.312089 | 2019-10-11T20:35:09 | 2019-10-11T20:35:09 | 214,522,983 | 0 | 0 | null | 2022-11-22T00:57:28 | 2019-10-11T20:25:01 | JavaScript | UTF-8 | Python | false | false | 3,651 | py | # coding=UTF-8
import ast
from django import forms
from django.core.exceptions import ValidationError, FieldError
from django.utils.translation import ugettext_lazy as _
class TagTypedChoiceField(forms.TypedChoiceField):
"""
Permet de créer un champ qui donne la possibilité de choisir parmi des... | [
"dream.dev1025@gmail.com"
] | dream.dev1025@gmail.com |
757fc8ff7a803d0d152d98fa3aea897439c4b725 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /OA/Quora/Q_Quora_Max Arithmetic Length.py | b1d18af8479d2ffb378aea83272bfc4cb3187ac9 | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | class Solution:
def find(self,A,B):
gaps=[A[i]-A[i-1] for i in range(1,len(A))]
def helper(nums):
small=min(nums)
for i in range(1,small+1)[::-1]:
if list(filter(lambda j:j%i!=0,nums))==[]:
return i
g,add,setA,setB=helper(gaps),0,se... | [
"564258080@qq.com"
] | 564258080@qq.com |
aa695c110cbecfd22fec22186d3a5ce9604e53d6 | 1c390cd4fd3605046914767485b49a929198b470 | /leetcode/reconstruct-a-2-row-binary-matrix.py | 788342c08493fd352188b3d37d54d773cca59844 | [] | no_license | wwwwodddd/Zukunft | f87fe736b53506f69ab18db674311dd60de04a43 | 03ffffee9a76e99f6e00bba6dbae91abc6994a34 | refs/heads/master | 2023-01-24T06:14:35.691292 | 2023-01-21T15:42:32 | 2023-01-21T15:42:32 | 163,685,977 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | class Solution:
def reconstructMatrix(self, a: int, b: int, c: List[int]) -> List[List[int]]:
A = []
B = []
for i in c:
if i == 0:
A.append(0)
B.append(0)
elif i == 2:
A.append(1)
B.append(1)
... | [
"wwwwodddd@gmail.com"
] | wwwwodddd@gmail.com |
44173ec7f62306dc752379d9764eeff2c21fe1d1 | 847f40baf346d0fcd6b94dae3c4312df76bd0c92 | /master/.conda/envs/mockchallenge/lib/python3.7/site-packages/halotools/mock_observables/tensor_calculations/tensor_derived_quantities.py | c072313500967d7644466266f09e30ff5c8cd00b | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | michaelJwilson/mockchallenge | e7f4c5a7cbfbeb02fbcb725d3cfab42e0ee2d35d | 3c633f83f78f4eb2cd8450b74a12731b65b5b4ab | refs/heads/master | 2022-06-21T10:22:25.052221 | 2020-05-09T18:36:40 | 2020-05-09T18:36:40 | 262,428,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,695 | py | """
"""
import numpy as np
__all__ = (
'principal_axes_from_inertia_tensors', 'sphericity_from_inertia_tensors',
'triaxility_from_inertia_tensors')
def principal_axes_from_inertia_tensors(inertia_tensors):
r""" Calculate the principal eigenvector of each of the input inertia tensors.
Param... | [
"mjwilson@lbl.gov"
] | mjwilson@lbl.gov |
43a81f671aa62802c6f7e59267c4a24b6d833e24 | 7d90d2ce27c6ee0af74391b09909edbd45fdc2f0 | /renix_py_api/api_gen/HistoryChartSettings_Autogen.py | eb4c69ff80225479abd7659721a577ff00187427 | [] | no_license | gaoxingyu-hub/54testframework-master-e284 | d7ea0d4a715b65c8652430e963a86b9522a7237a | 57dd2197e7d91b8ad8fb2bd0e3503f10afa08544 | refs/heads/master | 2023-04-30T05:50:41.542402 | 2021-05-28T09:19:37 | 2021-05-28T09:19:37 | 309,922,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | """
Auto-generated File
Create Time: 2019-12-27 02:33:25
"""
from .ROMEnum_Autogen import *
from renix_py_api.renix_common_api import *
from renix_py_api import rom_manager
from .ROMObject_Autogen import ROMObject
@rom_manager.rom
class HistoryChartSettings(ROMObject):
def __init__(self, SamplingInterval=None, A... | [
"gaoxingyu@example.com"
] | gaoxingyu@example.com |
f1f67a89a853a8fc790132e05abaa01cfcb2605b | e4f2c957b86191ed5b2b8f3af7b5b24967b426bc | /bessel_FK/bessel_FK/bessel_FK.py | 1ff18b603d864c96431f2d62f5e50de209bbb171 | [] | no_license | ivanpedro/pythondevelop | 28baa4813322a26a01ec64e755828523a2e57739 | 74608f9139c05f8aec1c92bf7ff5380c32104748 | refs/heads/master | 2021-05-08T05:22:29.718142 | 2018-01-11T23:51:39 | 2018-01-11T23:51:39 | 106,345,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,910 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 23 18:13:05 2017
@author: Ivan
Bessel function of first kind
special.jv(nu,z) or special jn(nu,z)
"""
from scipy import special
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from pylab import *
"""... | [
"ivanpedrouk@gmail.com"
] | ivanpedrouk@gmail.com |
42277bd8cd8bf9bbfc74c4786663c34430d4c803 | e6d862a9df10dccfa88856cf16951de8e0eeff2b | /api/allocate/vacancy_booking/python/api_server/models/vacancy_withdrawn_event.py | 3a689b7b88ab903851f603d4ffb6f96fc1784c07 | [] | no_license | AllocateSoftware/API-Stubs | c3de123626f831b2bd37aba25050c01746f5e560 | f19d153f8e9a37c7fb1474a63c92f67fc6c8bdf0 | refs/heads/master | 2022-06-01T07:26:53.264948 | 2020-01-09T13:44:41 | 2020-01-09T13:44:41 | 232,816,845 | 0 | 0 | null | 2022-05-20T21:23:09 | 2020-01-09T13:34:35 | C# | UTF-8 | Python | false | false | 3,521 | py | # coding: utf-8
"""
Vacancy Booking API and Events
## Duty Booking API and events and Events # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: support@allocatesoftware.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
f... | [
"nigel.magnay@gmail.com"
] | nigel.magnay@gmail.com |
df552aec138f861f45e64209f347d0a3339ac40e | 4d675034878c4b6510e1b45b856cc0a71af7f886 | /configs/nas_fcos/nas_fcos_nashead_r50_caffe_fpn_gn-head_4x4_1x_coco.py | b779492527850ca8ea52f7aa8c17d6c3543fa368 | [
"Apache-2.0",
"BSD-2-Clause-Views",
"MIT",
"BSD-2-Clause"
] | permissive | shinya7y/UniverseNet | 101ebc2ad8f15482ee45ea8d6561aa338a0fa49e | 3652b18c7ce68122dae7a32670624727d50e0914 | refs/heads/master | 2023-07-22T08:25:42.646911 | 2023-07-08T18:09:34 | 2023-07-08T18:09:34 | 263,555,721 | 407 | 58 | Apache-2.0 | 2023-01-27T01:13:31 | 2020-05-13T07:23:43 | Python | UTF-8 | Python | false | false | 2,990 | py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='NASFCOS',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_c... | [
"noreply@github.com"
] | shinya7y.noreply@github.com |
88d495f8aee645e43f0367adeac1f48828ac7fb2 | d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496 | /com.CheckProofing/creative_analyzer_final_copy/scripts/python/resources/extract_subj_line.py | 1121f4f5d8a3b7edaaa3707a2c1c6edc1b37573c | [] | no_license | ahmed-test001/python | 21a27248c4571a13c0ed4dccab256aede1beea3a | eab59b9a54fae1a51fbc18c391599eb3b0e28b3d | refs/heads/master | 2023-03-10T21:00:54.634028 | 2021-02-27T05:31:58 | 2021-02-27T05:31:58 | 342,778,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,579 | py | import json
class extract_subj_line:
def __init__(self, **kwargs):
self.config_file = {}
self.input_html_file = kwargs['input_html_file']
self.output_dir = kwargs['output_dir']
self.output_file_name = kwargs['Subject_Line']
self.filename = kwargs['Report_File']
self.... | [
"ahmedu.ferdous@gmail.com"
] | ahmedu.ferdous@gmail.com |
1397a4971cbcf39e1516cf745df95dd242ffae46 | c5fb49af6c4de5e5dde2981224dce8d39243d8c1 | /Pdf_Merging/views.py | c922b2919c3801338bb0dce777768cbcaa86b75d | [] | no_license | Ashish2831/TEXT-UTILS | 1631d5dcaea4ff11eb7b5fa323ff2ad13c8a57f1 | 6a905731269988001364648e46590a7a04496c8b | refs/heads/main | 2023-08-16T16:11:31.436503 | 2021-09-14T10:22:49 | 2021-09-14T10:22:49 | 374,950,398 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | from django.shortcuts import render
import PyPDF2
import os
# Create your views here.
index = 1
def Upload(request):
global index
if request.method == "POST":
file = request.FILES.get('file')
with open(f"UploadedMedia\Pdf_Merging\PDFs\Pdf{index}.pdf", "wb+") as pdf:
for chunk in fil... | [
"ashishpatil28032001@gmail.com"
] | ashishpatil28032001@gmail.com |
d9244a04e2dfb6ffc30786c9beb00c32cb280d70 | ee9c5b5ff85b2b49a69677f14bf7b57881b08e3c | /venv/Scripts/pip3.7-script.py | 99c7946bbd6b6e10f3a0f8b0601b0251c4910df4 | [] | no_license | chrisna2/python-design-pattern | 28965f5e9e880f740411ff1dd8a51233cd9739e2 | 12aff069738b8aac3854e1148ec414bd16984ea5 | refs/heads/master | 2020-07-19T17:33:38.038629 | 2019-09-05T06:13:36 | 2019-09-05T06:13:36 | 206,488,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #!D:\tyn_dev\workspace_pycham\python-design-pattern\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"chrisna2@hanmail.net"
] | chrisna2@hanmail.net |
60b16664d010aa17f247b66b901c2c60e233d54e | 5503b2746fb0f6cb48409e713474f4257b2131e1 | /loguru_logging_intercept.py | 86a72d32ba9747436ebdc4b5e2b90e43c4e17945 | [
"MIT"
] | permissive | MatthewScholefield/loguru-logging-intercept | 39a174e4c6f70826d3eb032df80c36568bb39b07 | 4fdffbac9e7b5cf8e938f6a71151ec55ce06b695 | refs/heads/main | 2023-08-23T16:58:24.878304 | 2023-08-04T04:42:09 | 2023-08-04T04:42:25 | 334,223,234 | 8 | 2 | MIT | 2021-04-10T21:54:03 | 2021-01-29T18:00:12 | Python | UTF-8 | Python | false | false | 1,404 | py | import logging
import sys
from itertools import chain
from types import FrameType
from typing import cast
from loguru import logger
class InterceptHandler(logging.Handler):
"""Logs to loguru from Python logging module"""
def emit(self, record: logging.LogRecord) -> None:
try:
level = log... | [
"matthew331199@gmail.com"
] | matthew331199@gmail.com |
3bc98364ea1186377417b0681ce3f1f2a099ab2d | c50e5af8f72de6ef560ee6c0bbfa756087824c96 | /test/timeit_判断奇偶_求余_位运算.py | ecd0c476bf77c3cf507d1c1ed4007c99c06ca914 | [] | no_license | binghe2402/learnPython | 5a1beef9d446d8316aaa65f6cc9d8aee59ab4d1c | 2b9e21fe4a8eea0f8826c57287d59f9d8f3c87ce | refs/heads/master | 2022-05-27T03:32:12.750854 | 2022-03-19T08:00:19 | 2022-03-19T08:00:19 | 252,106,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | ''' 求余好像更快 '''
import timeit
# ss = 'a = list(range(10000000))'
s1 = "for i in range(10):\n" \
"\ti&1"
s2 = "for i in range(10):\n" \
"\ti%2"
t1 = timeit.timeit(stmt=s1, number=20)
t2 = timeit.timeit(stmt=s2, number=20)
print(t1)
print(t2)
res = [i % 2 == i & 1 for i in range(10)]
print(res)
print(all(res... | [
"binghe2402@hotmail.com"
] | binghe2402@hotmail.com |
39b23975d72110efa771a3562bd38b1f14bd32e0 | 55b8c2ca8b6ac3639ad0dfa2f08bdbefbafff1a1 | /app/admin.py | 9a2f41cb40e487770f7077a1bcd6a45c3b4a5a94 | [] | no_license | nguyendan07/tweet | 3744056770ae23b82c8e601f9d3bb663a84983f2 | 5d0833217e71b376dfc16376604cf36b7d783e79 | refs/heads/master | 2020-03-19T01:07:10.774594 | 2018-06-01T08:49:37 | 2018-06-01T08:49:37 | 135,524,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from django.contrib import admin
from .models import Tweet
# from .forms import TweetModelForm
class TweetModelAdmin(admin.ModelAdmin):
# form = TweetModelForm
class Meta:
model = Tweet
admin.site.register(Tweet, TweetModelAdmin)
| [
"nguyendan@hotmail.com.vn"
] | nguyendan@hotmail.com.vn |
382dec09aac8890d289aa74f79e0c5912681536f | 98895f2c4a11195495e4e94d7b1821d3ec229f17 | /Backend/blockchain/Blockchain.py | 91768a68cc32451ab4cd697eef9962e90d942071 | [
"MIT"
] | permissive | zarif007/Block-Chain-Web-App | 130a0e44fb84c622a6fbc496ead1a45b0caf6065 | 40bd4d8d8ce1f6de2840792290bf022d7dfacbb4 | refs/heads/main | 2023-02-20T01:32:41.974440 | 2021-01-23T20:04:01 | 2021-01-23T20:04:01 | 317,946,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,164 | py | from backend.blockchain.Block import Block
from backend.wallet.transaction import Transaction
from backend.wallet.wallet import Wallet
from backend.config import MININIG_REWARD_INPUT
class Blockchain:
"""Blockchain technology is most simply defined as a decentralized,
distributed ledger that records the prove... | [
"zarifhuq786@gmail.com"
] | zarifhuq786@gmail.com |
69929158fff61b2c4a4eeb40972550338e8c1d29 | 0378a2f1adad86f439ce214ebfe2a904cda6eb41 | /badball/migrations/0090_auto_20191228_1535.py | ad03770da3c22e368ff58962ea31e436108e987a | [] | no_license | jeremyjbowers/badball | 2035902b5f8d2bc05219af887bd3e1bfcb45192b | 323289ec871e0e7e98e397c9d528d83773c86f85 | refs/heads/master | 2020-12-20T22:08:53.083230 | 2020-01-25T23:09:11 | 2020-01-25T23:09:11 | 236,222,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # Generated by Django 2.2.7 on 2019-12-28 15:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('badball', '0089_auto_20191228_1527'),
]
operations = [
migrations.AlterField(
model_name='player',
name='position',
... | [
"jeremyjbowers@gmail.com"
] | jeremyjbowers@gmail.com |
2f60b7d0a7e3a809598c3f64fbdba82756ad47de | 8024be47f6643ba998a2596353d42e3bca0be720 | /StandardLib/igraph/operators.py | 5e3e8bd856e5890a803abb77b8687f221706ca74 | [] | no_license | hiepbkhn/itce2011 | a8aaec08e426454671570e28f1dd4828d83d12ca | d8985d1484699bdbb7bbece572058a420a960eac | refs/heads/master | 2021-04-22T12:49:38.516261 | 2019-02-11T15:45:42 | 2019-02-11T15:45:42 | 37,022,768 | 9 | 6 | null | null | null | null | UTF-8 | Python | false | false | 6,663 | py | import unittest
from igraph import *
class OperatorTests(unittest.TestCase):
def testMultiplication(self):
g = Graph.Full(3)*3
self.failUnless(g.vcount() == 9 and g.ecount() == 9
and g.clusters().membership == [0,0,0,1,1,1,2,2,2])
def testIntersection(self):
g =... | [
"hiepnh.vtt@gmail.com"
] | hiepnh.vtt@gmail.com |
cec0e5176bc212110ded49072b514fc8d98e40c8 | e9fa26be4d9e7a725d3f889b6aa9cf5029f47c2d | /lib/telegram/chat.py | d837c9fd2d18204183e5e04d0e0892c96c4d66ac | [
"BSD-3-Clause"
] | permissive | ahriman-ru/azure-test | 2e0ee70a8b453534cf82e44860f04dddd3ab8095 | 3c377163192139d046b4ec20ce5b44a0492aecd8 | refs/heads/master | 2021-07-17T03:53:14.025065 | 2017-10-20T12:04:11 | 2017-10-20T12:04:11 | 100,267,395 | 0 | 0 | null | 2017-08-14T12:54:01 | 2017-08-14T12:54:01 | null | UTF-8 | Python | false | false | 7,486 | py | #!/usr/bin/env python
# pylint: disable=C0103,W0622
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2017
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU L... | [
"root@MININT-HAS5VVP.europe.corp.microsoft.com"
] | root@MININT-HAS5VVP.europe.corp.microsoft.com |
3014b6058396760f0483f207a64dd4bf3c6cd420 | 4c601eaa346e660c296e270cc2d79aea9a3721fe | /tests/components/bsblan/test_config_flow.py | 48f71a8404f5a999fd0927a9038dd9ad1b6941e0 | [
"Apache-2.0"
] | permissive | basnijholt/home-assistant | f55110af9ff602274c0a929c7298ef97a0ef282f | ba55b4b8338a2dc0ba3f1d750efea49d86571291 | refs/heads/dev | 2023-01-21T11:53:52.621353 | 2020-08-08T15:03:06 | 2020-08-08T15:03:06 | 220,313,680 | 5 | 1 | Apache-2.0 | 2023-01-13T06:04:49 | 2019-11-07T19:29:54 | Python | UTF-8 | Python | false | false | 3,271 | py | """Tests for the BSBLan device config flow."""
import aiohttp
from homeassistant import data_entry_flow
from homeassistant.components.bsblan import config_flow
from homeassistant.components.bsblan.const import CONF_DEVICE_IDENT, CONF_PASSKEY
from homeassistant.config_entries import SOURCE_USER
from homeassistant.const... | [
"noreply@github.com"
] | basnijholt.noreply@github.com |
455018fd484138c6887e6c66acd30e3280bb67a3 | b0e22deb519ec621b5f866bb15d15d597e6e75d4 | /tests/models/validators/v3_0_0/jsd_e56bea5248a25f799b02fcb6098a7b10.py | 6ab5e203eb06d0cc91d937abdb30649f4c18ef0b | [
"MIT"
] | permissive | oianson/ciscoisesdk | 49ed9cd785a8e463cac4c5de3b1f3ff19e362871 | c8fe9d80416048dd0ff2241209c4f78ab78c1a4a | refs/heads/main | 2023-07-31T20:08:29.027482 | 2021-07-09T15:16:04 | 2021-07-09T15:16:04 | 385,743,799 | 0 | 0 | MIT | 2021-07-13T21:52:18 | 2021-07-13T21:52:18 | null | UTF-8 | Python | false | false | 3,257 | py | # -*- coding: utf-8 -*-
"""Identity Services Engine getSXPLocalBindingsById data model.
Copyright (c) 2021 Cisco and/or its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without res... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
e87a2208ac24079b66e0fe1f35523343f6a5b642 | 9705552900ba2aecb67437e2d370aa8d39e59f51 | /pynet/info.py | 6ff9ecdc5d6c1240d5fef0ace72ab659ab110f5a | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | AGrigis/pynet | 15c2f03d3a4f92b7fe52d0c4b90972b5e6e583d2 | d0e6a3e6e954ae0e59fddfe85fe12ce0ef1e6fe4 | refs/heads/master | 2023-08-10T07:57:58.897485 | 2019-08-19T13:36:36 | 2019-08-19T13:36:36 | 203,187,278 | 0 | 0 | NOASSERTION | 2019-12-03T13:02:57 | 2019-08-19T14:17:47 | Python | UTF-8 | Python | false | false | 2,124 | py | # -*- coding: utf-8 -*-
##########################################################################
# NSAp - Copyright (C) CEA, 2019
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
#... | [
"antoine.grigis@cea.fr"
] | antoine.grigis@cea.fr |
dc22391e1d0922fa0caaffb67e2e60a36fd98757 | 1e5f6ac1590fe64e2d5a2d8b036c0948847f668d | /codes/Module_3/lecture_14/lecture_14_18.py | 3a437124fe78730880567738d94ade1161f03c29 | [] | no_license | Gedanke/Reptile_study_notes | 54a4f48820586b1784c139716c719cc9d614c91b | a9705ebc3a6f95160ad9571d48675bc59876bd32 | refs/heads/master | 2022-07-12T23:43:24.452049 | 2021-08-09T12:54:18 | 2021-08-09T12:54:18 | 247,996,275 | 5 | 1 | null | 2022-06-26T00:21:48 | 2020-03-17T14:50:42 | HTML | UTF-8 | Python | false | false | 411 | py | # -*- coding: utf-8 -*-
import time
from selenium import webdriver
browser = webdriver.Chrome()
browser.get('https://www.baidu.com')
browser.execute_script('window.open()')
print(browser.window_handles)
browser.switch_to.window(browser.window_handles[1])
browser.get('https://www.taobao.com')
time.sleep(1)
browser.swi... | [
"13767927306@163.com"
] | 13767927306@163.com |
bb68cbaca0747b648bd35e635213a0f75cb8c47d | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /third_party/WebKit/Source/platform/mojo/DEPS | 289dba405729519f1408158bf9a94b4b53cf0733 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 424 | include_rules = [
# To whitelist base/ stuff Blink is allowed to include, we list up all
# directories and files instead of writing 'base/'.
"+base/callback.h",
"+base/containers/span.h",
"+base/message_loop/message_loop.h",
"+base/strings/string16.h",
"+mojo/public/cpp/bindings/binding.h",
... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com | |
6f87c74331b4e564d29a3900f954908d99cb8713 | dbd77c507840d71f2d8e0c9afbeabc5ec69cf440 | /homework/api_auto_3/common/project_path.py | 0ba16780660fe446bcbee1efb031836d1a89cee0 | [] | no_license | zhang0123456789/python_study | 5a7b2972ba365b0f2355f95458d2b3caf2905225 | 69963149ac0cd0724db5e43e666c625d7309b797 | refs/heads/master | 2020-04-14T20:37:51.091089 | 2019-06-22T05:09:19 | 2019-06-22T05:09:19 | 163,464,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/10 20:29
# @Author : lemon_huahua
# @Email : 204893985@qq.com
# @File : project_path.py
#专门来存储我们路径的变量
import os
base_path=os.path.split(os.path.split(os.path.realpath(__file__))[0])[0]
print(base_path)
#想得到配置文件的路径
config_path=os.path.join(base_path,'conf','test_api.co... | [
"1402686685@qq.com"
] | 1402686685@qq.com |
60e0f2ebc2790f383aad657d45af796b58fcc1a1 | 3a58d339e2f3848b37edbfb2c957bcc6d5659664 | /habr.py | 0111319816b384b4d724f7e36e7ca7d0cf151c68 | [] | no_license | Quastrado/parse_pages | 975364ffdb63ab8aa1cdae421b331979f5085e8f | 0303e09c147ec643019c12ef9fc39e3391607dfd | refs/heads/master | 2020-10-01T18:05:19.428873 | 2019-12-12T12:09:34 | 2019-12-12T12:09:34 | 227,594,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | import urllib.request
from urllib.parse import urlparse
from bs4 import BeautifulSoup
def get_posts(url, limit):
req = urllib.request.urlopen(url)
soup = BeautifulSoup(req, 'html.parser')
posts = soup.find_all('article', {'class': 'post post_preview'}, limit=limit)
return posts
def generate_data... | [
"you@example.com"
] | you@example.com |
bfae5f4f79e16cab83cc5f090d667c3ad3f3f45c | 860052ff38d15aa1d425bc4ce4442f03bab94bc0 | /hc/api/migrations/0037_auto_20180127_1215.py | 82d631f1817fda7240928a701ff77ebf0a4caae4 | [
"BSD-3-Clause"
] | permissive | mwanjajoel/healthchecks | 80ef630a1e1539a31018883e5adf35175d905366 | 68125f2b6ba16e81e4cd22c50325b0ba7dec16a9 | refs/heads/master | 2023-05-26T10:51:45.724242 | 2022-05-19T11:11:32 | 2022-05-19T11:11:32 | 138,776,963 | 0 | 0 | BSD-3-Clause | 2023-05-22T21:39:38 | 2018-06-26T18:21:57 | Python | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-27 12:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0036_auto_20180116_2243'),
]
operations = [
migrations.AlterField(
... | [
"cuu508@gmail.com"
] | cuu508@gmail.com |
88c51289dcd3d586eb5120f62ed7bfcd46e1895f | 6ad1149e8cfd7952e28999a92821e9c50347255f | /shoppingsite.py | 34cb42b18affc5de2180f251bca6b14d8958e382 | [] | no_license | lmkroyer/Shopping-Site-Lab-10_19_17 | 84cbaf8a7d76b8ffc507b1f7219cf8d0cf7d95f1 | de49417a3a857971ca4b08543f518581464083d5 | refs/heads/master | 2021-07-15T06:15:37.149596 | 2017-10-19T23:28:51 | 2017-10-19T23:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,306 | py | """Ubermelon shopping application Flask server.
Provides web interface for browsing melons, seeing detail about a melon, and
put melons in a shopping cart.
Authors: Joel Burton, Christian Fernandez, Meggie Mahnken, Katie Byers.
"""
from flask import Flask, render_template, redirect, flash, session
import jinja2
imp... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
9cb513ef9f8617a1d8b19b2db32ad6fced96816d | 1b2f5766da374e77fa111264ff8ffb5e1c80becb | /pymic/util/average_model.py | 0b6fb29ba170dc2420bbd078c6b651bfc4ff72a6 | [
"Apache-2.0"
] | permissive | vincentme/PyMIC | d62d6a755204bcd1ac13b1b8c5f3fce01cfcff5b | 5cbbca7d0a19232be647086d4686ceea523f45ee | refs/heads/master | 2023-05-07T15:30:32.203191 | 2021-05-21T07:23:09 | 2021-05-21T07:23:09 | 351,607,267 | 0 | 0 | Apache-2.0 | 2021-03-27T16:22:25 | 2021-03-25T23:46:47 | Python | UTF-8 | Python | false | false | 895 | py | import torch
checkpoint_name1 = "/home/guotai/projects/PyMIC/examples/brats/model/casecade/wt/unet3d_4_8000.pt"
checkpoint1 = torch.load(checkpoint_name1)
state_dict1 = checkpoint1['model_state_dict']
checkpoint_name2 = "/home/guotai/projects/PyMIC/examples/brats/model/casecade/wt/unet3d_4_10000.pt"
checkpoint2 = tor... | [
"wguotai@gmail.com"
] | wguotai@gmail.com |
4d766a94fda6c2b08dbebdc401cd34ce185a07ce | 9a309ca19b654bc8e5045242081330870efee4ec | /core/migrations/0005_recipe_image.py | fcf29b0ea73274a989d5263984e78cb6b7539bd3 | [] | no_license | jsparmani/django-rest-framework | c03989cbbb844d01486f979fe4c79d2c73cbe319 | 5a48304f4d91d9363727bded30499987794d6fb4 | refs/heads/master | 2020-08-04T00:18:24.141631 | 2019-10-02T08:24:55 | 2019-10-02T08:24:55 | 211,934,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Generated by Django 2.1.7 on 2019-10-02 07:43
import core.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_recipe'),
]
operations = [
migrations.AddField(
model_name='recipe',
name='image',
... | [
"jsparmani@gmail.com"
] | jsparmani@gmail.com |
fd7d501794be5efd47f3d0b4b17421201d9e00fa | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-channel/samples/generated_samples/cloudchannel_v1_generated_cloud_channel_service_list_customers_sync.py | 1b773c10751f001755ffb54eafacc625e66cd1f6 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,898 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
dbcbcb1525f2e1a82abb03273d5c3d9b1be921c9 | 92a97f111195777c3d658f33024c0e8fe4688842 | /source/datamanager.py | 643c66031f26d4f64e10e06dfe918112c1765664 | [
"MIT"
] | permissive | YeongHyeon/ResNeSt-TF2 | 1200e75eda892aed9ba65dba5d2a6d570ec7213a | 0e4440206e0e16569fa5fd4664742cb0acd140c9 | refs/heads/master | 2023-05-09T13:02:37.284528 | 2021-05-28T03:45:42 | 2021-05-28T03:45:42 | 262,956,092 | 73 | 15 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | import numpy as np
import tensorflow as tf
from sklearn.utils import shuffle
class Dataset(object):
def __init__(self, normalize=True):
print("\nInitializing Dataset...")
self.normalize = normalize
(x_tr, y_tr), (x_te, y_te) = tf.keras.datasets.mnist.load_data()
self.x_tr, self... | [
"young200405@gmail.com"
] | young200405@gmail.com |
b1ef8793c52af8c2a19f9692723e09d280ef26d2 | 96ec28c68204fdc5ca8e7c649b50079c8c8c2156 | /boqn/langermann.py | 2312bbea0b4ba6ee62eb9d5dda9291c96291add6 | [
"MIT"
] | permissive | RaulAstudillo06/BOQN | f2fea969cf8171e11565ec082c99fa7f35dd55ce | dc31980bbf195c299632c94119b99cbd27f47ea9 | refs/heads/master | 2023-08-31T04:15:37.347362 | 2021-11-05T19:17:49 | 2021-11-05T19:17:49 | 257,744,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | import torch
import math
class Langermann:
def __init__(self):
self.c = torch.tensor([1., 2., 5., 2., 3.])
self.A = torch.tensor([[3., 5., 2., 1., 7.], [5., 2., 1., 4., 9.]])
def evaluate(self, X):
c = self.c
A = self.A
X_scaled = 10 * X
ou... | [
"astudillo0606@gmail.com"
] | astudillo0606@gmail.com |
956c0531083c165829e8037eb19db1ebc1ad7eaf | dcc491dd2fa4ece68728255d236fa6e784eef92d | /modules/2.79/bpy/ops/gpencil.py | 181247b5007de7ca515398c478b5cafed5ec3355 | [
"MIT"
] | permissive | cmbasnett/fake-bpy-module | a8e87d5a95d075e51133307dfb55418b94342f4f | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | refs/heads/master | 2020-03-14T16:06:29.132956 | 2018-05-13T01:29:55 | 2018-05-13T01:29:55 | 131,691,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | def active_frame_delete():
pass
def active_frames_delete_all():
pass
def blank_frame_add(all_layers=False):
pass
def brush_add():
pass
def brush_change(brush='DEFAULT'):
pass
def brush_copy():
pass
def brush_move(type='UP'):
pass
def brush_paint(stroke=None, wait_for_input=True... | [
"nutti.metro@gmail.com"
] | nutti.metro@gmail.com |
865bb4af910d46b81921ca322b4c57e628cd2002 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03090/s237766398.py | 50f14196be57d693b8236c07b36df3b98cc29a47 | [] | 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 | 242 | py | n = int(input())
r = []
if n%2==0:
c = 1
else:
c = 0
for i in range(1, n+1):
for j in range(i+1, n+1):
if n-i+c == j:
continue
else:
r.append([i, j])
print(len(r))
for i in r:
print(*i) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
eba277c7cca30be0476c68b9ff54db733031052b | 26a5dbfbe98fdffd7fde9cfaeb2d466b178c2d58 | /Week8/lyrics/app/views.py | cdf4f4df5edf4fad7dc16a8c5b5f8345780a4b3b | [] | no_license | sseaver/class_notes | 76130ae3f4c5416bd60d48810cf34efd4b760dff | cce376a2eb178a2e42282e9e1785b0cff24fb1ad | refs/heads/master | 2020-04-12T22:39:25.984909 | 2016-11-09T17:31:05 | 2016-11-09T17:31:05 | 68,213,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | from django.shortcuts import render
from django.views.generic import TemplateView
import requests
from bs4 import BeautifulSoup
# Create your views here.
class SongView(TemplateView):
template_name = 'song.html'
def get_context_data(self, song_url):
context = super().get_context_data()
page =... | [
"sseaver321@gmail.com"
] | sseaver321@gmail.com |
611cbbb15f5aa5cd2da8d0bfe0647a1d6e64f2e0 | 7b3711d4c6d7284255ba0270d49d120f984bf7c6 | /problems/582_kill_process.py | a783c8aaa04a8e54dde1feee524913dd12b5fe5c | [] | no_license | loganyu/leetcode | 2d336f30feb55379aaf8bf0273d00e11414e31df | 77c206305dd5cde0a249365ce7591a644effabfc | refs/heads/master | 2023-08-18T09:43:10.124687 | 2023-08-18T00:44:51 | 2023-08-18T00:44:51 | 177,875,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | '''
Given n processes, each process has a unique PID (process id) and its PPID (parent process id).
Each process only has one parent process, but may have one or more children processes. This is just like a tree structure. Only one process has PPID that is 0, which means this process has no parent process. All the PID... | [
"yu.logan@gmail.com"
] | yu.logan@gmail.com |
c452d18a91cc453ab6cb79acf13ee3e47c6b115b | e0ccd6780a4815716f58d22062fd69bd8afa633b | /AlGDock/_external_paths.py | b781d2ed2c5b88087b5588b7aaeefd0db79701ac | [
"MIT"
] | permissive | vancentvan/AlGDock | f898c8fedc9c989e737e0b502044ca7fa1e1396a | 014859d1bd861c9f523faadda59cd6aeda1fdf9a | refs/heads/master | 2021-05-05T22:05:20.929564 | 2017-09-03T05:40:36 | 2017-09-03T05:40:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,576 | py | import os, inspect
dir_external_paths = os.path.dirname(os.path.abspath(\
inspect.getfile(inspect.currentframe())))
### Google drive downloader from
# http://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive
import requests
def download_file_from_google_drive(id, destination):
URL = "h... | [
"daveminh@gmail.com"
] | daveminh@gmail.com |
44a166776acb9e66e2e0c2697fe4b9044857854e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02404/s223979056.py | 922cf58b2d0e73d6ef5e7ff160675d8396779da1 | [] | 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 | 228 | py | import math
H, W = map(int, raw_input().split())
while H > 0 or W > 0 :
print "#" * W
for i in xrange(H-2) :
print "#" + "." * (W-2) + "#"
print "#" * W
print
H, W = map(int, raw_input().split()) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a1ca52a47a87bf416856585f298b35056a62d7c4 | c117f90b93805d88a91943a9b0525fefb5d48778 | /10 后台评论管理/app/libs/helpers.py | c4fe66df641f6b6e595ac45913962f046835ef9a | [] | no_license | redsnowc/BlogByFlask | 55aa4b7843d1ba09e9f725f1009ea94aaec98215 | 25bec0d9967be3da695f3d9f8d5792fe9bee404c | refs/heads/master | 2022-10-04T12:49:18.852399 | 2020-07-04T09:32:13 | 2020-07-04T09:32:13 | 223,352,898 | 13 | 4 | null | 2022-01-21T20:15:27 | 2019-11-22T07:59:01 | JavaScript | UTF-8 | Python | false | false | 4,112 | py | import json
from urllib.parse import urlparse, urljoin
from flask_wtf import FlaskForm
from flask import current_app, request, redirect, url_for
from werkzeug import Response
from werkzeug.datastructures import ImmutableMultiDict
from typing import Union
def get_form_error_items(form: 'FlaskForm') -> tuple:
"""
... | [
"nuanyang.44@gmail.com"
] | nuanyang.44@gmail.com |
2064cf30c73a0ff6292a3a29b633a5eb2347c79c | ab9db05162f0a477cae6d2e93ad18ef433983739 | /usloviya/problem3.py | 7d5e5c29f1e7c5334cd5e349c2897172cce18a12 | [] | no_license | Nurzatnur/rabota2 | 271073c36e9081fd440065f168a21804696d12e1 | 96d2d6e3363e2ca6affa87fbca2b5e825fe9283d | refs/heads/master | 2023-03-08T08:37:22.918927 | 2021-02-22T12:35:06 | 2021-02-22T12:35:06 | 340,947,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | a=79
if a>0 and a<21:
print ("Число ", a, "находится в разрешенном диапозоне")
elif a>79 and a<100:
print ("Число ", a, "находится в разрешенном диапозоне")
else:
print ("Число ", a, "находится в запрещенном диапозоне") | [
"nurzatnur25@gmail.com"
] | nurzatnur25@gmail.com |
c42c2e785314db972b1e033827f81eac5013f809 | 751cf52d62dba7d88387fc5734d6ee3954054fc2 | /opencv/experiments_raw/contour_Backproject/backProjection_masked_kernelTests.py | a68b19d421e07f535f64c6a1de81db0c6fd95ab3 | [
"MIT"
] | permissive | nooralight/lab-computer-vision | 70a4d84a47a14dc8f5e9796ff6ccb59d4451ff27 | 0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9 | refs/heads/master | 2023-03-17T12:45:22.700237 | 2017-07-11T22:17:09 | 2017-07-11T22:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,825 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
xi, yi, xf, yf = 0, 0, 0, 0
selecting = False
foo = False
# bar = False
def regionSelect(event, x, y, flags, param):
# print(selecting)
global xi, yi, xf, yf, selecting, foo, roiHist #, bar
if event == cv2.EVENT_LBUTTONDOWN:
plt.clo... | [
"danbudanov@gmail.com"
] | danbudanov@gmail.com |
05fb088ad6ee374d1298eb08eef7a3eb4bf80b8f | 70fa01445bd6fa956acf86d28e72c80a0c4b0c31 | /websauna/system/devop/alembic.py | fe5144977128f4302e7aa13d817eb06a8967e2ff | [
"MIT",
"Apache-2.0"
] | permissive | FaithfulAudio/websauna | e31489d7d1163f64d608e6338710eedbea5b5134 | 66132ed032786c513161eb58eace3d0a8193cbe5 | refs/heads/master | 2021-04-28T13:10:47.100578 | 2018-05-19T14:18:40 | 2018-05-19T14:18:40 | 122,096,557 | 0 | 0 | null | 2018-05-19T14:18:41 | 2018-02-19T17:25:45 | Python | UTF-8 | Python | false | false | 8,122 | py | """Support for Alembic SQL migrations.
1. Each Python package needs to get its own alembic_history table
2. In "objects to consider" function we resolve the object's package and compare whether it is the package for which we try to create migrations for
3. All migration scripts live inside the package, in alembic/ f... | [
"mikko@opensourcehacker.com"
] | mikko@opensourcehacker.com |
70b985594a95d54c47fe21a564a0ceac8ab378b0 | 35e79b51f691b7737db254ba1d907b2fd2d731ef | /yukicoder/1433.py | 3a32bb3298fe9e981f9119ae31caf6167ea5a8e8 | [] | no_license | rodea0952/competitive-programming | 00260062d00f56a011f146cbdb9ef8356e6b69e4 | 9d7089307c8f61ea1274a9f51d6ea00d67b80482 | refs/heads/master | 2022-07-01T02:25:46.897613 | 2022-06-04T08:44:42 | 2022-06-04T08:44:42 | 202,485,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | n = int(input())
s = input()
a = list(map(int, input().split()))
dp1 = [0 for i in range(n + 1)]
dp2 = [0 for i in range(n + 1)]
for i in range(n):
if s[i] == 'R':
dp1[i + 1] = max(dp1[i + 1], dp1[i] - a[i])
dp2[i + 1] = max(dp2[i + 1], dp2[i] + a[i])
else:
dp1[i + 1] = max(dp1[i + 1], ... | [
"dragondoor0912@yahoo.co.jp"
] | dragondoor0912@yahoo.co.jp |
b94b3f924cc3da07c460f355a06ad7b2c017852a | 8db1b9528ace3ce142ea52da1017eb6359f46967 | /py1901/ML03c.py | 4c7d078358fb4f3fa4e3380804d73aa35a43ad5f | [] | no_license | ul8ksgdmy/myPythonlearning | 01fbd49d227e2b3095250e7ee40768fa3179f26e | 2ad0d3525cd505edba3fd37e21f601a32872259b | refs/heads/master | 2020-03-31T14:33:13.448891 | 2019-01-09T18:13:26 | 2019-01-09T18:13:26 | 152,299,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn import datasets
import mglearn
import seaborn as sns
#로지스틱 회귀
#주로 분류를 하기위한 알고리즘
#주로 예, 아니오 등의 이진분류에 많이 사용
#의료 통신 데이터 마이닝 분야의 회귀, 분류를 위한 예측 모델로 활용.
from sklearn.linear_model import LogisticRegression
from sklea... | [
"clickmy7@gmail.com"
] | clickmy7@gmail.com |
089b1cb27f0cf52a416e8d7b0b1942127a9e97ea | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/1254.py | 3fc669d44e83b8e53d7823ac68f561106c212c70 | [] | 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 | 449 | py | import sys
def word_count(word):
wordlist = word.split()
worddict = {}
for i in wordlist:
if not(worddict.has_key(i)):
worddict.update({i:1})
else:
value = worddict[i]
worddict.update({i: (value +1)})
return worddict
if __name__ == ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
edd868f4387c02a2e5b6e1a88972b965bbcb11c6 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_version.py | 8017662b4838d05fda8416ffd80f746749bfce54 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 172 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
VERSION = "3.3.0b1"
| [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
6763dd2ef4c70f17a2d1d05a5a09cb8413719731 | 6e8581602f34e5d8fd4c927193cbe0b52b8b8302 | /religare_preauth.py | cad8f3355d3cb3585d385bf24e6d86a74286b635 | [] | no_license | akshaynaik797/index | 5a9563fae6d6f91cea53ad16196c6f4b51a70e86 | 829f03adf27f53c132551cc78b08413fa980471a | refs/heads/master | 2023-05-31T04:07:58.267651 | 2021-06-22T06:32:52 | 2021-06-22T06:32:52 | 309,669,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | import datetime
import sys
import pdftotext
from custom_app import set_flag_row
from custom_datadict import make_datadict
from custom_parallel import write
from make_log import log_exceptions
set_flag_row(sys.argv[9], 'E', sys.argv[7])
start = datetime.datetime.now()
with open(sys.argv[1], "rb") as f:
... | [
"akshaynaik797@gmail.com"
] | akshaynaik797@gmail.com |
b13cb735a2055766611b9e07740c14aa0cddbf19 | 861781589f3f674fdcc34dc2b5f98ea06006c648 | /adminapp/urls.py | 031d7d501982225500356d1403833267fdd78ac0 | [] | no_license | FedorPolyakov/geekshope_on_django | 7dd5133d85ffea910113a1c51684c34d8ca56229 | 2a432e2e581f64b2208447369eaa5f58accd000b | refs/heads/master | 2023-01-19T14:09:47.810521 | 2020-11-17T20:52:14 | 2020-11-17T20:52:14 | 296,665,989 | 0 | 0 | null | 2020-11-19T15:59:23 | 2020-09-18T15:53:43 | Python | UTF-8 | Python | false | false | 3,181 | py | from django.urls import path
import adminapp.views as adminapp
app_name = 'adminapp'
urlpatterns = [
#users#
path('users/create/', adminapp.UserCreateView.as_view(), name='user_create'),
path('users/read/', adminapp.UserListView.as_view(), name='users'),
path('users/update/<int:pk>/', adminapp.UserUpd... | [
"pismo.na.pochtu@gmail.com"
] | pismo.na.pochtu@gmail.com |
ab0446c70b25638044c1a62b181818c3fc953d18 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/76.py | d0b722157f3fc727e5f4f555a3f30fd6e1fd1fa2 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #!/usr/bin/env python
import sys
ls = sys.stdin.readlines()[1:]
C = 1
for l in ls:
a, b = l.split(" ")
a = [c for c in a]
k = int(b)
n = 0
def flip(i):
for j in range(i, i + k):
a[j] = '-' if a[j] == '+' else '+'
for i in range(len(a) - k + 1):
if a[i] == '-':... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
15943ff4dd962190f0c361ddb8dbe547ea29624e | 5bbda9dd673303e35a0c783e3ac456dcb3e1545b | /tests/scripts/plot_feature_track.py | 7ab1272d4b120f10a2f8176228604287b4ad4efc | [
"BSD-2-Clause"
] | permissive | NemoLeiYANG/generalvisodom | c32d2b8dd68db8e52da357d5a3acfd0077093e8d | c9eb10539ba1442be9c296b084c152a511cec690 | refs/heads/master | 2020-03-17T00:29:34.346800 | 2018-05-09T04:14:27 | 2018-05-09T04:14:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import sys
import numpy as np
import matplotlib.pylab as plt
if __name__ == "__main__":
data_file = sys.argv[1]
image_width = int(sys.argv[2])
image_height = int(sys.argv[3])
data = np.loadtxt(open(data_file, "r"), delimiter=",")
track = np.array([data[:, 0], data[:, 1]]).T
plt.title("Featur... | [
"chutsu@gmail.com"
] | chutsu@gmail.com |
f6aa0fcc15311dffccc3e0d284ca8a01b08b18a6 | 781029dcc468a7d1467a17727870d526da1df985 | /django/06_django_model_relationship/articles/urls.py | a4fbd203afbd5d8872657ca3bd5a57789ea8a237 | [] | no_license | Huijiny/TIL | 5f0edec5ad187029e04ed2d69e85ae4d278e048d | d1a974b3cacfb45b2718f87d5c262a23986c6574 | refs/heads/master | 2023-09-03T15:28:11.744287 | 2021-10-21T12:38:10 | 2021-10-21T12:38:10 | 335,220,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | from django.urls import path
from . import views
app_name = 'articles'
urlpatterns = [
path('', views.index, name='index'),
path('create/', views.create, name='create'),
path('<int:pk>/', views.detail, name='detail'),
path('<int:pk>/delete/', views.delete, name='delete'),
path('<int:pk>/update/', ... | [
"jiin20803@gmail.com"
] | jiin20803@gmail.com |
bbdf1f4618c3781ae013ae1e226c1784852f6309 | 680371c067ae3bbab958d6224b405630eaef8e31 | /python_BTL_BitTorrent-5.3-GPL/BTL/rand_tools.py | 583b359634c2c2ad3cdd8f2fa01e60bd30e64e46 | [
"MIT"
] | permissive | galaxy001/libtorrent | 18ede4a2e1c610089a082683ec4b33da0625837a | 6a17e8ebfb668a8965fbf8a53083ec7bd4339847 | refs/heads/master | 2021-01-10T11:13:44.730732 | 2017-08-26T19:58:08 | 2017-08-26T19:58:08 | 48,836,473 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# bu... | [
"galaxy001@gmail.com"
] | galaxy001@gmail.com |
01677e1026255396c5f3df9ab0e121f1487bcfc5 | 1a6aa6cf94fa3f5f35c598c52867a3d0df7c56ee | /blog/views.py | 175a794a2d7cac9c09f092ff2e0976619ac7e5bc | [] | no_license | adam-weiler/GA-Django-Blog-part-5 | 026ccb98988f6b3c7ffac0947fce8899d21eb5a0 | 8662b743e42623df3ae61d2af888a3828da2e8be | refs/heads/master | 2020-06-29T11:47:32.304311 | 2019-08-05T16:07:32 | 2019-08-05T16:07:32 | 200,525,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render, redirect
from django.urls import reverse
from blog.models import Article, Topic, Comment
from blog.forms import ArticleForm, CommentForm
def root(request): # Redirects to http://localhost:8000/articles
return redirect(... | [
"adam.weiler@yahoo.ca"
] | adam.weiler@yahoo.ca |
b97a1084b67833fb4f41eec5068f6b4178662b22 | 54b8fa244ff0dae2018efedcb81e1bb03376e5e2 | /test/functional/p2p_feefilter.py | 97ece46a3b4a896f4bce090ed9d34485d0aca407 | [
"MIT"
] | permissive | afghany/castletmp | e15677a88f9a1878486b6becf93d26c0ee9dbeaf | 9d0daed2a6abaf7d93f9308f5c602db6eeb42c8b | refs/heads/master | 2022-11-27T14:58:47.802781 | 2020-08-08T21:26:12 | 2020-08-08T21:26:12 | 284,464,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test processing of feefilter messages."""
from test_framework.mininode import *
from test_framework.te... | [
"shagolo@gmail.com"
] | shagolo@gmail.com |
7ec4de36e3acedb5d8ede3719e2ae467bfde7b9d | 8aa48f0a1832367efa364a8ae91475ae3c3835aa | /exercises/ch07_linked_lists/LinkedQueue.py | 9a87d79607d407e9ca8339b819176091a4dca514 | [] | no_license | rarezhang/data_structures_and_algorithms_in_python | 3317b387e0e50f26b5522f2de7639e50c2ce0531 | f79b08021cebbfe0ff32abcc8e9dd56af32e4aad | refs/heads/master | 2021-01-19T09:13:27.657454 | 2017-03-20T04:52:00 | 2017-03-20T04:52:00 | 73,533,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | py | from Excep import *
from SinglyLinkedBase import _SinglyLinkedBase
class LinkedQueue(_SinglyLinkedBase):
"""
FIFO (first in first out)
queue implementation using a singly linked list for storage
enqueue elements at the back and dequeue them from the front
"""
# enqueue elements at the back a... | [
"catezhang@qq.com"
] | catezhang@qq.com |
9de546b45414ca977e1b33d43c6892bf7d30253f | cb4be2d145c529192cad597ebf6bba8aed0ec12e | /2014-x64/prefs/1401/gui_02_components.py | 801437d5dd5fd9cc45e4eec8feaf82e3bd0f454f | [] | no_license | mclavan/Work-Maya-Folder | 63e791fdbd6f8ac1f4fda2d46015cd98df38825c | c56dbdb85a7b1a87ef6dd35296c56e0057254617 | refs/heads/master | 2020-05-20T07:21:15.891179 | 2014-10-17T14:28:45 | 2014-10-17T14:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | '''
gui_02_components.py
How to Run:
import gui_02_components
reload(gui_02_components)
gui_02_components.gui()
'''
import pymel.core as pm
def gui():
'''
Interface function.
'''
window_object = pm.window(title='Test Window', width=300, height=300)
# Layout Required
pm.columnLayout()
# GUI Components ... | [
"mclavan@gmail.com"
] | mclavan@gmail.com |
1098dca9c48ce566f7488c1e9d7a97a330cb2e72 | ced29293c396e43cb77d13e085976d81bbedd1e2 | /Dia21-URI/1021_notas_e_moedas.py | 2a0788dda99a069127ae1405e0a818037d80d9f3 | [] | no_license | luandadantas/100diasdecodigo | 72728da8a2b04b5615590355d1d9ddb1a2257b92 | d076de22bf56f86b0b239d364201aa873a28fc68 | refs/heads/master | 2022-10-23T19:14:44.872283 | 2019-12-13T02:43:16 | 2019-12-13T02:43:16 | 207,652,679 | 0 | 0 | null | 2022-10-06T07:08:02 | 2019-09-10T20:04:45 | Python | UTF-8 | Python | false | false | 1,366 | py | N = float(input())
print("NOTAS:")
notas_100 = int(N // 100)
print(str(notas_100) + " nota(s) de R$ 100.00")
resto_100 = N % 100
notas_50 = int(resto_100 // 50)
print(str(notas_50) + " nota(s) de R$ 50.00")
resto_50 = resto_100 % 50
notas_20 = int(resto_50 // 20)
print(str(notas_20) + " nota(s) de R$ 20.00")
resto_... | [
"ludanttas@gmail.com"
] | ludanttas@gmail.com |
b5301797029b247b2872036a732f99c1a87377ae | 8d9063d0138fc73b2ea3770f227c21d000a14ee0 | /urls/migrations/0002_auto_20160102_2111.py | 702bc44dcd2d36eb5caa8cd81c75b04cc55ba521 | [] | no_license | jeffthemaximum/django-and-apis | 60640a5c16a21e1759cd15eb570869d34b8442b1 | c23466d0e38508de7b19a26799c6a17a171fe679 | refs/heads/master | 2021-01-10T09:02:36.345903 | 2016-01-18T22:07:39 | 2016-01-18T22:07:39 | 46,568,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('urls', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='url',
name='long_url',
... | [
"frey.maxim@gmail.com"
] | frey.maxim@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.