hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
2db1711c2921531950a2fc14bf62fc56822d3610
356
exs
Elixir
aoc-2019/test/day12/moon_test.exs
sbauer322/advent-of-code
f1174f84485197d51009c35e3797ba26e7e21462
[ "MIT" ]
1
2020-11-08T22:17:37.000Z
2020-11-08T22:17:37.000Z
aoc-2019/test/day12/moon_test.exs
sbauer322/advent-of-code
f1174f84485197d51009c35e3797ba26e7e21462
[ "MIT" ]
null
null
null
aoc-2019/test/day12/moon_test.exs
sbauer322/advent-of-code
f1174f84485197d51009c35e3797ba26e7e21462
[ "MIT" ]
null
null
null
defmodule AOC.Day12.MoonTest do alias AOC.Day12.Moon use ExUnit.Case test "apply gravity to velocity" do m1 = Moon.new(0, {3, 0, 0}, {0, 0, 0}) m2 = Moon.new(1, {5, 0, 0}, {0, 0, 0}) {new_m1, new_m2} = Moon.apply_gravity_to_velocity({m1, m2}) assert {1, 0, 0} == new_m1.velocity assert {-1,...
22.25
63
0.601124
2db19b27371071a34031e6d4f7b2224bf569cc80
6,093
ex
Elixir
lib/dotenvy/transformer.ex
fireproofsocks/dotenvy
cd109984a5e57f3fbaf360ac425c1d4b382e719f
[ "Apache-2.0" ]
34
2021-05-05T16:34:09.000Z
2022-03-25T17:03:04.000Z
lib/dotenvy/transformer.ex
fireproofsocks/dotenvy
cd109984a5e57f3fbaf360ac425c1d4b382e719f
[ "Apache-2.0" ]
8
2021-06-25T19:58:09.000Z
2022-03-25T17:56:48.000Z
lib/dotenvy/transformer.ex
fireproofsocks/dotenvy
cd109984a5e57f3fbaf360ac425c1d4b382e719f
[ "Apache-2.0" ]
2
2021-06-24T22:22:39.000Z
2021-12-02T12:20:49.000Z
defmodule Dotenvy.Transformer do @moduledoc """ This module provides functionality for converting string values to specific Elixir data types. These conversions were designed to operate on system environment variables, which _always_ store string binaries. """ defmodule Error do @moduledoc false d...
32.758065
136
0.624159
2db1bf16f1e74863ecb06718fbc9ac77f9e50039
2,968
exs
Elixir
test/ja_serializer/ecto_error_serializer_test.exs
gamesrol/ja_serializer
c48d8fb0fb742bd96c30acd40e24f7395f25af2c
[ "Apache-2.0" ]
null
null
null
test/ja_serializer/ecto_error_serializer_test.exs
gamesrol/ja_serializer
c48d8fb0fb742bd96c30acd40e24f7395f25af2c
[ "Apache-2.0" ]
null
null
null
test/ja_serializer/ecto_error_serializer_test.exs
gamesrol/ja_serializer
c48d8fb0fb742bd96c30acd40e24f7395f25af2c
[ "Apache-2.0" ]
null
null
null
defmodule JaSerializer.EctoErrorSerializerTest do use ExUnit.Case alias JaSerializer.EctoErrorSerializer test "Will correctly format a changeset with an error" do expected = %{ "errors" => [ %{ source: %{pointer: "/data/attributes/title"}, title: "is invalid", det...
27.229358
113
0.541442
2db1dcef15fa0fb6060b9d567eae728eedc043a5
107
ex
Elixir
lib/surface_bulma_widgets_playground_web/views/layout_view.ex
elcritch/surface_bulma_widgets_playground
380d1fed6b829e347ff92a29e7619c4076bcd83d
[ "MIT" ]
null
null
null
lib/surface_bulma_widgets_playground_web/views/layout_view.ex
elcritch/surface_bulma_widgets_playground
380d1fed6b829e347ff92a29e7619c4076bcd83d
[ "MIT" ]
null
null
null
lib/surface_bulma_widgets_playground_web/views/layout_view.ex
elcritch/surface_bulma_widgets_playground
380d1fed6b829e347ff92a29e7619c4076bcd83d
[ "MIT" ]
null
null
null
defmodule SurfaceBulmaWidgetsPlaygroundWeb.LayoutView do use SurfaceBulmaWidgetsPlaygroundWeb, :view end
26.75
56
0.88785
2db212c47deb99028b78811294843527c3efd7ee
569
ex
Elixir
apps/artemis/lib/artemis/contexts/user_role/create_user_role.ex
artemis-platform/artemis_dashboard
5ab3f5ac4c5255478bbebf76f0e43b44992e3cab
[ "MIT" ]
9
2019-08-19T19:56:34.000Z
2022-03-22T17:56:38.000Z
apps/artemis/lib/artemis/contexts/user_role/create_user_role.ex
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
7
2019-07-12T21:41:01.000Z
2020-08-17T21:29:22.000Z
apps/artemis/lib/artemis/contexts/user_role/create_user_role.ex
chrislaskey/artemis_teams
9930c3d9528e37b76f0525390e32b66eed7eadde
[ "MIT" ]
2
2019-04-10T13:34:15.000Z
2019-05-17T02:42:24.000Z
defmodule Artemis.CreateUserRole do use Artemis.Context alias Artemis.Repo alias Artemis.UserRole def call!(params, user) do case call(params, user) do {:error, _} -> raise(Artemis.Context.Error, "Error creating user role") {:ok, result} -> result end end def call(params, user) do ...
20.321429
77
0.646749
2db24af83a451aa618ac21c38c7e1f81014c62c4
192
exs
Elixir
create_mock_data.exs
BailianBlockchain/Bailian_Supply_Chain
8341e974b133c86f48488cb52ec4b3b281a99eb5
[ "MIT" ]
5
2020-12-10T07:24:18.000Z
2021-12-15T08:26:05.000Z
create_mock_data.exs
BailianBlockchain/Bailian_Supply_Chain
8341e974b133c86f48488cb52ec4b3b281a99eb5
[ "MIT" ]
null
null
null
create_mock_data.exs
BailianBlockchain/Bailian_Supply_Chain
8341e974b133c86f48488cb52ec4b3b281a99eb5
[ "MIT" ]
2
2020-12-12T17:06:13.000Z
2021-04-09T02:12:31.000Z
SupplyChain.Chain.create(%{title: "test", abstract: "sth"}) SupplyChain.Participater.create(%{name: "handsome"}) SupplyChain.Item.create(%{chain_id: 1, participater_id: 1, level_on_chain: 1})
48
78
0.75
2db2598bb874ad732a4ae0212c25d22660aff77b
498
ex
Elixir
lib/inch_test.ex
reergymerej/Hello-World-Elixir
dcdc1437821042225ebb2987dc015e356b0f87f5
[ "MIT" ]
3
2015-09-20T15:43:09.000Z
2016-12-30T19:20:05.000Z
lib/inch_test.ex
reergymerej/Hello-World-Elixir
dcdc1437821042225ebb2987dc015e356b0f87f5
[ "MIT" ]
null
null
null
lib/inch_test.ex
reergymerej/Hello-World-Elixir
dcdc1437821042225ebb2987dc015e356b0f87f5
[ "MIT" ]
1
2019-12-07T00:17:49.000Z
2019-12-07T00:17:49.000Z
defmodule InchTest do defmodule Config do defstruct [ output: "docs", source_root: nil, source_url: nil, source_url_pattern: nil, homepage_url: nil, source_beam: nil, retriever: InchEx.Docs.Retriever, formatter: InchEx.Docs.Formatter, project: nil, version: nil, main: nil, readme: false, f...
33.2
123
0.714859
2db25c5a86d35db924bc0752e20afb2e22238728
6,114
ex
Elixir
kousa/lib/onion/user_session.ex
movwf/dogehouse
c97c04164e98853c6221100a97cc4ff1af84de7b
[ "MIT" ]
2
2021-04-06T09:06:29.000Z
2021-05-26T07:55:34.000Z
kousa/lib/onion/user_session.ex
movwf/dogehouse
c97c04164e98853c6221100a97cc4ff1af84de7b
[ "MIT" ]
2
2022-02-15T04:33:25.000Z
2022-02-28T01:39:56.000Z
kousa/lib/onion/user_session.ex
movwf/dogehouse
c97c04164e98853c6221100a97cc4ff1af84de7b
[ "MIT" ]
1
2021-02-21T05:26:41.000Z
2021-02-21T05:26:41.000Z
defmodule Onion.UserSession do use GenServer, restart: :temporary alias Beef.Rooms # TODO: change this defmodule State do @type t :: %__MODULE__{ user_id: String.t(), avatar_url: String.t(), username: String.t(), display_name: String.t(), current_...
30.41791
98
0.615473
2db28fbfc28b4b6bbd0d56220348d6b6e049d962
1,677
ex
Elixir
server/lib/pencil_space_server_web/controllers/game_controller.ex
nilenso/pencil.space
2934d83287dd716b9b984aae5bb7e72247bf4d23
[ "MIT" ]
3
2021-05-30T07:56:32.000Z
2021-08-06T12:03:15.000Z
server/lib/pencil_space_server_web/controllers/game_controller.ex
nilenso/pencil.space
2934d83287dd716b9b984aae5bb7e72247bf4d23
[ "MIT" ]
5
2020-05-06T13:05:52.000Z
2020-12-04T20:59:41.000Z
server/lib/pencil_space_server_web/controllers/game_controller.ex
nilenso/pencil.space
2934d83287dd716b9b984aae5bb7e72247bf4d23
[ "MIT" ]
null
null
null
defmodule PencilSpaceServerWeb.GameController do @moduledoc """ Creating/joining games over HTTP. """ use PencilSpaceServerWeb, :controller alias PencilSpaceServer.Game import PencilSpaceServerWeb.ControllerHelpers, only: [render_json: 3, render_error: 2, head: 2] def check(conn, %{"name" => name}) do ...
28.423729
97
0.598688
2db29fab4b4d96005807e3144a7b8c698eade55d
828
ex
Elixir
lib/plug_auth/credential_store/agent.ex
socialpaymentsbv/plug_auth
670bd3320c58f03ca939edc012ec5e510f53e7c8
[ "0BSD" ]
47
2015-08-19T15:11:21.000Z
2020-08-26T16:50:53.000Z
lib/plug_auth/credential_store/agent.ex
socialpaymentsbv/plug_auth
670bd3320c58f03ca939edc012ec5e510f53e7c8
[ "0BSD" ]
5
2015-11-05T18:45:06.000Z
2016-07-08T07:11:53.000Z
lib/plug_auth/credential_store/agent.ex
bitgamma/plug_auth
d43668acdfb00c31f72a56355a7eae80f549b060
[ "ISC" ]
8
2016-01-05T21:20:53.000Z
2020-01-30T00:31:41.000Z
defmodule PlugAuth.CredentialStore.Agent do @behaviour PlugAuth.CredentialStore @doc """ Starts a new credentials store. """ def start_link do Agent.start_link(&HashDict.new/0, name: __MODULE__) end @doc """ Gets the user data for the given credentials """ def get_user_data(credentials) do ...
24.352941
71
0.710145
2db2b33e5b24d68a99dc09136fd474ab052b8959
494,987
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/api/projects.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1beta1/api/projects.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
clients/health_care/lib/google_api/health_care/v1beta1/api/projects.ex
ukrbublik/elixir-google-api
364cec36bc76f60bec94cbcad34844367a29d174
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
52.147809
3,611
0.636467
2db2c87cd6b3a5b82462ce8e7bf908251e82c9d1
2,195
ex
Elixir
apps/nerves_hub_api/test/support/conn_case.ex
nerves-hub/beamware
5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb
[ "Apache-2.0" ]
10
2018-04-12T18:16:40.000Z
2018-04-14T06:05:42.000Z
apps/nerves_hub_api/test/support/conn_case.ex
nerves-hub/beamware
5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb
[ "Apache-2.0" ]
13
2018-05-25T19:31:49.000Z
2018-05-31T14:27:43.000Z
apps/nerves_hub_api/test/support/conn_case.ex
nerves-hub/beamware
5c239b7125a82d8fcb2b84ff1ad22d3bb0af01eb
[ "Apache-2.0" ]
2
2018-04-12T18:19:47.000Z
2018-04-12T18:57:46.000Z
defmodule NervesHubAPIWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, i...
29.266667
95
0.704328
2db2eb9248d45165f0b0f788a8cd43160f68321d
1,048
exs
Elixir
config/config.exs
melardev/Elixir_Phoenix_Ecto_Crud
5eae106bba78229e01b5c62ceed7b2b09677c9e4
[ "MIT" ]
3
2020-08-17T15:23:26.000Z
2021-08-19T00:09:12.000Z
config/config.exs
melardev/Elixir_Phoenix_Ecto_Crud
5eae106bba78229e01b5c62ceed7b2b09677c9e4
[ "MIT" ]
null
null
null
config/config.exs
melardev/Elixir_Phoenix_Ecto_Crud
5eae106bba78229e01b5c62ceed7b2b09677c9e4
[ "MIT" ]
1
2019-10-21T01:59:16.000Z
2019-10-21T01:59:16.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration use Mix.Config config :api_phoenix_crud, ecto_repos: [ApiPhoe...
33.806452
86
0.780534
2db2fa90da96b62c336487959e7c898d6b786d07
6,522
ex
Elixir
lib/ecto/query/builder/update.ex
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
1
2019-07-25T17:42:33.000Z
2019-07-25T17:42:33.000Z
lib/ecto/query/builder/update.ex
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
2
2020-04-23T00:19:07.000Z
2020-04-23T00:24:25.000Z
lib/ecto/query/builder/update.ex
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
1
2020-10-07T16:52:00.000Z
2020-10-07T16:52:00.000Z
import Kernel, except: [apply: 2] defmodule Ecto.Query.Builder.Update do @moduledoc false @keys [:set, :inc, :push, :pull] alias Ecto.Query.Builder @doc """ Escapes a list of quoted expressions. iex> escape([], [], __ENV__) {[], [], []} iex> escape([set: []], [], __ENV__) {[], [],...
32.447761
100
0.590156
2db2fd9a712107243a693a71b36d12866cbe501d
15,049
exs
Elixir
test/ex_doc/autolink_test.exs
nathanl/ex_doc
7fb655fe566139a3e786513c2c0d9375757184f8
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
test/ex_doc/autolink_test.exs
nathanl/ex_doc
7fb655fe566139a3e786513c2c0d9375757184f8
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
test/ex_doc/autolink_test.exs
nathanl/ex_doc
7fb655fe566139a3e786513c2c0d9375757184f8
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
defmodule ExDoc.AutolinkTest do use ExUnit.Case doctest ExDoc.Autolink import ExUnit.CaptureIO defp sigil_m(text, []) do [{:p, _, [ast]}] = ExDoc.Markdown.to_ast(text, []) ast end setup do ExDoc.Refs.clear() :ok end describe "doc/3" do test "elixir stdlib module" do assert a...
34.916473
260
0.55831
2db30004f86342baa485c3615f7ddd96d2fe0f30
448
ex
Elixir
lib/forage/codec/exceptions/invalid_assoc_error.ex
lumenlunae/forage
af85889bb5a2e154d1aa92e98454c29b6d724120
[ "MIT" ]
null
null
null
lib/forage/codec/exceptions/invalid_assoc_error.ex
lumenlunae/forage
af85889bb5a2e154d1aa92e98454c29b6d724120
[ "MIT" ]
null
null
null
lib/forage/codec/exceptions/invalid_assoc_error.ex
lumenlunae/forage
af85889bb5a2e154d1aa92e98454c29b6d724120
[ "MIT" ]
null
null
null
defmodule Forage.Codec.Exceptions.InvalidAssocError do defexception [:message] @impl true def exception({schema, assoc_name}) do assoc_atoms = schema.__schema__(:associations) valid_assoc_names = Enum.map(assoc_atoms, &Atom.to_string/1) msg = """ #{inspect(assoc_name)} is not valid for schema #{...
26.352941
72
0.700893
2db303689e779ffe32b74f4d35d343f50145f63d
405
exs
Elixir
apps/google_maps/test/google_maps/geocode/address_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/google_maps/test/google_maps/geocode/address_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/google_maps/test/google_maps/geocode/address_test.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
defmodule GoogleMaps.Geocode.AddressTest do use ExUnit.Case alias GoogleMaps.Geocode.Address alias Util.Position describe "Address" do test "implements the Position protocol" do Protocol.assert_impl!(Position, Address) address = %Address{} assert Position.latitude(address) == address.lati...
27
61
0.733333
2db30638da55bfd20a58006d0bdfa6dceaa75d5f
2,805
ex
Elixir
implementations/elixir/ockam/ockam_kafka/lib/kafka.ex
cipherboy/ockam
bbb6c19d8ba01847dda14ecc11588fe875512a8d
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam_kafka/lib/kafka.ex
cipherboy/ockam
bbb6c19d8ba01847dda14ecc11588fe875512a8d
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam_kafka/lib/kafka.ex
cipherboy/ockam
bbb6c19d8ba01847dda14ecc11588fe875512a8d
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.Kafka do @moduledoc """ Helper functions for ockam kafka backends """ require Logger def client_id(options, default) do Keyword.get(options, :client_id, default) end def endpoints(options) do Keyword.get(options, :endpoints, Application.get_env(:ockam_kafka, :endpoints)) end ...
27.23301
97
0.68057
2db3068e81cfa0db2efc99ef864dca2cefd028bd
896
exs
Elixir
mix.exs
ZennerIoT/rabbit_hutch
58825caf372895b8746c7bb79b28f261046d9bb8
[ "MIT" ]
1
2017-09-01T15:51:35.000Z
2017-09-01T15:51:35.000Z
mix.exs
ZennerIoT/rabbit_hutch
58825caf372895b8746c7bb79b28f261046d9bb8
[ "MIT" ]
null
null
null
mix.exs
ZennerIoT/rabbit_hutch
58825caf372895b8746c7bb79b28f261046d9bb8
[ "MIT" ]
null
null
null
defmodule RabbitHutch.Mixfile do use Mix.Project def project do [ app: :rabbit_hutch, version: "1.0.0", elixir: "~> 1.4", start_permanent: Mix.env == :prod, deps: deps(), description: "Managed RabbitMQ channels with auto-reconnect and backoff", docs: [ main: "R...
21.333333
79
0.569196
2db3297abad221d6487464f99969af55ef11e615
345
exs
Elixir
priv/repo/seeds.exs
Croissong/nussnougat
dd669d8614029400a25cef67971ef8720f5580dd
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
Croissong/nussnougat
dd669d8614029400a25cef67971ef8720f5580dd
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
Croissong/nussnougat
dd669d8614029400a25cef67971ef8720f5580dd
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Nussnougat.Repo.insert!(%SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will fail ...
28.75
61
0.704348
2db37219dd664817d5c706ef848e4fe664512273
2,140
ex
Elixir
lib/pta/accounts/account.ex
francocatena/pta
57d62f4b07ccd58d5d0d15f54833f472fa8903e5
[ "MIT" ]
null
null
null
lib/pta/accounts/account.ex
francocatena/pta
57d62f4b07ccd58d5d0d15f54833f472fa8903e5
[ "MIT" ]
null
null
null
lib/pta/accounts/account.ex
francocatena/pta
57d62f4b07ccd58d5d0d15f54833f472fa8903e5
[ "MIT" ]
null
null
null
defmodule Pta.Accounts.Account do use Ecto.Schema import Ecto.Changeset alias Ecto.Adapters.{Postgres, SQL} alias Pta.Repo alias Pta.Accounts.{Account, User} schema "accounts" do field(:db_prefix, :string) field(:name, :string) field(:lock_version, :integer, default: 1) has_many(:users, ...
19.633028
75
0.631776
2db383c9c5f2ac1294e08767224538f55e4281f6
2,503
ex
Elixir
lib/clients/rabbitmq.ex
davydog187/ex_rabbit_pool
58f1124ddc73a96d14cfa185bdc0d3c6859437d0
[ "Apache-2.0" ]
null
null
null
lib/clients/rabbitmq.ex
davydog187/ex_rabbit_pool
58f1124ddc73a96d14cfa185bdc0d3c6859437d0
[ "Apache-2.0" ]
null
null
null
lib/clients/rabbitmq.ex
davydog187/ex_rabbit_pool
58f1124ddc73a96d14cfa185bdc0d3c6859437d0
[ "Apache-2.0" ]
null
null
null
defmodule ExRabbitPool.RabbitMQ do require Logger @behaviour ExRabbitPool.Clients.Adapter use AMQP @impl true def publish(channel, exchange, routing_key, payload, options \\ []) do Basic.publish(channel, exchange, routing_key, payload, options) end @impl true def consume(%Channel{} = channel, qu...
22.348214
81
0.640431
2db3db53421394a27463798681d3f1f3e9e79d56
3,683
ex
Elixir
web/controllers/alexa_controller.ex
alexadaze/alexa
35fbef14f6cd884a51447553cfe2cf9794d153b3
[ "Apache-2.0" ]
null
null
null
web/controllers/alexa_controller.ex
alexadaze/alexa
35fbef14f6cd884a51447553cfe2cf9794d153b3
[ "Apache-2.0" ]
null
null
null
web/controllers/alexa_controller.ex
alexadaze/alexa
35fbef14f6cd884a51447553cfe2cf9794d153b3
[ "Apache-2.0" ]
null
null
null
defmodule Alexa.AlexaController do use Alexa.Web, :controller require Logger @api_url "https://api.teamsnap.com/v3" def teamsnap(conn, params) do Logger.info("received request: #{inspect params}") response = case get_in(params, ["context","System","user","accessToken"]) do nil -> ...
29.230159
105
0.470269
2db3f3dfec77cc3f97f51f6ba5c9c0a968dc394a
7,801
ex
Elixir
lib/farmbot/firmware/stub_handler.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
2
2018-08-01T23:07:52.000Z
2018-10-17T12:49:21.000Z
lib/farmbot/firmware/stub_handler.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
null
null
null
lib/farmbot/firmware/stub_handler.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
1
2017-07-22T21:51:14.000Z
2017-07-22T21:51:14.000Z
defmodule Farmbot.Firmware.StubHandler do @moduledoc "Stubs out firmware functionality when you don't have an arduino." use GenStage use Farmbot.Logger @behaviour Farmbot.Firmware.Handler alias Farmbot.Firmware.Vec3 ## Firmware Handler Behaviour. def start_link do Logger.warn(3, "Firmware is being...
30.472656
100
0.664274
2db3fb99909c89c1d72e961681bac4f76d41b3c5
591
ex
Elixir
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/policy_controller.ex
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
111
2018-07-25T01:07:51.000Z
2022-01-25T17:03:01.000Z
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/policy_controller.ex
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
361
2018-07-22T12:53:00.000Z
2022-03-31T18:50:34.000Z
apps/nerves_hub_www/lib/nerves_hub_www_web/controllers/policy_controller.ex
tonnenpinguin/nerves_hub_web
9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72
[ "Apache-2.0" ]
54
2018-08-26T02:58:04.000Z
2022-03-09T10:12:19.000Z
defmodule NervesHubWWWWeb.PolicyController do use NervesHubWWWWeb, :controller def coc(conn, _params) do render( conn, "coc.html", title: "Code of Conduct", container: "container page page-sm policies" ) end def privacy(conn, _params) do render( conn, "privacy.h...
19.064516
50
0.610829
2db3fca8cde16785d872e57a66a944b0fe9196b2
1,450
ex
Elixir
apps/web_api/lib/web_api_web/controllers/user_controller.ex
makerdao/qa_backend_gateway
38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809
[ "Apache-2.0" ]
1
2020-10-23T19:25:27.000Z
2020-10-23T19:25:27.000Z
apps/web_api/lib/web_api_web/controllers/user_controller.ex
makerdao/qa_backend_gateway
38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809
[ "Apache-2.0" ]
5
2019-01-11T11:48:08.000Z
2019-01-16T17:29:23.000Z
apps/web_api/lib/web_api_web/controllers/user_controller.ex
makerdao/qa_backend_gateway
38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809
[ "Apache-2.0" ]
7
2019-10-09T05:49:52.000Z
2022-03-23T16:48:45.000Z
defmodule Staxx.WebApiWeb.UserController do use Staxx.WebApiWeb, :controller require Logger alias Staxx.Store.Models.User alias Staxx.WebApiWeb.SuccessView alias Staxx.WebApiWeb.Schemas.UserSchema action_fallback Staxx.WebApiWeb.FallbackController @doc """ List of all users in system """ def lis...
23.015873
90
0.602069
2db412fe892da6c7d13a5288e488697f346756e5
828
exs
Elixir
bench/self.exs
dbernheisel/date_time_parser
53378ccfb5938c304a18fd62b1f288ab94dd5446
[ "MIT" ]
73
2019-07-26T19:48:10.000Z
2022-03-23T10:01:34.000Z
bench/self.exs
dbernheisel/date_time_parser
53378ccfb5938c304a18fd62b1f288ab94dd5446
[ "MIT" ]
23
2019-08-28T22:08:32.000Z
2021-06-14T19:33:18.000Z
bench/self.exs
dbernheisel/date_time_parser
53378ccfb5938c304a18fd62b1f288ab94dd5446
[ "MIT" ]
9
2019-08-01T22:42:20.000Z
2022-02-15T19:02:50.000Z
require DateTimeParser Benchee.run(%{ "parse_datetime" => fn input -> Enum.map(input, &DateTimeParser.parse_datetime/1) end, "parse_date" => fn input -> Enum.map(input, &DateTimeParser.parse_date/1) end, "parse_time" => fn input -> Enum.map(input, &DateTimeParser.parse_time/1) end }, [ inpu...
23.657143
78
0.613527
2db4415d84dab15a50e36d654177cb65e32b8872
1,283
exs
Elixir
spec/assertions/match_pattern_spec.exs
bblaszkow06/espec
4d9819ca5c68c6eb70276c7d9c9630ded01ba778
[ "Apache-2.0" ]
null
null
null
spec/assertions/match_pattern_spec.exs
bblaszkow06/espec
4d9819ca5c68c6eb70276c7d9c9630ded01ba778
[ "Apache-2.0" ]
null
null
null
spec/assertions/match_pattern_spec.exs
bblaszkow06/espec
4d9819ca5c68c6eb70276c7d9c9630ded01ba778
[ "Apache-2.0" ]
null
null
null
defmodule ESpec.Assertions.MatchPatternSpec do use ESpec, async: true describe "ESpec.Assertions.MatchPattern" do context "Success" do context "Success" do it "checks success with `to`" do message = expect({:ok, 1}).to(match_pattern({:ok, _})) expect(message) |> to(eq "`{:ok, ...
30.547619
94
0.547935
2db44e9985a30573d2b40a34ca6856f4623e58cc
614
ex
Elixir
web/controllers/job_controller.ex
apodlaski/verk_web
91c544b1f792f929e06f18e26b964e23a5771a8a
[ "MIT" ]
82
2016-02-08T04:33:54.000Z
2022-03-29T07:17:36.000Z
web/controllers/job_controller.ex
apodlaski/verk_web
91c544b1f792f929e06f18e26b964e23a5771a8a
[ "MIT" ]
81
2016-03-09T02:17:40.000Z
2021-12-05T07:29:04.000Z
web/controllers/job_controller.ex
apodlaski/verk_web
91c544b1f792f929e06f18e26b964e23a5771a8a
[ "MIT" ]
42
2016-04-05T21:35:31.000Z
2021-11-09T11:58:26.000Z
defmodule VerkWeb.JobController do use VerkWeb.Web, :controller def show(conn, %{"queue" => queue, "job_id" => job_id}) do case Verk.WorkersManager.inspect_worker(queue, job_id) do {:ok, %{info: info, job: job, process: process, started_at: started_at}} -> render(conn, "show.html", queu...
26.695652
81
0.570033
2db4a9367223d9d3d7b75eb1440a0324798cbe40
211
ex
Elixir
lib/scheme/parser.ex
jwhiteman/scheme
ce25fb370254c654b6a226e0b0d3eb881ed2cf99
[ "MIT" ]
45
2015-06-26T02:47:21.000Z
2022-02-03T23:18:59.000Z
lib/scheme/parser.ex
jwhiteman/scheme
ce25fb370254c654b6a226e0b0d3eb881ed2cf99
[ "MIT" ]
null
null
null
lib/scheme/parser.ex
jwhiteman/scheme
ce25fb370254c654b6a226e0b0d3eb881ed2cf99
[ "MIT" ]
7
2015-07-13T23:55:52.000Z
2018-02-06T10:39:58.000Z
defmodule Scheme.Parser do def parse(str) do {:ok, tokens, _} = lex(str) {:ok, list} = :sparser.parse(tokens) list end def lex(str) do str |> to_char_list |> :slexer.string end end
17.583333
45
0.597156
2db4d2c6a2ce4447b50615a58e39c8964c013898
595
exs
Elixir
priv/repo/migrations/20190404032208_add_poc_witness_table.exs
pakorn186c/blockchain-api
3c9fbc892e645f9bb144414f3da36749603f37bc
[ "Apache-2.0" ]
17
2019-11-03T03:02:41.000Z
2022-01-13T17:03:32.000Z
priv/repo/migrations/20190404032208_add_poc_witness_table.exs
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
5
2019-11-07T23:26:53.000Z
2020-11-24T21:45:35.000Z
priv/repo/migrations/20190404032208_add_poc_witness_table.exs
AddressXception/blockchain-api
eea98fa78af2887cc84762f84532c602c3b8b666
[ "Apache-2.0" ]
11
2019-12-04T07:03:16.000Z
2022-01-13T17:03:50.000Z
defmodule BlockchainAPI.Repo.Migrations.AddPocWitnessTable do use Ecto.Migration def change do create table(:poc_witnesses) do add :poc_path_elements_id, references(:poc_path_elements, on_delete: :nothing, column: :id, type: :bigint), null: false add :gateway, :binary, null: false add :timest...
29.75
125
0.677311
2db4d5215c53183e2a27d78c8f4257a4d09d3b52
2,601
ex
Elixir
lib/faktory_worker/telemetry.ex
SeatedInc/faktory_worker
13469c7208392454b83d6061ddd8e3195ae4cd7a
[ "MIT" ]
17
2019-04-14T21:35:33.000Z
2019-10-26T10:36:35.000Z
lib/faktory_worker/telemetry.ex
SeatedInc/faktory_worker
13469c7208392454b83d6061ddd8e3195ae4cd7a
[ "MIT" ]
75
2019-03-12T12:09:34.000Z
2020-01-04T14:19:11.000Z
lib/faktory_worker/telemetry.ex
opt-elixir/faktory_worker
a4774dcef45da02c568003275b79d235be9beab5
[ "MIT" ]
2
2021-11-18T16:38:33.000Z
2022-01-14T17:34:10.000Z
defmodule FaktoryWorker.Telemetry do @moduledoc false require Logger @events [:push, :beat, :fetch, :ack, :failed_ack, :batch_new, :batch_open, :batch_commit] @doc false @spec attach_default_handler :: :ok | {:error, :already_exists} def attach_default_handler() do events = Enum.map(@events, &[:fakto...
26.01
95
0.658593
2db4d7260ed3dc88d553c0885026d017b0fd3f87
502
ex
Elixir
lib/ngram.ex
earaujoassis/ngram
0c0a19d07c62e1f78ea47c3c66b9f92629c5ba3a
[ "MIT" ]
null
null
null
lib/ngram.ex
earaujoassis/ngram
0c0a19d07c62e1f78ea47c3c66b9f92629c5ba3a
[ "MIT" ]
null
null
null
lib/ngram.ex
earaujoassis/ngram
0c0a19d07c62e1f78ea47c3c66b9f92629c5ba3a
[ "MIT" ]
null
null
null
defmodule Ngram do defp _each_cons(list, n, result) when length(list) < n do Enum.reverse result end defp _each_cons(list = [_ | tail], n, result) do _each_cons(tail, n, [Enum.take(list, n)|result]) end def tokenize(str) do grams = str |> String.split(" ") |> Enum.map(fn s -> String...
26.421053
71
0.575697
2db4d8f01e7456f262319acf177ff90f16bf0c2d
2,547
ex
Elixir
lib/application.ex
xing/bors-ng
dda01288f2843d1ac29aa27b82b90625060bb750
[ "Apache-2.0" ]
null
null
null
lib/application.ex
xing/bors-ng
dda01288f2843d1ac29aa27b82b90625060bb750
[ "Apache-2.0" ]
null
null
null
lib/application.ex
xing/bors-ng
dda01288f2843d1ac29aa27b82b90625060bb750
[ "Apache-2.0" ]
null
null
null
defmodule BorsNG.Application do @moduledoc """ The top-level OPT application for Bors-NG. """ use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do # Define workers and child supervisors to be supervised...
28.3
88
0.565371
2db4f5ee9cf30985aedaaa293cb0be1f4d502f63
15
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_addition_operation_parsing_test_case/UnaryNumericOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_addition_operation_parsing_test_case/UnaryNumericOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_addition_operation_parsing_test_case/UnaryNumericOperation.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
&1 + &2 &1 - &2
7.5
7
0.266667
2db5200bbb9714b94afa56ee63d157bad7792dae
1,136
exs
Elixir
test/commands/group/role/remove_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
test/commands/group/role/remove_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
test/commands/group/role/remove_test.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
defmodule Cog.Test.Commands.Group.Role.RemoveTest do use Cog.CommandCase, command_module: Cog.Commands.Group alias Cog.Commands.Group.Role import Cog.Support.ModelUtilities, only: [group: 1, role: 1, add_to_group: 2] setup...
27.707317
68
0.617077
2db52d89e560a2eaec62b136b414676fa1c1454a
1,910
ex
Elixir
game/hangman/lib/hangman/game.ex
herminiotorres/elixir-for-programmers
6a02e3312ad0f7b1e543627e3cf8b54db00d0a1e
[ "MIT" ]
1
2020-08-10T21:07:43.000Z
2020-08-10T21:07:43.000Z
game/hangman/lib/hangman/game.ex
herminiotorres/elixir-for-programmers
6a02e3312ad0f7b1e543627e3cf8b54db00d0a1e
[ "MIT" ]
null
null
null
game/hangman/lib/hangman/game.ex
herminiotorres/elixir-for-programmers
6a02e3312ad0f7b1e543627e3cf8b54db00d0a1e
[ "MIT" ]
null
null
null
defmodule Hangman.Game do defstruct( turns_left: 7, game_state: :initializing, letters: [], used: MapSet.new() ) def new_game(word) do %Hangman.Game{ letters: word |> String.codepoints() } end def new_game() do new_game(Dictionary.random_word()) end def make_move(game ...
22.738095
85
0.650262
2db5428f4ef8b8f82651a98c3c542b09eedc1834
2,174
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/router_aggregated_list_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/router_aggregated_list_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/router_aggregated_list_warning.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
40.259259
194
0.726311
2db557ae3d4213642f7936de0115261c3477fa08
3,080
ex
Elixir
lib/earmark_parser/line.ex
sionide21/earmark_parser
d9283fd90dad21d4bf4277e284b2e4a8560d14b0
[ "Apache-2.0" ]
null
null
null
lib/earmark_parser/line.ex
sionide21/earmark_parser
d9283fd90dad21d4bf4277e284b2e4a8560d14b0
[ "Apache-2.0" ]
null
null
null
lib/earmark_parser/line.ex
sionide21/earmark_parser
d9283fd90dad21d4bf4277e284b2e4a8560d14b0
[ "Apache-2.0" ]
null
null
null
defmodule EarmarkParser.Line do @moduledoc false defmodule Blank do @moduledoc false defstruct(lnb: 0, line: "", indent: -1, content: "", inside_code: false) end defmodule Ruler do @moduledoc false defstruct(lnb: 0, line: "", indent: -1, type: "- or * or _", inside_code: false) end defm...
25.454545
127
0.59026
2db596e880c0fc37e2691e96f8d4a4807e0382fc
4,389
exs
Elixir
config/config.exs
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
config/config.exs
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
config/config.exs
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your umbrella # and **all applications** and their dependencies with the # help of Mix.Config. # # Note that all applications in your umbrella share the # same configuration and dependencies, which is why they # all use the same configuration file. If you want different # conf...
33.503817
121
0.738665
2db5fffb999b5e0eb79b0778bff8ac2b3675ae7e
471
exs
Elixir
graphical/test/graphical_web/views/error_view_test.exs
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
graphical/test/graphical_web/views/error_view_test.exs
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
graphical/test/graphical_web/views/error_view_test.exs
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
defmodule GraphicalWeb.ErrorViewTest do use GraphicalWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(GraphicalWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}} end test...
27.705882
66
0.675159
2db63bce7ceaf101ec5630efc384d2e48194ceca
934
ex
Elixir
apps/kv/lib/kv/router.ex
rockerBOO/kv_umbrella
1dbf121b48022c0aaaf1b75d29085d9d2130451d
[ "MIT" ]
null
null
null
apps/kv/lib/kv/router.ex
rockerBOO/kv_umbrella
1dbf121b48022c0aaaf1b75d29085d9d2130451d
[ "MIT" ]
null
null
null
apps/kv/lib/kv/router.ex
rockerBOO/kv_umbrella
1dbf121b48022c0aaaf1b75d29085d9d2130451d
[ "MIT" ]
null
null
null
defmodule KV.Router do @doc """ Dispatch the given `mod`, `fun`, `args` request to the appropriate node based on the `bucket`. """ def route(bucket, mod, fun, args) do # Get the first byte of the binary first = :binary.first(bucket) # Try to find an entry in the table or raise entry = E...
24.578947
80
0.617773
2db64f3c3c85462e6043942e0732c55ff90567da
2,778
ex
Elixir
clients/dataflow/lib/google_api/dataflow/v1b3/model/launch_flex_template_parameter.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/launch_flex_template_parameter.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/dataflow/lib/google_api/dataflow/v1b3/model/launch_flex_template_parameter.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
44.806452
214
0.725702
2db67124725021840508c3c0e4e29d86af180202
3,197
exs
Elixir
test/transaction_server_invite_test.exs
BrendanBall/elixir-sippet
877edcbbc8d8ba5b6b41684c20041510c410aad3
[ "BSD-3-Clause" ]
54
2017-04-26T03:15:56.000Z
2022-02-08T00:22:11.000Z
test/transaction_server_invite_test.exs
BrendanBall/elixir-sippet
877edcbbc8d8ba5b6b41684c20041510c410aad3
[ "BSD-3-Clause" ]
21
2017-06-19T08:00:33.000Z
2022-01-19T10:38:11.000Z
test/transaction_server_invite_test.exs
BrendanBall/elixir-sippet
877edcbbc8d8ba5b6b41684c20041510c410aad3
[ "BSD-3-Clause" ]
22
2017-06-19T08:15:34.000Z
2022-03-22T13:56:20.000Z
defmodule Sippet.Transactions.Server.Invite.Test do use ExUnit.Case, async: false alias Sippet.Message alias Sippet.Transactions.Server alias Sippet.Transactions.Server.State alias Sippet.Transactions.Server.Invite import Mock defmacro action_timeout(actions, delay) do quote do unquote(action...
32.958763
94
0.668126
2db68989b0bb5b5bc4afb12cfb7b4d952b4ff1eb
5,704
ex
Elixir
lib/icouch/view.ex
skunkwerks/icouch
96fed0ce33c41c07144ca7a6f48264b7367ab2b5
[ "Apache-2.0" ]
18
2017-09-02T23:00:27.000Z
2021-04-03T18:47:48.000Z
lib/icouch/view.ex
skunkwerks/icouch
96fed0ce33c41c07144ca7a6f48264b7367ab2b5
[ "Apache-2.0" ]
6
2018-02-20T05:01:56.000Z
2018-12-19T09:53:56.000Z
lib/icouch/view.ex
skunkwerks/icouch
96fed0ce33c41c07144ca7a6f48264b7367ab2b5
[ "Apache-2.0" ]
4
2018-10-03T14:16:29.000Z
2020-04-19T11:40:58.000Z
# Created by Patrick Schneider on 28.08.2017. # Copyright (c) 2017,2018 MeetNow! GmbH defmodule ICouch.View do @moduledoc """ Module to handle views in CouchDB. View structs should not be created or manipulated directly, please use `ICouch.open_view/3` or `ICouch.open_view!/3`. The view struct implements ...
32.225989
108
0.628331
2db68bff2727cb7ba73f73c7f1bd24651af781ba
412
exs
Elixir
priv/repo/migrations/20210519124717_create_password_resets_table.exs
jeepers3327/senti
2e346759d8a8704f11364a835b6b9cd00a52c640
[ "MIT" ]
null
null
null
priv/repo/migrations/20210519124717_create_password_resets_table.exs
jeepers3327/senti
2e346759d8a8704f11364a835b6b9cd00a52c640
[ "MIT" ]
null
null
null
priv/repo/migrations/20210519124717_create_password_resets_table.exs
jeepers3327/senti
2e346759d8a8704f11364a835b6b9cd00a52c640
[ "MIT" ]
null
null
null
defmodule Senti.Repo.Migrations.CreatePasswordResetsTable do use Ecto.Migration def change do create table(:password_resets) do add :reset_token, :string, null: false add :has_updated, :boolean, default: false add :user_id, references(:users, on_delete: :delete_all, type: :binary_id), null: f...
24.235294
93
0.703883
2db69f8c681137badc7ed4078085e55969a40c9f
1,982
ex
Elixir
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_delete_account_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_delete_account_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_delete_account_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.172414
174
0.732593
2db6a5b5830419911813b24b41a1798565f87b15
2,312
exs
Elixir
test/magnemite_web/controllers/api/v1/account_controller_test.exs
andsleonardo/magnemite
2a06c1520defeb193d718313ad3fc6a50349bc8d
[ "MIT" ]
null
null
null
test/magnemite_web/controllers/api/v1/account_controller_test.exs
andsleonardo/magnemite
2a06c1520defeb193d718313ad3fc6a50349bc8d
[ "MIT" ]
null
null
null
test/magnemite_web/controllers/api/v1/account_controller_test.exs
andsleonardo/magnemite
2a06c1520defeb193d718313ad3fc6a50349bc8d
[ "MIT" ]
null
null
null
defmodule MagnemiteWeb.Api.V1.AccountControllerTest do use MagnemiteWeb.ConnCase, async: true alias Magnemite.{Customers, Identity} import Magnemite.Factory describe "create/2" do @open_account_params %{ cpf: Brcpfcnpj.cpf_generate(), city: Faker.Address.PtBr.city(), country: Faker.Addr...
28.54321
95
0.629758
2db6b19a4249e05a825f4777c1a2679baa45fe2a
1,493
exs
Elixir
test/blog_web/controllers/auth_controller_test.exs
eltoncampos1/blog_elixir
99fd5d5415192229cda749a88b30bf63d5817c4f
[ "MIT" ]
null
null
null
test/blog_web/controllers/auth_controller_test.exs
eltoncampos1/blog_elixir
99fd5d5415192229cda749a88b30bf63d5817c4f
[ "MIT" ]
null
null
null
test/blog_web/controllers/auth_controller_test.exs
eltoncampos1/blog_elixir
99fd5d5415192229cda749a88b30bf63d5817c4f
[ "MIT" ]
null
null
null
defmodule BlogWeb.AuthControllerTest do @moduledoc """ AuthControllerTest module """ use BlogWeb.ConnCase @ueberauth %Ueberauth.Auth{ credentials: %{ token: "123" }, info: %{ email: "auth.info@email", first_name: "auth.info.first_name", image: "auth.info.image" }, ...
24.080645
77
0.615539
2db6d29465501efe376fb3330a1ae82a13375505
376
exs
Elixir
priv/repo/migrations/20180122062720_create_common_tag.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
priv/repo/migrations/20180122062720_create_common_tag.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
priv/repo/migrations/20180122062720_create_common_tag.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.Repo.Migrations.CreateCommonTag do use Ecto.Migration def change do create table(:tags) do add(:community, :string) add(:part, :string) add(:title, :string) add(:color, :string) add(:user_id, references(:users)) timestamps() end create(uniq...
20.888889
60
0.640957
2db6f619fc0187f13830b913ae0504b3f484ce77
934
ex
Elixir
lib/commodity_api/util/error/invalid_virtual_changeset_error.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
7
2019-04-11T21:12:49.000Z
2021-04-14T12:56:42.000Z
lib/commodity_api/util/error/invalid_virtual_changeset_error.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
null
null
null
lib/commodity_api/util/error/invalid_virtual_changeset_error.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
2
2019-06-06T18:05:33.000Z
2019-07-16T08:49:45.000Z
## # Copyright 2018 Abdulkadir DILSIZ # # 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...
38.916667
77
0.704497
2db6f9eccf079ea97037fcd28f232631527574c3
7,176
ex
Elixir
clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_entitlement.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_entitlement.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_channel/lib/google_api/cloud_channel/v1/model/google_cloud_channel_v1alpha1_entitlement.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
61.333333
520
0.733835
2db715a795393f17547a3e31d6067db7b019dc1c
1,317
exs
Elixir
mix.exs
upmaru/lexdee
77efeb7193826329f3d164dc131b315dea06422e
[ "MIT" ]
1
2021-09-04T13:08:34.000Z
2021-09-04T13:08:34.000Z
mix.exs
upmaru/lexdee
77efeb7193826329f3d164dc131b315dea06422e
[ "MIT" ]
null
null
null
mix.exs
upmaru/lexdee
77efeb7193826329f3d164dc131b315dea06422e
[ "MIT" ]
2
2021-01-11T21:18:04.000Z
2021-04-04T20:03:53.000Z
defmodule Lexdee.MixProject do use Mix.Project def project do [ app: :lexdee, version: "1.0.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, package: package(), description: description(), deps: deps() ] end # Run "mix help compile.app" to learn abou...
21.241935
87
0.515566
2db71e6a7c85ec09036a749cd7e5cdd0ae35407b
1,775
ex
Elixir
lib/radiator_web/views/api/episode_view.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
92
2019-01-03T11:46:23.000Z
2022-02-19T21:28:44.000Z
lib/radiator_web/views/api/episode_view.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
350
2019-04-11T07:55:51.000Z
2021-08-03T11:19:05.000Z
lib/radiator_web/views/api/episode_view.ex
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
10
2019-04-18T12:47:27.000Z
2022-01-25T20:49:15.000Z
defmodule RadiatorWeb.Api.EpisodeView do use RadiatorWeb, :view alias HAL.{ Document, Link, Embed } alias Radiator.Directory.{ Episode, Podcast } alias RadiatorWeb.Api.{ EpisodeView, PodcastView } import RadiatorWeb.ContentHelpers def render("show.json", assigns) do ...
25
76
0.665352
2db71ed5dca4e0f2f82e58b102f7055ac7bef114
233
exs
Elixir
test/test_helper.exs
rockerBOO/elirc_twitch_oauth_web
1e4e62ceb57aac7efa68a09d3c9e87fa0f776203
[ "MIT" ]
null
null
null
test/test_helper.exs
rockerBOO/elirc_twitch_oauth_web
1e4e62ceb57aac7efa68a09d3c9e87fa0f776203
[ "MIT" ]
null
null
null
test/test_helper.exs
rockerBOO/elirc_twitch_oauth_web
1e4e62ceb57aac7efa68a09d3c9e87fa0f776203
[ "MIT" ]
null
null
null
ExUnit.start # Create the database, run migrations, and start the test transaction. Mix.Task.run "ecto.create", ["--quiet"] Mix.Task.run "ecto.migrate", ["--quiet"] Ecto.Adapters.SQL.begin_test_transaction(ElircTwitchOauthWeb.Repo)
33.285714
70
0.763948
2db7234431cc002b809b3040f0fdfcf6e41b9b72
2,274
exs
Elixir
mix.exs
noonie2k/ecto_adapters_dynamodb
199c14348f5787b04b4eb997a1f00d13cc09948c
[ "Apache-2.0" ]
null
null
null
mix.exs
noonie2k/ecto_adapters_dynamodb
199c14348f5787b04b4eb997a1f00d13cc09948c
[ "Apache-2.0" ]
null
null
null
mix.exs
noonie2k/ecto_adapters_dynamodb
199c14348f5787b04b4eb997a1f00d13cc09948c
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Adapters.DynamoDB.Mixfile do use Mix.Project def project do [app: :ecto_adapters_dynamodb, version: "0.4.3", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), dialyzer: [plt_add_apps: [:ecto]], docs: [main: "re...
31.150685
169
0.597186
2db7362eb98684a40beb5a40791b30163c74be14
993
ex
Elixir
lib/mix/tasks/phoenix_haml.gen.layout.ex
szTheory/phoenix_haml
c307835bfcd6964cf6326937931085e26501d33b
[ "MIT" ]
162
2015-03-29T22:08:43.000Z
2022-03-09T22:20:21.000Z
lib/mix/tasks/phoenix_haml.gen.layout.ex
szTheory/phoenix_haml
c307835bfcd6964cf6326937931085e26501d33b
[ "MIT" ]
34
2015-04-22T10:35:45.000Z
2021-10-05T08:04:11.000Z
lib/mix/tasks/phoenix_haml.gen.layout.ex
szTheory/phoenix_haml
c307835bfcd6964cf6326937931085e26501d33b
[ "MIT" ]
57
2015-01-23T21:51:02.000Z
2021-08-28T10:23:59.000Z
defmodule Mix.Tasks.PhoenixHaml.Gen.Layout do use Mix.Task @shortdoc "Generates a HAML layout template" @moduledoc """ Generates the `web/templates/layout/app.html.haml` template. The `app.html.eex` template is renamed to `app.html.eex.save` if it exists. mix phoenix_haml.gen.layout """ de...
22.568182
96
0.656596
2db75a57b0b1edcfe06f9c86278c11e7e6c2e061
1,224
exs
Elixir
Problem008/Elixir/solution_1.exs
drocha87/ProjectEuler
c18407448aa4f05484191a0df1380e34f2b8c5d7
[ "MIT" ]
167
2015-08-12T19:32:03.000Z
2022-03-25T12:26:43.000Z
Problem008/Elixir/solution_1.exs
drocha87/ProjectEuler
c18407448aa4f05484191a0df1380e34f2b8c5d7
[ "MIT" ]
153
2016-02-16T02:05:31.000Z
2020-11-06T15:35:51.000Z
Problem008/Elixir/solution_1.exs
drocha87/ProjectEuler
c18407448aa4f05484191a0df1380e34f2b8c5d7
[ "MIT" ]
84
2015-08-12T20:54:04.000Z
2022-02-27T05:14:53.000Z
# Author: lubien data = "731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186947885184385861560789112949495459501737958331952853208805511125406987471585238630507156932909632952274430435576689664895044524452316173185640309871112172238311362229893423380308135336276614282806444486645...
87.428571
1,009
0.915033
2db7613defd44a88a6214f817eadcf889f217fd0
3,322
exs
Elixir
token_registry/test/token_registry_web/controllers/user_confirmation_controller_test.exs
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
1
2021-12-18T16:17:19.000Z
2021-12-18T16:17:19.000Z
token_registry/test/token_registry_web/controllers/user_confirmation_controller_test.exs
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
null
null
null
token_registry/test/token_registry_web/controllers/user_confirmation_controller_test.exs
canuckasaurus/archeio-solanaszn
55dc8712cf0409d110ae342cbbc620745668a4df
[ "MIT" ]
null
null
null
defmodule TokenRegistryWeb.UserConfirmationControllerTest do use TokenRegistryWeb.ConnCase, async: true alias TokenRegistry.Accounts alias TokenRegistry.Repo import TokenRegistry.AccountsFixtures setup do %{user: user_fixture()} end describe "GET /users/confirm" do test "renders the confirmatio...
34.968421
94
0.649308
2db79fb78578a2ff192b157fc72d72326dee7d13
204
ex
Elixir
lib/ex_bitmex/active_interval.ex
eduardoscottini/ex_bitmex
f8528bd635922e1777a5b01ea4941d625da7396e
[ "MIT" ]
6
2019-02-13T04:05:19.000Z
2020-12-31T07:40:09.000Z
lib/ex_bitmex/active_interval.ex
eduardoscottini/ex_bitmex
f8528bd635922e1777a5b01ea4941d625da7396e
[ "MIT" ]
28
2021-03-29T06:46:42.000Z
2022-03-28T11:03:38.000Z
lib/ex_bitmex/active_interval.ex
yurikoval/ex_bitmex
d9492789fb319fbdf78d90a99f7c0e40c95c1885
[ "MIT" ]
4
2019-05-03T21:27:10.000Z
2021-01-12T09:26:34.000Z
defmodule ExBitmex.ActiveInterval do alias __MODULE__ @type t :: %ActiveInterval{ intervals: [String.t()], symbols: [String.t()] } defstruct ~w(intervals symbols)a end
18.545455
36
0.622549
2db7e2d8d646f85dd26e1ae10a2ed6d66821b944
1,423
ex
Elixir
test/support/data_case.ex
dreamingechoes/diversity-in-tech
4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f
[ "MIT" ]
8
2018-06-22T05:43:30.000Z
2020-04-13T20:31:40.000Z
test/support/data_case.ex
dreamingechoes/diversity-in-tech
4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f
[ "MIT" ]
null
null
null
test/support/data_case.ex
dreamingechoes/diversity-in-tech
4eb5dadf69f82fd08e1cdd1b125264930d3b4e6f
[ "MIT" ]
null
null
null
defmodule DiversityInTech.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, ev...
26.351852
77
0.688686
2db7ff1e8574e276486b1effb61ef2c2a8a81026
2,942
ex
Elixir
lib/ex_doc/formatter/epub/templates.ex
DisruptiveAngels/ex_doc
d67b5293e6cd10bf440e26cbb913a0fb68a61786
[ "Apache-2.0", "CC-BY-4.0" ]
13
2018-09-19T21:03:29.000Z
2022-01-27T04:06:32.000Z
lib/ex_doc/formatter/epub/templates.ex
DisruptiveAngels/ex_doc
d67b5293e6cd10bf440e26cbb913a0fb68a61786
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-05-26T04:16:57.000Z
2020-05-26T04:16:57.000Z
lib/ex_doc/formatter/epub/templates.ex
DisruptiveAngels/ex_doc
d67b5293e6cd10bf440e26cbb913a0fb68a61786
[ "Apache-2.0", "CC-BY-4.0" ]
3
2020-05-21T04:32:08.000Z
2021-07-28T05:14:01.000Z
defmodule ExDoc.Formatter.EPUB.Templates do @moduledoc false require EEx alias ExDoc.Formatter.HTML alias ExDoc.Formatter.HTML.Templates, as: H @doc """ Generate content from the module template for a given `node` """ def module_page(config, module_node) do summary_map = H.module_summary(module_n...
23.918699
85
0.67743
2db80b0df579fe98eb142a17b53090e48c5c4b4c
1,616
ex
Elixir
lib/tanks/application.ex
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
lib/tanks/application.ex
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
lib/tanks/application.ex
marcinbiegun/elixir-tanks
29a3beef303825a137249c8ae0a3ff21c33d9a1c
[ "MIT" ]
null
null
null
defmodule Tanks.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Phoenix processes # # Start the Ecto repository Tanks.Repo, # Start the Tele...
33.666667
87
0.665842
2db824c40c50dbe94470327d1889f09ab22b9cd4
8,096
ex
Elixir
lib/card_game/game.ex
vikassahu29/card_game
97831f9f1ae912e7e16e5c233c7c4a4c3a382494
[ "MIT" ]
null
null
null
lib/card_game/game.ex
vikassahu29/card_game
97831f9f1ae912e7e16e5c233c7c4a4c3a382494
[ "MIT" ]
null
null
null
lib/card_game/game.ex
vikassahu29/card_game
97831f9f1ae912e7e16e5c233c7c4a4c3a382494
[ "MIT" ]
null
null
null
defmodule CardGame.Game do use GenServer @cards [{"2", "Spades", 2}, {"3", "Spades", 3}, {"4", "Spades", 4}, {"5", "Spades", 5}, {"6", "Spades", 6}, {"7", "Spades", 7}, {"8", "Spades", 8}, {"9", "Spades", 9}, {"10", "Spades", 10}, {"Jack", "Spades", 11}, {"Queen", "Spades", 12}, {"King", "Spades", 13}, ...
37.137615
180
0.604002
2db8261fc864572bbd62b3a4ab3df032f3503eaf
645
exs
Elixir
test/fixtures/example_app/mix.exs
aforward-oss/conform
794ba6ae9554b59c787632a1f5fa7a66e5c5da6e
[ "MIT" ]
null
null
null
test/fixtures/example_app/mix.exs
aforward-oss/conform
794ba6ae9554b59c787632a1f5fa7a66e5c5da6e
[ "MIT" ]
null
null
null
test/fixtures/example_app/mix.exs
aforward-oss/conform
794ba6ae9554b59c787632a1f5fa7a66e5c5da6e
[ "MIT" ]
1
2021-07-01T09:02:19.000Z
2021-07-01T09:02:19.000Z
defmodule ExampleApp.Mixfile do use Mix.Project def project do [app: :example_app, version: "0.0.1", elixir: ">= 1.0.0", deps: deps] end # Configuration for the OTP application # # Type `mix help compile.app` for more information def application do [applications: [:logger]] end ...
20.806452
77
0.615504
2db8367e9603f4b135f1c0f7dd63797eab8d7e4a
1,468
ex
Elixir
lib/hexpm_web/views/blog_view.ex
thiamsantos/hexpm
790bae9e761fe9b2dd6901618054ad533ef24599
[ "Apache-2.0" ]
null
null
null
lib/hexpm_web/views/blog_view.ex
thiamsantos/hexpm
790bae9e761fe9b2dd6901618054ad533ef24599
[ "Apache-2.0" ]
null
null
null
lib/hexpm_web/views/blog_view.ex
thiamsantos/hexpm
790bae9e761fe9b2dd6901618054ad533ef24599
[ "Apache-2.0" ]
null
null
null
defmodule HexpmWeb.BlogView do use HexpmWeb, :view skip_slugs = ~w() all_templates = Phoenix.Template.find_all(@phoenix_root) |> Enum.map(&Phoenix.Template.template_path_to_name(&1, @phoenix_root)) |> Enum.flat_map(fn <<n1, n2, n3, "-", slug::binary>> = template when n1 in ?0..?9 and n2 ...
23.301587
75
0.581744
2db85466b0d512d8d9761660a5feda3c10c5530d
417
ex
Elixir
lib/bonny/server/watcher/state.ex
victoriavilasb/bonny
c5f2b3f69d8f4750d796a619d71692d76445b509
[ "MIT" ]
227
2018-12-30T20:13:47.000Z
2022-03-26T03:49:07.000Z
lib/bonny/server/watcher/state.ex
victoriavilasb/bonny
c5f2b3f69d8f4750d796a619d71692d76445b509
[ "MIT" ]
104
2018-12-20T02:16:28.000Z
2022-03-28T07:18:06.000Z
lib/bonny/server/watcher/state.ex
victoriavilasb/bonny
c5f2b3f69d8f4750d796a619d71692d76445b509
[ "MIT" ]
24
2019-02-14T10:18:09.000Z
2022-02-08T04:18:32.000Z
defmodule Bonny.Server.Watcher.State do @moduledoc "State of the Watcher" alias Bonny.Server.Watcher.ResponseBuffer @type t :: %__MODULE__{ resource_version: String.t() | nil, buffer: ResponseBuffer.t() } defstruct [:resource_version, :buffer] @spec new() :: t() def new() do ...
19.857143
45
0.633094
2db857f53b09614247636f1428a3d28805d5fb3f
2,168
exs
Elixir
phoenix/app/config/prod.exs
ohr486/docker-app-template
9365f95d1102c69dba46474d0498d8306d40ed79
[ "MIT" ]
null
null
null
phoenix/app/config/prod.exs
ohr486/docker-app-template
9365f95d1102c69dba46474d0498d8306d40ed79
[ "MIT" ]
null
null
null
phoenix/app/config/prod.exs
ohr486/docker-app-template
9365f95d1102c69dba46474d0498d8306d40ed79
[ "MIT" ]
null
null
null
use Mix.Config # For production, we often load configuration from external # sources, such as your system environment. For this reason, # you won't find the :http configuration below, but set inside # PhxAppWeb.Endpoint.init/2 when load_from_system_env is # true. Any dynamic configuration should be done there. # # Don...
33.353846
67
0.720941
2db858b1a8baef7f18777a211030149026874977
1,910
exs
Elixir
clients/network_management/mix.exs
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/network_management/mix.exs
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/network_management/mix.exs
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.507463
154
0.667016
2db867ab647f5ced3e1223d1fbbf238b8e22692e
19,537
exs
Elixir
apps/language_server/test/dialyzer_test.exs
mhanberg/elixir-ls
70349fe4d53a83d253a29686adbfa9d9f1f8fb73
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/dialyzer_test.exs
mhanberg/elixir-ls
70349fe4d53a83d253a29686adbfa9d9f1f8fb73
[ "Apache-2.0" ]
null
null
null
apps/language_server/test/dialyzer_test.exs
mhanberg/elixir-ls
70349fe4d53a83d253a29686adbfa9d9f1f8fb73
[ "Apache-2.0" ]
null
null
null
defmodule ElixirLS.LanguageServer.DialyzerTest do # TODO: Test loading and saving manifest alias ElixirLS.LanguageServer.{Dialyzer, Server, Protocol, SourceFile, JsonRpc} import ExUnit.CaptureLog use ElixirLS.Utils.MixTest.Case, async: false use Protocol setup_all do # This will generate a large PLT f...
33.22619
102
0.507959
2db88ea2041ae30d56f866c029afeed559a81f39
884
exs
Elixir
mix.exs
nayed/gissues
fc930d44793f028b6a1e72715a0135342d5fbf68
[ "MIT" ]
null
null
null
mix.exs
nayed/gissues
fc930d44793f028b6a1e72715a0135342d5fbf68
[ "MIT" ]
null
null
null
mix.exs
nayed/gissues
fc930d44793f028b6a1e72715a0135342d5fbf68
[ "MIT" ]
null
null
null
defmodule Gissues.Mixfile do use Mix.Project @version "0.1.0" def project do [ app: :gissues, escript: escript_config(), version: @version, name: "Gissues", source_url: "https://github.com/nayed/gissues", elixir: "~> 1.5", build_embedded: Mix.env == :prod, s...
19.644444
59
0.547511
2db8c18ce5718fcf173d492d8501553574ebacb6
1,566
ex
Elixir
lib/card_reader.ex
BrummbQ/cognixir-demo
e3d9447fb6dbd25e78007f077c8754fefe8d400f
[ "MIT" ]
1
2018-05-23T20:37:27.000Z
2018-05-23T20:37:27.000Z
lib/card_reader.ex
BrummbQ/cognixir-demo
e3d9447fb6dbd25e78007f077c8754fefe8d400f
[ "MIT" ]
1
2019-02-21T19:44:04.000Z
2019-02-26T16:51:32.000Z
lib/card_reader.ex
BrummbQ/cognixir-demo
e3d9447fb6dbd25e78007f077c8754fefe8d400f
[ "MIT" ]
null
null
null
defmodule CardReader do alias Cognixir.ComputerVision, as: CV defp analyze_line(line) do line_text = Enum.map(line["words"], fn(word) -> word["text"] end) # look for single tokens Enum.each(line_text, fn(text) -> if String.contains?(text, "@") do ...
30.115385
66
0.509579
2db8cfc073383d690c0b1f2de3ba45f75255b3e3
2,131
ex
Elixir
lib/faker/person.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
540
2015-01-05T16:31:49.000Z
2019-09-25T00:40:27.000Z
lib/faker/person.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
172
2015-01-06T03:55:17.000Z
2019-10-03T12:58:02.000Z
lib/faker/person.ex
joshillian/faker
eeede9d7c35c543dcf6abe72dc476e755c80415b
[ "MIT" ]
163
2015-01-05T21:24:54.000Z
2019-10-03T07:59:42.000Z
defmodule Faker.Person do import Faker, only: [localize: 1] @moduledoc """ Functions for generating names for a person. """ @doc """ Returns a random complete name ## Examples iex> Faker.Person.name() "Mrs. Abe Rolfson MD" iex> Faker.Person.name() "Conor Padberg" iex> Fak...
19.372727
46
0.580009
2db8f0f752c7bb1b94334d72126dc3160e5c7f07
799
ex
Elixir
backend/lib/mix/tasks/docker.build.ex
qcam/commies
242a2cc87409cfe1971e6fbe7ab0bf7cc110ca4d
[ "Apache-2.0" ]
4
2018-10-30T20:37:10.000Z
2020-01-13T21:51:43.000Z
backend/lib/mix/tasks/docker.build.ex
qcam/commies
242a2cc87409cfe1971e6fbe7ab0bf7cc110ca4d
[ "Apache-2.0" ]
1
2018-10-31T23:11:35.000Z
2018-11-01T07:46:48.000Z
backend/lib/mix/tasks/docker.build.ex
qcam/commies
242a2cc87409cfe1971e6fbe7ab0bf7cc110ca4d
[ "Apache-2.0" ]
1
2018-10-31T02:14:27.000Z
2018-10-31T02:14:27.000Z
defmodule Mix.Tasks.Docker.Build do use Mix.Task @image_name Atom.to_string(Mix.Project.config()[:app]) def run(_args) do if System.find_executable("docker") do version = Mix.Project.config()[:version] image_tag = "#{@image_name}:#{version}" execute_docker(["build", "--tag", image_tag, "."...
29.592593
88
0.633292
2db8f11c33c21044f057261441fc340ba8d58dd1
210
exs
Elixir
test/dstreams_web/controllers/page_controller_test.exs
vegabook/dstreams
9a2919b36ba2901522a61737a593fea28a655777
[ "MIT" ]
null
null
null
test/dstreams_web/controllers/page_controller_test.exs
vegabook/dstreams
9a2919b36ba2901522a61737a593fea28a655777
[ "MIT" ]
null
null
null
test/dstreams_web/controllers/page_controller_test.exs
vegabook/dstreams
9a2919b36ba2901522a61737a593fea28a655777
[ "MIT" ]
null
null
null
defmodule DstreamsWeb.PageControllerTest do use DstreamsWeb.ConnCase test "GET /", %{conn: conn} do conn = get(conn, "/") assert html_response(conn, 200) =~ "Welcome to Phoenix!" end end
23.333333
61
0.657143
2db8f26967e80f1c9463636b6f655133f0c55960
5,557
exs
Elixir
test/time_zone_info/external_term_format_test.exs
hrzndhrn/time_zone_info
18fa4e7aefd68d256202de8e0f96b69b8a9dc618
[ "MIT" ]
5
2020-04-05T16:03:03.000Z
2022-02-07T22:11:04.000Z
test/time_zone_info/external_term_format_test.exs
hrzndhrn/time_zone_info
18fa4e7aefd68d256202de8e0f96b69b8a9dc618
[ "MIT" ]
16
2020-03-28T17:46:13.000Z
2021-08-25T08:35:48.000Z
test/time_zone_info/external_term_format_test.exs
hrzndhrn/time_zone_info
18fa4e7aefd68d256202de8e0f96b69b8a9dc618
[ "MIT" ]
null
null
null
defmodule TimeZoneInfo.ExternalTermFormatTest do use ExUnit.Case, async: true alias TimeZoneInfo.ExternalTermFormat @term %{ version: "2019c", links: %{ "Europe/Guernsey" => "Europe/London", "Europe/Isle_of_Man" => "Europe/London", "Europe/Jersey" => "Europe/London" }, rules: %...
45.92562
98
0.554076
2db971db0ff72c6e9ac508e97ee737f0e49fea1f
306
exs
Elixir
programming_elixir_1.3_snippets/fizzbuzz.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
programming_elixir_1.3_snippets/fizzbuzz.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
programming_elixir_1.3_snippets/fizzbuzz.exs
benjohns1/elixer-app
6e866ec084c5e75442c0b70f66e35f61b5b74d34
[ "MIT" ]
null
null
null
buzzer = fn 0, 0, _ -> "FizzBuzz" 0, _, _ -> "Fizz" _, 0, _ -> "Buzz" _, _, a -> a end fizzbuzz = fn n -> buzzer.(rem(n,3), rem(n,5), n) end IO.puts fizzbuzz.(10) IO.puts fizzbuzz.(11) IO.puts fizzbuzz.(12) IO.puts fizzbuzz.(13) IO.puts fizzbuzz.(14) IO.puts fizzbuzz.(15) IO.puts fizzbuzz.(16)
17
37
0.598039
2db972ac99e5df711b4f1d6e616979284846727a
1,568
ex
Elixir
clients/source_repo/lib/google_api/source_repo/v1/model/test_iam_permissions_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/source_repo/lib/google_api/source_repo/v1/model/test_iam_permissions_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/source_repo/lib/google_api/source_repo/v1/model/test_iam_permissions_response.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
32.666667
134
0.746811
2db9773f6ae2ea82b489e3ddc72f5066a15cf86a
1,894
ex
Elixir
lib/coordinates_manager.ex
rhumbertgz/mivbm
ce710cf9c4e9f12b741714c8e5153bc4bd8cf9c4
[ "Apache-2.0" ]
1
2019-05-27T17:22:12.000Z
2019-05-27T17:22:12.000Z
lib/coordinates_manager.ex
rhumbertgz/mivbm
ce710cf9c4e9f12b741714c8e5153bc4bd8cf9c4
[ "Apache-2.0" ]
null
null
null
lib/coordinates_manager.ex
rhumbertgz/mivbm
ce710cf9c4e9f12b741714c8e5153bc4bd8cf9c4
[ "Apache-2.0" ]
null
null
null
defmodule MIVBM.CoordinatesManager do require Logger alias MIVBC.VehiclePositionByLine.Vehicle @module Atom.to_string(__MODULE__) |> String.split_at(7) |> elem(1) def load_coordinates(line) do case :file.consult("coordinates/line-#{inspect line}.lc") do {:ok, [coordinates]} -> coordinates _...
41.173913
162
0.647835
2db97d9f21d851c1a78ed1e07dbb80b226d1dc44
134
ex
Elixir
test/support/factory.ex
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
test/support/factory.ex
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
test/support/factory.ex
AlexKovalevych/evolution
2271546f045d475d676f5993c25824496026694b
[ "MIT" ]
null
null
null
defmodule Evolution.Factory do use ExMachina.Ecto, repo: Evolution.Repo use Evolution.UserFactory use Evolution.GameFactory end
22.333333
42
0.813433
2db99abc3dfc54460e41c8bfc9e96cdbf41d82a3
956
exs
Elixir
mix.exs
belloq/checkout_elixir
b36391000f502c714649153a39e332b53fe8a24d
[ "MIT" ]
1
2019-07-23T08:44:17.000Z
2019-07-23T08:44:17.000Z
mix.exs
belloq/checkout_elixir
b36391000f502c714649153a39e332b53fe8a24d
[ "MIT" ]
2
2018-09-13T08:31:52.000Z
2020-03-26T13:03:14.000Z
mix.exs
belloq/checkout_elixir
b36391000f502c714649153a39e332b53fe8a24d
[ "MIT" ]
2
2019-10-17T17:14:24.000Z
2020-05-18T12:45:20.000Z
defmodule CheckoutElixir.Mixfile do use Mix.Project def project do [ app: :checkout_elixir, version: "2.0.0", elixir: "~> 1.5", start_permanent: Mix.env == :prod, deps: deps(), description: description(), package: package() ] end # Run "mix help compile.app" t...
19.12
63
0.540795
2db9b056b4973f49f6dcbb65f712c2ab32ddb3d8
932
exs
Elixir
test/json_schema_test_suite/draft6/optional/format/uri_template_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
test/json_schema_test_suite/draft6/optional/format/uri_template_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
test/json_schema_test_suite/draft6/optional/format/uri_template_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule JsonSchemaTestSuite.Draft6.Optional.Format.UriTemplateTest do use ExUnit.Case import Xema, only: [valid?: 2] describe ~s|format: uri-template| do setup do %{ schema: Xema.from_json_schema( %{"format" => "uri-template"}, draft: "draft6", a...
26.628571
76
0.606223
2db9b8fe793bec3df77eae25ff8d09ea03538935
381
ex
Elixir
lib/app/blog/post.ex
krlsdu/placamercosul
46f1f404eca14897887179d46c00b75c614427ff
[ "MIT" ]
null
null
null
lib/app/blog/post.ex
krlsdu/placamercosul
46f1f404eca14897887179d46c00b75c614427ff
[ "MIT" ]
null
null
null
lib/app/blog/post.ex
krlsdu/placamercosul
46f1f404eca14897887179d46c00b75c614427ff
[ "MIT" ]
null
null
null
defmodule App.Blog.Post do use Ecto.Schema import Ecto.Changeset schema "posts" do field :body, :string field :ovni, :boolean, default: false field :word_count, :integer timestamps() end @doc false def changeset(post, attrs) do post |> cast(attrs, [:body, :word_count, :ovni]) ...
18.142857
53
0.650919
2db9cfc6ffa7172fa8aabe6b74bcd0f3fcff8f51
4,520
ex
Elixir
lib/cldr/strftime/translator.ex
elixir-cldr/cldr_strftime
ef2bca82f90bcc321a35f0696a97a04b4b6e2329
[ "Apache-2.0" ]
1
2020-11-23T08:54:31.000Z
2020-11-23T08:54:31.000Z
lib/cldr/strftime/translator.ex
elixir-cldr/cldr_strftime
ef2bca82f90bcc321a35f0696a97a04b4b6e2329
[ "Apache-2.0" ]
1
2021-12-01T00:14:37.000Z
2021-12-01T00:14:37.000Z
lib/cldr/strftime/translator.ex
elixir-cldr/cldr_strftime
ef2bca82f90bcc321a35f0696a97a04b4b6e2329
[ "Apache-2.0" ]
1
2021-11-30T19:59:58.000Z
2021-11-30T19:59:58.000Z
defmodule Cldr.Strftime.Translator do @moduledoc false @standard_formats [:short, :medium, :long, :full] def substitute(date_time_formats, date_formats, time_formats) do Enum.reduce @standard_formats, Map.new(), fn format, acc -> datetime_format = Map.fetch!(date_time_formats, format) date_forma...
19.234043
70
0.56969
2db9d4552b12cf1923819a4f02dbb85cbbacb23c
3,959
exs
Elixir
apps/tai/test/tai/venues/adapters/create_order_gtc_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/test/tai/venues/adapters/create_order_gtc_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
73
2018-10-05T18:45:06.000Z
2021-02-08T05:46:33.000Z
apps/tai/test/tai/venues/adapters/create_order_gtc_test.exs
ccamateur/tai
41c4b3e09dafc77987fa3f6b300c15461d981e16
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.Venues.Adapters.CreateOrderGtcTest do use Tai.TestSupport.DataCase, async: false use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney alias Tai.Orders.Responses setup_all do HTTPoison.start() end @sides [:buy, :sell] Tai.TestSupport.Helpers.test_venue_adapters_create_order_gtc_accepted() ...
37.704762
141
0.655216
2db9d97517b675f5484e0ef0c783a2e7057d7172
1,305
ex
Elixir
projects/api/lib/margaret_web/helpers/graphql_errors.ex
strattadb/margaret
dde5d7b42f6d9b4d320069a0117136dae03b13b5
[ "MIT" ]
82
2017-11-06T01:00:55.000Z
2020-12-09T10:35:29.000Z
projects/api/lib/margaret_web/helpers/graphql_errors.ex
dbstratta/margaret
dde5d7b42f6d9b4d320069a0117136dae03b13b5
[ "MIT" ]
98
2017-11-06T22:57:32.000Z
2020-07-03T04:46:39.000Z
projects/api/lib/margaret_web/helpers/graphql_errors.ex
strattadb/margaret
dde5d7b42f6d9b4d320069a0117136dae03b13b5
[ "MIT" ]
10
2017-11-16T05:31:58.000Z
2020-10-29T18:02:35.000Z
defmodule MargaretWeb.Helpers.GraphQLErrors do @moduledoc """ Helper functions for generating GraphQL errors. """ import Margaret.Helpers, only: [error: 1] @type t :: Absinthe.Type.Field.error_result() @doc """ Returns the `Unauthorized` error. """ @spec unauthorized :: t() def unauthorized, do: ...
25.096154
61
0.684291
2db9f5da3ad05199d876f9f5f1fb83929218a3b5
14,545
exs
Elixir
test/domo/changeset_test.exs
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
101
2020-06-11T23:51:50.000Z
2022-03-30T16:29:18.000Z
test/domo/changeset_test.exs
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
11
2020-10-11T11:50:24.000Z
2022-02-12T08:54:50.000Z
test/domo/changeset_test.exs
kianmeng/Domo
1dcd2a0fb7d11b8c99db45b76aca95825db27d3b
[ "MIT" ]
4
2020-07-02T08:54:22.000Z
2021-12-26T09:59:15.000Z
defmodule Domo.ChangesetTest do use Domo.FileCase, async: false use Placebo alias Domo.Changeset alias Mix.Tasks.Compile.DomoCompiler, as: DomoMixTask setup_all do Code.compiler_options(ignore_module_conflict: true) File.mkdir_p!(tmp_path()) on_exit(fn -> File.rm_rf(tmp_path()) Code...
37.583979
136
0.651152
2db9f9d914e3f4af7ce6d7d13f799e36319e4f2a
1,172
ex
Elixir
web/channels/user_socket.ex
exterm/scripture
eec53d2626f8484c03ad0545feffc73ec276fcab
[ "MIT" ]
null
null
null
web/channels/user_socket.ex
exterm/scripture
eec53d2626f8484c03ad0545feffc73ec276fcab
[ "MIT" ]
30
2016-08-21T18:33:11.000Z
2020-04-12T23:16:18.000Z
web/channels/user_socket.ex
exterm/scripture
eec53d2626f8484c03ad0545feffc73ec276fcab
[ "MIT" ]
null
null
null
defmodule Scripture.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", Scripture.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify and aut...
30.842105
83
0.703072
2dba1441dce844c751217e9ddc23a4ba5c8ba2c2
1,638
ex
Elixir
apps/jira_client/lib/jira_client.ex
msk-access/seqosystem
4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39
[ "Apache-2.0" ]
3
2020-11-24T07:45:26.000Z
2021-07-29T13:37:02.000Z
apps/jira_client/lib/jira_client.ex
mskcc/seqosystem
4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39
[ "Apache-2.0" ]
52
2020-10-21T19:47:59.000Z
2021-09-09T18:42:33.000Z
apps/jira_client/lib/jira_client.ex
msk-access/seqosystem
4d99c50a0b0bc74c7f9f899be4eda8eddf6e5a39
[ "Apache-2.0" ]
1
2020-12-15T03:33:31.000Z
2020-12-15T03:33:31.000Z
defmodule JiraClient do use Tesla @moduledoc """ Documentation for `JiraClient`. """ @url Application.fetch_env!(:jira_client, :url) plug(Tesla.Middleware.BaseUrl, @url) plug(Tesla.Middleware.JSON) plug(Tesla.Middleware.BasicAuth, username: Application.fetch_env!(:jira_client, :username), pas...
26.419355
80
0.529915
2dba6399f71bd6090d73a2403bdf45d34206e23e
904
ex
Elixir
clients/big_query_reservation/lib/google_api/big_query_reservation/v1/metadata.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/big_query_reservation/lib/google_api/big_query_reservation/v1/metadata.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/big_query_reservation/lib/google_api/big_query_reservation/v1/metadata.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 agreed to in writing, s...
33.481481
74
0.764381
2dbad64833d2d6ca37fdd41418410f07db6c34cb
1,619
ex
Elixir
clients/content/lib/google_api/content/v21/model/time_zone.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/content/lib/google_api/content/v21/model/time_zone.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/content/lib/google_api/content/v21/model/time_zone.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.38
120
0.70908
2dbafda176ceefa7b39a7b2823b0241ee32ab864
416
ex
Elixir
lib/codes/codes_o82.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_o82.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_o82.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_O82 do alias IcdCode.ICDCode def _O82 do %ICDCode{full_code: "O82", category_code: "O82", short_code: "", full_name: "Encounter for cesarean delivery without indication", short_name: "Encounter for cesarean delivery without indication", ...
26
77
0.673077
2dbb0f7929984c06995abbe8197b88962d53a155
1,776
exs
Elixir
rotational-cipher/test/rotational_cipher_test.exs
tarcisiooliveira/Exercise-form-Exercism-in-Elixir
2c9f14c264345d8aae09c701dc56128072b7f3c1
[ "MIT" ]
null
null
null
rotational-cipher/test/rotational_cipher_test.exs
tarcisiooliveira/Exercise-form-Exercism-in-Elixir
2c9f14c264345d8aae09c701dc56128072b7f3c1
[ "MIT" ]
null
null
null
rotational-cipher/test/rotational_cipher_test.exs
tarcisiooliveira/Exercise-form-Exercism-in-Elixir
2c9f14c264345d8aae09c701dc56128072b7f3c1
[ "MIT" ]
null
null
null
defmodule RotationalCipherTest do use ExUnit.Case # @tag :pending test "rotate a by 1" do plaintext = "a" shift = 1 assert RotationalCipher.rotate(plaintext, shift) == "b" end test "rotate a by 26, same output as input" do plaintext = "a" shift = 26 assert RotationalCipher.rotate(p...
23.368421
79
0.643581
2dbb3411c5ed487800c5230597a06c82c63b997f
204
exs
Elixir
config/config.exs
thepeoplesbourgeois/slime
55c4d738632ed6540a0a03e0a4022b02e398c2d9
[ "MIT" ]
312
2015-12-28T05:25:47.000Z
2022-02-16T05:18:16.000Z
config/config.exs
thepeoplesbourgeois/slime
55c4d738632ed6540a0a03e0a4022b02e398c2d9
[ "MIT" ]
105
2015-12-27T21:20:58.000Z
2022-02-24T05:23:38.000Z
config/config.exs
thepeoplesbourgeois/slime
55c4d738632ed6540a0a03e0a4022b02e398c2d9
[ "MIT" ]
45
2016-01-12T04:02:01.000Z
2021-09-14T16:19:18.000Z
use Mix.Config if Mix.env() == :test do config :slime, :attr_list_delims, %{"[" => "]", "(" => ")"} config :slime, :embedded_engines, %{ test_engine: RenderEmbeddedEngineTest.TestEngine } end
20.4
61
0.627451
2dbb46788f07f31bca1d42085062f3ef5926cc77
6,041
ex
Elixir
test/keyword_syntax_tests.ex
felix-starman/double
d2af3b254e2dade4a0a428eb8b679a71676f5c92
[ "MIT" ]
43
2017-01-11T17:23:05.000Z
2021-10-05T08:24:45.000Z
test/keyword_syntax_tests.ex
felix-starman/double
d2af3b254e2dade4a0a428eb8b679a71676f5c92
[ "MIT" ]
21
2017-01-11T19:19:24.000Z
2021-06-21T05:07:39.000Z
test/keyword_syntax_tests.ex
salemove/double
04f2b48b2de5870ee4642af9e7984b05a850f501
[ "MIT" ]
6
2017-04-27T15:18:29.000Z
2021-09-26T19:20:02.000Z
defmodule KeywordSyntaxTests do defmacro keyword_syntax_behavior do quote do test "keyword syntax without options, returns nil", %{dbl: dbl, subject: subject} do inject = allow(dbl, :process) assert subject.(inject, :process, []) == nil assert_receive(:process) end test ...
35.327485
100
0.541136
2dbb5b2b35bc223f8e6be59b7352cc0c79dee4f1
1,055
exs
Elixir
test/changelog/policies/person_test.exs
gustavoarmoa/changelog.com
e898a9979a237ae66962714821ed8633a4966f37
[ "MIT" ]
2,599
2016-10-25T15:02:53.000Z
2022-03-26T02:34:42.000Z
test/changelog/policies/person_test.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
253
2016-10-25T20:29:24.000Z
2022-03-29T21:52:36.000Z
test/changelog/policies/person_test.exs
sdrees/changelog.com
955cdcf93d74991062f19a03e34c9f083ade1705
[ "MIT" ]
298
2016-10-25T15:18:31.000Z
2022-01-18T21:25:52.000Z
defmodule Changelog.Policies.PersonTest do use Changelog.PolicyCase import Mock alias Changelog.Policies.Person test "you can only edit/update yourself" do refute Person.update(@guest, @user) refute Person.edit(@editor, @user) refute Person.update(@admin, @user) assert Person.edit(@user, @use...
28.513514
77
0.635071
2dbb6d8371bf5abf4b93b8edd274cc73aeadef32
9,609
ex
Elixir
lib/ueberauth/strategy/auth0.ex
achedeuzot/ueberauth_auth0
c65fe13228527b3195149864131659a44ec3259c
[ "MIT" ]
17
2020-09-08T08:19:38.000Z
2022-02-18T14:38:11.000Z
lib/ueberauth/strategy/auth0.ex
achedeuzot/ueberauth_auth0
c65fe13228527b3195149864131659a44ec3259c
[ "MIT" ]
52
2020-07-23T21:41:09.000Z
2022-03-28T23:01:44.000Z
lib/ueberauth/strategy/auth0.ex
achedeuzot/ueberauth_auth0
c65fe13228527b3195149864131659a44ec3259c
[ "MIT" ]
14
2020-08-16T12:15:18.000Z
2021-11-30T19:50:25.000Z
defmodule Ueberauth.Strategy.Auth0 do @moduledoc """ Provides an Ueberauth strategy for authenticating with Auth0. You can edit the behaviour of the Strategy by including some options when you register your provider. To set the `uid_field` config :ueberauth, Ueberauth, providers: [ a...
31.401961
119
0.646789
2dbc197bceff7a2d265646c7a25f9c5a92386fb3
1,944
exs
Elixir
mix.exs
onomated/coherence
210c6e56a48f53b6a02a6f99a6b5260027ae6633
[ "MIT" ]
null
null
null
mix.exs
onomated/coherence
210c6e56a48f53b6a02a6f99a6b5260027ae6633
[ "MIT" ]
null
null
null
mix.exs
onomated/coherence
210c6e56a48f53b6a02a6f99a6b5260027ae6633
[ "MIT" ]
null
null
null
defmodule Coherence.Mixfile do use Mix.Project @version "0.6.0" def project do [ app: :coherence, version: @version, elixir: "~> 1.3", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), build_embedded: Mix.env() == :prod, st...
24.923077
90
0.509259
2dbc38ac3a1aff28d88a2b24d2efaa523c75616b
504
exs
Elixir
priv/repo/migrations/20181004132536_create_pieces.exs
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
2
2019-01-20T07:03:30.000Z
2019-04-11T10:20:14.000Z
priv/repo/migrations/20181004132536_create_pieces.exs
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
6
2018-09-20T05:52:14.000Z
2019-04-23T19:27:39.000Z
priv/repo/migrations/20181004132536_create_pieces.exs
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
null
null
null
defmodule Jumubase.Repo.Migrations.CreatePieces do use Ecto.Migration def change do create table(:pieces) do add :performance_id, references(:performances, on_delete: :delete_all), null: false add :title, :string add :composer_name, :string add :composer_born, :string add :compose...
24
89
0.666667
2dbc4f28e3b85bb7bf9f62749f0a40bd84a5cadf
409
exs
Elixir
test/ellie_web/views/error_view_test.exs
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
377
2018-04-05T03:36:00.000Z
2022-03-30T19:12:44.000Z
test/ellie_web/views/error_view_test.exs
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
91
2018-05-24T21:56:06.000Z
2022-02-26T03:54:04.000Z
test/ellie_web/views/error_view_test.exs
HenkPoley/ellie
045212b56142341fc95b79659c3ca218b0d5d282
[ "BSD-3-Clause" ]
34
2018-05-29T03:54:35.000Z
2022-01-13T07:12:46.000Z
defmodule EllieWeb.ErrorViewTest do use EllieWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(EllieWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do assert r...
27.266667
90
0.728606